mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 11:26:02 +00:00
Over ACP an agent can ask permission before it writes or runs something. A run that asks parks as `awaiting-permission` carrying the agent's own question and its own options, keeps holding its element, and resumes the moment the answer is forwarded. Studio only ever forwards an option the agent itself offered; anything else is refused with a 409. The wait is bounded, because a run that has stopped to ask is holding an element while it does. Running out never means yes: the agent's own refusal is used when it offered one, and the run fails naming the tool when it did not. Real agents ask about a tool call by id and put the title in the update that announced it, so titles are remembered and the question is shown in the agent's words rather than as "exec-282be8b3". Both transports now share one cleanup path instead of two copies. Verified against @agentclientprotocol/codex-acp in read-only mode: the agent asked, the question parsed with its refusal option, answering "Allow Once" ended the turn and the file was edited.