{"name":"CLAUDE_AFK_COUNTDOWN_MS","slug":"claude-afk-countdown-ms","family":"env","title":"Environment variables","noun":"environment variable","description":"How many milliseconds before auto-continue the on-screen countdown appears on an unanswered [`AskUserQuestion`](\/docs\/en\/tools-reference) dialog. Default `20000` (20 seconds), capped at the auto-continue timeout. Has no effect unless auto-continue is on; see the [`askUserQuestionTimeout`](\/docs\/en\/settings-reference#askuserquestiontimeout) setting and `CLAUDE_AFK_TIMEOUT_MS`. Requires Claude Code v2.1.198 or later","description_source":"docs","described_by":{"doc":"claude-code\/env-vars","title":"Environment variables"},"presence":{"first_seen":"2.1.198","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":99,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.290","anchor":"chrome-permission-env-defaults-and-remote-tools-unattended-h","heading":"Chrome permission and unattended-tools variables get safe defaults and are kept from child processes","line":"Claude Code now knows safe values for three Chrome variables, can clear them, and keeps a new unattended-tools variable out of child processes","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"env-vars","title":"Environment variables","documented":true}],"docs_total":1,"gates":[],"related":[{"name":"CLAUDE_AFK_TIMEOUT_MS","slug":"claude-afk-timeout-ms","description":"How many milliseconds of idle time before an unanswered [`AskUserQuestion`](\/docs\/en\/tools-reference) dialog auto-continues without you. Auto-continue is off by default; opt in with the [`askUserQuestionTimeout`](\/docs\/en\/settings-reference#askuserquestiontimeout) setting. This variable is an override for demos and automated tests: when set, it takes precedence over that setting and turns auto-continue on even when the setting is unset or `never`. Setting `0` doesn't turn the timeout off; it closes the dialog immediately. In v2.1.198 and v2.1.199, auto-continue was on by default with a `60000` (60 seconds) timeout. Requires Claude Code v2.1.198 or later"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-afk-countdown-ms","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}