Commit 91fcf9e
authored
feat(acp): Add AcpBackend adapter for TUI integration (#68)
## 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
- [x] `cargo test -p codex-acp` passes (20 tests)
- [x] `cargo test -p codex-tui --lib` passes (498 tests)
- [x] `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 implementation1 parent b7c35de commit 91fcf9e
9 files changed
Lines changed: 761 additions & 0 deletions
File tree
- codex-rs
- acp
- src
- tui
- src/chatwidget
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
117 | 146 | | |
118 | 147 | | |
119 | 148 | | |
| |||
0 commit comments