Add OpenCode ACP agent support#458
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Contributor
There was a problem hiding this comment.
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
opencodeas 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. |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: ca4eb5fa-7ba0-41a9-ad18-c669dd83c917
haonanttt
approved these changes
Jul 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
opencode acpand interactive delegation tabs withopencode --prompt <prompt>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.tomlcmd.exe /c "tools\razzle.cmd && bcz no_clean"bxbuilds?<prompt>delegation verified to launch the interactive OpenCode TUI and keep the tab openLimitations
Fixes #460