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 in the background
17
18In a desktop browser or the desktop app, press `Cmd+Enter` on macOS or `Ctrl+Enter`
19on Windows and Linux to start a new thread and immediately open another draft. The
20next draft keeps the workspace mode and base branch you selected. With **New
21worktree**, each background submission creates its own worktree.
22
23## Pin and reorder threads
24
25Pin a thread from its menu to keep it above your active work.
26
27Pinning does not prevent automatic settlement. Settling a thread removes its pin.
28
29On web and desktop, drag a thread between sections to change its state. Drag a thread up into
30the pinned section to pin it at the spot you drop it; drag a pinned thread down into the active
31list to unpin it. Dragging a thread onto the **Settled** header settles it, and dragging a settled
32thread into the active list un-settles it. A snoozed thread can be dragged out of the snoozed
33shelf, which wakes it, but threads cannot be dragged into the shelf because snoozing needs a wake
34time. Dragging a pinned thread out of the pinned section does not ask for unpin confirmation.
35Pinned and active boundary labels appear only while dragging, without moving the rows. The
36destination boundary highlights. When you cross into another section, the dragged thread shows
37its destination, such as **→ Active**. Its usual pin, status, and hover actions hide during the
38drag. Reordering within the same section does not show a destination badge. When there are no
39pins, drag to the top edge to pin a thread. Section labels also identify empty sections and a
40collapsed settled shelf.
41
42Drag within the pinned or active section to change its order. Other rows slide aside to show the
43spot where the thread will land. Drops into either section keep the position you choose. On
44mobile, open a pinned or active thread's menu and choose **Move up** or **Move down**. The server
45saves the order, so it survives a refresh and appears on your other connected devices.
46
47On web and desktop, the list also animates section changes made with thread actions such as
48**Pin**, **Settle**, and **Snooze**. These transitions respect your system's reduced-motion
49preference. While dragging, rows follow the insertion gap without replaying a second transition
50after the drop.
51
52New threads appear above the active threads you have arranged. Settling clears a thread's active
53position, so using **Un-settle** returns it to the top. Pinning and snoozing preserve its active
54position until you move it again. Thread activity does not change the order. The settled shelf
55continues to use settlement time.
56
57If dragging is unavailable for one environment, update the T3 Code server running in that
58environment. Pinned and active reordering require server support. Threads from older servers keep
59their default order until the server is updated.
60
61## Settle finished work
62
63Choose **Settle thread** from its menu to move finished work out of the active list
64without deleting the conversation. **Un-settle thread** restores it to active work
65and prevents automatic settlement until new activity resumes the usual rules.
66Manually settling an idle thread dismisses unanswered async questions without
67sending an answer or restarting the agent.
68
69By default, environments settle inactive threads after three days and settle
70threads whose pull request merged. A closed pull request can also settle an idle
71thread. Work in progress, pending questions or approvals, and live background work
72prevent automatic settlement. An open pull request does not prevent inactivity
73settlement, but an old closed or merged pull request does not settle work you
74resumed after it closed.
75
76Change these rules in **Settings → General**. They continue to run when your apps
77are closed. Changes apply to connected environments that support shared settings;
78offline environments and older servers keep their previous values. If connected
79environments disagree, **Apply to all** copies your current settings to those named
80in the warning. Changing a rule does not reopen already settled threads.
81
82## Link a pull request
83
84The server finds the PR for each unsettled thread's saved branch, even when your
85apps are closed. Settled threads keep their saved links. Update the server if
86automatic branch links do not appear.
87
88On web and desktop, right-click a pull request link in a thread and choose
89**Link to thread** to select a different PR. Use **Unlink from thread** on the
90same link to return to the branch PR, if one exists.
91The linked pull request participates in automatic settlement.
92
93## Find and reference work
94
95On web and desktop, open the command palette with `Cmd/Ctrl+K` to search threads
96across connected environments. Message search starts after two characters and
97includes your messages and final agent responses.
98
99Use **Settings → Keybindings** to find or customize shortcuts for searching files
100and copying a thread reference. A copied reference uses the thread's pull request
101link when available, otherwise its thread ID. See [keybindings](./keybindings.md)
102for custom configuration.
103
104## Inspect agent work
105
106On web and desktop, use **Agents** to follow work delegated to subagents.
107
108Expand a tool call in the conversation to see its full command and output.
109Summaries shorten shell wrappers and can still describe the latest call after it
110finishes; the call's own result shows its status.