{"name":"attach","slug":"attach","family":"cli","title":"CLI flags","noun":"CLI flag","description":"Attaching to a background session now times how long it takes to paint and reach an idle prompt.","description_source":"entry","described_by":{"version":"2.1.221","anchor":"claude-attach-now-measures-time-to-interactive"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.290","anchor":"claude-attach-accepts-a-session-name","heading":"claude attach and claude logs accept a session name","line":"`claude attach` and `claude logs` now take a session name as well as an id, and part of the name is enough","released_at":"2026-10-05 18:12:44","reason":"named in this entry"},{"version":"2.1.285","anchor":"desktop-flag-rejected-when-combined-with-background-or-wor","heading":"New --desktop flag, and background commands now accept options in front of them","line":"`--desktop` opens the Claude Desktop app and now errors when combined with background or worktree options","released_at":"2026-09-29 17:32:09","reason":"found in this entry's text"},{"version":"2.1.285","anchor":"resuming-a-live-background-session-can-now-attach-to-it-and","heading":"Resuming a running background session now opens it and sends your prompt","line":"`--resume` on a session running in the background now attaches to it and hands over your prompt instead of refusing","released_at":"2026-09-29 17:32:09","reason":"named in this entry"},{"version":"2.1.285","anchor":"resuming-a-session-that-is-running-in-the-background-can-ope","heading":"Resuming a session running in the background can now open it and deliver your prompt","line":"Resuming a session that runs in the background can now open it and send your prompt, instead of only refusing","released_at":"2026-09-29 17:32:09","reason":"named in this entry"},{"version":"2.1.265","anchor":"new-attach-session-opener-path-with-a-serveonly-mode","heading":"New attach session-opener path with a serveOnly mode","line":"A new 'attach' session-opening path supports a reduced serveOnly feature set","released_at":"2026-09-08 19:05:16","reason":"found in this entry's text"},{"version":"2.1.257","anchor":"new-cli-messaging-when-resuming-a-session-thats-already-run","heading":"New CLI messaging when resuming a session that's already running","line":"Resuming a session that is already running elsewhere starts a copy and points you to claude attach to join the live one.","released_at":"2026-09-01 17:15:33","reason":"named in this entry"},{"version":"2.1.251","anchor":"background-session-subcommands-in-cli-help","heading":"Background session subcommands in CLI help","line":"CLI help now lists attach, logs, stop, respawn and rm for background sessions.","released_at":"2026-08-28 15:34:26","reason":"found in this entry's text"},{"version":"2.1.248","anchor":"claude-attach-explains-cleaned-up-background-sessions-instea","heading":"claude attach explains cleaned-up background sessions instead of failing generically","line":"Reopening a cleaned-up background session now points you at claude rm and claude respawn.","released_at":"2026-08-27 20:35:36","reason":"named in this entry"},{"version":"2.1.247","anchor":"claude-attach-tells-you-whether-the-terminal-host-died-or-ju","heading":"claude attach tells you whether the terminal host died or just never answered","line":"Attach failures now distinguish a dead terminal host from a silent session, and offer the right recovery.","released_at":"2026-08-26 18:02:01","reason":"named in this entry"},{"version":"2.1.221","anchor":"claude-attach-now-measures-time-to-interactive","heading":"claude attach now measures time-to-interactive","line":"Attaching to a background session now times how long it takes to paint and reach an idle prompt.","released_at":"2026-08-03 22:16:25","reason":"named in this entry"}],"entries_total":12,"docs":[{"source":"api","path":"about-claude\/models\/optimizing-for-cost-and-intelligence","title":"optimizing-for-cost-and-intelligence","documented":false},{"source":"api","path":"agents-and-tools\/mcp-connector","title":"mcp-connector","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/concepts","title":"concepts","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/console","title":"console","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/deploy-compose","title":"Edit docker-compose.yaml: increment the integer in the setup service's","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/deploy-helm","title":"deploy-helm","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/overview","title":"overview","documented":false},{"source":"api","path":"agents-and-tools\/mcp-tunnels\/reference","title":"reference","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/browser-use-tool","title":"browser-use-tool","documented":false},{"source":"api","path":"agents-and-tools\/tool-use\/computer-use-tool","title":"computer-use-tool","documented":false}],"docs_total":12,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/cli\/attach","family_url":"https:\/\/changelogs.core-directive.com\/reference\/cli.json"}