Skip to content

Add OpenCode ACP agent support#458

Merged
vanzue merged 6 commits into
mainfrom
dev/vanzue/opencode-acp-support
Jul 21, 2026
Merged

Add OpenCode ACP agent support#458
vanzue merged 6 commits into
mainfrom
dev/vanzue/opencode-acp-support

Conversation

@vanzue

@vanzue vanzue commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add OpenCode as a built-in ACP and delegate agent
  • launch agent panes with opencode acp and interactive delegation tabs with opencode --prompt <prompt>
  • support protocol-based model selection, setup guidance, policy filtering, and telemetry
  • add the official OpenCode mark to the agent pane header

Validation

  • cargo test --target x86_64-pc-windows-msvc --manifest-path tools/wta/Cargo.toml (1115 passed)
  • cargo build --target x86_64-pc-windows-msvc --manifest-path tools/wta/Cargo.toml
  • cmd.exe /c "tools\razzle.cmd && bcz no_clean"
  • TerminalApp and CascadiaPackage bx builds
  • local MSIX deployment and OpenCode 1.17.18 launch
  • live ?<prompt> delegation verified to launch the interactive OpenCode TUI and keep the tab open
  • session
  • agent pane, auto fix works as expected

Limitations

  • OpenCode shell-session hooks and history discovery are not included

Fixes #460

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 20, 2026 14:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds OpenCode as a first-class agent option across the WTA (Rust) and Terminal (C++/XAML) surfaces, wiring up ACP hosting (opencode acp), delegate execution (opencode run), and the corresponding UI/telemetry/docs touchpoints.

Changes:

  • Extend the WTA agent registry and coordinator tests to recognize/launch OpenCode in ACP and delegate modes.
  • Update Terminal settings plumbing (agent command expansion + telemetry sanitization) to treat opencode as a built-in agent ID.
  • Add OpenCode branding (agent pane header mark + packaged SVG) and update README/FAQ to include OpenCode.

Reviewed changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tools/wta/src/main.rs Updates CLI documentation to include opencode and generalizes ACP model flag wording.
tools/wta/src/coordinator.rs Adds tests asserting delegate invocation uses opencode run in WSL + PowerShell base64 flows.
tools/wta/src/agent_registry.rs Adds OpenCode as a known agent and introduces acp_model_flags to represent protocol-only ACP model selection.
tools/wta/src/agent_check.rs Treats OpenCode like Gemini for login subcommand selection (auth login).
src/cascadia/TerminalSettingsModel/CascadiaSettingsSerialization.cpp Allows opencode through telemetry sanitization as a built-in provider id.
src/cascadia/TerminalSettingsEditor/AIAgentsViewModel.cpp Expands "opencode" into the concrete ACP launch command (opencode acp).
src/cascadia/TerminalApp/TerminalPage.cpp Expands "opencode" into the concrete ACP launch command (opencode acp) when launching panes.
src/cascadia/TerminalApp/AgentPaneContent.xaml Adds OpenCode mark vector to the agent pane header logo cluster.
src/cascadia/TerminalApp/AgentPaneContent.cpp Adds OpenCode logo selection and visibility toggling in code-behind.
src/cascadia/inc/AgentRegistry.h Adds OpenCode to built-in ACP + delegate agent lists.
src/cascadia/CascadiaPackage/AgentIcons/opencode.svg Adds the packaged OpenCode SVG asset.
README.md Documents OpenCode as an auto-detected ACP-capable agent in the quickstart.
doc/faq.md Updates custom-agent FAQ to mention OpenCode and clarifies session-tracking-hook limitation.

Comment thread tools/wta/src/agent_registry.rs
Comment thread README.md Outdated
Comment thread src/cascadia/TerminalApp/AgentPaneContent.xaml Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 21, 2026 01:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.

Comment thread tools/wta/src/coordinator.rs Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 21, 2026 01:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Comment thread tools/wta/src/coordinator.rs Outdated
Comment thread tools/wta/src/coordinator.rs Outdated
Comment thread tools/wta/src/coordinator.rs Outdated
Comment thread tools/wta/src/coordinator.rs Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 21, 2026 02:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 21, 2026 02:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated no new comments.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Copilot AI review requested due to automatic review settings July 21, 2026 02:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Comment thread tools/wta/src/agent_registry.rs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated no new comments.

@vanzue
vanzue merged commit 50cea23 into main Jul 21, 2026
13 checks passed
@vanzue
vanzue deleted the dev/vanzue/opencode-acp-support branch July 21, 2026 03:13
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.

Add built-in OpenCode ACP agent support

3 participants