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
CLI process internal timer/location-services scheduler stops firing after ~12-15 hours of uptime, making sessions unresponsive #34372
When the opencode CLI process runs continuously for approximately 12-15 hours, an internal periodic task ("booting location services") that fires every ~2 hours stops triggering. After this happens, the process can still detect stdin input (logged as loop step=0) but never starts LLM processing — no "stream" or "process" event follows the input detection. The user is forced to restart opencode to create a new session.
Evidence from local DB and logs
The booting location services event appears on a ~2-hour cycle in opencode.log. In every affected session, the last occurrence is the terminal one:
The opencode CLI is a sea-node (Node.js compiled into an ELF binary). After extended runtime, the internal setInterval/setTimeout mechanism that drives location-services refresh and possibly other scheduler tasks appears to collapse. The process remains alive (stdin readable, watcher operational) but can no longer initiate new LLM streaming.
Contributing factors observed:
Process uses ~780 MB RSS with 30+ threads
Three plugins loaded (voice, rtk, preprocessor) that hook into event pipeline
The file watcher accumulates state over hours
Impact
Users running opencode CLI in long-lived terminal sessions (tmux, screen, SSH) will find that after ~12-15 hours, new messages produce no response. The session appears stuck. Restarting opencode resolves the issue temporarily.
Workaround
Restart opencode periodically (e.g., daily) to reset the process state. Or use the desktop app which has different lifecycle management.
Environment
opencode version: 1.17.9 (also confirmed on 1.17.11)
Opencode freezes / becomes unresponsive mid-session #34214: Opencode freezes / becomes unresponsive mid-session — same observable outcome (process alive, input detected, no LLM processing) on long sessions, also confirmed on version 1.17.11.
If your issue is distinct from those (e.g., specific to the booting location services scheduler cycle or the ARM64/tmux environment), feel free to keep this open and note the differences.
Activity
github-actions commentedon Jun 29, 2026
This issue might be a duplicate of existing issues. Please check:
If your issue is distinct from those (e.g., specific to the
booting location servicesscheduler cycle or the ARM64/tmux environment), feel free to keep this open and note the differences.github-actions commentedon Aug 28, 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.