Skip to content

fix: --model flag being ignored in TUI mode#4147

Merged
rekram1-node merged 1 commit intoanomalyco:devfrom
lenstr:fix-model-flag-tui
Nov 10, 2025
Merged

fix: --model flag being ignored in TUI mode#4147
rekram1-node merged 1 commit intoanomalyco:devfrom
lenstr:fix-model-flag-tui

Conversation

@lenstr
Copy link
Copy Markdown
Contributor

@lenstr lenstr commented Nov 9, 2025

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 4bb7ea9 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.

@lenstr lenstr changed the title Fix --model flag being ignored in TUI mode fix: --model flag being ignored in TUI mode Nov 9, 2025
@rekram1-node rekram1-node merged commit bdaa0e8 into anomalyco:dev Nov 10, 2025
3 checks passed
@lenstr lenstr deleted the fix-model-flag-tui branch November 10, 2025 06:55
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 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.

2 participants