Repository navigation
feat: add Claude CLI sign-in and verified account status - #91
Conversation
90cc39e to
c4077a4
Compare
CompleteDotTech
left a comment
There was a problem hiding this comment.
Reviewed current head 0eed2f3 against main: CLI-owned credential handling, structured status and exit-code checks, bounded child lifetime, duplicate prevention, cancellation, IPC and Settings behavior. No blocking code finding. Required macOS CI passed on this head. The signed-out browser flow still needs user-controlled live acceptance before changing this PR from draft. An Apple Silicon acceptance environment is now being prepared.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
CompleteDotTech
left a comment
There was a problem hiding this comment.
Reviewed current head 2760a3d against main fc8c699. No new blocking findings. Checked structured account-status validation, exact executable selection, duplicate-attempt handling, cancellation, timeout/manual recovery, shutdown cancellation, and status-only success confirmation. Fresh health/login regression run: 11/11 pass. Required macOS CI is green on this exact head. Real Mac GUI-session authentication and the documented manual-input fallback were verified; SSH status differs because its credential access differs. Ready for review; no merge performed.
There was a problem hiding this comment.
Correction after concurrent head update: the reviewed authentication source and completed acceptance are from 7ec5e55. A maintainer subsequently merged main into this PR as 5a95df6, preserving those changes and adding the v0.0.6 release updates. Required CI is running on 5a95df6; the earlier green result is not evidence for this new head. No authentication-runtime changes were introduced by that merge. Await exact-head CI before landing.
CompleteDotTech
left a comment
There was a problem hiding this comment.
Final review on 5a95df6: required macOS unit + e2e CI passed on this exact current head. No remaining blocking findings. Documentation reflects completed real acceptance. Maintainer landing order: #91 first, then #92; verify CI after any subsequent base/head update. Contributors lack merge permission, so neither PR was merged by this session.
Adds a Settings action that runs the configured Claude Code executable's browser sign-in and confirms structured account status afterward. Prevents duplicate attempts, bounds login duration, supports cancellation of the owned child, and falls back to explicit terminal instructions for older/manual-input flows. No logout, account switch, token parsing, or billing override is added. Settings explains the shared CLI identity and immediate effects; health labels the effective credential source.
Closes #77. Rebased onto main after #75 landed through #96; the superseded prerequisite commit is removed. Preserves #68's thread-terminal recovery implementation.
Validation: build passes, ten health/login unit tests pass, missing-CLI sign-in and narrow/zoomed Settings e2e pass. A read-only live check using the installed Claude executable confirms the already signed-in account without starting a browser or changing credentials. Real Apple Silicon acceptance completed with Claude Code 2.1.273: the initial noninteractive login timed out with the documented terminal fallback; the user completed the isolated Terminal/browser authorization successfully (exit 0). In the Mac GUI session, the exact PR login handler then returned authenticated and backend health confirmed Claude subscription authentication with model access explicitly unverified. SSH status cannot see the same macOS credentials; GUI-session checks are the acceptance evidence. Full npm test was attempted and hits the existing Windows core shell assertion; Required macOS unit and end-to-end CI passed on the final rebased head.
Review fix at 2760a3d: null structured account status now returns unsupported without launching login. Eleven focused health/login tests pass, including the regression, and required macOS CI passed on this exact head. Review and manual-fallback acceptance complete; ready for review, without merging.
Final documentation follow-up: signed head 7ec5e55 records completed acceptance and removes the stale pending-acceptance wording. No runtime behavior changed. Contributors cannot merge into this repository; a TypeSafeAI maintainer must land this PR. After the first authentication PR lands, update the remaining PR against main and require passing CI on the resulting head.