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

thread-sidebar.md

325 lines18.9 KB

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