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(app): improve agent selection logic passing in configured models and variants correctly by OpeOginni · Pull Request #16072 · anomalyco/opencode

Conversation

@OpeOginni

@OpeOginni OpeOginni commented Mar 5, 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 #16071

Type of change

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

What does this PR do?

It sets the configured model and variant of an agent to always be the default, when cycled and even after temporary changes it rests to the default.

How did you verify your code works?

Tested on my local machine with these configs

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {

  },
  "agent": {
    "build": {
      "model": "opencode/gpt-5.1-codex",
      "variant": "medium"
    },
    "plan": {
      "model": "opencode/gpt-5.3-codex",
      "variant": "high"
    }
  }
}

Also have an Tutor agent in an md file with model opencode/gpt-5.3-codex and variant low

Screenshots / recordings

Screen.Recording.2026-03-05.at.01.10.23.mov

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
OpeOginni added 2 commits March 5, 2026 01:21
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
6b4c8b4
…and variants correctly
@OpeOginni
fix(app): proper formating
47247e8
@OpeOginni
OpeOginni requested a review from adamdotdevin as a code owner March 5, 2026 00:24
@github-actions github-actions Bot added the contributor label Mar 5, 2026
@github-actions

github-actions Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

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

Based on my search results, no duplicate PRs were found that are currently addressing the same specific issue as PR #16072.

The search returned some related PRs about agent features and variant support (like PR #7156, #11377, #12567), but these are older feature additions for variant support rather than duplicate fixes for the current agent selection logic issue.

The PR #16072 appears to be the only one specifically addressing the agent selection logic fix described in issue #16071.

No duplicate PRs found

All reactions

Sorry, something went wrong.

Uh oh!

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

OpeOginni and others added 2 commits March 5, 2026 01:26
@OpeOginni
Merge branch 'dev' into fix/desktop-agent-config-variant
2208cad
@OpeOginni
fix(app): prevent last message model/varient from overwritting set ag…
e454dbe
…ent config
@adamdotdevin
adamdotdevin merged commit a60e715 into anomalyco:dev Mar 5, 2026
11 checks passed

Uh oh!

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

demostanis pushed a commit to demostanis/opencode that referenced this pull request Mar 19, 2026
@OpeOginni @demostanis
fix(app): improve agent selection logic passing in configured models …
37eebe5
…and variants correctly (anomalyco#16072)
@coleleavitt coleleavitt mentioned this pull request Apr 21, 2026
fix/memory 20695 coleleavitt/opencode#5
Merged
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request May 5, 2026
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
5ad3df4
…and variants correctly (anomalyco#16072)
AIALRA-0 pushed a commit to AIALRA-0/opencode-turn-engine that referenced this pull request Jun 10, 2026
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
fd3a1d1
…and variants correctly (anomalyco#16072)
Rwanbt pushed a commit to Rwanbt/unifia that referenced this pull request Jun 14, 2026
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
f50f6a0
…and variants correctly (anomalyco#16072)
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
1e736fd
…and variants correctly (#16072)
meSingh pushed a commit to meSingh/opencode that referenced this pull request Sep 6, 2026
@OpeOginni
fix(app): improve agent selection logic passing in configured models …
4830ad7
…and variants correctly (anomalyco#16072)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@adamdotdevin adamdotdevin Awaiting requested review from adamdotdevin

Uh oh!

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

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Non deterministic behaviour of variants passed into agents in the opencode.json config (Desktop)

Uh oh!

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

2 participants

@OpeOginni @adamdotdevin
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.