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(ai): pass effort and tool update support through routes built on shared protocols by rekram1-node · Pull Request #66721 · anomalyco/opencode

Conversation

@rekram1-node

@rekram1-node rekram1-node commented Nov 27, 2026

Copy link
Copy Markdown
Member

Issue for this PR

Follow-up to #66648 and #66717.

Type of change

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

What does this PR do?

Seven routes build their own protocol on top of the Anthropic Messages or Open Responses request body, but copied only body and stream. The route-level settings that decide whether effort changes are sent in place (supportsEffortUpdates) and which tool changes are (toolUpdates) were left behind, so these routes always folded effort changes into the request's top-level effort, breaking the prompt cache, even for a model marked as supporting them.

Route Built on Now passes through
alibaba-messages, meta-messages, zai-coding-messages Anthropic Messages supportsEffortUpdates, toolUpdates
alibaba-responses, meta-responses, xai-responses, openrouter-responses Open Responses supportsEffortUpdates (Open Responses has no toolUpdates)

Nothing changes for any model today. The Open Responses check is opt-in (capabilities.reasoning.updates), and the Anthropic one only falls back to Claude model IDs, which these hosts don't serve; toolUpdates only acts on a model's tools.updates, which core doesn't set. So each route starts sending effort changes in place only once models.dev marks a model's API with effort_updates = true after someone tests it (for example OpenRouter's GPT-6 models). Routes that use the shared protocols directly (Azure, Cloudflare AI Gateway, Vercel, Vertex, Bedrock Mantle, MiniMax, Moonshot, DigitalOcean, Venice, zai-coding-responses, Copilot) already had them.

How did you verify your code works?

  • New tests in packages/ai/test/effort-updates.test.ts: for each wrapping route, a model that opts in gets the in-place update (a per-turn system message on the Messages routes, a configuration_update item on the Responses routes) and one that doesn't gets none. Without the source change, the 7 routes fail; zai-coding-responses, which already used the shared protocol, passes either way. A guard test lists the wrapping routes so a new one gets noticed.
  • Full packages/ai suite and bun run check pass.

Screenshots / recordings

Not a UI change.

Checklist

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
fix(ai): pass effort and tool update support through routes built on …
9b5f82e
…shared protocols
opencodejr[bot]
opencodejr Bot reviewed Nov 27, 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.

Looks good. These routes now pass through the same route-level supportsEffortUpdates and toolUpdates settings that Vertex Messages and the gateway protocol already pass. Both settings are read from request.model.route, so they take effect directly on these routes. I ran the new tests against the base: the 7 wrapping routes fail there and pass with this change. The full packages/ai suite passes, and tsc --noEmit passes for both tsconfigs.

Public API is unchanged: the change is internal to the packages/ai route protocols, with no config, SDK, HTTP or plugin surface touched.

No concerns.

Sorry, something went wrong.

Uh oh!

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

All reactions
@rekram1-node
rekram1-node enabled auto-merge (squash) November 27, 2026 04:59
@rekram1-node
rekram1-node merged commit 08cc196 into dev Nov 27, 2026
11 checks passed

Uh oh!

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

@rekram1-node
rekram1-node deleted the wrapper-route-updates branch November 27, 2026 05:02
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.

1 participant

@rekram1-node
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.