authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-05 00:18:22-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-05 00:18:22-07:00
log9867eb12396439f58e03e3548e053d966f0f64a6
tree4418c66de9b0d1f1741ed5d0415a4535782b351b
parent10421bcdc9a059e0a717250257769af92567b645
signature Signed by PGP key B5690EEEBB952194

test(server): remove provider label identity assertion (#9987)


2 files changed, 1 insertions(+), 6 deletions(-)

apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts-5
...@@ -61,7 +61,6 @@ import { OrchestrationProjectionSnapshotQueryLive } from "./ProjectionSnapshotQu...@@ -61,7 +61,6 @@ import { OrchestrationProjectionSnapshotQueryLive } from "./ProjectionSnapshotQu
61import * as ThreadBackgroundLiveness from "../ThreadBackgroundLiveness.ts";61import * as ThreadBackgroundLiveness from "../ThreadBackgroundLiveness.ts";
62import * as ThreadPlanProgress from "../ThreadPlanProgress.ts";62import * as ThreadPlanProgress from "../ThreadPlanProgress.ts";
63import {63import {
64 providerErrorLabel,
65 providerErrorLabelFromInstanceHint,64 providerErrorLabelFromInstanceHint,
66 ProviderCommandReactorLive,65 ProviderCommandReactorLive,
67} from "./ProviderCommandReactor.ts";66} from "./ProviderCommandReactor.ts";
...@@ -164,10 +163,6 @@ describe("ProviderCommandReactor", () => {...@@ -164,10 +163,6 @@ describe("ProviderCommandReactor", () => {
164 }),163 }),
165 ).toBe("claude_openrouter");164 ).toBe("claude_openrouter");
166 });165 });
167
168 it("uses the unknown driver kind when the resolved driver is not registered locally", () => {
169 expect(providerErrorLabel("third_party_driver")).toBe("third_party_driver");
170 });
171 });166 });
172167
173 async function createHarness(input?: {168 async function createHarness(input?: {
apps/server/src/orchestration/Layers/ProviderCommandReactor.ts+1-1
...@@ -228,7 +228,7 @@ function formatThreadTitleContext(messages: ReadonlyArray<ThreadTitleMessage>):...@@ -228,7 +228,7 @@ function formatThreadTitleContext(messages: ReadonlyArray<ThreadTitleMessage>):
228 };228 };
229}229}
230230
231export function providerErrorLabel(value: string | undefined): string {231function providerErrorLabel(value: string | undefined): string {
232 const normalized = value?.trim();232 const normalized = value?.trim();
233 return normalized && normalized.length > 0 ? normalized : "unknown";233 return normalized && normalized.length > 0 ? normalized : "unknown";
234}234}