Repository navigation
feat(opencode-plugin): auto-discover models while running + force sync - #8101
Merged
diegosouzapw merged 2 commits intoJul 24, 2026
Conversation
Contributor
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
Author
|
Tracking issue: #8106 This PR implements Pi-parity live model discovery for OpenCode:
No credentials or host-specific secrets are included in the diff (examples only). |
Closed
5 tasks
RaviTharuma
force-pushed
the
pr/opencode-auto-model-discovery
branch
3 times, most recently
from
July 22, 2026 19:45
20cab05 to
da47eeb
Compare
RaviTharuma
marked this pull request as draft
July 23, 2026 08:23
RaviTharuma
marked this pull request as ready for review
July 23, 2026 08:23
RaviTharuma
marked this pull request as draft
July 23, 2026 12:42
RaviTharuma
marked this pull request as ready for review
July 23, 2026 12:42
RaviTharuma
marked this pull request as draft
July 23, 2026 13:18
RaviTharuma
marked this pull request as ready for review
July 23, 2026 13:18
RaviTharuma
marked this pull request as draft
July 23, 2026 13:18
RaviTharuma
marked this pull request as ready for review
July 23, 2026 13:18
RaviTharuma
marked this pull request as draft
July 23, 2026 13:32
RaviTharuma
marked this pull request as ready for review
July 23, 2026 13:32
Add Pi-parity discovery for OpenCode: - autoSyncIntervalMs background refresh (default 5m, min 60s, 0=off) - omniroute_sync_models tool to force cache invalidate + /v1/models refetch - /omni-sync and /omni-autosync command templates (OpenCode has no slash API)
Document Pi-parity catalog refresh for OpenCode: - autoSyncIntervalMs background discovery (default 5m) - omniroute_sync_models force-refresh tool - /omni-sync and /omni-autosync command templates
diegosouzapw
force-pushed
the
pr/opencode-auto-model-discovery
branch
from
July 23, 2026 23:19
dbc3b0c to
7d30a19
Compare
diegosouzapw
merged commit Jul 24, 2026
4e85e3d
into
cheaper-inference:release/v3.8.49
5 checks passed
Collaborator
|
Merged into |
Merged
HouMinXi
pushed a commit
to HouMinXi/OmniRoute
that referenced
this pull request
Aug 2, 2026
cheaper-inference#8101) * feat(opencode-plugin): auto-discover models while running + force sync Add Pi-parity discovery for OpenCode: - autoSyncIntervalMs background refresh (default 5m, min 60s, 0=off) - omniroute_sync_models tool to force cache invalidate + /v1/models refetch - /omni-sync and /omni-autosync command templates (OpenCode has no slash API) * docs(opencode-plugin): document auto model discovery + /omni-sync Document Pi-parity catalog refresh for OpenCode: - autoSyncIntervalMs background discovery (default 5m) - omniroute_sync_models force-refresh tool - /omni-sync and /omni-autosync command templates --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
cheaper-inference#8101) * feat(opencode-plugin): auto-discover models while running + force sync Add Pi-parity discovery for OpenCode: - autoSyncIntervalMs background refresh (default 5m, min 60s, 0=off) - omniroute_sync_models tool to force cache invalidate + /v1/models refetch - /omni-sync and /omni-autosync command templates (OpenCode has no slash API) * docs(opencode-plugin): document auto model discovery + /omni-sync Document Pi-parity catalog refresh for OpenCode: - autoSyncIntervalMs background discovery (default 5m) - omniroute_sync_models force-refresh tool - /omni-sync and /omni-autosync command templates --------- Co-authored-by: Ravi Tharuma <RaviTharuma@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds Pi-parity live model discovery to
@omniroute/opencode-pluginso OpenCode picks up new OmniRoute models while the harness is running, and can force-refresh on demand.Why
OpenCode previously only re-fetched the catalog on demand via
modelCacheTtlafter a provider/models hook. New models added in OmniRoute while a long-running OpenCode session was open could stay invisible until restart/TTL expiry + next hook. Pi already supports/omni sync+ background discovery; OpenCode users need the same.What changed
autoSyncIntervalMs(default300000/ 5 min, min60000,0= off): background timer invalidates cache and re-fetchesGET /v1/models(plus combos/enrichment when enabled) while OpenCode is running.omniroute_sync_modelstool: force cache invalidate + refetch (OpenCode equivalent of Pi/omni sync)./omni-sync→ asks the agent to callomniroute_sync_models/omni-autosync→ report current auto-sync / TTL status0.2.0→0.2.1.Config example
{ "plugin": [ [ "@omniroute/opencode-plugin", { "providerId": "omniroute", "baseURL": "https://or.example.com", "autoSyncIntervalMs": 300000 } ] ] }Notes
modelCacheTtlbehavior is unchanged.release/v3.8.49(includes management read-token plugin work from fix(opencode-plugin): support separate management read token #7885).Test plan
cd @omniroute/opencode-plugin && npm test(281 pass, 0 fail)npm run build(ESM + DTS success)tests/auto-sync.test.ts(10 pass) covering sanitize/default/clamp/0disableautoSyncIntervalMs, confirm it appears without restart/omni-sync(or ask agent to callomniroute_sync_models) and confirm immediate catalog refreshautoSyncIntervalMs: 0and confirm no background polling (TTL still works)Closes #8106