GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Plugin activation never completes when the global skills folder resolves to a slow drive — `/api/model` 503 forever · Issue #63130 · anomalyco/opencode

Plugin activation never completes when the global skills folder resolves to a slow drive — /api/model 503 forever #63130

New issue
Copy link
New issue
Copy link
Closed
Closed
Plugin activation never completes when the global skills folder resolves to a slow drive — /api/model 503 forever#63130
Copy link

Description

@ujjwalD16
ujjwalD16
opened on Nov 10, 2026
Issue body actions

Hi, sorry if my words seem a bit off — I'm just a normal user, not a developer, and I ran into something I couldn't fix on my side. Hoping this helps.

What I see

On OpenCode 2.2.6 (CLI, Windows 11), the server never finishes starting. Every call to /api/model, /api/provider and /api/agent returns:

{"_tag":"ServiceUnavailableError","message":"Location plugins did not finish activating","service":"plugin"}

The TUI never gets a model list, so pressing Enter does nothing. This has happened on every boot since Oct 22 — it is not a one-time thing. I waited 180+ seconds and it still returns 503.

My setup

  • OpenCode CLI 2.2.6 (I tested on 2.2.6; 2.2.7 came out today, Nov 10 — I checked its release notes, see the update at the end, but I have not tested 2.2.7 myself yet)
  • Windows 11, opencode service start
  • Global skills folder ~/.config/opencode/skills with 7,168 entries, all junctions pointing into one folder on a USB drive (F:\Universal_Github, slow USB disk)
  • Config has 11 providers, default model is an Anthropic-compatible one; one local plugin file (plugins/coucou.js) and the opencode-auto-fallback npm plugin

What I tried

Skills folder state /api/model
7,168 junctions → USB drive 503 (many boots)
Folder removed entirely 200 (twice, stable)
Folder empty 200
10 junctions → USB drive (first 10) 503
10 junctions → USB drive (last 10, different set) 503
10 directory symlinks → USB drive 503
10 junctions → C: drive (fast NVMe, tiny test skills) 200
10 real folders on C: 200

So it is not the number of skills (10 is enough to break it), not one bad skill (two different sets of 10 both break it), not junctions vs symlinks (both break it on the slow drive), and not my plugin files (moving coucou.js and the fallback plugin aside changed nothing). The only thing that matters is whether the skills resolve to the slow drive or the fast one.

One more detail: with just 10 links on the slow drive, /api/provider and /api/agent answer 200 while only /api/model 503s. With all 7,168 links, all three 503. And --log-level debug prints zero debug lines here, so I could not see where exactly it stalls — the log just stops after the skills-directory watcher starts.

Why I think this is a real bug, not just my setup being slow

