| ... | @@ -43,7 +43,6 @@ import * as OpenCodeRuntime from "../opencodeRuntime.ts"; | ... | @@ -43,7 +43,6 @@ import * as OpenCodeRuntime from "../opencodeRuntime.ts"; |
| 43 | import * as ProviderEventLoggers from "./ProviderEventLoggers.ts"; | 43 | import * as ProviderEventLoggers from "./ProviderEventLoggers.ts"; |
| 44 | import { ProviderInstanceRegistryHydrationLive } from "./ProviderInstanceRegistryHydration.ts"; | 44 | import { ProviderInstanceRegistryHydrationLive } from "./ProviderInstanceRegistryHydration.ts"; |
| 45 | import { | 45 | import { |
| 46 | haveProvidersChanged, | | |
| 47 | mergeProviderSnapshot, | 46 | mergeProviderSnapshot, |
| 48 | upsertProviderWorkspaceSnapshot, | 47 | upsertProviderWorkspaceSnapshot, |
| 49 | ProviderRegistryLive, | 48 | ProviderRegistryLive, |
| ... | @@ -555,39 +554,6 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsModule.layerTest(), Te | ... | @@ -555,39 +554,6 @@ it.layer(Layer.mergeAll(NodeServices.layer, ServerSettingsModule.layerTest(), Te |
| 555 | }); | 554 | }); |
| 556 | | 555 | |
| 557 | describe("ProviderRegistryLive", () => { | 556 | describe("ProviderRegistryLive", () => { |
| 558 | it("treats equal provider snapshots as unchanged", () => { | | |
| 559 | const providers = [ | | |
| 560 | { | | |
| 561 | instanceId: ProviderInstanceId.make("codex"), | | |
| 562 | driver: ProviderDriverKind.make("codex"), | | |
| 563 | status: "ready", | | |
| 564 | enabled: true, | | |
| 565 | installed: true, | | |
| 566 | auth: { status: "authenticated" }, | | |
| 567 | checkedAt: "2026-03-25T00:00:00.000Z", | | |
| 568 | version: "1.0.0", | | |
| 569 | models: [], | | |
| 570 | slashCommands: [], | | |
| 571 | skills: [], | | |
| 572 | }, | | |
| 573 | { | | |
| 574 | instanceId: ProviderInstanceId.make("claudeAgent"), | | |
| 575 | driver: ProviderDriverKind.make("claudeAgent"), | | |
| 576 | status: "warning", | | |
| 577 | enabled: true, | | |
| 578 | installed: true, | | |
| 579 | auth: { status: "unknown" }, | | |
| 580 | checkedAt: "2026-03-25T00:00:00.000Z", | | |
| 581 | version: "1.0.0", | | |
| 582 | models: [], | | |
| 583 | slashCommands: [], | | |
| 584 | skills: [], | | |
| 585 | }, | | |
| 586 | ] as const satisfies ReadonlyArray<ServerProvider>; | | |
| 587 | | | |
| 588 | assert.strictEqual(haveProvidersChanged(providers, [...providers]), false); | | |
| 589 | }); | | |
| 590 | | | |
| 591 | it("stores workspace skills and commands without changing machine metadata", () => { | 557 | it("stores workspace skills and commands without changing machine metadata", () => { |
| 592 | const provider = { | 558 | const provider = { |
| 593 | instanceId: ProviderInstanceId.make("codex"), | 559 | instanceId: ProviderInstanceId.make("codex"), |