Skip to content

Improve agent authentication flows and logout command support#15

Merged
SDSLeon merged 1 commit into
masterfrom
lightcode/noble-puma
May 24, 2026
Merged

Improve agent authentication flows and logout command support#15
SDSLeon merged 1 commit into
masterfrom
lightcode/noble-puma

Conversation

@SDSLeon
Copy link
Copy Markdown
Owner

@SDSLeon SDSLeon commented May 24, 2026

  • Add a shared helper for agent logout commands and implement logout support for Claude, Codex, and Cursor adapters to allow Settings-driven logout.
  • Map explicit "Not logged in" CLI status outputs in Codex and Cursor to the missing auth state so that the composer's Sign-in dock renders immediately.
  • Introduce heuristics to detect runtime unauthenticated/API errors (e.g. 401s surfacing in Claude success responses) so the interface can prompt the user to log in instead of showing generic error docks.
  • Prevent focus stealing on the authentication dock button to eliminate composer border flickering.
  • Ignore benign ViewTransition InvalidStateError rejections triggered by document layout updates during mid-flight transitions.

- Map Codex and Cursor "not logged in" status to "missing" to trigger sign-in.
- Standardize agent logout command building across Claude, Codex, and Cursor.
- Handle Claude upstream API failures that report as success-subtypes.
- Introduce heuristic to detect agent authentication errors in the renderer.
- Prevent focus blinks on composer when clicking the auth dock action button.
- Ignore view transition InvalidStateError exceptions in global error handler.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lightcode-landing Ready Ready Preview, Comment May 24, 2026 1:37am

@SDSLeon SDSLeon merged commit 0f0da6d into master May 24, 2026
6 checks passed
@SDSLeon SDSLeon deleted the lightcode/noble-puma branch May 24, 2026 01: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