Skip to content

Let Drive read files from the plus menu without copying them onto the computer - #5

Merged
ishu86 merged 4 commits into
mainfrom
feat/oss-drive-ux
Aug 26, 2026
Merged

Let Drive read files from the plus menu without copying them onto the computer#5
ishu86 merged 4 commits into
mainfrom
feat/oss-drive-ux

Conversation

@ishu86

@ishu86 ishu86 commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Plus-menu attach stores files in ~/.case/drive/inbox (max 4 per turn, 5MB each; images, PDF, and text). The model reads them next turn; they never copy onto the computer.
  • Anthropic requests set cache_control: ephemeral. Each OpenAI turn logs {in, cached, out, eff} to stdout only.
  • Thread delete does not erase content-addressed shots or attachments. Documented in README and SECURITY.md.

Stacked on #4 (which is stacked on #3). Merge in order: #3, then #4 (retarget to main), then this PR (retarget to main).

Test plan

  • node web/web-ui/test_serve.mjs
  • Attach a PNG and a .md from the plus menu; send with or without text
  • Confirm the files appear under ~/.case/drive/inbox (or Compose ui-data) and not on the computer
  • Reject .exe and a file over 5MB
  • Delete the thread — the inbox/shot files are still on disk
  • Anthropic turn still streams; Drive logs eff= on an OpenAI turn

Made with Cursor

ishu86 and others added 4 commits August 26, 2026 18:57
… computer.

Attachments land in ~/.case/drive/inbox, Anthropic now requests a prompt
cache, and each turn logs effective token spend to stdout.

Co-authored-by: Cursor <cursoragent@cursor.com>
Partial fills no longer post the form, upload treats `..` as a path
segment not a substring, and CASE_TURN_TOKENS now stops Claude turns too.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
A failed inbox write used to look like a successful upload, and an id
with `..` in the name could not be opened again.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ishu86
ishu86 changed the base branch from feat/oss-drive-loop to main August 26, 2026 15:19
@ishu86
ishu86 merged commit b45acbd into main Aug 26, 2026
@ishu86
ishu86 deleted the feat/oss-drive-ux branch August 26, 2026 15:19
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