[PR #1648] [MERGED] fix: run command should use specified model from cli args if provided #10010

Closed
opened 2026-02-16 18:14:33 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1648
Author: @yihuikhuu
Created: 8/6/2025
Status: Merged
Merged: 8/6/2025
Merged by: @adamdotdevin

Base: devHead: fix-run-use-specified-model


📝 Commits (1)

  • 9bba9bc fix: run command should use specified model if provided

📊 Changes

1 file changed (+4 additions, -8 deletions)

View changed files

📝 packages/opencode/src/cli/cmd/run.ts (+4 -8)

📄 Description

fixes #1645

Currently the cli args are being overridden by the mode/default model as defined in the config. The cli args should take priority

(Note that opencode will print the specified model, but will actually run the mode/default model - you can see this in the session logs)


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1648 **Author:** [@yihuikhuu](https://github.com/yihuikhuu) **Created:** 8/6/2025 **Status:** ✅ Merged **Merged:** 8/6/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-run-use-specified-model` --- ### 📝 Commits (1) - [`9bba9bc`](https://github.com/anomalyco/opencode/commit/9bba9bc248ddce72297cb203d960104869ee1761) fix: run command should use specified model if provided ### 📊 Changes **1 file changed** (+4 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/cli/cmd/run.ts` (+4 -8) </details> ### 📄 Description fixes #1645 Currently the cli args are being overridden by the mode/default model as defined in the config. The cli args should take priority (Note that opencode will print the specified model, but will actually run the mode/default model - you can see this in the session logs) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:33 -05:00
yindo closed this issue 2026-02-16 18:14:33 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10010