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(opencode): bump pin to 1.17.3 to recover OpenRouter reasoning models by wangyuyan-agent · Pull Request #1083 · openabdev/openab

Conversation

@wangyuyan-agent

@wangyuyan-agent wangyuyan-agent commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Bump the Dockerfile.opencode pin from 1.16.2 to 1.17.3 and document
the minimum version required for OpenRouter reasoning models (e.g.
openrouter/google/gemini-3-flash).

Discord Discussion URL: https://discord.com/channels/1491295327620169908/1491365157010542652/1514522869768654868

Root cause

OpenAB consumes opencode's ACP server via stdio JSON-RPC and renders text solely from sessionUpdate: agent_message_chunk notifications (src/acp/protocol.rs::classify_notification). On opencode-ai 1.16.2 — and, based on changelog inspection, the entire 1.16.x line — the ACP server fails to emit agent_message_chunk for OpenRouter reasoning models. The assistant text part is correctly written into opencode's internal session storage (visible via opencode export <session_id>), but never reaches OpenAB. OpenAB's recv loop sees only usage_update followed by a stopReason: end_turn response, runs through compose_display, finds an empty buffer, and falls back to _(no response)_ (src/adapter.rs:660-665).

The upstream fix is sst/opencode#30332 ("fix(opencode): generate reasoning variants for all OpenRouter models"), released in opencode 1.17.0. We pin to the more conservative 1.17.3 because that is the version verified end-to-end by a community reporter (Discord thread linked above).

What this PR does

  • Dockerfile.opencode: OPENCODE_VERSION 1.16.2 → 1.17.3, with a comment block explaining the ACP regression so the next person bumping the version knows why we will not regress below 1.17.0.
  • docs/opencode.md: append a "Minimum version for OpenRouter reasoning models" bullet to the existing Notes section, linking fix(opencode): generate reasoning variants for all OpenRouter models. anomalyco/opencode#30332.

No Rust source touched. No behavior change inside OpenAB itself — this is a pure dependency floor lift plus documentation.

Verification

  • Reporter confirmed end-to-end recovery on openrouter/google/gemini-3-flash after upgrading opencode 1.16.2 → 1.17.3:
    • debug log now shows {"sessionUpdate":"agent_message_chunk","content":{"type":"text","text":"..."}} arriving before the usage_update and the session/prompt response, in the order the OpenAB parser expects.
  • npm view [email protected] version resolves cleanly on the public registry.
  • No Rust source modified, so cargo build/cargo test are unaffected. The Docker builder stage will exercise the new pin via npm install -g [email protected] in CI's Dockerfile.opencode runtime stage.
  • docs/opencode.md markdown renders correctly in GitHub preview; fix(opencode): generate reasoning variants for all OpenRouter models. anomalyco/opencode#30332 URL resolves to the merged upstream PR.

Sorry, something went wrong.

Uh oh!

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

All reactions
@wangyuyan-agent
fix(opencode): bump pin to 1.17.3 to recover OpenRouter reasoning models
5fd87e7
OpenCode 1.16.x ships an ACP regression where OpenRouter reasoning models
(e.g. openrouter/google/gemini-3-flash) never emit a final
`agent_message_chunk` over ACP. The assistant text part is correctly
written into opencode's internal session storage (visible via
`opencode export <session_id>`) but the ACP server only emits
`usage_update` followed by `stopReason: end_turn`. From OpenAB's side
this surfaces as `(no response)` because src/adapter.rs falls back to
that string when no agent_message_chunk arrived during the prompt
window.

The upstream fix landed in opencode 1.17.0 as anomalyco/opencode#30332
("generate reasoning variants for all OpenRouter models"). 1.17.3 is
the latest 1.17.x verified end-to-end by a community reporter.

- Dockerfile.opencode: OPENCODE_VERSION 1.16.2 -> 1.17.3, with an inline
  comment block capturing the regression so the next bump preserves the
  >= 1.17.0 floor.
- docs/opencode.md: append a 'Minimum version for OpenRouter reasoning
  models' bullet to the Notes section, linking anomalyco/opencode#30332.

No Rust source touched; no behavior change in OpenAB itself.
@wangyuyan-agent
wangyuyan-agent requested a review from thepagent as a code owner June 11, 2026 07:23
@github-actions github-actions Bot added the pending-maintainer label Jun 11, 2026
@thepagent
thepagent enabled auto-merge (squash) June 12, 2026 04:37
thepagent
thepagent approved these changes Jun 12, 2026
View reviewed changes
@thepagent
thepagent merged commit 26553e4 into openabdev:main Jun 12, 2026
17 checks passed

Uh oh!

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

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

Reviewers

@thepagent thepagent thepagent approved these changes

Uh oh!

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

Assignees

No one assigned

Labels

pending-maintainer

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

@wangyuyan-agent @thepagent
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.