Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

composer.md

236 lines14.9 KB

1# Message composer
2​
3Messages can contain up to 120,000 characters. If a draft is longer, T3 Code keeps it in the
4composer and shows how many characters need to be removed. Shorten the draft or split it into
5multiple messages, then send again in the same thread.
6​
7On mobile, an empty composer shows an interrupt button while the agent is working. Adding text
8or an attachment replaces it with the send button. This applies to both compact and expanded
9composers.
10​
11You can attach images up to 10 MB. On servers that support file uploads, you can also
12attach videos, text files, PDFs, ZIP archives, and other files. Each file can be up to the limit advertised
13by the server, capped at 50 MB. Each message can contain up to eight attachments in total. Files
14upload directly to the environment, where your agent can read, copy, or edit them by their file path.
15​
16Attachments upload as soon as you add them while connected to a server that supports uploads.
17The send button becomes available after every upload finishes. Failed uploads can be retried or
18removed. On mobile, tap **+** to open
19the photo library from either the compact or expanded composer. When the connected server supports
20file uploads, **+** opens a menu beside the button with **Photo Library** and **Choose Files**.
21Videos use the server's file upload limit. You can also share photos, videos, and files into
22T3 Code from other apps through the system share sheet. Mobile keeps a local copy of each draft
23attachment, so you can still preview it and queue messages while offline. Uploads resume when
24you reconnect. Drafts and queued messages survive app restarts; signing out of T3 Connect keeps
25them on your device until you sign back into the same account. Select a received file on mobile
26to preview it or open the system share options.
27​
28Tap an image or PDF before or after sending to open it. On iOS, images zoom from their thumbnail
29into the native viewer. Pinch or double-tap to zoom, and swipe down or tap Close to return.
30Use Share to save a copy or send it to another app. PDFs support page navigation and search.
31PDF links in assistant responses open the same preview. On Android, images open in the image
32viewer and PDFs open the system chooser.
33​
34On web and desktop, select a sent PDF or HTML attachment to open it in the file viewer, or use the
35download button beside it to save a copy. Other attached files download when selected.
36​
37Select a video attachment before or after sending to play it. Web and desktop use the browser's
38built-in controls. On mobile, videos open in a full-screen player with native playback controls.
39Supported videos show a thumbnail in the conversation and composer.
40Received videos stream from their environment as they play on every platform. Supported formats and
41codecs depend on the browser or device; you can save an unsupported video to open it in another app.
42​
43On iOS, the system player zooms from the attachment. Swipe down or tap Close to return to the
44conversation or draft. Touch and hold a video thumbnail, then choose **Save or share** to open
45the system share options. On Android, the same menu is also available inside the preview.
46​
47On web and desktop, if you reload before a file finishes uploading, the draft keeps the file's name
48and shows **Attach again** next to it. Attach the file again or remove it, then send.
49​
50On web and desktop, HEIC and HEIF photos are automatically converted to JPEG when you drag them into
51the composer or paste them into a message. On iOS, selecting them from **Photo Library** also
52converts them to JPEG. The 10 MB image limit applies to the converted photo.
53​
54On web and desktop, an existing thread settles its composer into a single-line resting state when
55the composer loses focus. At wider sizes, scrolling the conversation also rests a focused composer,
56except when scrolling toward the end while already there. When the thread-context strip has room,
57the model and mode controls stay available beside the thread context; otherwise they return when the
58composer is focused. Focus the composer or start typing to expand it again. The conversation keeps
59the expanded composer's space clear above its last message while the composer rests, so expanding it
60again never covers what you scrolled to. New-thread layouts keep the full composer. **Settings → General → Collapse composer** chooses which triggers rest it:
61**On unfocus**, **On scroll**, both, or neither. With neither selected the composer stays expanded.
62​
63At phone-sized web or desktop window widths, existing threads animate between their compact and
64expanded layouts. Up to three image attachments remain visible in either resting layout, followed
65by a count when more are attached. At wider sizes, videos, files, and other draft context remain
66visible at their natural height; the phone-sized compact row reveals those details when expanded.
67​
68On mobile, the model picker shows each OpenCode model's upstream provider, such as Anthropic,
69GitHub Copilot, or OpenCode Zen, beneath its name. Search by that provider name to narrow the list
70when starting a thread or changing an existing thread's model.
71​
72## Model defaults
73​
74T3 Code remembers the last provider, model, and model options you selected and reuses that
75selection for new threads. A model configured in a project's settings overrides the remembered
76selection for that project; resetting the project setting returns it to the remembered selection.
77​
78Model options shown as provider defaults remain display values until you choose them in T3 Code.
79T3 Code only sends options you selected explicitly, so an unset reasoning level or service tier can
80still come from the provider's own configuration.
81​
82## Quote an assistant response
83​
84On web and desktop, select text in an assistant response, then choose **Cite in composer** from the
85menu that appears when you release the selection. This inserts an inline quote chip at your cursor
86and opens an optional comment bubble beside the selected text; press `Enter` or choose **Save** to
87attach the comment, or leave it blank to keep just the quote. You can type before and after the
88chip, such as a quote followed by "what do you mean?". A selection must stay within one response
89and fit in 8,000 characters.
90​
91The chip shows your comment when it has one, or a short quote preview otherwise. Use the pencil
92button to add or change the comment, and the remove button to delete the quote and its comment from
93the draft. Copying, reloading, and restoring a [stashed prompt](#prompt-stash) keep each comment
94with its quote, and sending tells the agent which words were quoted and which comment you wrote.
95The quoted text and comment count toward the message limit.
96​
97Select a chip in the composer or a sent message to open the source thread, scroll to the response,
98and highlight the quoted passage — including in older history. The
99highlight pulses, holds for a moment, then fades on its own; press `Escape` to stop the navigation
100or clear it early. If the source is unavailable or its text has changed, the saved quote stays
101readable and T3 Code shows a warning.
102​
103Mobile shows the full saved quote and its comment in sent messages. It does not offer
104**Cite in composer** or navigation to a quote's source.
105​
106## Images and videos in messages
107​
108On web, desktop, and mobile, select a link to an image or video to open it inside T3 Code.
109Workspace image and video links open the file viewer. Links to media outside the workspace
110open a media preview.
111Videos opened from the file explorer or a file-viewer tab also play inside T3 Code. They
112stream from the environment as needed, rather than downloading the entire video before playback.
113Paths in inline code, such as `/tmp/recording.mp4`, work the same way. Image embeds stay inline;
114video embeds show a player with the browser's controls, full screen included. Visible video previews load
115an initial frame when supported, but stay paused until you press Play. Video file references use
116a filmstrip icon.
117​
118On web and desktop, hover over a preview to see its full file path or original URL. Right-click
119to copy that reference, save the image or video, or copy an image to the clipboard. The video
120player's built-in controls can download a video too. If the player cannot decode a video, its error message
121offers a link to open the source in the browser. Workspace media also offers **Copy relative
122path** and **Open in file viewer**. These actions are available in expanded previews too.
123​
124On mobile, touch and hold an inline image or a video thumbnail to see its source,
125copy the path or URL, or choose **Save or share**. Workspace files can open in the file viewer
126from the same menu. Saving downloads a copy only when you request it; it does not change how
127the video buffers during playback. On iOS, touch and hold a file reference in a message to
128copy its full or relative path or open it in the file viewer.
129​
130Use Markdown image syntax to embed either kind of media:
131​
132```markdown
133![Screenshot](/tmp/screenshot.png)
134![Recording](/tmp/recording.mp4)
135[Open recording](/tmp/recording.mp4)
136```
137​
138Relative paths resolve from the thread's workspace. Absolute paths and `file://` links refer to
139the environment's machine, even when you connect remotely or use your phone. Supported media
140can live outside the workspace, including in Downloads or `/tmp`.
141​
142T3 Code serves the original file without adding it to attachment storage. If that file is moved
143or deleted, its preview can no longer load from the environment. A browser or device may still
144have a cached copy. Supported video formats and codecs depend on the browser or device.
145​
146Bare paths in ordinary prose and paths inside code blocks stay text. Raw HTML `<video>` tags
147are not supported; use the Markdown embed syntax above.
148​
149## Files outside the workspace
150​
151When an agent links to a file it wrote outside the workspace, such as a Markdown report in
152`/tmp`, select the link to open it in the file viewer. The viewer shows the file read-only, with
153rendered Markdown available as usual; it cannot edit files outside the workspace. The workspace
154file tree stays hidden because it does not describe the open file. HTML and PDF files outside the
155workspace open the same way as ones inside it. Because such a file is served on its own, an HTML
156page outside the workspace cannot load scripts, styles, or images from files beside it.
157​
158## HTML and PDF files in the file viewer
159​
160On web and desktop, the file viewer shows HTML and PDF files as a rendered page. Use the
161source toggle in the viewer's header to switch an HTML file between the page and its markup; the
162choice persists like the rendered-Markdown toggle. A link to a line always opens the source. HTML
163runs in an isolated frame with no access to your T3 Code session. On desktop, the integrated
164browser remains available from the same header for a full browser view.
165​
166## Changing projects
167​
168On web and desktop, changing the project from a new thread keeps the current environment when that
169project exists there. If it does not, T3 Code selects another environment that has the project.
170​
171## Notices above the composer
172​
173On web and desktop, loading and syncing statuses fill the available banner width beside the
174stash tab. Task progress appears above the composer, while the timeline's working timer shows
175only elapsed time.
176​
177On web and desktop, additional notices peek out above the attached banner. Hover over the peek
178to reveal them, or focus **Show other notices** with `Tab` and press `Enter` or `Space`. Press
179`Escape` to close the stack and return focus to that control. On a touchscreen, tap the peek to
180open the stack. Interacting with the attached banner or composer does not open the stack.
181​
182## Prompt stash
183​
184Use the default shortcut, `Cmd+S` on macOS or `Ctrl+S` on Windows and Linux, to stash the current
185prompt and its attachments after all file uploads finish. Restore the entry later from the stash
186menu. Stashes that contain files must be restored in the environment where those files were
187uploaded. Stashed files stay uploaded on the server for 24 hours. If you restore an entry after
188that, the file comes back with **Attach again** next to it. Attach the file again or remove it, then
189send.
190​
191## Voice input on iPhone
192​
193On supported iPhones with iOS 26 or later, tap the microphone in the composer to record a message.
194An expanded composer keeps your draft visible and flips its bottom toolbar into recording controls
195with waves that respond to your voice. A collapsed composer flips into a compact recording strip
196without changing height. Tap the checkmark to finish and transcribe on your device. The waves fade
197into a transcription status, then the usual
198controls return with the text inserted at the selection where recording started. If the keyboard
199is open when you start, it stays open during voice input. You can review and edit the text before
200you send it.
201​
202The first use can download Apple's speech model and needs a network connection. Later transcription
203works offline for that language. A recording can be up to five minutes long. Canceling voice input,
204leaving the screen, or an audio interruption discards the new recording and keeps the existing draft
205and attachments. T3 Code deletes the local audio file after transcription or cancellation. It sends
206only the normal message text when you submit the draft.
207​
208## Commands and skills
209​
210Type `/` to open the command menu. Type `$` to find and add a skill. Skill rows show their source,
211such as System, Personal, Project, or App.
212​
213On mobile, these menus are available on the **New task** screen before you start a thread. They
214use the skills and commands from the selected environment and provider.
215​
216In a thread with prior conversation context, send `/compact` to reduce context usage. Messages sent while compaction runs are held and sent when it finishes. Web and desktop also offer this action from the context meter, and the work log records token counts when the provider reports them.
217​
218By default, the `/` menu includes skills. To keep this menu command-only, turn off **Show skills in
219slash menu** in **Settings → General**. Skill results use the `/skill:Skill Name` label and add the
220same `$name` skill token to your message. The original skill name remains searchable. If the provider
221also reports that skill as a native slash command, T3 Code hides the duplicate native entry and keeps
222the `/skill:Skill Name` label.
223​
224A skill token runs the skill wherever it sits in your message. T3 Code sends it to each provider in
225the form that provider runs, so the text before and after the token is kept. Skills that only you may
226start, and never the agent on its own, work the same way. A skill you switched off in the provider's
227settings does not appear in either menu.
228​
229Provider commands such as `/compact` only run when they open the message, so the `/` menu offers
230them only there. T3 Code's own commands, such as `/model` and `/plan`, and skills stay available on
231any line.
232​
233On desktop, press `Cmd+Enter` on macOS or `Ctrl+Enter` on Windows and Linux from a new thread to
234start it in the background. T3 Code opens another new thread and shows an **Open** action for the
235thread that started. The new thread keeps the selected workspace mode and base branch. If **New
236worktree** is selected, each background thread creates its own worktree.