Omniscio

OmniscioGuidesTerminal host process died

Claude Code: terminal host process died — press Enter to restart

This is a background-session message, not a crash of the session itself. A background session is a whole conversation Claude Code keeps running without a terminal attached, and agent view is the screen that lists them. Anthropic's error reference puts this message under background session errors, and the next section gives its three wordings.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

terminal host process died — press Enter to restart

On a row that ran a shell command rather than a conversation, it reads:

terminal host process died — its output is gone; the command was not run again

From a shell, claude attach <id> prints the cause in a longer sentence and exits:

Couldn't attach to <id> — This session's terminal host process died (the conversation is saved) — run `claude attach <id>` again to restart it on a fresh host.

Why did the terminal host die?

A background service on your machine supervises those sessions, and it runs each session's terminal in its own small host process: the program that keeps that terminal's input and output flowing. Anthropic's entry describes the failure plainly: that process died while the service still held its connection, so the session could not be reached.

Anthropic does not name a cause beyond that. What the entry does say is what survives: the conversation is saved, and the restart picks it up again. The failure is about the terminal process, not your repository or your files.

On Linux and WSL, Anthropic says the background service checks each host process every few seconds, marks the session failed when the process has exited but its connection to the service never closed, and shows this reason on the row.

Before v2.1.247 a dead host process could pass every liveness check the service ran, so opening the session sat on opening… · esc to cancel indefinitely and claude attach waited without reporting anything. The v2.1.247 release made such a row fail within seconds with the reason on it.

How do I restart it?

  1. In agent view: press Enter on the failed row. Anthropic says the session restarts on a fresh host process and the conversation resumes.
  2. From a shell: run claude attach <id> again. Claude Code prints Session <id>'s terminal host died — restarting it on a fresh one… and reopens the session.
  3. If the first claude attach only reported the cause: run it once more. Anthropic says claude attach restarts a session already marked failed for a dead host, and otherwise prints the cause and exits, so the second run is the one that restarts it.
  4. A shell-command row: you cannot restart it this way. Dispatch the command again to run it, knowing that whatever it had printed is gone.

The restart is deliberately not automatic. On a conversation row the cost is one keypress; on a shell-command row an automatic restart would run a command you may not want repeated, which is why Anthropic leaves that decision with you.

How do I know it is fixed?

  • The row stops showing the failure and the conversation opens in a terminal again.
  • The last messages you had are in the transcript, because the restart resumes the saved conversation rather than starting a new one.
  • The session takes a new prompt and answers it, which is the point where the fresh host is doing its job.

If the row fails again straight away, the session is a different case. When a session opens but sends no output for about ten seconds, Claude Code ends that attempt and offers a restart in the same way, for its own reason. The agent view guide covers the states a row can be in.

What does not help

  • Starting a new session with the same prompt. It duplicates work the saved conversation already holds; restarts exist so you do not have to.
  • Killing the background service. That stops every session it holds, which is a much larger action than restarting one host.
  • Assuming the command ran. On a shell-command row Anthropic is explicit: the output is gone and the command was not run again.

Where these answers come from

  • Anthropic's error reference, read November 25, 2026: all three wordings, the host-process explanation, the claude attach behaviour, the shell-command exception and the v2.1.247 note.
  • Anthropic's agent view page, read November 25, 2026: the supervisor running each terminal in its own host process, the saved conversation, and that a shell-command row is never restarted.
  • The Claude Code changelog, read November 25, 2026: the release note that a background session stuck on opening… after this failure now fails within seconds with the reason, and Enter restarts it.

Common questions

Did the session lose its conversation?

No. Anthropic says the conversation is saved, and the restart resumes it. What died is the process that relayed the session's terminal, not the transcript.

Why did the terminal host die?

Anthropic does not name one cause. Each background session's terminal runs in a host process under the background service, and this message means that process exited while the service still held its connection.

Why will Claude Code not restart my shell-command row?

Because restarting the row would run the command again. Anthropic says a row running a shell command shows that its output is gone and the command was not run again, and never re-runs it for you.

How is this different from a session that is not responding?

A dead host is one that exited. Not responding is a host that is still there but delivers no output for about ten seconds, and Claude Code offers a restart there too, in agent view's footer rather than on the row.

What does claude attach do when the session is already failed?

It restarts it on a fresh host. Anthropic says claude attach restarts a session already marked failed for a dead host, and otherwise prints the cause and exits.