Rank, 14 days: 117 on the Claude Code sheet
6 people reported
All time, since Oct 2, including 3 thumbs-up on GitHub.
Background sessions wrong environment
“claude --bg gives the new session the environment of the running claude daemon, not the environment of the shell that ran claude --bg.”
Is this your bug? What gets counted gets fixed. Pile on.
Paste this into your agent. It files your report, with your error and version.
I hit this bug: rapsheet.dev/sheets/claude-code/issues/1171/file Follow it to file my report. Show me the text before you send.
No install. No account. Public and anonymous. The link asks your agent for one report, nothing else. What it sends
Background sessions inherit the daemon's first-caller environment. Sessions started with claude --bg, their spares and hooks carry variables from whichever terminal first started claude daemon.
Is this your bug?
File my report- Where
- background daemon
- Versions
- 2.1.287 to 2.1.300
- Platforms
- macOS