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 — feat: add "reasoning" as interleaved field option for vLLM providers by delta9000 · Pull Request #30477 · anomalyco/opencode

Conversation

@delta9000

@delta9000 delta9000 commented Jun 2, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #19988

Type of change

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

What does this PR do?

Allows reasoning as a value for a model's interleaved.field, next to the existing reasoning_content and reasoning_details.

vLLM renamed the assistant reasoning field from reasoning_content to reasoning (≥0.16). On those versions vLLM's chat input parser reads message.reasoning and silently drops reasoning_content (vllm-project/vllm#38488).

How did you verify your code works?

  • Unit test: the config schema rejects field: "reasoning" before this change and accepts it after, and still rejects unknown values (enum stays closed).
  • Live on vLLM 0.20.0 / MiniMax-M2.7: reasoning sent as reasoning reaches the model, confirmed via log trace.

Screenshots / recordings

n/a — no 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.

klarkc, StLyn4, and bharatv007 reacted with heart emoji
All reactions
  • ❤️ 3 reactions
@github-actions github-actions Bot mentioned this pull request Jun 3, 2026
📊 AI CLI 工具社区动态日报 2026-06-03 zx0828/big_model_radar#83
Open
@delta9000
feat: add "reasoning" as interleaved field option for vLLM providers
d66dc90
Providers like vLLM use "reasoning" (not "reasoning_content" or
"reasoning_details") as the field name for interleaved reasoning content.
This adds it as a valid option in the schema, OpenAPI spec, and generated types.
@delta9000
delta9000 force-pushed the feat/reasoning-interleaved-field branch from 0a31616 to d66dc90 Compare June 3, 2026 03:10
delta9000 added 2 commits June 2, 2026 23:12
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
ca6eff6
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
194c33d
@github-actions github-actions Bot mentioned this pull request Jun 3, 2026
📊 AI CLI 工具社区动态日报 2026-06-03 litang9/big_model_radar#6
Open
delta9000 added 2 commits June 3, 2026 07:40
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
bf0b8a6
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
a9a16af
@klarkc

klarkc commented Jun 3, 2026

Copy link
Copy Markdown

Tested this PR with a self-hosted vLLM setup and it works nicely.

My setup:

  • OpenCode built from this PR via Nix
  • vLLM OpenAI-compatible /v1/chat/completions
  • Qwen3.6 35B A3B
  • --reasoning-parser qwen3
  • OpenCode config using:
{
  "interleaved": {
    "field": "reasoning"
  }
}
delta9000 and kennylbj reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

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

delta9000 added 4 commits June 3, 2026 09:39
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
dac6930
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
a0f3ed5
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
6444fa0
@delta9000
Merge branch 'dev' into feat/reasoning-interleaved-field
f651229
bharatv007
bharatv007 reviewed Jun 8, 2026
View reviewed changes

@bharatv007 bharatv007 left a comment

Copy link
Copy Markdown

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.

This seems relevant, any way to get this merged ASAP

Sorry, something went wrong.

Uh oh!

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

klarkc reacted with heart emoji
All reactions
  • ❤️ 1 reaction
@github-actions github-actions Bot mentioned this pull request Jun 9, 2026
📊 AI CLI 工具社区动态日报 2026-06-09 zx0828/big_model_radar#94
Open
@rekram1-node
Delete packages/opencode/test/provider/interleaved-reasoning-field.te…
ceea4f9
…st.ts
@rekram1-node
rekram1-node merged commit ab701d2 into anomalyco:dev Jun 9, 2026
6 of 8 checks passed

Uh oh!

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

