fix(cli): recognize OAuth credentials in startup gate - #219
Conversation
165fdcd to
e132b31
Compare
|
Rebased this branch onto the latest Post-rebase validation:
The PR is mergeable now. The new CI and Commit lint runs are both waiting for approval ( For completeness, the full locked environment still cannot be installed on this Intel macOS host because |
e132b31 to
84cc51a
Compare
|
Rebased this branch from Conflict resolution preserved both sides of the provider refactor:
Post-rebase verification:
The full locked environment still cannot be installed on this Intel macOS host because Could a maintainer approve the refreshed workflows and review the rebased branch when convenient? |
Summary
raven agent --configreadiness checks to the same config file used by the runtime.Type
Verification
Commands run:
The full frozen environment could not be materialized on the macOS x86_64 host because
lancedb==0.33.0has no compatible wheel. The focused tests ran in an isolated uv environment with the locked OAuth, CLI, and test tool versions, and the package build completed separately. The checkout did not contain the prebuiltui-tui/dist/entry.js, so the local wheel build succeeded without the bundled TUI asset; this existing release-asset condition is outside the Python startup-gate diff.Risk
Credential checks are local and offline and return only a boolean status; token fields are never returned or logged. Routing and API-key/local status derive from a single raw config snapshot, while OAuth reads only the separate credential stores. Codex delegates loading and legacy import to oauth-cli-kit, requires the account id Raven sends as a header, and treats an expired access token with a refresh token as refresh-capable. Copilot mirrors the locked LiteLLM access-token and API-key cache paths and environment overrides without instantiating its directory-writing authenticator. Tests cover malformed and missing fields, expiry types, expired caches, secret non-disclosure, single-read behavior, selected and forced routing, API-key setups, both
agent --configdirections, TUI/agent entry points, provider commands, and the TUI RPC consumer.Related Issues
Closes #218