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

thread-sidebar.md

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