I read the related issues (#62640, #61443, #57495) and PR #21100 — those are about slow plugin setup / login refresh, and the cases there recover on retry. Mine never recovers, no matter how long I wait. A skills folder on a slow drive should not be able to block the whole server forever — at worst it should load slowly, or skip the slow entries with a warning, and still let the model list come up.

What might help (just ideas, please feel free to ignore)

  • Load skills lazily / in the background instead of during plugin activation, so a slow skills folder can't block /api/model
  • Or give skill loading its own timeout, and continue activation without the entries that didn't finish, with a warning in the log
  • Or log which entry activation is stuck on — right now there is nothing in the log to point at, which made this very hard to find

Happy to run any test build or share more logs. Thanks a lot for OpenCode, and sorry again if anything here is worded wrong.


Update — the slow-disk story is incomplete. This is also a scale problem.

Since drafting the above I tested the same skills as real folders on the fast C: NVMe drive (SKILL.md only, 64.8 MB total), and ran a bisection on the number of entries. New results (OpenCode 2.2.6, same PC, all boots probed at ~60 s and ~180 s):

Skills state /api/model ~60 s /api/model ~180 s
7,166 real folders on fast C: (SKILL.md only) 503 503 (~211 s)
1,000 real folders on C: (first 1,000 alphabetically) 503 200
500 real folders on C: 503 200
250 real folders on C: 503 200
175 real folders on C: 503 200
100 real folders on C: (first 100 alphabetically) 200 200
10 real folders on C: 200 200

So activation load time grows with the number of skill entries: at 175+ entries it already misses the 60-second mark (though it does finish by ~180 s), and at 7,166 entries it never finishes within ~211 s. A slow drive makes it worse, but even fast local storage fails at full scale — the server apparently has to process every skill entry during plugin activation and cannot finish thousands of them in time.

One more thing that surprised me: the threshold is not a clean number — content matters too, not just count. A curated set of 100 skills (0.90 MB of SKILL.md in total) returned 503 at ~60 s, while the alphabetical first 100 (1.30 MB total) returned 200 at ~60 s. Same count, same disk, same form — different result. So some entries cost much more than others to load (or boot-to-boot timing varies); there is no single safe count, only a rough band, and it sits somewhere around 100 entries on this machine.

The request stands, and this makes it stronger: skill loading should not be able to block plugin activation forever. Loading skills lazily / in the background, giving skill loading its own timeout with a warning, or logging which entry activation is stuck on would all fix this. Right now a large skills folder — even on fast storage — silently breaks the whole server with no clue in the log about where it stalls.

Retest note — 2026-11-10 02:13–02:19 IST: the curated 100 was re-tested once (same 100 names, same form) and passed at both 60 s and 180 s (200 on all three endpoints), so the first run's 60 s 503 was boot-to-boot timing variance, not a poison entry — N=100 sits right on the borderline and can flip either way. N=500 was also re-run and failed at 60 s on both boots, confirming that band. The 100-skill subset is now applied on this machine with the config re-locked, but the marginal pass is itself evidence the activation path needs the fix above: a set that passes on one boot and fails on the next is not a stable state.

Update — 2026-11-10 09:16–09:36 IST, smaller subsets (~50 and ~25): I kept shrinking the set to find where it reliably passes. A 50-skill set (10 core skills + 13 agent-core + 8 code/debug/review + 4 testing + 5 git/github + 1 architecture + 7 video + 2 security) failed its first boot at 60 s (model 503, only passing at 180 s) — the same late-pass pattern as 175/250/500. A 25-skill set (10 core + 13 agent-core + 2 code-review skills) passed cleanly on BOTH boots, 200 on all three endpoints at 60 s and 180 s. So the threshold is lower and more content-dependent than my first bisection suggested: 100 passed a retest and then failed on a cold boot, 50 late-passes, 25 passes twice. The 5-second plugin-activation deadline is the binding constraint, and the log still shows nothing about where activation stalls. The 25-skill set is what I am running now; it works, but it drops my video skills entirely, so it is a fallback, not a fix.

Update — 2026-11-10 10:43–11:07 IST, the harness does not predict a real TUI boot: I tested the 25-skill set from a real TUI launch, and it failed. My TUI boot at 10:43:39 returned 503 on all three endpoints at ~10 s, no model list ever arrived, and a re-probe 18 minutes later still returned 503 on all three — activation never completed. But the SAME 25 skills, booted detached 20 minutes later, passed 200 on all three at both 60 s and 180 s. The 25 now passes the detached harness 3/3 and fails a real TUI boot 0/1. My best guess for the difference: when the TUI starts, it spawns package-manager checks (npm, pnpm, bun, yarn, vp) and plugin reconciliation (14 plugins, 3 rounds) in the same first seconds the server is racing its 5-second activation deadline, while a detached boot has no client competing with the server. So this is worse than the scale finding alone: even 25 skills fail on a real TUI boot while passing the detached harness every time. The workaround I am trying now is to start the service detached first, wait until /api/model returns 200, and only then launch the TUI so it reuses the already-activated service.

Update — 2026-11-10 12:48 IST, a workaround that works: starting the service detached first, waiting until /api/model returns 200, and only then launching the TUI does work — the TUI reuses the already-activated service, the model line shows, and Enter works. So the server can serve once activation has completed; the problem is specifically the TUI-boot path, where the client-side work in the first seconds seems to keep activation from ever completing. This is a usable workflow for me, but it is still a workaround — the TUI should be able to start its own service and get a model list.

Update — 2026-11-10, checked against v2.2.7 (released today): I checked the v2.2.7 release notes before filing. That release does touch this area — PR #62796 removed the plugin wait from server handlers — but PR #63040 partially reverted it before shipping, and the release notes say plainly that the model, provider, generate.*, voice.* and websearch.query endpoints still wait for plugins to load. So the endpoints this report is about still block on plugin activation in 2.2.7, and I have no reason to think the stall I measured is fixed there (I have only tested 2.2.6 myself). Two related items I found while checking: #61443 (the OpenAI login-refresh case, transient, fixed by #62796 — different cause from mine, it recovered in ~2 seconds) and #55937 (open — same failure shape, activation never completes and /api/model 503s, but a different trigger: the global location watcher on a home directory with 2M+ files; mine is the skills folder, with no CPU/memory blowup). There is also an open PR, #61547, that retries the TUI sync for 5 minutes on a 503 — helpful for a slow start, but it cannot fix a stall that never completes. The core ask is unchanged: skill loading should not be able to block plugin activation forever.

Activity

  1. opencodejr commented on Nov 10, 2026

    @opencodejr
    opencodejrBot
    on Nov 10, 2026
    Contributor
    More actions

    Thanks for the very detailed testing. I tried to reproduce this on Linux with OpenCode 2.2.6, starting opencode serve with up to 7,200 skills in ~/.config/opencode/skills, both as real folders and as symlinks to another directory. Activation finished almost at once there: /api/model returned 200 within 1–5 seconds every time.

    So the slowdown you measured looks tied to Windows: junctions, file watching on Windows, or the slow USB drive. This sandbox can't provide any of those, so it needs a maintainer with a Windows machine to confirm.

    What stands out in the code: while plugins activate, every skill is read one at a time. Each skill linked from outside the skills folder also gets its own file watch. And /api/model only waits 5 seconds before returning 503. That fits your results, but I couldn't confirm it here.

    Related issues, most closely related first:

    • core: global location watcher subscribes to all of $HOME — 2M+ file home dirs starve the event loop (~900% CPU, multi-GB memory), /api/model 503 #55937: same 503 that never goes away, caused by the location watcher on a very large home directory
    • session/resume fails right after initialize with "Location plugins did not finish activating" #57204: the same "Location plugins did not finish activating" error on session resume
    • Desktop: fatal "Location plugins did not finish activating" when the OpenAI login refresh at startup takes over 5 seconds #61443: the 5-second activation limit hit by a slow OpenAI login refresh (closed)
    • fix(tui,app): only apply extended 5min retry to ServiceUnavailableError location sync #61547 (PR): retries the TUI sync on 503 while plugins start

    Your workaround, starting the service first and launching the TUI once /api/model returns 200, should keep working in the meantime.

  2. ujjwalD16 commented on Nov 10, 2026

    @ujjwalD16
    ujjwalD16
    on Nov 10, 2026
    Author
    More actions

    Thank you for trying to reproduce this so thoroughly — and for the related issues, those help. One detail worth adding from my side, since the Linux test points at Windows/slow disk: I also tested 7,166 real skill folders on a fast C: NVMe drive (no junctions, no USB), and /api/model still returned 503 permanently on that boot. So slow disk makes it worse, but scale alone seems enough to miss the 5-second window even on fast storage. My bisection matched that: 100 skills pass, 175+ fail at 60 seconds but pass if given 180 seconds. That also lines up with what you found in the code — skills read one at a time, a file watch per externally linked skill, and the 5-second wait. #55937 and #57204 look like different triggers for the same error (location watcher on a big home directory, and session resume), so I will leave those aside. The 2.2.7 update does not fix it on my side either. The pre-start workaround is still working fine for me in the meantime. Happy to test anything else on Windows if it helps.

  3. ujjwalD16 commented on Nov 18, 2026

    @ujjwalD16
    ujjwalD16
    on Nov 18, 2026
    Author
    More actions

    Thank you — and thanks to rekram1-node for the fix. I see #63814 is now merged into dev, removing the plugin wait from the model, provider, generate, voice and websearch handlers — that is exactly the root cause behind the 503s I reported (the 5 s wait racing skill loading, which on Windows never completed even with 7,166 real folders on a fast NVMe).

    Nothing more to add from my side. I'll watch for the release that carries this. Thanks again for the work on this.

  4. neriousy commented on Nov 19, 2026

    @neriousy
    neriousy
    on Nov 19, 2026
    Member
    More actions

    Fixed by #63814, which stops the model, provider and related handlers from waiting on plugin activation, so a slow skills folder no longer makes /api/model return 503. If you still see this on the latest version, comment here and we'll reopen.

  5. neriousy
    closed this as completedon Nov 19, 2026
  6. ujjwalD16 commented on Nov 19, 2026

    @ujjwalD16
    ujjwalD16
    on Nov 19, 2026
    Author
    More actions

    Thank you for closing this — and for the fix in #63814. One small note for the record: the latest release, v2.3.2 (18 November), was published before #63814 merged, so the fix is on main for now and not in a released version yet. I'll test the next release with my full skills folder and comment here if the 503 still shows up. Thanks again to you and rekram1-node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.