Skip to content

Conversation

@Killusions
Copy link

@Killusions Killusions commented Jan 8, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 8, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@Killusions Killusions force-pushed the feat/add-attach-option-to-other-commands-in-cli branch 2 times, most recently from 10a5591 to 582d395 Compare January 12, 2026 00:07
@github-actions
Copy link
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@Killusions Killusions force-pushed the feat/add-attach-option-to-other-commands-in-cli branch 4 times, most recently from 33f61ba to d65a3a9 Compare January 16, 2026 13:51
@Killusions
Copy link
Author

Referenced an issue

Adds the --prompt option to the attach, acp, web and serve commands (where it starts a session)

Close anomalyco#8890
Adds an --attach option similar to the attach command to the acp, web and server commands (where it proxies the remote server)
When attaching to a server, instead of starting a new session, allow resuming an existing one via URL (except for acp)

Close anomalyco#8890
@Killusions Killusions force-pushed the feat/add-attach-option-to-other-commands-in-cli branch from e963f9a to b179b8a Compare January 17, 2026 14:50
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.

[FEATURE]: Better support remote/server-client use-cases from the CLI

1 participant