Skip to content

Stop login prompt retries caused by restored window focus - #196

Merged
GDR merged 1 commit into
ui/refactorfrom
codex/login-prompt-lifecycle
Oct 24, 2026
Merged

GDR merged 1 commit into
ui/refactorfrom
codex/login-prompt-lifecycle

Conversation

@GDR

@GDR GDR commented Oct 24, 2026

Copy link
Copy Markdown
Owner

Cancelling the Clavis login prompt previously suppressed focus-triggered retries for only one second. A later key-window event could prompt again without a deliberate retry. Automatic authentication now runs once per locked period; Unlock and explicitly reopening Clavis remain available to retry. Idle/manual locking does not immediately unlock itself.

Authentication completions are tied to a lock generation, so locking the screen while an attempt is pending discards and invalidates its result. Production authentication adapters refuse system prompts inside test processes; tests must inject fakes.

Validation: 48 focused login and audit tests passed, including focus storms, cancellation after long delays, explicit retry/reopen, stale completions, and test-authentication safeguards. Native inspection is pending because the Mac is locked. The installed v0.4.5 app has not been replaced. Integration target: ui/refactor only.

@GDR
GDR merged commit e6ffeb1 into ui/refactor Oct 24, 2026
1 check passed
@GDR
GDR deleted the codex/login-prompt-lifecycle branch October 24, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant