# Stopping and resuming agents

Stopping an agent ends its running CLI process but keeps the agent in Solo. If Solo has captured the provider's session ID, you can resume that exact conversation later instead of starting over.

## Stop an agent

There are two ways to stop a running agent:

- Right-click the agent in the sidebar and choose **Stop**.
- With the agent selected and the sidebar focused, press `S` using the default shortcut.

Solo asks for confirmation by default. You can suppress future stop and restart confirmations for that agent from the confirmation prompt.

After the process stops, the agent stays in the sidebar. Stopping does not remove files the agent changed or undo work it already completed.

## How saved sessions work

Each supported agent provider gives a conversation its own resume ID. Solo detects and validates that identity, then stores the full ID with the agent row. Providers that use UUIDs keep the complete UUID; the four-character suffix shown in some menus is only there to help you recognize the conversation.

With the [**Saved session** terminal pin](../terminal/context-pins.md#saved-session) enabled, the top-right badge shows **Session saved** when Solo has an exact resume ID. Open it to see the provider, resume ID, and the command Solo will use. You can copy the full ID or command from there.

If the badge says **Unavailable**, open it. When the agent's existing terminal output can be checked, Solo starts looking for a resume ID as soon as the panel opens; use **Check again** to retry. Solo will not save an ID when the available evidence is stale, invalid, or ambiguous.

### Attach a resume ID yourself

When the provider supports exact resume but Solo has no ID stored, the panel shows an **Attach resume ID** field. Paste the ID from the provider's own resume command and choose **Attach**. Solo checks the ID against that provider's format and shows "That isn't a valid resume ID for this agent." when it doesn't match. Solo never replaces an ID it already has, so the field only appears for agents without one.

Resume support depends on the agent tool:

| Agent | Saved identity | Exact resume | Session picker |
|-------|----------------|--------------|----------------|
| Claude | UUID | Yes | Yes |
| Codex | UUID | Yes | Yes |
| Amp | Thread ID | Yes | Yes |
| Gemini | UUID | Yes | No |
| OpenCode | Session ID | Yes | No |
| Copilot | UUID | Yes | Yes |
| Kimi | Session ID | Yes | Yes |
| Antigravity | Conversation UUID | Yes | No |
| Muse | UUID | Yes | Yes |

Custom agent tools do not get automatic resume actions unless Solo recognizes them as one of these built-in tool types.

## Resume the last session

Once an agent is stopped and has a saved resume ID, you can continue it in any of these ways:

- Select the stopped agent and choose **Resume last session** in the terminal pane.
- Right-click it and choose **Resume last session (xxxx)**. The suffix is the last four characters of the saved ID.
- Open the **Session saved** control and choose **Resume session**.
- Start the stopped agent normally and choose **Resume** when Solo asks whether to resume or start fresh.

Solo passes the full saved ID to the provider. Resuming keeps that same conversation associated with the agent row.

If the agent's command already contains the same session argument, Solo reuses it instead of adding a duplicate. If the command contains a different session ID, Solo shows a **Session ID mismatch** dialog naming both IDs. Edit the command so it uses the session you want, then start the agent again.

## Resume after Solo quits or crashes

When Solo quits or crashes while agents are running, the next launch shows a **Resume agents** dialog: "You had N agents running when Solo last closed." It lists each agent with its project.

- **Resume all** resumes every listed agent in its saved conversation.
- **Not now** closes the dialog. Those agents stay stopped, and Solo doesn't offer them again.

Solo only offers agents that were still running when Solo closed and that have a saved resume ID for a provider with exact resume. It skips agents you stopped, agents that exited on their own, and agents whose CLI from the previous run is still running. The dialog waits until any [orphaned process](../commands/orphaned-processes.md) prompt is closed.

If an agent can't be resumed, Solo shows a "Couldn't resume" notice naming it and won't offer it again. You can still resume it manually with the steps above.

## Resume a different session

For tools with a session picker, right-click a stopped agent and choose **Choose session to resume...**. Solo launches the provider's own picker so you can select a different conversation.

Once the provider identifies the selected conversation, Solo saves that ID as the agent row's current resume ID.

## Start a new session

Choose **Start new session** in the stopped-agent pane, or choose **Start fresh** when Solo asks how to start the agent. The new run does not reuse the previous conversation, and Solo replaces the row's saved resume identity when it captures the new session.

Starting fresh does not delete the old conversation from the provider's history. If the tool has a session picker, you may still be able to choose it later.

## Stopping vs. removing

Stopping keeps the agent row and its saved resume identity. **[Remove agent](./closing-agents.md)** removes the row from Solo and deletes Solo's association with that saved session.

Solo stores the provider's resume ID, not a permanent copy of the conversation. Whether a conversation can still be resumed ultimately depends on the provider keeping it in its own history.

If you are switching to a different agent or provider instead of resuming the same conversation, capture the project state first with the [long-running work handoff](../workflows/handoff-long-running-work.md).

---

Are you a human? Read this doc on the web: https://soloterm.com/docs/agents/stopping-resuming-agents
