fix: reuse serverSettingsLayer instead of creating duplicate instance

The outer layer composition at line 327 was creating a second independent
ServerSettingsService.layerTest() instance, which would have separate Ref
state from the one provided to inner layers (runtimeIngestionLayer and
providerCommandReactorLayer). This made settings updates invisible between
the two instances. Reuse the existing serverSettingsLayer variable instead.
This commit is contained in:
Cursor Agent committed 2026-03-26 05:17:00 +00:00
1 parent 89e75500de
commit a70e7d7e49
1 file changed
+1 -1
@@ -324,7 +324,7 @@ export const makeOrchestrationIntegrationHarness = (
);
const layer = orchestrationReactorLayer.pipe(
Layer.provide(persistenceLayer),
Layer.provideMerge(ServerSettingsService.layerTest()),
Layer.provideMerge(serverSettingsLayer),
Layer.provideMerge(ServerConfig.layerTest(workspaceDir, rootDir)),
Layer.provideMerge(NodeServices.layer),
);