Skip to content

fix(plugin): keep Fast mode for live-synced OpenAI models - #6120

Merged
benjaminshafii merged 1 commit into
devfrom
fix/live-sync-fast-mode
Oct 17, 2026
Merged

benjaminshafii merged 1 commit into
devfrom
fix/live-sync-fast-mode

Conversation

@benjaminshafii

Copy link
Copy Markdown
Member

What is this about?

Desktop on OpenCode v2 with live provider sync: Fast mode is offered again for organization OpenAI models that support it.

What problem does it solve?

After live provider sync took over the organization's models, the Fast mode toggle disappeared from the model picker for those models.

What was the situation before?

Picking a supported organization OpenAI model showed Effort but no Fast mode row; with live sync off it was there.

How is this implemented?

  • packages/opencode-plugin/src/providers.ts: toModelInfo now appends Fast variants via a new fastVariants, next to the existing effort variants.
  • It mirrors packages/types/src/cloud-model-fast.ts (used by the managed engine config this path replaced): the same variant ids (__openwork_fast_v1/default and one per effort) and the same conditions — provider package @ai-sdk/openai, the model not overriding it, an exact service_tier: "priority" fast mode, and no Fast variants already declared.
  • Mirrored rather than imported because the plugin also ships alone to npm with no runtime dependencies.

What else changed?

none

Release note

Fast mode is available again for supported organization models when live model updates are on.

Evidence

No E2E. packages/opencode-plugin/src/providers.test.ts — before: the new test fails; after: an OpenAI model with priority mode gets the Fast variants, and models without it, non-OpenAI providers or a different service tier do not. Plugin suite 132/132, apps/server/test/live-provider-sync.test.ts 12/12.

Live provider sync builds v2 models in the bundled plugin, which only
translated a catalog model's reasoning efforts. The managed engine config it
replaced also turns an OpenAI catalog model's priority-processing mode into
Fast variants (default plus one per effort), so Fast mode disappeared from the
picker for those models once live sync took over.

Mirror the shared rule (packages/types cloud-model-fast): same variant ids,
same conditions (provider @ai-sdk/openai, unchanged model package, exact
service_tier priority mode, no catalog-declared Fast variants).

Signed-off-by: Benjamin Shafii <ben@prologe.io>
@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

4 Skipped Deployments
Project Deployment Actions Updated
openwork-app Skipped Skipped Oct 17, 2026 4:02pm UTC
openwork-den Skipped Skipped Oct 17, 2026 4:02pm UTC
openwork-diagnostics Skipped Skipped Oct 17, 2026 4:02pm UTC
openwork-landing Skipped Skipped v0 Oct 17, 2026 4:02pm UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – openwork-den October 17, 2026 16:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-app October 17, 2026 16:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-diagnostics October 17, 2026 16:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – openwork-landing October 17, 2026 16:02 Inactive
@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

OpenWork evidence

Status Commit Preview Updated
🟢 Ready · evidence passed 7134e65 Open preview 2026-10-17 16:10:24 UTC

Run details · Open the preview to inspect evidence and sandbox options.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warden clearance. Complete security and confidentiality review of 7134e65e7f0416f5844e59452ea35e7a02ebb119 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run

@diff-warden

diff-warden Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Warden: approved

No high or medium security findings and no confidentiality findings.

Reviewed 7134e65e7f04 · Warden run · Updates after every Warden run.

@benjaminshafii
benjaminshafii merged commit b34e573 into dev Oct 17, 2026
44 checks passed

This branch was successfully deployed

1 active and 5 inactive deployments
Evidence / PR 6120 — 7134e65e Deployed Oct 17, 2026 by github-actions[bot]
Preview – openwork-den — 7134e65e Deployed Oct 17, 2026 by vercel[bot]
Preview – openwork-app — 7134e65e Deployed Oct 17, 2026 by vercel[bot]
Preview – openwork-diagnostics — 7134e65e Deployed Oct 17, 2026 by vercel[bot]
Preview – openwork-landing — 7134e65e Deployed Oct 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant