{"version":"2.1.330","anchor":"claude-attach-refuses-sessions-opened-from-their-own-command","canonical_anchor":"claude-attach-refuses-sessions-opened-from-their-own-command","heading":"claude attach refuses to open a session from one of that session's own commands","tier":"notice","area":"Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330\/e\/claude-attach-refuses-sessions-opened-from-their-own-command","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.330","markdown":"### `claude attach` refuses to open a session from one of that session's own commands\n\nRunning `claude attach` from inside the background session it targets now stops with a message instead of attaching to itself\n\n**What**\n\nA background session is a Claude Code session that keeps running without a screen attached. If you run `claude attach` on a background session from one of that same session's own commands, Claude Code now stops with a message saying the session can't be opened from one of its own commands. It checks again if the session's ID changes along the way.\n\nSeparately, a certain kind of branch error during teleport now stops the operation instead of being passed over.\n\n**Why**\n\nThis prevents a session from attaching to itself in a loop.\n\n- Area: Sessions\n- Names: `claude attach`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}