Chosen model is not used for command #1543

Closed
opened 2026-02-16 17:31:27 -05:00 by yindo · 3 comments
Owner

Originally created by @art-shen on GitHub (Aug 30, 2025).

Originally assigned to: @rekram1-node on GitHub.

  1. Open the opencode
  2. Switch model to another one
  3. Run the custom command (e.g., with an argument)

Expected result

Chosen model used for running the command

Actual result

The previous model is still used, the new one is ignored


This behavior is super frustrating and really complicates the testing/comparison of different models

Originally created by @art-shen on GitHub (Aug 30, 2025). Originally assigned to: @rekram1-node on GitHub. 1. Open the opencode 2. Switch model to another one 3. Run the custom command (e.g., with an argument) ## Expected result Chosen model used for running the command ## Actual result ❌ The previous model is still used, the new one is ignored --- _This behavior is super frustrating and really complicates the testing/comparison of different models_
yindo closed this issue 2026-02-16 17:31:27 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 30, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #736: opencode run command uses incorrect model after /models selection - Reports that after selecting a model in TUI with /models, the opencode run command uses a different model than selected
  • #1433: does not remember the last chosen model and ignores the model in opencode.json - Reports model selection not persisting and ignoring configured models in opencode.json
  • #1661: Model switch automatically when changing the mode - Reports model switching behavior when changing between PLAN and BUILD modes

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Aug 30, 2025): This issue might be a duplicate of existing issues. Please check: - #736: `opencode run` command uses incorrect model after `/models` selection - Reports that after selecting a model in TUI with `/models`, the `opencode run` command uses a different model than selected - #1433: does not remember the last chosen model and ignores the model in opencode.json - Reports model selection not persisting and ignoring configured models in opencode.json - #1661: Model switch automatically when changing the mode - Reports model switching behavior when changing between PLAN and BUILD modes Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Aug 30, 2025):

definitely unexpected behavior, will fix

@rekram1-node commented on GitHub (Aug 30, 2025): definitely unexpected behavior, will fix
Author
Owner

@rekram1-node commented on GitHub (Aug 30, 2025):

will be fixed in next release ty for pointing this out

@rekram1-node commented on GitHub (Aug 30, 2025): will be fixed in next release ty for pointing this out
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1543