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
bug(windows): CLI and Desktop repeatedly restart/expire sessions without AI responses; WSL2 works #55220
Thanks for the report and for comparing with WSL2, that helps narrow it down. On native Windows, this symptom ("Restarting service…" and no reply ever arriving) has several known causes that look the same on screen. To tell which one you're hitting, could you share:
The output of opencode --version on Windows, and how you installed it (npm @opencode/cli, installer, etc.), plus the Desktop app version.
The exact message you see, or a screenshot of it.
The most recent log file from %USERPROFILE%\.local\share\opencode\log (I believe this is the default location on Windows), especially the lines around a restart. Look for event stream disconnected or Event stream stalled, and for a new serve --service start right after. Please remove any tokens or personal paths before posting.
Whether HTTP_PROXY / HTTPS_PROXY (or a system proxy) is set on Windows, and whether NO_PROXY includes localhost,127.0.0.1.
Which antivirus or security software you run (e.g. Kaspersky).
Whether there is a .git folder directly in your home folder (%USERPROFILE%\.git).
If one of these matches, please say so. You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
Thanks for the report and for comparing with WSL2, that helps narrow it down. On native Windows, this symptom ("Restarting service…" and no reply ever arriving) has several known causes that look the same on screen. To tell which one you're hitting, could you share:
The output of opencode --version on Windows, and how you installed it (npm @opencode/cli, installer, etc.), plus the Desktop app version.
The exact message you see, or a screenshot of it.
The most recent log file from %USERPROFILE%\.local\share\opencode\log (I believe this is the default location on Windows), especially the lines around a restart. Look for event stream disconnected or Event stream stalled, and for a new serve --service start right after. Please remove any tokens or personal paths before posting.
Whether HTTP_PROXY / HTTPS_PROXY (or a system proxy) is set on Windows, and whether NO_PROXY includes localhost,127.0.0.1.
Which antivirus or security software you run (e.g. Kaspersky).
Whether there is a .git folder directly in your home folder (%USERPROFILE%\.git).
If one of these matches, please say so. You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
Thanks for the detailed investigation. Here is some additional information:
OpenCode versions: I tested multiple releases, including the latest v2 release available at the time and the latest v1 release. The issue occurred across versions.
Desktop: Latest available version at the time of testing.
Windows: Fully updated Windows installation (exact build not yet collected).
Installation methods: I tried multiple installation methods, with the same result.
Proxy: I have not manually changed any proxy settings. I have not yet verified the environment variables or system proxy configuration.
Home directory: A ".git" directory exists directly under "%USERPROFILE%". I have not yet checked whether it is empty or related to the issue.
Logs: I have not collected the logs yet.
Antivirus: Not yet confirmed.
Most importantly: Both native Windows CLI and Desktop exhibit the issue, while OpenCode under Ubuntu/WSL2 works reliably on the exact same machine.
Given the existing ".git" directory in my Windows home folder, #52049 seems particularly worth investigating.
I will try to provide logs and additional diagnostics when possible. Thanks for your help!
We're closing this for now because we haven't heard back. Without the OpenCode version, the exact message and the logs from around a restart, we can't tell whether this is the watchdog/stray .git issue (#52049), a proxy without no_proxy (#52054), antivirus interference (#48771) or something new.
If it still happens, please reply with the details asked for above: the opencode --version output, a screenshot of the message, the recent log lines from the %USERPROFILE%\.local\share\opencode\log folder, your proxy settings and any antivirus software. We can reopen it then. If one of the linked issues matches, you can follow that one instead. Thanks!
Activity
opencode-agent commentedon Oct 13, 2026
Thanks for the report and for comparing with WSL2, that helps narrow it down. On native Windows, this symptom ("Restarting service…" and no reply ever arriving) has several known causes that look the same on screen. To tell which one you're hitting, could you share:
opencode --versionon Windows, and how you installed it (npm@opencode/cli, installer, etc.), plus the Desktop app version.%USERPROFILE%\.local\share\opencode\log(I believe this is the default location on Windows), especially the lines around a restart. Look forevent stream disconnectedorEvent stream stalled, and for a newserve --servicestart right after. Please remove any tokens or personal paths before posting.HTTP_PROXY/HTTPS_PROXY(or a system proxy) is set on Windows, and whetherNO_PROXYincludeslocalhost,127.0.0.1..gitfolder directly in your home folder (%USERPROFILE%\.git).Possibly related issues, ordered by likelihood:
.gitfolder in their home folder.no_proxysends local traffic through the proxy, so "Restarting service…" loops forever. Windows users have confirmed it.If one of these matches, please say so. You can reply here with the details, or edit the issue. If you edit it, please also leave a comment saying you've updated it so we know you're done.
mixxermannipro commentedon Oct 14, 2026
Thanks for the detailed investigation. Here is some additional information:
Most importantly: Both native Windows CLI and Desktop exhibit the issue, while OpenCode under Ubuntu/WSL2 works reliably on the exact same machine.
Given the existing ".git" directory in my Windows home folder, #52049 seems particularly worth investigating.
I will try to provide logs and additional diagnostics when possible. Thanks for your help!
opencode-agent commentedon Oct 16, 2026
We're closing this for now because we haven't heard back. Without the OpenCode version, the exact message and the logs from around a restart, we can't tell whether this is the watchdog/stray
.gitissue (#52049), a proxy withoutno_proxy(#52054), antivirus interference (#48771) or something new.If it still happens, please reply with the details asked for above: the
opencode --versionoutput, a screenshot of the message, the recent log lines from the%USERPROFILE%\.local\share\opencode\logfolder, your proxy settings and any antivirus software. We can reopen it then. If one of the linked issues matches, you can follow that one instead. Thanks!