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
Thread freezes after switching to Go model — requires Escape key to unstick #34460
After exhausting the free-tier quota and manually switching to a Go model, the thread becomes unresponsive / frozen. The only way to recover is pressing the Escape key, which unsticks the thread and allows interaction to continue.
Steps to reproduce
Use OpenCode with the default free-tier provider/model.
Exhaust the free-tier quota (hit the usage limit).
Manually switch to a Go model (e.g. via the model switcher).
Observe that the thread is now frozen — no input is accepted, the UI appears stuck.
Press the Escape key.
The thread unsticks and resumes normal operation.
Expected behavior
When the model is switched manually, the thread should remain interactive or immediately enter the new model's context without requiring a manual Escape key press to unstick.
Actual behavior
The thread freezes silently after the model switch. The user has no indication that Escape will fix it — it appears broken until the user happens to try Escape.
Environment
OpenCode version: latest
Platform: (add your OS / terminal)
Provider: Free tier → Go model (manual switch)
Additional context
This seems to be a UI state issue where the model-switch event leaves the input handler in a stale or waiting state that is only resolved by an Escape keypress to reset focus or state.
changed the title [-]Thread freezes after hitting free-tier quota and switching to Go model — requires Escape key to unstick[/-][+]Thread freezes after switching to Go model — requires Escape key to unstick[/+]on Jun 29, 2026
Activity
[-]Thread freezes after hitting free-tier quota and switching to Go model — requires Escape key to unstick[/-][+]Thread freezes after switching to Go model — requires Escape key to unstick[/+]github-actions commentedon Aug 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.