mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-21 22:52:19 +03:00
fix(zed-hosted): add connection test support for Zed Hosted Models (#10810)
Adds Zed Hosted Models to OAUTH_TEST_CONFIG so the dashboard connection test no longer reports "Provider test not supported" for that provider. Validated in an isolated worktree boarded onto origin/release/v3.8.50 (0 conflicts, 1 file): - tests/unit/oauth-test-config-8408.test.ts (including its "every OAuth provider ID has an OAUTH_TEST_CONFIG entry" check) — 3/3 pass. - check-file-size, check-changelog-integrity: OK. - typecheck:core: clean. - check-complexity / check-cognitive-complexity: OK, both under baseline. Co-authored-by: Hsia97 <Hsia97@users.noreply.github.com>
This commit is contained in:
@@ -213,6 +213,12 @@ export const OAUTH_TEST_CONFIG: Record<string, OAuthTestConfigEntry> = {
|
||||
// Test Connection persists testStatus="error" on a healthy account (#8408).
|
||||
checkExpiry: true,
|
||||
},
|
||||
"zed-hosted": {
|
||||
// Zed Hosted Models uses a long-lived native-app access token with no
|
||||
// expiry or refresh token. Validate presence here; real connectivity is
|
||||
// exercised by chat requests through the ZedHostedExecutor.
|
||||
checkExpiry: true,
|
||||
},
|
||||
cline: CLINE_OAUTH_TEST_CONFIG,
|
||||
// ClinePass reuses the same WorkOS OAuth flow and token lifecycle as Cline.
|
||||
clinepass: CLINE_OAUTH_TEST_CONFIG,
|
||||
|
||||
Reference in New Issue
Block a user