Skip to content

feat(acp): Add AcpBackend adapter for TUI integration#68

Merged
CSRessel merged 1 commit into
devfrom
feature/adapt-acp-for-tui
Dec 3, 2025
Merged

feat(acp): Add AcpBackend adapter for TUI integration#68
CSRessel merged 1 commit into
devfrom
feature/adapt-acp-for-tui

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

@CSRessel CSRessel commented Dec 3, 2025

Summary

  • Implements AcpBackend adapter as described in codex-rs/acp/PLAN.md
  • Creates AcpBackend struct with spawn() and submit() methods
  • Adds event translation from ACP SessionUpdate to codex_protocol::Event
  • Integrates into TUI agent.rs with ACP mode detection based on model name
  • Adds 8 unit tests for event translation and utilities
  • Zero changes to codex-core

Test plan

  • cargo test -p codex-acp passes (20 tests)
  • cargo test -p codex-tui --lib passes (498 tests)
  • cargo clippy passes

Notes

See codex-rs/acp/HANDOFF.md for remaining work items including:

  • Approval bridging wiring (stored but not forwarded)
  • MCP servers config passthrough
  • E2E tests
  • Tool call display implementation

🤖 Generated with [Nori](https://nori.ai)

Co-Authored-By: Nori <contact@tilework.tech>

Implements the ACP backend adapter as described in PLAN.md:

- Create AcpBackend struct with spawn() and submit() methods
- Add event translation from ACP SessionUpdate to codex_protocol::Event
- Integrate into TUI agent.rs with ACP mode detection
- Add 8 unit tests for event translation and utilities
- Add handoff document summarizing work and remaining items

The TUI now branches between ACP and HTTP backends based on model name, with zero changes to codex-core.
@CSRessel CSRessel merged commit 91fcf9e into dev Dec 3, 2025
0 of 2 checks passed
@CSRessel CSRessel deleted the feature/adapt-acp-for-tui branch December 3, 2025 07:48
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.

1 participant