Skip to content

Commit ce1023a

Browse files
authored
opencode: disable LSP, enable compaction pruning (#83)
LSP diagnostics store full workspace errors in context on every edit. On large Go projects (gopls), this consumes 40%+ of the context window with ~210 pre-existing false positives repeated identically per edit. See anomalyco/opencode#6310. Enable compaction pruning to drop old tool outputs, further reducing context growth in long sessions.
1 parent 0fd3be4 commit ce1023a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.config/opencode/opencode.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"plugin": ["opencode-wakelock", "opencode-beads"],
44
"model": "amazon-bedrock/us.anthropic.claude-opus-4-6-v1",
55
"default_agent": "plan",
6+
// LSP disabled: full workspace diagnostics stored in context on every edit,
7+
// consuming 40%+ of context on large Go projects (gopls). See anomalyco/opencode#6310.
8+
"lsp": false,
9+
"compaction": {
10+
"prune": true
11+
},
612
"provider": {
713
"amazon-bedrock": {
814
"options": {

0 commit comments

Comments
 (0)