mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
test(core): stub the subagent queue in restart tests so no model catalog fetch starts (t813)
This commit is contained in:
parent
36a6f190e0
commit
a3ff35533d
1 changed files with 11 additions and 1 deletions
|
|
@ -1422,7 +1422,17 @@ function buildExecution(
|
|||
Layer.provide(Layer.succeed(Bus.Service, bus)),
|
||||
Layer.provide(Layer.succeed(SessionStore.Service, store)),
|
||||
Layer.provide(Layer.succeed(Job.Service, jobs)),
|
||||
Layer.provide(SubagentQueue.layer),
|
||||
// No cap here: reading it would boot each parent's full Location graph, which fetches the model catalog.
|
||||
Layer.provide(
|
||||
Layer.succeed(
|
||||
SubagentQueue.Service,
|
||||
SubagentQueue.Service.of({
|
||||
limit: () => Effect.succeed(undefined),
|
||||
hold: (_, effect) => effect,
|
||||
waiting: () => Effect.succeed(undefined),
|
||||
}),
|
||||
),
|
||||
),
|
||||
// Do not reuse the outer harness's selector with its already-captured Location map.
|
||||
Layer.provide(
|
||||
AppNodeBuilder.build(Instance.node, [LocationServiceMap.node.replace(locations)]).pipe(Layer.fresh),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue