Skip to content

Commit 8b826bb

Browse files
terisukeclaude
andcommitted
fix: resolve upstream merge typecheck error in test harness (#22)
ToolRegistry.layer now requires Question.Service and Todo.Service as direct dependencies after upstream refactor. Build those layers explicitly before providing them to the registry, matching the pattern in prompt-effect.test.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
1 parent 869eed2 commit 8b826bb

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎packages/opencode/test/scenario/harness.ts‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import { SessionProcessor } from "../../src/session/processor"
2525
import { SessionPrompt } from "../../src/session/prompt"
2626
import { SessionStatus } from "../../src/session/status"
2727
import { Snapshot } from "../../src/snapshot"
28+
import { Question } from "../../src/question"
29+
import { Todo } from "../../src/session/todo"
2830
import { ToolRegistry } from "../../src/tool/registry"
2931
import { Truncate } from "../../src/tool/truncate"
3032
import * as CrossSpawnSpawner from "../../src/effect/cross-spawn-spawner"
@@ -109,7 +111,13 @@ function make() {
109111
AppFileSystem.defaultLayer,
110112
status,
111113
).pipe(Layer.provideMerge(infra))
112-
const reg = ToolRegistry.layer.pipe(Layer.provideMerge(deps))
114+
const question = Question.layer.pipe(Layer.provideMerge(deps))
115+
const todo = Todo.layer.pipe(Layer.provideMerge(deps))
116+
const reg = ToolRegistry.layer.pipe(
117+
Layer.provideMerge(todo),
118+
Layer.provideMerge(question),
119+
Layer.provideMerge(deps),
120+
)
113121
const trunc = Truncate.layer.pipe(Layer.provideMerge(deps))
114122
const proc = SessionProcessor.layer.pipe(Layer.provideMerge(deps))
115123
const compact = SessionCompaction.layer.pipe(Layer.provideMerge(proc), Layer.provideMerge(deps))

0 commit comments

Comments
 (0)