{"version":"2.1.247","anchor":"print-mode-wakes-the-session-and-tells-claude-which-backgrou","canonical_anchor":"print-mode-wakes-the-session-and-tells-claude-which-backgrou","heading":"Print mode wakes the session and tells Claude which background work was lost to a container restart","tier":"notice","area":"Background Tasks","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247\/e\/print-mode-wakes-the-session-and-tells-claude-which-backgrou","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.247","markdown":"### Print mode wakes the session and tells Claude which background work was lost to a container restart\n\nIf a container restart kills background work, your session now wakes up and Claude is told what was lost.\n\n**What**\n\nWhen a session is restored in print mode, background tasks that were still running before the restart (agents, monitors, shells) no longer leave the session sitting idle. Their loss now queues a notification that wakes the session and hands Claude a message stating the work is gone, that no result or further notification will arrive, and that it should re-create the work if it is still needed.\n\n**Details**\n\n- Gated on `tengu_ccr_orphan_restore_wake`, which compiles in as on, so the behaviour is live unless server config turns it off; neither this flag nor its companion existed in the previous release.\n- Shells are only counted among the lost tasks when the second flag `tengu_ccr_orphan_restore_wake_shells` is also on, which it is by default; with it off, only agents and monitors are reported.\n- Ambient tasks and tasks owned by an observer are never included.\n- The wake is suppressed entirely if the turn was interrupted, a main-thread command is already queued, a deferred resume is pending, or rescue is suppressed.\n- Task counts are reported on a `tengu_ccr_orphan_restore_wake` event as `wake_agent_count`, `wake_monitor_count` and `wake_shell_count`.\n\n**Evidence**\n\n`[print.ts] Waking the session for background tasks lost to the restart`, `The container running this session was restarted before background work reported back:`\n\n- Flag `tengu_ccr_orphan_restore_wake`: Not enough to say (read for one account on one subscription tier against v2.1.247; this account: no value returned, anonymous baseline: no value returned, compiled default: on)\n- Flag `tengu_ccr_orphan_restore_wake_shells`: Not enough to say (read for one account on one subscription tier against v2.1.247; this account: no value returned, anonymous baseline: no value returned, compiled default: on)\n- Area: Background Tasks\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 3\/5"}