The Sessions panel
The panel is scoped to the current project and has two groups:- Open every session currently open as a chat tab, with a live status dot and a line of detail underneath:
- Running the agent is working. While a tool call is in flight, the line names it (for example Running: search_files).
- Waiting for input the agent asked you a question or needs a permission decision.
- Idle finished and ready for your next message.
- Error the last run failed.
- History past sessions from disk that aren’t currently open. Click one to open it as a chat tab. The trash icon deletes it permanently.
Claude Code sessions
The toggle at the top of the panel switches between Coder (Coder’s own AI chats, described above) and Claude Code. The Claude Code view lists the sessions theclaude CLI has recorded for the current project, newest first, each with its title and when it was last active. Your choice is remembered.
Click a session and Coder opens a new terminal in the project and runs claude --resume <session-id>, so you pick up exactly where that conversation left off.
- Sessions are read from
~/.claude/projects/and are never modified. The list refreshes each time you switch to the Claude Code view. - Titles are the ones Claude generated for the session. If there isn’t one yet, the first thing you typed is used.
- The list covers the project’s main folder. Sessions started from other roots of a multi-root workspace aren’t shown.
- Clicking a session that is already running in another terminal starts a second copy of it. Switch to the existing terminal instead.
This requires the
claude CLI to be installed and on your PATH in Coder’s terminal.Move a chat to the editor
Right-click a session in the Sessions panel (open or history) and choose Move to Editor. You can also right-click a tab in the chat panel’s own tab strip and choose the same item. The chat moves out of the side panel and opens as a tab in the active editor group, with a live status dot on the tab. From there it behaves like any other editor tab:- Drag it between groups, or use the tab context menu to move or split it
- Place it in any pane of the editor grid, next to code, terminals, diffs, or other chats
- Close the tab any time to return it to the side panel. The chat keeps running either way, and you can also choose Return to Sidebar on it in the Sessions panel
Monitoring several chats
Each chat tab shows a status dot, so a chat you aren’t looking at can still get your attention:
Open a few sessions in a grid and you can see every stream live, answer a permission prompt in the pane that needs it, and leave the others running.
Runs keep going
An agent run belongs to Coder, not to the window showing it. So:- Close the project, switch projects, or close the window and a running chat keeps working in the background. Reopen the project and the chat is right where the agent got to, still streaming if it hasn’t finished.
- History is saved as it goes: when you send, and after each batch of tool results. If Coder quits or crashes mid-run you keep a partial chat that you can read and continue, instead of losing it.
- Reloading the window (Cmd+R) doesn’t interrupt a run either.
- Prompts wait for you. If the agent needs a command approved or asks a question while you’re away, it waits (up to 15 minutes, then the request is declined) and shows the prompt again when you come back. With Remote on, you’re messaged that it’s waiting.
- Two windows on the same project see the same chat. A prompt appears in both, and answering it in one dismisses it in the other.
Context meter and compression
Each chat shows its own context meter in its header: how much of the model’s window the last request used, against the safe limit (80% by default). The meter turns yellow, then red, as you approach it. The button next to it compresses that chat’s history on demand by stripping tool-call payloads from older turns. A chat also auto-compresses when a turn ends over the safe limit. The threshold, and whether auto-compact runs at all, is set in Settings → Models → AI Chat. This happens per session, whether or not you’re looking at it, so a long-running background chat doesn’t silently run out of context.Parallel work with worktrees
Sessions pair naturally with git worktrees: create one worktree per feature, open one chat per worktree, and place the chats side by side. Four features can progress at once, each in its own branch and folder, while you watch all four streams. A typical setup:- Create a worktree for each feature (Cmd+Shift+U, or ask the agent to do it)
- Start a new chat for each one and tell it which worktree to work in, by naming the path (a chat is not locked to a root; it works wherever you point it)
- Right-click each session, Move to Editor, and arrange the panes
- Answer prompts as the dots turn amber; review each branch’s changes in the Git panel
Chats opened in the editor don’t include the active editor file as context the way the side-panel chat does. If you want one to look at a file, give it the path in your message.