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

thread-sidebar.md

109 lines10.3 KB

Working with threads

Use a separate thread for each task. Choose New worktree when a task needs its own Git branch and working directory; threads sharing a checkout share its branch, so T3 Code blocks branch switches while one is running.

Start a thread

  • Web and desktop: New thread opens the project picker when you have multiple open projects (unless the sidebar is filtered to one project). Shift-click to start in the current project. To reuse an existing worktree, choose New thread in this worktree from the branch toolbar.
  • Mobile: New thread uses the current, filtered, or last-opened project. Disable Settings → General → Use last project to pick every time.
  • Defaults: New threads inherit your last model and mode unless the project sets its own model default.

Start without a project

Threads don't require a project. Pick No project (or press mod+alt+n on web/desktop) to start a scratch thread in ~/.t3/scratch/<date>-<slug>-<id>.

  • Deleting a scratch thread leaves its folder on disk.
  • Git branch, worktree, and diff controls are hidden (and scratch threads are unavailable if your T3 data directory itself is inside a Git repo).
  • Choose Turn into project from the thread menu to promote the folder into a real project in place, then Initialize Git if needed.

Start in the background and multi-model runs

  • Background start (web/desktop): Press Cmd+Enter (macOS) or Ctrl+Enter (Windows/Linux) in a new thread to submit it and immediately open another draft with the same workspace mode and base branch.
  • Same prompt, multiple models (web/desktop, Git projects): Shift-click models in a new thread's model picker to select several. Sending starts a separate thread and worktree for each model.

Move a thread on the same machine

Choose Move to project… from an idle thread's menu or the command palette. The thread keeps its conversation and link. The next message runs in the destination project folder. Files stay in the folder where you left them.

If a turn fails because its workspace folder is missing, T3 pauses sending and shows recovery options at the end of the conversation. If you restore the folder yourself, use Check again to re-enable sending.

  • Change project folder opens the folder picker on the thread's machine. Threads that use the project folder pick up the new path. For a thread in a missing worktree, Choose folder changes that thread's workspace.
  • Continue without project moves only this thread to an empty folder managed by T3 Code. Use Move to project… when you want to attach it to a project again.

Sidebar layout and organization

  • Resize or hide (web/desktop): Drag the sidebar's right edge past its minimum width to hide it; hover the left window edge and click or drag the handle to bring it back.
  • Drop files onto a thread (web/desktop): Drag files from your computer onto any thread row to open it and attach them to its composer.
  • Pin and reorder: Pin a thread from its menu or drag threads between Pinned, Active, and Settled (or drag out of Snoozed to wake). On mobile, use Arrange threads or Move up / Move down in the thread menu. Custom order syncs across devices (requires an up-to-date server).
  • Undo (web/desktop): Unpinning, settling, snoozing, archiving, or discarding a draft shows a 5-second Undo toast (mod+z).
  • Titles: Choose Regenerate title from a thread's menu, or customize title style in Settings → Threads → Text generation → Thread title instructions (global or per-project).

Working section (beta)

Enabled by default (Settings → General → Working section, per device). Unpinned threads that are actively running—or waiting on subagents, watched PRs, or monitors—collapse into a Working section below Active, and return to the top of Active when they finish, fail, or need input.

While enabled, Active is sorted by most recent return (manual reordering is paused until you turn it off).

Group threads by project (beta)

Enable Settings → Labs → Boring sidebar (group by project) on web/desktop (per device) to group active threads into collapsible project folders. Pinned threads stay above; Snoozed and Settled stay below. In this mode, the Working section and sidebar drag-reordering are disabled (dragging a thread onto the composer still works).

Settle, snooze, and archive

ActionWhen to useEffect
SettleTask is done for nowMoves to Settled; stays searchable; any new message reactivates it. Closes idle terminals (and stops actions with stopOnSettle: true).
SnoozeDefer until laterHides until wake time (thread keeps working in the background). Wakes early on approvals, questions, errors, or new messages.
ArchiveOut of the wayLeaves sidebar and search; lives in Settings → Archive. Refuses new messages (including from agents and scheduled tasks) until unarchived.

