Skip to content

feat(acp): Add approval bridging infrastructure#62

Merged
CSRessel merged 1 commit into
devfrom
feat-acp-minimal-footprint
Dec 2, 2025
Merged

feat(acp): Add approval bridging infrastructure#62
CSRessel merged 1 commit into
devfrom
feat-acp-minimal-footprint

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

@CSRessel CSRessel commented Dec 2, 2025

Summary

🤖 Generated with Nori

  • Implements approval bridging between ACP permission requests and Codex approval system
  • Adds ApprovalRequest type and translation functions for bi-directional conversion
  • Exposes approval channel via AcpConnection::take_approval_receiver() for TUI integration
  • Adds placeholder comments for future features: history persistence, export, resume/fork

Test Plan

  • All existing tests pass (12 unit tests + 1 integration test + 1 doc test)
  • New translator tests verify approval translation logic
  • Manual testing with Claude ACP agent when TUI integration is complete

Share Nori with your team: https://www.npmjs.com/package/nori-ai

Implements the minimal-footprint approval bridging between ACP permission
requests and Codex approval system:

- Add ApprovalRequest type bundling translated event with response channel
- Translate ACP RequestPermissionRequest to Codex ExecApprovalRequestEvent
- Translate Codex ReviewDecision back to ACP RequestPermissionOutcome
- Expose approval receiver via AcpConnection::take_approval_receiver()
- Fall back to auto-approve if channel closed, deny if response dropped
- Add placeholder comments for future: history persistence, export, resume

This enables the TUI to receive approval requests and respond to them
without modifying codex-core.
@CSRessel CSRessel force-pushed the feat-acp-minimal-footprint branch from 1fb6cfc to f41389e Compare December 2, 2025 20:12
@CSRessel CSRessel merged commit 6c58b10 into dev Dec 2, 2025
0 of 2 checks passed
@CSRessel CSRessel deleted the feat-acp-minimal-footprint branch December 2, 2025 21:11
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