Skip to content

refactor(provider): align reasoning transform with upstream#269

Open
nicko-ai wants to merge 3 commits into
devfrom
codex/provider-reasoning-boundary
Open

refactor(provider): align reasoning transform with upstream#269
nicko-ai wants to merge 3 commits into
devfrom
codex/provider-reasoning-boundary

Conversation

@nicko-ai

@nicko-ai nicko-ai commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Issue for this PR

Not required for refactor PRs.

Type of change

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

What does this PR do?

Aligns generic provider reasoning transforms and tests with current upstream behavior, while keeping the small Anthropic tool-ordering guard still covered by the fork's LLM test. It also removes a generic LLM reasoning merge override that was fork drift after the provider transform alignment.

How did you verify your code works?

  • npx --yes bun@1.3.13 test --timeout 30000 test/provider/transform.test.ts test/session/llm.test.ts from packages/opencode
  • npx --yes bun@1.3.13 run typecheck from packages/opencode
  • pre-push hook ran bun turbo typecheck

Screenshots / recordings

Not applicable.

Checklist

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

- restore upstream provider transform behavior for generic reasoning handling

- keep fork import-path adaptation for generated model/provider IDs

- realign transform tests with upstream coverage available in this fork
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

nicko-ai added 2 commits June 12, 2026 00:53
- drop fork-only merge precedence for disabled reasoning options

- keep tested Anthropic tool ordering guard while provider transforms align upstream
Restore OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX while keeping the provider reasoning cleanup.

Add a focused startup regression test for the exported token maximum.
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