[PR #6671] tool: trim persisted LSP diagnostics #12032

Open
opened 2026-02-16 18:16:58 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6671

State: open
Merged: No


  • Trim persisted diagnostics to only the touched file in EditTool and WriteTool (packages/opencode/src/tool/edit.ts:147, packages/opencode/src/tool/write.ts:77) so sessions don’t balloon from workspace-wide Lua diagnostics.
  • Added regression coverage with an LSP mock (packages/opencode/test/tool/lsp-diagnostics-metadata.test.ts:1).
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6671 **State:** open **Merged:** No --- - Trim persisted diagnostics to only the touched file in EditTool and WriteTool (packages/opencode/src/tool/edit.ts:147, packages/opencode/src/tool/write.ts:77) so sessions don’t balloon from workspace-wide Lua diagnostics. - Added regression coverage with an LSP mock (packages/opencode/test/tool/lsp-diagnostics-metadata.test.ts:1).
yindo added the pull-request label 2026-02-16 18:16:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12032