[PR #7340] feat: add prompt and attach options to other commands in cli #12356

Open
opened 2026-02-16 18:17:16 -05:00 by yindo · 0 comments
Owner

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

State: open
Merged: No


Adds the --prompt option to the attach, acp, web and serve commands (where it starts a session)
Adds an --attach option similar to the attach command to the acp, web and server commands (where it proxies the remote server)
Optionally when attaching to a server, instead of starting a new session, allow resuming an existing one via session URL
Also added --session option to the acp since the logic was already there for --attach

All tested manually (ACP with Zed) and added some tests. This allows a us to run the actual server in an isolated sandbox (only proxying out the server, optionally with initial prompt) and then proxy it forward on a secondary server (with correct cors options). We can then attach opencode cli or ACP clients.

Closes #8890

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7340 **State:** open **Merged:** No --- Adds the --prompt option to the attach, acp, web and serve commands (where it starts a session) Adds an --attach option similar to the attach command to the acp, web and server commands (where it proxies the remote server) Optionally when attaching to a server, instead of starting a new session, allow resuming an existing one via session URL Also added `--session` option to the acp since the logic was already there for `--attach` All tested manually (ACP with Zed) and added some tests. This allows a us to run the actual server in an isolated sandbox (only proxying out the server, optionally with initial prompt) and then proxy it forward on a secondary server (with correct cors options). We can then attach opencode cli or ACP clients. Closes #8890
yindo added the pull-request label 2026-02-16 18:17:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12356