{"version":"2.1.328","anchor":"sleep-wrapping-helper-keyed-on-claude-code-watched-sleep-has","canonical_anchor":"sleep-wrapping-helper-keyed-on-claude-code-watched-sleep-has","heading":"Groundwork for watching plain sleep commands run through Bash","tier":"soon","area":"Bash","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/sleep-wrapping-helper-keyed-on-claude-code-watched-sleep-has","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### Groundwork for watching plain sleep commands run through Bash\n\nNew code can spot a plain sleep N in a shell command and rewrite it to run in a watched form\n\n**Unclear.** Nothing shows this code being used yet, so whether it affects any command today is unknown.\n\n**What**\n\nClaude Code has new code that spots a shell command that is only a pause of the form `sleep N` (wait N seconds). It can rewrite that command so the pause runs with `CLAUDE_CODE_WATCHED_SLEEP=1` set, inside a wrapper that ignores one particular exit code (141) and passes any other exit code on.\n\n**Why**\n\nThis prepares a change to how long pauses in Bash commands are watched or moved to the background.\n\n- Area: Bash\n- Tier: Nothing to try yet\n- Useful: 3\/5\n- Signal: 4\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}