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

Fading. No reports and thumbs-up in the last 7 days and 2 the week before.

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

Original reports3, newest first

  1. Hooks in background sessions get the daemon's stale terminal identity (ZELLIJ_PANE_ID / TMUX_PANE)#102949
  2. Background daemon spare reuses the first caller environment across clients#100981
  3. claude --bg sessions inherit the daemon's environment (first terminal), not the calling shell's#98872

Do you work on Claude Code?

Claim its RAP Sheet to see what your users report and answer them in one place.