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 — fix(server): stop waiting for plugins in the model, provider, generate, voice and websearch handlers by rekram1-node · Pull Request #63814 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 13, 2026 •
edited by opencodejr Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Issue for this PR

Reverts #63040. Helps #63130.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

#63040 put a 5 s wait for plugins (503 after it) back on model.list, model.default, provider.list, generate.*, voice.* and websearch.query, because managed policy and the Console config apply after providers register, so a denied provider or free model could be listed or used while a Location activates. In the #core thread that gap was accepted (blocking the Console plugin on its fetch is fine, a brief free-models flash is fine, MDM is the real lockdown), so this goes back to #62796: no handler waits.

before: GET /api/model on a Location still loading → wait up to 5 s → 503
after:  GET /api/model → whatever is loaded now; *.updated fills the rest

The cost of the waits is real: a slow Location, like 2000 linked skills in #63130, returns 503 from /api/model on every request, and the desktop app no longer retries 503s since #62830, so its model picker stays empty until loading ends.

The video generation start added since (#64140) used the same wait and drops it too. The mobile apps no longer depend on the wait: the fixes shipped in Android v0.8.0 and iOS v0.507.0.

AGENTS.md drops the temporary exception, and the provider test goes back to checking that catalog reads answer while a plugin is still loading.

How did you verify your code works?

  • packages/server (132) and packages/cli (408) tests with an isolated HOME, bun run check, and typecheck:tsc in packages/server.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #63130, #63273, #61359

Public API: model/provider/generate (incl. video.create)/voice/websearch endpoints no longer return 503 while plugins load (no schema change)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Nov 13, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend merging this change: it is an exact revert of #63040. All seven changed files match their versions just before it, so the handlers are back to the #62796 behaviour.

I ran opencode serve from source in a project with a local plugin whose setup takes 7 s. On the base, GET /api/model returned 503 Location plugins did not finish activating after about 5.2 s. With this PR it returned 200 in about 0.1 s with the current (empty) list, and the full catalog once loading finished. The updated provider.test.ts passes here and fails on the base. The packages/server tests (127 pass) and typecheck:tsc pass. In the TUI, base and PR look the same 30 s into a cold start, so there are no screenshots.

Public API: nothing in the schema changes (SDK, client, OpenAPI). At runtime, model.list, model.default, provider.list, generate.*, voice.* and websearch.query no longer return 503 ServiceUnavailableError (service: "plugin") after 5 s. They now answer straight away with what is loaded, possibly an empty or partial list. Callers that relied on the wait need to wait themselves or refresh on *.updated, which the TUI, client data layer and ACP already do.

No concerns.

Related: #63130, #63273, #61359

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node rekram1-node mentioned this pull request Nov 14, 2026
fix(session): models that load after the first read show up without reopening anomalyco/opencode-android#78
Merged
This was referenced Nov 15, 2026
fix(core): reject plugin effects that return a non-Effect #64115
Open
fix(server): make plugin activation timeout configurable #64408
Closed
@amr-karam

amr-karam commented Nov 17, 2026

Copy link
Copy Markdown

Windows results for #63814, with a plain-dev control on the same machine (both from source, three runs each):

operation dev (wait present) #63814 (wait removed)
api model.list --standalone 503 ×3 (11.72s / 12.32s / 13.41s) OK ×3 (7.41s / 5.83s / 6.53s)
api session.list --standalone OK ×3 (5.11s / 6.11s / 5.92s) OK ×3 (5.49s / 4.73s / 5.92s)

Answers carry 0 model / session ids, which matches the design note in AGENTS.md ("lists may be empty or partial on a cold Location"). No 503 anywhere on #63814, and the successful calls come back several seconds sooner than the failing control.

On your session.list question: it does not fail here — and the control shows it does not fail on plain dev either on this machine, so the gap you suspected is not present on current dev for session.list. For the record, session.list --standalone did 503 on my installed 2.2.7 months of behavior ago; something on dev since then already stopped it waiting, which is consistent with the direction of this PR.

Two notes for anyone reproducing from source:

  • The entry point matters. bun packages/cli/src/index.ts ... from the repo root fails with Cannot find module 'react/jsx-dev-runtime' (the TUI tsconfig sets jsxImportSource: @opentui/solid, which only resolves through the CLI package's tsconfig chain). The documented root script works: bun run --cwd packages/cli src/index.ts api model.list --standalone. That may be what blocked --standalone from source in your environment.
  • From source, failures take 12-13s versus ~9s from the installed 2.2.7 binary — cold activation is slower here from source, which is exactly the case this PR removes.

Separately, still open and not covered by this PR: a Session.StepFailedError: Nothing to compact yet I hit on the running background service (2.2.7) on a large session. Different signature from the plugin-wait 503 — it fires when compaction runs with nothing left to reduce. Happy to file it as its own issue with logs if useful.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
fix(server): stop waiting for plugins in the model, provider, generat…
6b02b00
…e, voice and websearch handlers

Reverts #63040.
@rekram1-node
rekram1-node force-pushed the drop-policy-waits branch from 5c278f9 to 6b02b00 Compare November 17, 2026 21:32
opencodejr[bot]
opencodejr Bot reviewed Nov 17, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend merging this change: it is still sound after the rebase. The only new change is that generate.video.create (from #64140) no longer waits for plugins either. It is still blocked first when the video_generate flag is off, and a video model that hasn't loaded yet now fails with not-found, as AGENTS.md describes. Nothing in packages/server/src waits for plugins any more.

I re-ran serve from source with a plugin whose setup takes 7 s. On the base, /api/model returned 503 after about 5 s. With this PR it returned 200 straight away with the current (empty) list. The packages/server tests (132 pass, including the video-generation tests) and typecheck:tsc pass.

Public API: the same as before, with generate.video.create added to the list. These endpoints no longer return 503 ServiceUnavailableError (service: "plugin") while plugins load, and nothing in the schema changes.

No new concerns.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rekram1-node
rekram1-node merged commit ce7b425 into dev Nov 18, 2026
14 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@rekram1-node
rekram1-node deleted the drop-policy-waits branch November 18, 2026 16:24
@ujjwalD16 ujjwalD16 mentioned this pull request Nov 18, 2026
Plugin activation never completes when the global skills folder resolves to a slow drive — /api/model 503 forever #63130
Closed
@opencodejr opencodejr Bot mentioned this pull request Nov 19, 2026
acp: session/new fails with "Location plugins did not finish activating" on cold start (5s hard-coded wait) #64853
Closed
This was referenced Nov 19, 2026
cli: api model.list --standalone returns 503 "Location plugins did not finish activating" #63273
Closed
tui: cold load of a UNC location returns 503 for agent/model/provider, prompt cannot be sent #61359
Closed
@perryclarke perryclarke mentioned this pull request Nov 19, 2026
plugins: git plugin install waits forever on a credential prompt in the background service, so no models load #65015
Open
@kelos-bot kelos-bot Bot mentioned this pull request Nov 23, 2026
[kanon-fake-strategist] Render hooks per agent capability and add OpenCode hook support kelos-dev/kanon#100
Open
@BrewTestBot BrewTestBot mentioned this pull request Nov 23, 2026
opencode 2.4.0 Homebrew/homebrew-core#327368
Merged
@amrkmn amrkmn mentioned this pull request Nov 23, 2026
opencode 2.4.0 amrkmn/homebrew-tap#1251
Closed
1 task
This was referenced Nov 23, 2026
Checker fails closed: block the call when the check can't start, times out, is cancelled, or runs during a plugin reload QuaanNguyen/xor#83
Open
Check xor against OpenCode v2.2.0 (breaking plugin changes) QuaanNguyen/xor#87
Open
@github-actions github-actions Bot mentioned this pull request Nov 23, 2026
feat: opencode release v2.4.0 sprisa/opencode-server#95
Merged
@stamp-build stamp-build Bot mentioned this pull request Nov 24, 2026
fix(opencode): bound skill discovery to releases with an activation barrier botiverse/oar#1171
Merged
stamp-build Bot added a commit to botiverse/oar that referenced this pull request Nov 24, 2026
@stamp-build Otter @xxchan
fix(opencode): bound skill discovery to releases with an activation b…
8ec51b3
…arrier (#1171)

<!-- stamp:review:v1 -->
<sup><img
src="https://cdn.raft.build/avatars/6aabf32c-20bc-4cba-b55a-2aa72b60999b/8ba4452ceb890f1930886ef4286fdb99.webp"
width="16" height="16" align="absmiddle" alt=""> <b>Otter</b>
(open-agent-runtime) opened via Stamp · <a
href="https://stamp.build/review?receipt=prc_8895dca5c62f0e7c71173f35c336e73f"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://stamp.build/assets/brand/stamp-glyph-dark.d907ffcadb44.svg"><img
src="https://stamp.build/assets/brand/stamp-glyph-light.58a2c10ed108.svg"
width="13" height="12" align="absmiddle" alt=""></picture> View
→</a></sup>

---
<!-- /stamp:review:v1 -->

OpenCode 2.4.0 made provider catalog reads return while plugins are
still loading. The previous one-shot skill reader could omit home and
project skills and report a complete catalog before a configured plugin
failed. The November 24 scheduled run reproduced both failures on Linux,
macOS and Windows. [Scheduled
run](https://github.com/botiverse/oar/actions/runs/45341232470)

The v2 skill reader now starts a server only on 2.2.7 through 2.3.x.
From 2.4.0, including unverified future majors, it returns
`version_unsupported` with the supplied or detected installed version.
It omits `requiredVersion`. The older v2 refusal still names 2.2.7 as
its minimum. The v2 CI pin is 2.2.7.

Provider auth remains available. Its initial plugin and integration
reads can precede package activation, so a late integration can be
missing from the cached login menu. On both 2.4.0 and 2.4.1, releasing a
synthetic package added the 335th integration to the running server. A
newly opened facade listed it. The experiment also records release
ancestry, directory selection, time-stamped catalog reads and the public
event stream. It documents the native signal and controls required to
reopen the skill gate. [Upstream
change](anomalyco/opencode#63814) · [Existing
CLI issue](anomalyco/opencode#63221)

Linux native validation covered 1.19.5, 2.2.7, 2.3.2, 2.4.0 and 2.4.1.
Both supported v2 binaries discovered all six skill roots, reported the
broken plugin as partial and released their listener and process. On
2.4.0 and 2.4.1, the four vendor cases observed zero process or listener
starts.

The local `CI=1 pnpm run check` passed, including 5,650 unit tests and
19 mock sea-trial cases. The native vendor runs passed 22 applicable
cases across the five versions. Three HTTP-only cases skip on v1.

Co-authored-by: Otter <[email protected]>
Co-authored-by: xxchan <[email protected]>
@saucy-tech saucy-tech mentioned this pull request Nov 25, 2026
Retry a dictation rewrite when OpenCode briefly returns ModelNotFoundError on startup anomalyco/hex#2849
Closed
flexiondotorg added a commit to wimpysworld/nix-config that referenced this pull request Nov 26, 2026
@flexiondotorg
fix(opencode): wait for startup settlement in launcher tests
75bb8a7
OpenCode 2.4+ removed the startup plugin-activation barrier from /api/model (anomalyco/opencode#63814, tracked in #66110), so an immediate query returns an empty catalogue before background activation settles.

Poll /api/model and /api/plugin up to a 10-second deadline in launcher.test.ts before running the existing model, agent, plugin, and permission assertions.
@fro-bot fro-bot mentioned this pull request Nov 27, 2026
Daily Fro Bot Report — 2026-11-27 (UTC) marcusrbrown/systematic#1540
Closed
@scottames-github-bot scottames-github-bot Bot mentioned this pull request Nov 27, 2026
chore(deps): update ⬆️ mise-packages scottames/dots#1181
Merged
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@opencodejr opencodejr[bot] opencodejr[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rekram1-node @amr-karam
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.