Tip: If a scheduled task targets a thread, settle it instead of archiving—archiving causes scheduled runs to fail.

Settlement rules and hooks

  • Automatic settlement: By default, environments settle threads after 7 days of inactivity or when their linked PR merges/closes (even while your apps are closed). Active work, pending questions/approvals, and waited-on background work block auto-settlement. Configure rules in Settings → Threads (per environment or All environments), including Keep threads with a PR.
  • Per-thread override: Open a thread's menu → Auto-settle behavior → Never to exempt a single thread.
  • Drag-to-settle (web/desktop): Press and drag down/up from a thread's Settle, Un-settle, or Wake button to act on a contiguous range (Esc cancels).
  • Offline settle/snooze: Queues locally (Pending / Waiting to sync) and syncs on reconnect; remote changes take precedence if the thread changed in the meantime.
  • Worktree cleanup on settle: Enable Run in the thread's worktree when the thread settles on a project action (or "runOnSettle": true in t3.json), e.g. cargo clean, to reclaim disk space automatically in worktree threads.

Dragging down from one thread's Settle button selects the threads below it; releasing settles all of them and the Settled count goes up

Snooze options

Customize presets in Settings → Threads → Snooze options (durations like 3 hours or times like 9:00 PM tomorrow), or pick Snooze → Custom… for an exact date/time or duration. Snooze → Indefinitely keeps a thread snoozed until you wake it (it still wakes early on approvals, questions, errors, or new messages). Choose Wake thread to bring a thread back early.

The server automatically links open PRs matching an unsettled thread's branch. On web/desktop, right-click any PR link in a thread and choose Link to thread or Unlink from thread to override it. Linked PRs participate in auto-settlement.

Find and reference work

  • Command palette (Cmd/Ctrl+K): Searches threads across connected environments by title, branch, PR, project, and message contents (use "exact phrase" for exact matches). On mobile, use the thread list search (or Cmd+K on iPad with a keyboard).
  • Copy reference: Copies the linked PR URL if one exists, otherwise a thread link that pastes into any composer as a thread chip. Use Copy → Thread (or Copy thread on mobile) to force a thread link, or Thread ID for scripts and the t3 CLI.

Usage limits, subagents, and thread details

  • Usage limits: When a provider hits a rate/usage limit (Limited), press Resume in an empty composer after reset (or send a message). If the provider reports a reset time, choose Resume at reset or Snooze until reset—or enable defaults in Settings → Threads (Resume after usage limits / Snooze until limits reset).
  • Subagents: Follow delegated work from the conversation card or Agents. Stopping a parent thread also stops its delegated subagents. Subagents started internally by the provider are read-only; message the parent thread instead.
  • Running dev servers (web/desktop): The thread details card lists local servers started by the thread's terminals or Claude agent with their ports. Click one to open it in the browser panel, or Stop to end it (macOS/Linux only).
  • Customize thread details: Right-click the thread details card or open Settings → Appearance → Thread details to show/hide rows.

Open a thread beside the one you are in

On web and desktop, subagents, side chats, and threads on linked machines open as a tab in the right panel by default so your main thread stays visible.

The right panel, highlighted, open beside a thread. Its + button opens a new tab: Browser, Terminal, Files, Diff, Pull request, Linked items, Device, or Side chat

  • Hold Cmd/Ctrl while clicking (or middle-click) to open in the main view instead.
  • Change the default in Settings → Chat → Open subagents and side chats in.
  • From a right-panel tab, choose Open in main view to promote it.
  • On mobile, they open in the inspector where available, or full screen otherwise.

Side chats

Ask a quick side question about a thread without polluting its history. A side chat starts with the parent thread's context, folder, model, and permissions while the parent keeps working.

  • Start (web/desktop): Send /side <question> or /btw <question>, or choose Side chat from the right panel's + menu.
  • Find later: Listed under Side chats in thread details (web/desktop) or above the composer (mobile); hidden from the main sidebar.
  • Bring results back: Click Add to chat in the side chat, or @-mention its title in the parent composer (not readable by external OpenCode servers).
  • Lifecycle: Closing an unused side chat deletes it. Deleting or archiving the parent thread deletes or archives its side chats.