You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't exit OpenCode when I get ConfigInvalidErrors #4246
I'm adding a new agent in .opencode/agent, and when it is misconfigured I can't open OpenCode, and I can't exit the process without killing the shell. Tried Ctrl+C, Ctrl+D and Esc without any luck. Would be nice to be able to Ctrl-C out of the error message, but also some better error reporting as well. Kinda hard to debug what is wrong with the agent file.
OpenCode version
1.0.61
Steps to reproduce
Add a new agent with an invalid config
Open OpenCode
Observe an error message, ConfigInvalidError and no way to exit the process.
Here's the misconfigured agent, where the tools are misconfigured:
.opencode/agent/frontend-expert.md
---
description: Ekspert på å lage frontend-applikasjoner
tools: Read, Write, Edit, Grep, Glob, Bash
---
Du er en spesialist på frontend-utvikling. Du har dyp kunnskap om Next.js App Router, React Server Components, TypeScript, Tailwind CSS.
Activity
github-actions commentedon Nov 12, 2025
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
lenhanpham commentedon Nov 12, 2025
Got exactly the same annoying bug
OpeOginni commentedon Nov 12, 2025
I could replicate the issue and made a potential fix, would look like this.
Screen.Recording.2025-11-12.at.15.12.40.mov
rekram1-node commentedon Nov 18, 2025
fixed on latest