{"version":"2.1.238","anchor":"directory-tracking-for-backgrounded-commands-no-longer-break","canonical_anchor":"directory-tracking-for-backgrounded-commands-no-longer-break","heading":"Directory tracking for backgrounded commands no longer breaks early","tier":"notice","area":"Bash Tool","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238\/e\/directory-tracking-for-backgrounded-commands-no-longer-break","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.238","markdown":"### Directory tracking for backgrounded commands no longer breaks early\n\nDirectory tracking keeps working for backgrounded Bash commands instead of breaking partway through.\n\n**What**\n\nThe 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.\n\n**Details**\n\n- 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.\n\n**Evidence**\n\n`tengu_shell_set_cwd`\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 2\/5"}