[BUG] Periodic identity re-verification interrupts an in-flight session and discards the running operation
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
While a session is actively working — a tool call in flight, output still streaming — a modal takes over the session and the session stops there. The operation that was running never returns, and the work in progress is lost.
Per the dialog's own wording this happens "every few hours", so several times in a working day.
I have no objection to identity verification as such. The defect is when it fires and what it costs:
- It fires mid-turn, not at a boundary. A running command is discarded.
- The loss is silent. Nothing states what was in flight when the session was cut, so you cannot resume precisely — you re-derive it.
- A passkey does not fix this. I registered one within the minute; it reduces each verification to a single gesture, which is welcome. It does not stop the session from being interrupted, and it does not recover the lost operation.
In my case this cut a long hardware-debugging session in half. What was lost was not a chat message — it was a diagnostic sequence running against a physical device, which had to be set up and re-run.
What Should Happen?
- Never interrupt an in-flight turn. Defer the check to the next natural boundary — when the model is idle and waiting for input.
- Preserve the running operation across the check. Failing that, state explicitly what was interrupted, so it can be resumed rather than reconstructed from memory.
- Make the interval configurable, or lengthen it substantially for a machine that has already been verified and is not being accessed remotely.
Error Messages/Logs
Sécurisez votre accès à distance.
Vos sessions Claude Code peuvent être ouvertes depuis vos autres appareils,
c'est pourquoi nous vérifions votre identité toutes les quelques heures.
Configurez une clé d'accès pour que cette vérification se fasse en un seul
geste plutôt qu'une connexion complète.
[Pas maintenant] [Configurer une clé d'accès]
--- English UI equivalent ---
Secure your remote access.
Your Claude Code sessions can be opened from your other devices, so we verify
your identity every few hours. Set up a passkey so this verification takes a
single gesture instead of a full sign-in.
(UI language is French on this machine; the wording above is the exact text shown.)
Steps to Reproduce
- Sign in to Claude Code (subscription account, Max plan) on Windows.
- Work continuously in a single session, including long-running tool calls.
- After a few hours of continuous use, a modal titled "Secure your remote access" takes over the session.
- Observe that it appears while a tool call is still in flight: the session stops, and the in-flight operation neither completes nor is reported as interrupted.
Note on determinism: the trigger is elapsed time, not a user action, so there is no short deterministic repro. The reproducible part is the consequence — whenever the modal fires during an active turn, the running operation is lost.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.175
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
This appeared without notice — no changelog entry I could find, and no in-product warning ahead of the first prompt. Nothing on my side was updated; the behaviour arrived on its own, which suggests a server-side rollout. That is also why I answered "I don't know" to the regression question: there is no previous client version to point at.
A security measure that lands unannounced and interrupts paid work reads as a decision made without weighing the user's time. The engineering in this product is excellent. This particular change was not communicated to the standard the product otherwise sets.
Note on the Terminal/Shell field: I work in the Claude Code desktop application, not in a terminal. There is no matching option, so I selected "Other" — please do not read this as a terminal-specific issue.