{"version":"2.1.282","anchor":"bash-tool-deletes-foreground-output-files-after-each-call","canonical_anchor":"bash-tool-deletes-foreground-output-files-after-each-call","heading":"Bash tool deletes foreground command output files after each call","tier":"notice","area":"Bash Tool","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282\/e\/bash-tool-deletes-foreground-output-files-after-each-call","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.282","markdown":"### Bash tool deletes foreground command output files after each call\n\nThe Bash tool now cleans up after each call, deleting foreground commands' output files unless a background task still owns them\n\n**Unclear.** A second place that does the same cleanup may belong to a different tool.\n\n**What**\n\nThe Bash tool, which runs shell commands for Claude, now cleans up after each call.\n\n- Each call holds a cleanup handle from the task registry and tracks the command's result, so cleanup runs when the call ends.\n\n- For foreground commands (ones not running as a background task) that wrote their output to a file, that file is deleted afterwards unless a registered task still owns it.\n\n- If deleting fails for any reason other than the file already being gone, the failure is logged.\n\n**Why**\n\nOutput files from ordinary commands no longer pile up on disk, while background tasks keep theirs. The Bash tool description is unchanged.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5"}