Skip to content

fix(acp): Complete approval bridging for ACP mode#70

Merged
CSRessel merged 2 commits into
devfrom
acp-backend-completion
Dec 3, 2025
Merged

fix(acp): Complete approval bridging for ACP mode#70
CSRessel merged 2 commits into
devfrom
acp-backend-completion

Conversation

@CSRessel
Copy link
Copy Markdown
Collaborator

@CSRessel CSRessel commented Dec 3, 2025

Summary

🤖 Generated with Nori

  • Fix approval popup not appearing when ACP agents request permission
  • Handle approval requests immediately in TUI to avoid deadlock (agent subprocess blocks waiting for approval)
  • Add MOCK_AGENT_REQUEST_PERMISSION support to mock agent for testing
  • Enable test_acp_approval_request_displayed_in_tui E2E test

Test Plan

  • ACP mode E2E tests pass (4/4 tests)
  • TUI chatwidget tests pass (90 tests)
  • ACP crate tests pass (22 tests)
  • CI passes

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

Fix approval popup not appearing when ACP agents request permission.
The root cause was that approval requests were being deferred during
active streaming, but in ACP mode the agent subprocess blocks waiting
for approval - causing a deadlock.

Changes:
- Handle approval requests immediately in TUI (not deferred)
- Add MOCK_AGENT_REQUEST_PERMISSION support to mock agent
- Enable test_acp_approval_request_displayed_in_tui test
- Update documentation for approval handling behavior
@CSRessel CSRessel force-pushed the acp-backend-completion branch from da2f877 to 2fc90ed Compare December 3, 2025 16:37
@CSRessel CSRessel merged commit 52e97b5 into dev Dec 3, 2025
0 of 2 checks passed
@CSRessel CSRessel deleted the acp-backend-completion branch December 3, 2025 16:57
@CSRessel
Copy link
Copy Markdown
Collaborator Author

CSRessel commented Dec 3, 2025

image image

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