Repository navigation
Description
Problem and triage
Settings can report Claude as ready without checking whether its executable exists or the user is signed in. The health handler treats successful model discovery as readiness, while Claude returns a static model catalog.
Priority: P2 (normal); type: bug; status: ready for implementation. This is a confirmed source-level false-positive, not a reproduced provider outage. Fix it before building new account controls. No authentication or model requests were performed during triage.
Evidence
- Health handler and Claude model discovery.
- Settings status rendering.
- Closed Distinguish Jev configuration availability from verified connectivity in status feedback #46 provides the existing configured/untested/verified UX precedent.
- OpenAI explicitly says app-server model discovery may return a bundled catalog and cannot prove model entitlement: official guide.
Scope and acceptance criteria
- Represent executable availability/version, authentication state, and successful model access separately. Unknown, signed out, unavailable, checking, and failed must not become ready by default.
- Use documented, bounded CLI status operations: Claude auth status and Codex app-server account state where supported. Capability-detect older versions and return an honest unknown state.
- Keep model discovery useful without treating static/cached results as an authentication or entitlement check. Do not run paid inference when opening Settings.
- Associate cached status with executable/configuration/account identity; invalidate it when those change. A late response from an obsolete check must not overwrite the current state.
- Add typed, minimal status IPC and understandable Settings feedback; inspect no raw CLI credential files and expose no bearer tokens.
- Tests prove missing executable + static catalog, signed-out status, unsupported status command, timeout, stale async results, and successful sign-in refresh. UI tests prove the displayed distinctions.
- Update docs/status.md and applicable README setup guidance; pass build, units and UI e2e for the change.
Dependencies and coordination
No hard dependency on a new provider. Coordinate shared backend lifecycle and model retry behavior with PR #68; reconcile its final implementation before landing overlapping changes. Provider auth issues should consume this status contract rather than each introducing incompatible readiness flags.
Boundaries
This issue does not implement sign-in, switch accounts, revoke credentials, add providers, or create an API execution mode. A successful CLI status check proves reported authentication; a separately authorized completed turn is the evidence for actual model access.
Follow-up issues
- OpenAI implementation: OpenAI: integrate Sign in with ChatGPT plan usage through Codex app-server #76 (depends on this issue).
- Claude implementation: Claude: guide official CLI sign-in and report account status in Settings #77 (depends on this issue).
- Gemini research: Investigate Gemini CLI sign-in and ACP support for a Google backend #78 (independent; future implementation should reuse the status contract).
- Grok research: Investigate Grok Build sign-in, ACP integration, and subscription eligibility #79 (independent; future implementation should reuse the status contract).
Suggested label: bug. Priorities are recorded in the issue bodies because repository label editing is not available to the submitting account.
Activity
Report CLI installation and account status accurately (#96)