[PR #3447] opentui: add toast & port CLI flags (-c, -s, -m --agent) #10649

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

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

State: closed
Merged: Yes


Implements:

  • --continue option
  • --session option
  • --model option
  • --agent option
  • A toast component (needed for proper and informative error-handling). See screenshots from https://github.com/sst/opencode/pull/3425
  • Validation of model and agent (side effect: fixes a crash when you TAB-cycle through agents and happen to pick one with a nonexistent model)
  • Error toast in case the session can't be shared

Closes #3372.

@rekram1-node With this PR, all the options except --prompt are implemented - decided to wait on that one because of the opentui-textarea branch.

Test matrix for the --model and --agent options:

  • bun dev
  • bun dev --agent existing
  • bun dev --agent nonexistent # warning toast
  • bun dev --agent existing-with-wrong-model # warning toast
  • bun dev --model existing
  • bun dev --model existing --agent existing
  • bun dev --model existing --agent nonexistent # warning toast
  • bun dev --model existing --agent existing-with-wrong-model # warning toast
  • bun dev --model nonexistent # warning toast
  • bun dev --model nonexistent --agent existing # warning toast
  • bun dev --model nonexistent --agent nonexistent # warning toast
  • bun dev --model nonexistent --agent existing-with-wrong-model # warning toast
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/3447 **State:** closed **Merged:** Yes --- Implements: - `--continue` option - `--session` option - `--model` option - `--agent` option - A toast component (needed for proper and informative error-handling). See screenshots from https://github.com/sst/opencode/pull/3425 - Validation of model and agent (side effect: fixes a crash when you TAB-cycle through agents and happen to pick one with a nonexistent model) - Error toast in case the session can't be shared Closes #3372. @rekram1-node With this PR, all the options except `--prompt` are implemented - decided to wait on that one because of the `opentui-textarea` branch. Test matrix for the `--model` and `--agent` options: - [x] `bun dev` - [x] `bun dev --agent existing` - [x] `bun dev --agent nonexistent # warning toast` - [x] `bun dev --agent existing-with-wrong-model # warning toast` - [x] `bun dev --model existing` - [x] `bun dev --model existing --agent existing` - [x] `bun dev --model existing --agent nonexistent # warning toast` - [x] `bun dev --model existing --agent existing-with-wrong-model # warning toast` - [x] `bun dev --model nonexistent # warning toast` - [x] `bun dev --model nonexistent --agent existing # warning toast` - [x] `bun dev --model nonexistent --agent nonexistent # warning toast` - [x] `bun dev --model nonexistent --agent existing-with-wrong-model # warning toast`
yindo added the pull-request label 2026-02-16 18:15:22 -05:00
yindo closed this issue 2026-02-16 18:15:22 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10649