Let Drive read files from the plus menu without copying them onto the computer - #5
Merged
Conversation
… 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
~/.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.cache_control: ephemeral. Each OpenAI turn logs{in, cached, out, eff}to stdout only.Stacked on #4 (which is stacked on #3). Merge in order: #3, then #4 (retarget to
main), then this PR (retarget tomain).Test plan
node web/web-ui/test_serve.mjs.mdfrom the plus menu; send with or without text~/.case/drive/inbox(or Composeui-data) and not on the computer.exeand a file over 5MBeff=on an OpenAI turnMade with Cursor