Files
hyperframes/packages
Miguel Angel Simon Sierra 233338ddd4 feat(studio): let a run stop and ask before it acts
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.
2026-08-05 22:23:26 -07:00
..
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00
2026-08-04 01:49:05 -07:00