[PR #4147] fix: --model flag being ignored in TUI mode #10879

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

Original Pull Request: https://github.com/anomalyco/opencode/pull/4147

State: closed
Merged: Yes


Hey! Thanks for building opencode - I use it daily and rely on the --model flag quite a bit to switch between different models.

I noticed that the flag stopped working in TUI mode and tracked it down to commit 4bb7ea91 where the model parameter was accidentally omitted during the startup speed refactoring.

This PR adds back the missing model: args.model line to properly pass the model parameter to the TUI.

Changes:

  • Added model: args.model to the args object in packages/opencode/src/cli/cmd/tui/thread.ts

Tested locally and confirmed it now works as expected.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4147 **State:** closed **Merged:** Yes --- Hey! Thanks for building opencode - I use it daily and rely on the `--model` flag quite a bit to switch between different models. I noticed that the flag stopped working in TUI mode and tracked it down to commit 4bb7ea91 where the `model` parameter was accidentally omitted during the startup speed refactoring. This PR adds back the missing `model: args.model` line to properly pass the model parameter to the TUI. **Changes:** - Added `model: args.model` to the args object in `packages/opencode/src/cli/cmd/tui/thread.ts` Tested locally and confirmed it now works as expected.
yindo added the pull-request label 2026-02-16 18:15:38 -05:00
yindo closed this issue 2026-02-16 18:15:38 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10879