shoootyou added a commit to shoootyou/opencode that referenced this pull request Jun 10, 2026
@shoootyou @rekram1-node
@opencode-agent @simonklee @Hona @neriousy @fwang @nexxeln @areyouok @remorses @MrMushrooooom @adamdotdevin @thdxr @jlongster @AnthonyMLau @Brendonovich @delta9000 @kommander @songchaow @yui-soul
chore: sync fork with upstream anomalyco/opencode (#4)
4e89d72
* test(core): cover skill directory output (anomalyco#31263)

* fix(opencode): avoid duplicate skill catalog (anomalyco#31269)

* chore(opencode): update MCP SDK to 1.29.0 (anomalyco#31268)

* chore: generate

* chore: update nix node_modules hashes

* run: make minimal mode more minimal (anomalyco#31227)

* chore: generate

* chore: update web and desktop code owners (anomalyco#31289)

* fix(desktop): few WSL bugs (anomalyco#31095)

* chore: generate

* fix(opencode): respect MCP server capabilities (anomalyco#31271)

* console: update email

* zen: fix

* fix(opencode): include acp pending tool input (anomalyco#31321)

* fix(lsp): resolve JDTLS root to topmost pom.xml in Java Maven multi-module projects (anomalyco#28761)

Co-authored-by: Shoubhit Dash <[email protected]>

* chore: generate

* fix(session): merge per-call tool rules into session permission (anomalyco#30529)

Co-authored-by: Simon Klee <[email protected]>

* docs(go): update MiniMax M3 pricing (anomalyco#31350)

* fix: speed up fff file search (anomalyco#31366)

* chore: generate

* fix(stats): show new for leaderboard deltas

* fix: stabilize fff file results (anomalyco#31369)

* chore: generate

* fix(core): restore npm proxy agent patch (anomalyco#31373)

* chore: update nix node_modules hashes

* chore: upgrade OpenTUI to v0.3.4 (anomalyco#31326)

* chore: update nix node_modules hashes

* fix(core): disable fff trace logs (anomalyco#31380)

* fix(session): avoid sticky prompt tool overrides (anomalyco#31394)

* fix(opencode): await run event loop (anomalyco#31389)

* refactor(core): replace legacy logger with Effect logging (anomalyco#31310)

* chore: generate

* fix(tui): trim select footer action highlight (anomalyco#31411)

* fix(opencode): support MiniMax M3 thinking toggle (anomalyco#31426)

* fix: adjust item id stripping to happen prior to request signing (anomalyco#31429)

* fix(opencode): generate reasoning variants for all OpenRouter models. (anomalyco#30332)

Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>

* feat(app): add draft tab support to tabs store (anomalyco#31343)

* chore: generate

* fix(opencode): paginate MCP catalogs (anomalyco#31442)

* fix(opencode): pass abort signal to MCP tool calls (anomalyco#31455)

* feat(app): draft prompt state (anomalyco#31452)

* chore: generate

* feat(app): tabs help button (anomalyco#31454)

* feat: add "reasoning" as interleaved field option for vLLM providers (anomalyco#30477)

Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>

* fix(app): clip rounded session panels (anomalyco#31462)

* core: fix idle CPU use in file logger (anomalyco#31478)

* docs: add uninstall troubleshooting steps (anomalyco#31424)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>

* leave a breadcrumb comment about batchWindow zero (anomalyco#31508)

* chore: stats -> data

* test(core): avoid Windows worker close race (anomalyco#31532)

* refactor(tui): centralize application exit (anomalyco#31524)

* chore: generate

* feat(opencode): configure Cohere North model (anomalyco#31536)

* refactor(core): consolidate references (anomalyco#31539)

* feat(tui): show project copy in session list (anomalyco#31421)

* chore: generate

* fix(stats): use data branding assets

* drop citation_options from cohere (anomalyco#31543)

* zen: add north mini code model

* fix(data): timestamp formatting

* fix(opencode): support Claude Fable reasoning (anomalyco#31546)

* fix(mcp): log actionable connection statuses (anomalyco#31544)

* refactor(core): simplify location filesystem (anomalyco#31545)

* chore: generate

* chore: update nix node_modules hashes

* fix(opencode): restore effect error logging (anomalyco#31551)

* chore: generate

* feat(opencode): add typed application layer graph (anomalyco#31531)

* zen: add claude fable 5

* chore: generate

* refactor(mcp): simplify service helpers (anomalyco#31549)

* feat: add X-Session-Id header for proxy cache routing affinity (anomalyco#31511)

* zen: update email

* fix(desktop): update Electron stack and panel layout (anomalyco#31571)

* chore: generate

* chore: update nix node_modules hashes

---------

Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Simon Klee <[email protected]>
Co-authored-by: Luke Parker <[email protected]>
Co-authored-by: Filip <[email protected]>
Co-authored-by: Frank <[email protected]>
Co-authored-by: Shoubhit Dash <[email protected]>
Co-authored-by: huangli <[email protected]>
Co-authored-by: Tommy D. Rossi <[email protected]>
Co-authored-by: Jack <[email protected]>
Co-authored-by: Adam <[email protected]>
Co-authored-by: Dax <[email protected]>
Co-authored-by: James Long <[email protected]>
Co-authored-by: Anthony Lau <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: Brendan Allan <[email protected]>
Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Sebastian <[email protected]>
Co-authored-by: Songchao Wang <[email protected]>
Co-authored-by: yui-soul <[email protected]>
isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
@delta9000 @rekram1-node
feat: add "reasoning" as interleaved field option for vLLM providers (a…
5c2cf64
…nomalyco#30477)

Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
leduyphuc1702 pushed a commit to leduyphuc1702/opencode-workflow that referenced this pull request Jun 16, 2026
@delta9000 @rekram1-node Phuc Le
feat: add "reasoning" as interleaved field option for vLLM providers (a…
8e0059a
…nomalyco#30477)

Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
(cherry picked from commit ab701d2)
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
@delta9000 @rekram1-node @BenGu3
feat: add "reasoning" as interleaved field option for vLLM providers (a…
4693acd
…nomalyco#30477)

Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@delta9000 @rekram1-node
feat: add "reasoning" as interleaved field option for vLLM providers …
8c59cb1
…(#30477)

Co-authored-by: Ben Sandbrook <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@bharatv007 bharatv007 bharatv007 left review comments
Reviewers whose approvals may not affect merge requirements

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.

[FEATURE]: Add reasoning as interleaved field option

Uh oh!

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

4 participants

@delta9000 @klarkc @bharatv007 @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.