anomalyco / anomalyco/opencode
core: global skill update terminates shared service on Windows
@Hona is already working on this.
Since Sep 5, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
Updating three CLI-managed global skills under ~/.agents/skills from a separate process terminated an active OpenCode V2 shared service. Multiple active OpenCode sessions were interrupted.
No opencode2 service restart, stop, or configuration command was executed. The existing client automatically launched a replacement service after losing transport.
This has occurred once and has not yet been independently reproduced.
Timeline (UTC):
14:44:24— another process launchednpx skills update -g14:44:33— global skill files began being replaced; OpenCode logged its firstwatcher stopped- Over the next three seconds, the old service logged 223 watcher stops, 223 watcher starts, 881 subscriptions, and 16 skill rescans
14:44:36— last event from the old service:skills rescanned14:44:38— client loggedevent stream disconnected14:44:39— the external skill update completed successfully14:44:43— the existing client started a replacementserve --serviceprocess
There was no clean shutdown, warning, fatal OpenCode log, Windows Error Reporting event, or OpenCode binary update around the termination.
Expected behavior is that global skill changes hot-reload without restarting the service, as described in #40954. PR #43522 also mentions one-off Bun watcher crashes that lacked a stable reproduction.
Plugins
None configured or found in local/global plugin directories.
OpenCode version
opencode2 v0.0.0-beta-19086 (beta channel)
Steps to reproduce
- Start the managed shared OpenCode service with multiple active sessions.
- From a separate process, update several globally installed skills under
~/.agents/skills, for example withnpx skills update -g. - Observe whether skill-source watcher subscriptions multiply and the shared service terminates.
- Check whether an existing client automatically starts a replacement service several seconds later.
The updater appears to replace skill directories rather than editing one file in place.
Screenshot and/or share link
No screenshot or public share link. Exact timestamped logs and the initiating local transcript are available if narrower excerpts are needed.
Operating System
Microsoft Windows 11, version 10.0.26200.9168, x64.
Terminal
Windows Terminal (TERM=xterm-256color); shell cmd.exe.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.