Skip to content

fix(opencode): agent variant configuration from opencode.json(c) not considered#28709

Open
Arjith8 wants to merge 7 commits into
anomalyco:devfrom
Arjith8:fix/agent-configuration-from-opencode-json-not-considered
Open

fix(opencode): agent variant configuration from opencode.json(c) not considered#28709
Arjith8 wants to merge 7 commits into
anomalyco:devfrom
Arjith8:fix/agent-configuration-from-opencode-json-not-considered

Conversation

@Arjith8

@Arjith8 Arjith8 commented May 21, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #27790
Closes #28803
Fixes #27790

Type of change

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

What does this PR do?

The PR fixes the bug where agent config variant mentioned in opencode json isnt considered only the most recent model variant is used. This is wrong behaviour with respect to the expected behaviour from https://opencode.ai/config.json check AgentConfig -> properties -> variant -> description. I could have sworn I had seen this in docs too, no idea why I cant seem to find it rn

How did you verify your code works?

I have attached recording for the same below

Screenshots / recordings

output.mp4

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@Arjith8 Arjith8 marked this pull request as ready for review May 21, 2026 19:48
@Arjith8

Arjith8 commented May 21, 2026

Copy link
Copy Markdown
Author

There were some type issues unrelated to my change so i did use --no-verify flag when pushing, also this should fix #25026 as well

@Arjith8 Arjith8 changed the title fix(opencode): agent configuration from opencode.json(c) not considered fix(opencode): agent variant configuration from opencode.json(c) not considered May 21, 2026
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.

Agent variant in config silently ignored when session model is locked Same-model agents do not preserve agent-local variant at runtime

1 participant