Open History to see the last commit
1# Working with threads
2
3Use a new thread for a separate task. Choose **New worktree** when its code changes
4need a separate branch and working directory.
5
6## Start a thread
7
8On web and desktop, a new thread keeps the current project and carries your model
9and mode selections, unless the destination project has its own model default.
10Its branch and workspace mode come from your configured defaults. To continue in
11an existing worktree, use **New thread in this worktree** from the branch toolbar.
12
13When you change a new thread's project, T3 Code stays in the current environment
14if that project exists there. Otherwise it selects an environment that has it.
15
16### Start without a project
17
18A thread does not need a project. To start one without a project, click **or
19start without a project** under a new thread's heading, pick **No project** from
20the project menu in that heading or from **New thread in...** in the command
21palette, or press `mod+alt+n`. On mobile, pick **No project** from the project
22list. It starts on your current machine; before sending, pick another machine
23from the machine menu to move it there. To move a draft into a project, pick the
24project in the heading.
25
26Each thread without a project works in its own folder under `~/.t3/scratch` (the
27`scratch` folder of your T3 data directory), named after its date, the first words
28of its first message, and a short id, like
29`2026-09-25-convert-these-pngs-to-webp-a1b2c3d4`. Deleting a thread keeps its
30folder, so the files the agent wrote stay until you delete them. Branch, worktree, and diff controls stay hidden because
31these folders are not Git repositories. This is unavailable when the data
32directory itself sits inside a Git checkout.
33
34### Start in the background
35
36In a desktop browser or the desktop app, press `Cmd+Enter` on macOS or `Ctrl+Enter`
37on Windows and Linux to start a new thread and immediately open another draft. The
38next draft keeps the workspace mode and base branch you selected. With **New
39worktree**, each background submission creates its own worktree.
40
41To send the same prompt to several models on web or desktop, **Shift-click** models
42in a new thread's model picker to add or remove them. A regular click returns to a
43single model. Choose a base branch and send. Each selection starts a separate thread
44and worktree while you stay in the new thread composer. This requires a Git project.
45
46## Pin and reorder threads
47
48Pin a thread from its menu to keep it above your active work.
49
50On web and desktop, unpinning, settling, snoozing, and archiving a thread each show
51a notification with **Undo** for five seconds. Undo restores the thread's previous
52state, including its pinned position, and reopens an archived thread you were
53viewing. Discarding an unsent draft from the sidebar works the same way: Undo brings
54back its text and attachments. `mod+z` triggers the most recent Undo, even from the composer; see
55[Keybindings](./keybindings.md#commands-with-special-behavior).
56
57On web and desktop, you can also drag files from your computer onto any thread row:
58the thread opens and the files are attached in its composer, ready for
59your next message. The same per-message file limits apply as when attaching
60files directly; see [Attach files](./composer.md#attach-files).
61
62On web and desktop, pinning or unpinning a thread keeps the sidebar at your current
63scroll position instead of following the thread to its new place in the list.
64
65Pinning does not prevent automatic settlement. Settling a thread removes its pin.
66
67On web and desktop, drag a thread between sections to change its state. Drag a thread up into
68the pinned section to pin it at the spot you drop it; drag a pinned thread down into the active
69list to unpin it. Dragging a thread onto the **Settled** header settles it, and dragging a settled
70thread into the active list un-settles it. A snoozed thread can be dragged out of the snoozed
71shelf, which wakes it, but threads cannot be dragged into the shelf because snoozing needs a wake
72time. Dragging a pinned thread out of the pinned section does not ask for unpin confirmation.
73Pinned and active boundary labels appear only while dragging, without moving the rows. The
74other rows slide aside to show where the thread will land. When you cross into another section,
75the dragged thread shows the action the drop performs, with its icon: **Pin**, **Unpin**,
76**Settle**, **Un-settle**, or **Wake**. Its status and hover actions hide during the drag. A pinned
77thread keeps its pin only while it stays in the pinned section; once it leaves, the badge takes
78over. Reordering within the same section shows no badge. When there are no pins, drag to the top
79edge to pin a thread. Section labels stay readable for the whole drag, and the section the
80thread is over takes the accent color. Section labels also
81identify empty sections and a collapsed settled shelf.
82
83Drag within the pinned or active section to change its order. Other rows slide aside to show the
84spot where the thread will land. Drops into either section keep the position you choose. On
85mobile, open a thread's menu and choose **Arrange threads**. Drag a handle within or between
86**Pinned** and **Active** to reorder, pin, or unpin. Drop onto the **Settled** divider to
87settle a thread. The dragged card shows the action before you release it. Expand **Snoozed**
88or **Settled** to drag a parked thread back into either live section. Each drop saves; close the sheet to return to the thread list.
89**Move up** and **Move down** are also available in the thread menu. The server
90saves the order, so it survives a refresh and appears on your other connected devices.
91
92On web and desktop, the list also animates section changes made with thread actions such as
93**Pin**, **Settle**, and **Snooze**. These transitions respect your system's reduced-motion
94preference. While dragging, rows follow the insertion gap without replaying a second transition
95after the drop.
96
97New threads appear above the active threads you have arranged. Settling clears a thread's active
98position, so using **Un-settle** returns it to the top. Pinning and snoozing preserve its active
99position until you move it again. Thread activity does not change the order. The settled shelf
100continues to use settlement time.
101
102If dragging is unavailable for one environment, update the T3 Code server running in that
103environment. Pinned and active reordering require server support. Threads from older servers keep
104their default order until the server is updated.
105
106To generate a fresh title from the conversation, open a thread's menu and choose
107**Regenerate title**. The action is unavailable while title generation is in progress
108or when the connected environment needs a server update.
109
110To change how titles are written, add **Thread title instructions** in **Settings → General →
111Text generation**, such as a length limit or an identifier to put first. They apply to new and
112regenerated titles. Select a project to give it its own instructions.
113
114Agents connected through T3 Code can use the same server-owned metadata workflow to
115rename a thread, regenerate its title, or link and unlink a pull request. These changes
116appear on web, desktop, and mobile without requiring the originating browser to remain
117open.
118
119### Fold working threads (beta)
120
121Threads that are working or waiting on work they will resume from move into a collapsed
122**Working** section below the active list.
123That includes subagents, watched pull requests, and background commands or monitors the agent
124says it is waiting on. A dev server or other process an agent leaves running does not keep a thread
125there. A thread returns to the top of the active list when it finishes, fails, or needs an approval or
126answer. The Working section lists the thread you last sent work to first. Pinned threads stay in
127the pinned section.
128
129This is on by default. Turn it off with **Settings → Beta → Working section** on web and desktop,
130or **Settings → Thread behavior → Working section** on iOS and Android. Each device keeps its own
131choice.
132
133While this is on, the active list is ordered by when each thread last came back to you, so you
134cannot drag or move threads within it. Your saved order returns when you turn it off.
135
136## Settle finished work
137
138Choose **Settle thread** from its menu to move finished work out of the active list
139without deleting the conversation. **Un-settle thread** restores it to active work
140and prevents automatic settlement until new activity resumes the usual rules.
141Manually settling an idle thread dismisses unanswered async questions without
142sending an answer or restarting the agent. Settling also closes the thread's
143terminals that wait at an idle prompt, and keeps their output. A terminal that
144runs a command, such as a dev server, stays open.
145
146To reclaim disk space from settled work, turn on **Run in the thread's worktree when the
147thread settles** for one of the project's actions, or set `"runOnSettle": true` on a
148`t3.json` script, for example `cargo clean`. It runs each time a thread in its own
149worktree settles, manually or automatically, even if a terminal there still runs a
150command such as a dev server. Threads in the project's main checkout skip it. Its terminal
151closes when the command succeeds and stays open when it fails.
152
153On web and desktop, press a thread's **Settle** button and drag up or down to
154settle every thread in that section between it and the one you release on.
155The **Un-settle** and **Wake** buttons work the same way in their sections.
156Press `Escape` while dragging to cancel.
157
158By default, environments settle inactive threads after three days and settle
159threads whose pull request merged. A closed pull request can also settle an idle
160thread. An empty thread's inactivity counts from when it was created.
161Work in progress, pending questions or approvals, and background work the agent
162is waiting on prevent automatic settlement. An open pull request does not prevent inactivity
163settlement unless you turn on **Keep threads with a PR** in **Settings → General**,
164but an old closed or merged pull request does not settle work you
165resumed after it closed. Only your own messages count as resuming. A turn that
166finished background work or a pull request watch starts on its own does not.
167
168To keep one thread out of the settled shelf no matter how long it sits idle, open its menu,
169choose **Auto-settle behavior**, and pick **Disabled**. The current option is checked. Pick
170**Enabled** to return to the usual rules. Manual settle, snooze, and archive still work while it
171is disabled.
172
173Change these rules in **Settings → General** on web and desktop, or **Settings → Thread behavior** on mobile.
174They continue to run when your apps are closed. On web and desktop, choose an environment at the
175top to change only its rules, or **All environments** to update connected environments together.
176Mixed values show where the selected environments disagree. Mobile applies these
177rules to connected environments that support shared settings. Offline environments
178and older servers keep their previous values. Changing a rule does not reopen
179already settled threads.
180
181## Link a pull request
182
183The server finds the PR for each unsettled thread's saved branch, even when your
184apps are closed. Settled threads keep their saved links. Update the server if
185automatic branch links do not appear.
186
187On web and desktop, right-click a pull request link in a thread and choose
188**Link to thread** to select a different PR. Use **Unlink from thread** on the
189same link to return to the branch PR, if one exists.
190The linked pull request participates in automatic settlement.
191
192## Find and reference work
193
194On web and desktop, open the command palette with `Cmd/Ctrl+K` to search threads
195across connected environments by title, branch, pull request, or project.
196Threads you open often or recently rank higher, and for three weeks the thread
197you last picked for a query ranks higher when you type that query again.
198Threads whose messages contain all your words appear below, under **In
199messages**, and open at the matching message. Message search needs at least
200one word of three or more letters, or two for Chinese, Japanese, and Korean.
201On mobile, the thread list search also lists message matches and opens them at
202the matching message; on an iPad with a keyboard, `Cmd+K` opens the same
203palette.
204
205Use **Settings → Keybindings** to find or customize shortcuts for searching files
206and copying a thread reference. A copied reference uses the thread's pull request
207link when available, otherwise its thread ID. See [keybindings](./keybindings.md)
208for custom configuration.
209
210## Inspect agent work
211
212**Limited** means the provider stopped on a usage or rate limit. The conversation
213keeps the provider's explanation. Retry after the limit resets, or switch to
214another provider instance.
215On web and desktop, press **Resume** in an empty composer to continue a limited
216or interrupted turn manually.
217Queued messages stay saved while the limit blocks the thread. They run after
218the continuation finishes. If the queue was held by a restart, resume it then.
219
220When the provider reports a reset time, choose **Resume at reset** to schedule a
221continuation. You can cancel it from the thread. Enable **Resume after
222usage limits** in **Settings → General** on web and desktop, or **Settings → Thread
223behavior** on mobile, to schedule limit stops by default.
224The environment must be running when the reset arrives; it resumes overdue
225continuations after a restart. Stopping the thread, sending a new message,
226archiving, or settling it prevents a pending continuation from starting.
227
228Choose **Snooze until reset** to hide the thread until its allowance returns.
229Snooze and auto-resume are independent: snooze alone wakes the thread without
230sending a message; enabling both wakes and continues it. **Wake now** cancels
231the snooze. Enable **Snooze until limits reset** in thread behavior settings to
232snooze limit stops by default. Providers without a reset time offer manual
233retry and the normal snooze choices.
234
235On web and desktop, use **Agents** to follow work delegated to subagents.
236On mobile, open a subagent from its conversation card or **Agents**. On iOS
237layouts with an inspector, its thread opens beside the parent. Maximize it to
238fill the screen; close the full-screen view to return to the parent and inspector.
239Stop on a thread also stops the subagents it delegated to.
240
241Subagent threads started by the agent can't take messages; message the parent
242thread instead. When such a subagent needs an approval or an answer, the parent
243thread asks for it.
244
245Expand a tool call in the conversation to see its full command and output.
246Summaries shorten shell wrappers and can still describe the latest call after it
247finishes; the call's own result shows its status.
248
249## Snooze until later
250
251Choose **Snooze → Custom…** from a thread's menu to pick a date and time in your
252local time zone, or a duration in minutes, hours, or days. Durations start when
253you confirm; one day means 24 hours. On web and desktop, you can also snooze
254several selected threads together. Choose **Wake thread** to bring a thread back early.
255A snoozed thread keeps working and stays hidden until its wake time, even while
256its agent wakes itself for background work. It comes back early only when it needs
257an approval or answer from you, when a run fails, or when you send it a message.