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. Drag pinned threads
26to reorder them on web and desktop, or use **Move up** and **Move down** on mobile.
27The order syncs across devices.
28
29Pinning does not prevent automatic settlement. Settling a thread removes its pin.
30
31## Settle finished work
32
33Choose **Settle thread** from its menu to move finished work out of the active list
34without deleting the conversation. **Un-settle thread** restores it to active work
35and prevents automatic settlement until new activity resumes the usual rules.
36
37By default, environments settle inactive threads after three days and settle
38threads whose pull request merged. A closed pull request can also settle an idle
39thread. Work in progress, pending questions or approvals, and live background work
40prevent automatic settlement. An open pull request does not prevent inactivity
41settlement, but an old closed or merged pull request does not settle work you
42resumed after it closed.
43
44Change these rules in **Settings → General**. They continue to run when your apps
45are closed. Changes apply to connected environments that support shared settings;
46offline environments and older servers keep their previous values. If connected
47environments disagree, **Apply to all** copies your current settings to those named
48in the warning. Changing a rule does not reopen already settled threads.
49
50## Link a pull request
51
52On web and desktop, right-click a pull request link in a thread and choose
53**Link to thread**. Use **Unlink from thread** on the same link to remove it.
54The linked pull request participates in automatic settlement.
55
56## Find and reference work
57
58On web and desktop, open the command palette with `Cmd/Ctrl+K` to search threads
59across connected environments. Message search starts after two characters and
60includes your messages and final agent responses.
61
62Use **Settings → Keybindings** to find or customize shortcuts for searching files
63and copying a thread reference. A copied reference uses the thread's pull request
64link when available, otherwise its thread ID. See [keybindings](./keybindings.md)
65for custom configuration.
66
67## Inspect agent work
68
69On web and desktop, use **Agents** to follow work delegated to subagents.
70
71Expand a tool call in the conversation to see its full command and output.
72Summaries shorten shell wrappers and can still describe the latest call after it
73finishes; the call's own result shows its status.