Skip to content

Keep inaccessible file refs visible in web chat#35

Merged
zzj3720 merged 1 commit into
mainfrom
codex/file-card-inaccessible-fallback
May 20, 2026
Merged

Keep inaccessible file refs visible in web chat#35
zzj3720 merged 1 commit into
mainfrom
codex/file-card-inaccessible-fallback

Conversation

@zzj3720
Copy link
Copy Markdown
Contributor

@zzj3720 zzj3720 commented May 20, 2026

Summary

  • render fileRef-only user attachments instead of dropping the card
  • show an incomplete-content fallback card for web-inaccessible file refs with file location and environment, including image/audio/video/file refs
  • add an action button that asks the agent to provide a complete/downloadable version and disables after request is sent
  • share the fallback predicate across user/assistant renderers and cover fallback/request behavior with tests

Validation

  • yarn typecheck
  • yarn lint
  • yarn test
  • yarn build:embedded (passes with existing bundle-size warnings)
  • Manual: rendered the incomplete file card path-only local-vm scenario in jsdom and clicked the “Ask agent to make accessible” button to confirm the user-visible state, generated agent request text, and disabled sent state

Co-authored-by: 3720 <zuozijian1994@gmail.com>
@zzj3720 zzj3720 force-pushed the codex/file-card-inaccessible-fallback branch from 0f44801 to 3d16f32 Compare May 20, 2026 07:53
@zzj3720 zzj3720 marked this pull request as ready for review May 20, 2026 08:04
@zzj3720 zzj3720 merged commit d97fade into main May 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant