Closed
Description
I have no idea what is going on haven't checked the code (yet) but it seems to be an out of bounds exception? (probably a different thing going on under the hood)
panic: runtime error: slice bounds out of range [98:95] No diagnostics Gemini 2.5 Pro
goroutine 227 [running]:
github.com/kujtimiihoxha/opencode/internal/llm/provider.(*geminiClient).stream.func1()
/home/shreyas/code/gh/opencode/opencode/internal/llm/provider/gemini.go:335 +0xedc
created by github.com/kujtimiihoxha/opencode/internal/llm/provider.(*geminiClient).stream in goroutine 119
/home/shreyas/code/gh/opencode/opencode/internal/llm/provider/gemini.go:274 +0x2bf
here's my config
{
"$schema": "...main/opencode-schema.json",
"data": {
"directory": ".opencode"
},
"providers": {
"gemini": {
"disabled": false
}
},
"agents": {
"title": {
"model": "gemini-2.0-flash",
"maxTokens": 100
},
"task": {
"model": "gemini-2.5-flash"
},
"coder": {
"model": "gemini-2.5"
}
},
"lsp": {
"zig": {
"disabled": false,
"command": "zls",
"args": []
}
}
}
sidenote: should also handle panics gracefully, exit raw mode / alternate screen (or deinit charm stuff if you're using those ig) and then print the error message.
Metadata
Metadata
Assignees
Labels
No labels