History

feat(web): attach PDFs, ZIPs, and other files to a turn (#8236)

Theo Browne committed 2 months ago

Commit bcb855a1 parent 6a9d9f930 files · +3932 −263Browse files

Showing the changes to docs (1 of 30 files). Show all

Unified · Split

docs/user/composer.md+20−2
@@ -4,8 +4,17 @@ Messages can contain up to 120,000 characters. If a draft is longer, T3 Code kee · 3 unmodified lines
44 composer and shows how many characters need to be removed. Shorten the draft or split it into
55 multiple messages, then send again in the same thread.
66
7−On servers that support direct uploads, images upload as soon as you add them. The send button
8−becomes available after every upload finishes. Failed uploads can be retried or removed.
7+You can attach images up to 10 MB. On servers that support file uploads, web and desktop can also
8+attach text files, PDFs, ZIP archives, and other files. Each file can be up to the limit advertised
9+by the server, capped at 50 MB. Each message can contain up to eight attachments in total. Files
10+upload directly to the environment, where your agent can read, copy, or edit them by their file path.
11+
12+On web and desktop, attachments upload as soon as you add them. The send button becomes available
13+after every upload finishes. Failed uploads can be retried or removed. On mobile, attachments are
14+currently limited to images.
15+
16+If you reload before a file finishes uploading, the draft keeps the file's name and shows **Attach
17+again** next to it. Attach the file again or remove it, then send.
918
1019 On web and desktop, HEIC and HEIF photos are automatically converted to JPEG when you drag them into
1120 the composer or paste them into a message.
@@ -14,6 +23,15 @@ On mobile, the model picker shows each OpenCode model's upstream provider, such · 2 unmodified lines
1423 GitHub Copilot, or OpenCode Zen, beneath its name. Search by that provider name to narrow the list
1524 when starting a thread or changing an existing thread's model.
1625
26+## Prompt stash
27+
28+Use the default shortcut, `Cmd+S` on macOS or `Ctrl+S` on Windows and Linux, to stash the current
29+prompt and its attachments after all file uploads finish. Restore the entry later from the stash
30+menu. Stashes that contain files must be restored in the environment where those files were
31+uploaded. Stashed files stay uploaded on the server for 24 hours. If you restore an entry after
32+that, the file comes back with **Attach again** next to it. Attach the file again or remove it, then
33+send.
34+
1735 ## Commands and skills
1836
1937 Type `/` to open the command menu. Type `$` to find and add a skill. Skill rows show their source,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t