Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.290 ·

claude attach and claude logs accept a session name

claude attach and claude logs now take a background session's name, or part of it, in place of its id

Group of 2 Use it now Improvements
JSON All of v2.1.290
Use it nowTier: how much it should matter to you
4Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SessionsArea: what it touches
ImprovementsKind: in v2.1.290,
What probably matters to youSection of the release

Unclear Whether other background-session commands, such as attach and stop, also accept names now is not clear.

What

A background session is a Claude Code session that keeps running without a terminal window attached. claude attach reconnects you to one, and claude logs shows its output. Both used to need the session's id. They now accept <id|name>:

  • claude attach <id|name>: the help text adds that part of the session name works too.
  • claude logs <id|name>: finds a session by its name or part of it. If several sessions match, it lists them, including the text of finished sessions. Before, it only matched the start of an id.
  • Both share the same lookup, whose help text says: "Part of the session name works in place of the id. Put a name with spaces in quotes."

Why

You can reach a background session by the name you gave it instead of looking up its id. If a name has spaces, put it in quotes. If a partial name matches more than one session, claude logs shows the matches so you can pick.

Read from
Names in the bundleclaude logs
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on Manage multiple agents with agent view touched a line naming claude logs after this was published. `claude attach` and `claude logs` can take part of a session's name in place of the ID, as in `claude logs "auth refactor"`. Passing a name requires Claude Code v2.1.290 or later. agent-view see the edit
Confirmed since Anthropic's documentation has since written up claude logs, on Claude Code changelog. * Fixed `claude logs`, `stop`, `kill`, `rm` and `claude daemon status`, `stop`, `uninstall` sometimes signing you out when your login had expired or was about to changelog see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhether other background-session commands, such as attach and stop, also accept names now is not clear.
Anthropic's documentation agreesAnthropic's documentation has since written up claude logs, on Claude Code changelog.

See this entry in the whole of v2.1.290 →

Feedback