{"version":"2.1.333","anchor":"background-session-launch-bg-with-w-pr-argument-note-and","canonical_anchor":"background-session-launch-bg-with-w-pr-argument-note-and","heading":"--bg -w now warns when no pull request was checked out","tier":"notice","area":"Worktrees","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/background-session-launch-bg-with-w-pr-argument-note-and","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### `--bg -w` now warns when no pull request was checked out\n\nStarting a background session with `-w` now prints a note if no pull request number or link came straight after `-w`\n\n**What**\n\n`--bg` starts a background agent, and `-w` (short for `--worktree`) can be given a pull request number or link to branch from. When you use both and nothing of that kind comes directly after `-w`, Claude Code now prints this note:\n\n\"note: no pull request was checked out, because its number or link wasn't typed right after -w. To check one out: claude -w '#7' --bg\"\n\nClaude Code also moves a `-w` or `--worktree` that is followed by a pull request to the end of the arguments before reading them.\n\n**Why**\n\nBefore, a background session started with `-w` could skip checking out the pull request without telling you. The note makes that visible and shows how to type it.\n\n- Area: Worktrees\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}