Skip to content

Add file attachment context handling#141

Merged
BunsDev merged 1 commit into
mainfrom
okcode/file-context-drag-drop
Apr 1, 2026
Merged

Add file attachment context handling#141
BunsDev merged 1 commit into
mainfrom
okcode/file-context-drag-drop

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 1, 2026

Summary

  • Extend composer, server, and provider flows to support non-image file attachments alongside images.
  • Persist and validate file attachments with separate size limits, MIME handling, and UTF-8 text extraction before sending to providers.
  • Inject text file contents into Codex and Claude turn input as structured attached-file context, with truncation and omission safeguards.
  • Update drag-and-drop, draft persistence, timeline rendering, and send-state logic to treat files as first-class sendable attachments.

Testing

  • bun fmt
  • bun lint
  • bun typecheck
  • bun run test

- Support text file attachments alongside images
- Persist, validate, and forward file context through server and UI
- Relax attachment lookup to handle non-image files
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 1, 2026 3:11am

@github-actions github-actions Bot added size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 1, 2026
@BunsDev BunsDev merged commit 8f61bfd into main Apr 1, 2026
8 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant