From d6737bfa2ae497cea5159875614a06f37aa2c4ea Mon Sep 17 00:00:00 2001 From: Hsia97 <60641408+Hsia97@users.noreply.github.com> Date: Fri, 21 Aug 2026 10:34:55 +0800 Subject: [PATCH] fix(zed-hosted): add connection test support for Zed Hosted Models (#10810) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/app/api/providers/[id]/test/oauthTestConfig.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/api/providers/[id]/test/oauthTestConfig.ts b/src/app/api/providers/[id]/test/oauthTestConfig.ts index c43ea7c5b3..754003e44b 100644 --- a/src/app/api/providers/[id]/test/oauthTestConfig.ts +++ b/src/app/api/providers/[id]/test/oauthTestConfig.ts @@ -213,6 +213,12 @@ export const OAUTH_TEST_CONFIG: Record = { // 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,