Under the hood
Task eviction and report delivery now account for tasks running in the background
What
The internal check for evicting (removing) a task now uses renamed helper functions but keeps the same eviction rules. Separately, when a subagent tries to send a report back to another task that is currently backgrounded and unreachable, Claude Code now redirects that report to the top-level agent instead, and checks whether the report was already delivered after doing so.
Why
This prevents a report from being lost or stuck when its intended recipient task has been moved to the background and can't be reached directly.