Skip to main content
Every AI chat in Coder is a session: its own conversation, its own streaming state, its own message queue. Sessions keep running in the background, so you can start a task in one chat, switch to another, and come back to find the first one finished (or waiting on you). They keep running even if you close the project or the window; see Runs keep going. The Sessions panel is the control room for all of them, and any session can be opened as a tab in the editor grid, so you can put chats exactly where you want them and watch several work at the same time. Open the panel with Cmd+Shift+8, or from the activity bar.

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.
Click an open session to make it the active chat in the side panel. The ✕ closes it and stops it if it’s running (the conversation stays in History).

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 the claude 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
While a chat is in the editor, it no longer appears in the side panel’s tab strip, and the side panel always shows one of the chats that are still there (a fresh one if you moved them all out). Clicking that session in the Sessions panel jumps to its editor tab. Chats in editor groups are saved with your layout and come back after a restart, even if the chat panel is hidden. Sessions load when the project opens, not when the panel does.

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.
What does stop a run: pressing Stop, closing that chat’s tab with the ✕, or quitting Coder. A run also stops by itself after 25 tool steps without finishing; send a message (or reply “continue” from your phone) to carry on. A run that is still going when its window closes keeps access only to the folders that were open at that moment. It can’t pick up new ones until a window takes it back.

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:
  1. Create a worktree for each feature (Cmd+Shift+U, or ask the agent to do it)
  2. 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)
  3. Right-click each session, Move to Editor, and arrange the panes
  4. 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.

Keyboard