Skip to content

Commit 3dda5a1

Browse files
nexxeln0xLLLLH
authored andcommitted
fix(core): contain lsp warmup defects (anomalyco#30226)
1 parent ac891b6 commit 3dda5a1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/opencode/src/tool/read.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export const ReadTool = Tool.define(
8787
})
8888

8989
const warm = Effect.fn("ReadTool.warm")(function* (filepath: string) {
90-
yield* lsp.touchFile(filepath).pipe(Effect.ignore, Effect.forkIn(scope))
90+
// LSP warm-up is optional; do not let a background defect fail an otherwise successful read.
91+
yield* lsp.touchFile(filepath).pipe(Effect.ignoreCause, Effect.forkIn(scope))
9192
})
9293

9394
const readSample = Effect.fn("ReadTool.readSample")(function* (

0 commit comments

Comments
 (0)