[FEATURE]: opentui: Replace subcommands attach, spawn, thread with flags #2382

Open
opened 2026-02-16 17:35:24 -05:00 by yindo · 1 comment
Owner

Originally created by @veracioux on GitHub (Oct 31, 2025).

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

In the current design, the spawn and attach subcommands are lacking in options compared to the main opencode command (currently defined in thread.ts). I think it would make more sense to have a single command with all those variants exposed as CLI flag(s).

I personally use all those variants during development depending on the use case, and I would like to have all the options available for each of them.

I am aware that the attach command is also in mainline OC. We can keep that command for backward compat.

The following issue would be addressed by this: https://github.com/sst/opencode/issues/3188
We can implement it only in the opentui branch, since opentui should become mainline soon.

I volunteer to implement.

Originally created by @veracioux on GitHub (Oct 31, 2025). ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request In the current design, the `spawn` and `attach` subcommands are lacking in options compared to the main `opencode` command (currently defined in `thread.ts`). I think it would make more sense to have a single command with all those variants exposed as CLI flag(s). I personally use all those variants during development depending on the use case, and I would like to have all the options available for each of them. I am aware that the `attach` command is also in mainline OC. We can keep that command for backward compat. The following issue would be addressed by this: https://github.com/sst/opencode/issues/3188 We can implement it only in the opentui branch, since opentui should become mainline soon. I volunteer to implement.
yindo added the discussion label 2026-02-16 17:35:24 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2025):

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

  • #3188: Requests adding --attach flag to 'opencode run' command - this is specifically mentioned in your issue description as being addressed by your proposal, so there may be overlap in the solution space

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

@github-actions[bot] commented on GitHub (Oct 31, 2025): This issue might be a duplicate of existing issues. Please check: - #3188: Requests adding --attach flag to 'opencode run' command - this is specifically mentioned in your issue description as being addressed by your proposal, so there may be overlap in the solution space Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2382