anomalyco / anomalyco/opencode

core: global skill update terminates shared service on Windows

Open
#47,505 0 comments 0 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Sep 5, 2026.

2.0
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 launched npx skills update -g
  • 14:44:33 — global skill files began being replaced; OpenCode logged its first watcher 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 rescanned
  • 14:44:38 — client logged event stream disconnected
  • 14:44:39 — the external skill update completed successfully
  • 14:44:43 — the existing client started a replacement serve --service process

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 with npx 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.