{"name":"tengu_bg_settled_crash_restart","slug":"tengu-bg-settled-crash-restart","family":"flag","title":"Feature flags","noun":"feature flag","description":"A background session that crashes from its own error after its saved state reads success can now be restarted, up to a limit","description_source":"entry","described_by":{"version":"2.1.311","anchor":"crashed-background-session-restarts-even-after-the-transcrip"},"presence":{"first_seen":"2.1.311","removed_in":null,"in_current_build":true,"newest_mined":"2.1.330","builds":18,"mined_builds":169,"first_cited":{"version":"2.1.311","released_at":"2026-10-26 19:47:57","spans":1}},"aliases":[],"entries":[{"version":"2.1.326","anchor":"background-sessions-crash-message-when-an-llm-gateway-is-lo","heading":"Background sessions report a lost gateway as a crash, with clearer notices","line":"A background session that loses its LLM gateway is now marked as crashed, and the update and restart notices are reworded","released_at":"2026-11-16 18:43:39","reason":"gate cited by this entry, named in this entry"},{"version":"2.1.323","anchor":"background-worker-no-longer-auto-restarts-after-a-settled-cr","heading":"Background sessions waiting for sign-in are no longer restarted after a crash","line":"A background session that crashes while held waiting for sign-in now stays crashed instead of being restarted","released_at":"2026-11-12 20:29:28","reason":"gate cited by this entry"},{"version":"2.1.321","anchor":"background-job-folder-creation-uses-mustexist-after-first-ma","heading":"Background jobs no longer recreate their folder after it has been made once","line":"Once a background job's folder exists, or after a relaunch following a stall, Claude Code now expects the folder to exist instead of creating it again","released_at":"2026-11-09 19:02:47","reason":"gate cited by this entry"},{"version":"2.1.319","anchor":"gateway-routed-background-sessions-are-not-restarted-after-a","heading":"Background sessions on an LLM gateway are not restarted after a crash","line":"A crashed background session that runs through an LLM gateway is no longer restarted automatically, even when its saved state reads success","released_at":"2026-11-06 00:58:56","reason":"gate cited by this entry"},{"version":"2.1.311","anchor":"crashed-background-session-restarts-even-after-the-transcrip","heading":"Crashed background sessions can restart even after they finished successfully","line":"A background session that crashes from its own error after its saved state reads success can now be restarted, up to a limit","released_at":"2026-10-26 19:47:57","reason":"gate cited by this entry"}],"entries_total":5,"docs":[],"docs_total":0,"gates":[{"version":"2.1.326","state":"unknown","account":null,"baseline":null,"code_default":true},{"version":"2.1.323","state":"unknown","account":null,"baseline":null,"code_default":true},{"version":"2.1.321","state":"unknown","account":null,"baseline":null,"code_default":true},{"version":"2.1.319","state":"unknown","account":null,"baseline":null,"code_default":true},{"version":"2.1.311","state":"unknown","account":null,"baseline":null,"code_default":true}],"related":[{"name":"tengu_bg_adopt_upgrade_respawn","slug":"tengu-bg-adopt-upgrade-respawn","description":"Background sessions stop needlessly restarting when your running build is already newer."},{"name":"tengu_bg_agent_action","slug":"tengu-bg-agent-action","description":"Background-agent telemetry no longer records which agent template was used"},{"name":"tengu_bg_attach_outcome","slug":"tengu-bg-attach-outcome","description":"Background attach events now record cold starts, surface and first frame details."},{"name":"tengu_bg_attach_stall_ms","slug":"tengu-bg-attach-stall-ms","description":"Default `5000` (milliseconds). How long attaching to a background session may wait for it to redraw before Claude Code restarts the session with `Session not responding`; after two such restarts it gives up, prints `Session keeps stalling at startup.` and kills the session. `0` turns the restart off; any other value is raised to at least 2000, or 12000 when a background-session launcher is configured."},{"name":"tengu_bg_attach_upgrade","slug":"tengu-bg-attach-upgrade","description":"Default `true`. Gates the background-session supervisor's prewarming: restarting idle background sessions whose recorded Claude Code version is stale onto the running version, in one delayed burst once the supervisor is ready and up to `tengu_bg_prewarm_per_sweep` (default `3`) per periodic sweep while memory is not low. Sessions launched in `exec` mode are skipped and a session on a newer version is not downgraded. Turning it off stops prewarming; the sweep still restarts sessions in its pinned set."},{"name":"tengu_bg_binary_takeover","slug":"tengu-bg-binary-takeover","description":"The background daemon can now retire a same-version instance; build is 2.1.248."},{"name":"tengu_bg_classifier_config","slug":"tengu-bg-classifier-config","description":"Background classifier gets a new, currently inactive setting to control how much recent conversation text it quotes"},{"name":"tengu_bg_classify","slug":"tengu-bg-classify","description":"A new 'Projects' recap mode for the background classifier can summarize thread status, currently unread\/off"},{"name":"tengu_bg_daemon_binary_takeover","slug":"tengu-bg-daemon-binary-takeover","description":"The background daemon can now retire a same-version instance; build is 2.1.248."},{"name":"tengu_bg_daemon_spawn_failed","slug":"tengu-bg-daemon-spawn-failed","description":"An analytics event, not a feature flag. Claude Code logs it when it fails to spawn the background daemon: when spawning a transient daemon with `daemon run --origin transient` errors, when a configured agent launcher's daemon never becomes reachable, and when the daemon's upgrade self-respawn fails to spawn. Fields include `errno_enoent`, `errno_eacces`, `errno`, `launcher_configured`, `failed_stage` or `respawn` depending on the site."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/flag\/tengu-bg-settled-crash-restart","family_url":"https:\/\/changelogs.core-directive.com\/reference\/flag.json"}