Rewinding a remote session now stops the background agents started inside the rewound span.
What's wrong with this entry?
Before a rewind, Claude walks the task list to work out which local background agents were started inside the span being rewound, stops them, and emits their completed, failed or stopped status. Any permission prompt left parked is retired with a new reason of rewind rather than lingering.
- Agents rooted at an in-process teammate are skipped rather than stopped.
- Whether the running/requires-action gating applies is decided by the existing environment variable
CLAUDE_CODE_BG_TASKS_REPORT_RUNNING; unset keeps the older behaviour path. That variable is now read in several more places than before.
parkedPermissionReason: "rewind"
Strings lifted out of the shipped bundle, so the claim above can be checked against them.