You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
Bug FixesKind: in v2.1.238,
Bug FixesSection of the release
What
The temporary helper file Claude Code uses to notice when a Bash command changes directory is no longer deleted while the command is still running. Cleanup now waits for the process to exit if it is still alive, which matters for backgrounded commands where the settle callback can fire long before the process finishes.
Details
Cleanup is deferred to the child process's exit event when it still has a pid and has neither exited nor been signalled; otherwise it is awaited inline as before.