
Claude Code Quietly Taught Itself to Stop Waiting for You
TL;DR
- Claude Code shipped AFK mode (away from keyboard) in v2.1.198, built July 1, 2026. It is not in the changelog and there is no release note.
- An unanswered
AskUserQuestiondialog now auto-answers after 60 seconds (with a 20-second on-screen countdown) and tells the model to proceed on its best judgment. - Two undocumented env vars control it:
CLAUDE_AFK_TIMEOUT_MSandCLAUDE_AFK_COUNTDOWN_MS. Set the timeout to2147483647and it effectively never fires. - I found all of this by running
stringsover the local binary and bisecting four versions. Every command in this post is reproducible on your own machine. - The upside: unattended and remote sessions stop hanging forever. The catch: an away user hasn't agreed to anything, so the model can now proceed on a guess and act on it.