{"version":"2.1.292","anchor":"print-mode-can-hold-open-for-background-shells-before-the-ce","canonical_anchor":"print-mode-can-hold-open-for-background-shells-before-the-ce","heading":"claude -p can keep waiting for background commands past its time limit","tier":"notice","area":"Print Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292\/e\/print-mode-can-hold-open-for-background-shells-before-the-ce","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.292","markdown":"### `claude -p` can keep waiting for background commands past its time limit\n\nIn print mode Claude Code can hold on for background commands instead of stopping at the wait limit, and its give-up warning now lists running tasks\n\n**Unclear.** Which setting turns on the hold for background commands, and whether it is on by default, is not stated.\n\n**What**\n\nPrint mode (`claude -p`) runs one prompt and exits, which is how scripts often use Claude Code. Background shells are commands Claude started that keep running while it does other things. Print mode already stopped waiting for them after a time limit set by `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS`.\n\nWhat changed:\n\n- When input has closed and no maximum budget is set, print mode can now hold on for background shells instead of stopping when the time limit passes.\n\n- A scheduled wake-up for the session also keeps print mode running.\n\n- The warning printed when it gives up used to say only how many seconds had passed. It now includes the time and a summary of the tasks still running, and says: \"Set CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS=0 to wait indefinitely.\"\n\n**Why**\n\nScripts that call `claude -p` may now take longer to finish while background commands complete. When it does give up, the warning shows what was still running and how to make it wait without a limit.\n\n- Flag `tengu_giggly_dragonfly`: Not enough to say (read for one account on one subscription tier against v2.1.292; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Flag `tengu_print_ceiling_stop_agents`: Not enough to say (read for one account on one subscription tier against v2.1.292; this account: no value returned, anonymous baseline: no value returned, compiled default: on) These values were read against a different version of Claude Code, so treat them as the nearest reading available instead of one taken on this release.\n- Area: Print Mode\n- Names: `CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS`\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}