{"version":"2.1.326","anchor":"background-bare-session-refusal-message","canonical_anchor":"background-bare-session-refusal-message","heading":"Background sessions started from a --bare session explain the key refusal","tier":"notice","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/background-bare-session-refusal-message","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Background sessions started from a --bare session explain the key refusal\n\nA background session started from a --bare session now explains why it can't use that session's API key and what to run instead\n\n**What**\n\n`--bare` starts Claude Code in a minimal mode, and `--bg` starts a session in the background. If you start a background session from inside a `--bare` session, it is not `--bare` itself, so it cannot use that session's API key. Claude Code now explains this, saying the key is one \"which nobody approved\". It suggests running the task in the terminal or starting it with `claude --bare --bg`.\n\n**Why**\n\nIt makes clear which credentials a background session may use when it is started from a `--bare` session.\n\n- Area: Sessions\n- Names: `--bare`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}