TypeScript
test(server): remove provider label identity assertion (#9987)
Julius Marminge9867eb123964
diff --git a/apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts b/apps/server/src/orchestration/Layers/ProviderCommandReactor.test.tsindex 4d35c5b04dd..a8b26fe52cb 100644--- a/apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts+++ b/apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts@@ -61,7 +61,6 @@ import { OrchestrationProjectionSnapshotQueryLive } from "./ProjectionSnapshotQuimport * as ThreadBackgroundLiveness from "../ThreadBackgroundLiveness.ts";import * as ThreadPlanProgress from "../ThreadPlanProgress.ts";import {- providerErrorLabel,providerErrorLabelFromInstanceHint,ProviderCommandReactorLive,} from "./ProviderCommandReactor.ts";@@ -164,10 +163,6 @@ describe("ProviderCommandReactor", () => {}),).toBe("claude_openrouter");});-- it("uses the unknown driver kind when the resolved driver is not registered locally", () => {- expect(providerErrorLabel("third_party_driver")).toBe("third_party_driver");- });});async function createHarness(input?: {diff --git a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts b/apps/server/src/orchestration/Layers/ProviderCommandReactor.tsindex b8e457e34eb..fc963bcc9cb 100644--- a/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts+++ b/apps/server/src/orchestration/Layers/ProviderCommandReactor.ts@@ -228,7 +228,7 @@ function formatThreadTitleContext(messages: ReadonlyArray<ThreadTitleMessage>):};}-export function providerErrorLabel(value: string | undefined): string {+function providerErrorLabel(value: string | undefined): string {const normalized = value?.trim();return normalized && normalized.length > 0 ? normalized : "unknown";}