Skip to content

Working in a session

Type in the box at the bottom and send. Under the box you choose the agent, the model and effort, the permission mode, and the project. Once a session is running its agent and project are fixed; a change to the model, effort or mode applies from your next message.

The bar at the top shows the session’s title, group, project, a summary of its git state, and its pull request (or a button to create one). If the session is working on a ticket, the ticket is there too, with its status.

A session waiting on you shows a yellow dot in the sidebar. What it is waiting for appears as a card in the conversation:

CardWhat to do
Approval neededAllow or Deny the action
Plan readyRead the plan, then approve it or choose Keep planning
Your callPick one of the answers, or type your own
Next stepClick a suggested reply, or write something else

How often you are asked depends on the session’s mode. See Permissions and safety.

Some cards appear above the message box and do not stop the agent: a tag it suggests, or a change it proposes to a ticket. The session keeps working and shows no yellow dot. Answer when you like, or not at all.

When you archive, dismiss, restore or mark something as read, a short note at the top right says what was done. If it can be taken back, the note has Undo, and ⌘Z does the same for the newest one (unless you are typing, where ⌘Z undoes your typing).

Anything that cannot be undone, such as deleting a session, asks you first. If an action is refused, the reason appears in the same place and stays until you dismiss it.

The buttons at the top right open panes beside the conversation. Any combination can be open at once.

PaneWhat it shows
ContextDetails of the session: where it is, its repository, its tags
ChangesEvery file the session changed, as a diff, Unified or Side by side
FilesThe files in the session’s working folder
CommandsCommands the agent is running
TerminalA terminal in the session’s folder, with a ▶ button for the project’s saved actions
BrowserA browser the agent can drive while you watch
SimulatorAn iOS simulator the agent can run and operate an app in

A pane that cannot work for this session is dimmed, and hovering over it says why.

A click on a session opens it in the tab in front. To open it in a new tab instead, use Open in new tab in its menu, or Shift-click, ⌘-click or middle-click it.

Right-click a tab for the menu of what it holds: the same menu as that session’s, project’s or workstream’s row in the sidebar.

The two arrows beside the sidebar button step back and forward through where you have been in this window, as a browser’s do: ⌘[ and ⌘]. Your mouse’s back and forward buttons work too.

Press ⌘K, or choose Search at the top of the sidebar, to search sessions, projects, groups, tags and workstreams. Archived items appear only when you type something that matches them.

Fork starts a second session from this conversation, in a worktree of its own cut from this session’s branch. Use it to try another approach without losing this one. You can fork from the session’s menu, or from the foot of any finished turn to go back to that point.

Forking from an earlier turn rewinds the conversation, not the files: the new worktree has the files as they are now. Uncommitted changes stay in the original session. OpenCode sessions cannot be forked.

ActionShortcut
New session⌘N
New session in a new tab⌘T
Switch session or search⌘K
Close tab⌘W
Next tab⌘⇧]
Previous tab⌘⇧[
Back⌘[
Forward⌘]
Undo the last action⌘Z
Show or hide the sidebar⌘B
Go to tab 1 to 9⌘1 to ⌘9
New terminal, in the Terminal pane⌃⇧`

All but the last two can be changed in Settings → Keyboard shortcuts.