Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): agent sessions honour per-project device and browser access #31412

Openjuliusmarmingewants to merge 4 commits intomain fromfix/issue-31394opened View on GitHub

Showing 5 changed files with 7 additions and 5 deletions (loading 2).

x
0 of 5 viewed, 5 left
2 additions and 0 deletionsapps/server/src/orchestration-v2/testkit/ProviderReplayHarness.tsModified
View file
@@ -42,6 +42,7 @@
import * as Orchestrator from "../Orchestrator.ts";
import * as ProjectionStore from "../ProjectionStore.ts";
import * as ProjectStore from "../ProjectStore.ts";
+import * as ProjectService from "../../project/ProjectService.ts";
import * as ProviderAdapterRegistry from "../ProviderAdapterRegistry.ts";
import * as ProviderAuthService from "../../provider/ProviderAuthService.ts";
import * as ProviderContinuationRequests from "@t3tools/provider-core/server/ProviderContinuationRequests";
@@ -394,6 +395,7 @@
McpSessionRegistryTestkit.layer,
layerProviderEventIngestorProvided,
layerStores,
+ Layer.mock(ProjectService.ProjectService)({ getById: () => Effect.succeedNone }),
2 additions and 1 deletionapps/server/src/orchestration-v2/ProviderSessionManager.test.tsModified
View file
@@ -688,7 +688,8 @@
layerConfiguredMcpRegistry,
layerTestStores,
...(input.serverSettingsLayer === undefined ? [] : [input.serverSettingsLayer]),
- ...(input.projectServiceLayer === undefined ? [] : [input.projectServiceLayer]),
+ input.projectServiceLayer ??
+ Layer.mock(ProjectService.ProjectService)({ getById: () => Effect.succeedNone }),