Change how an agent session handles approvals without restarting it
Approval handling used to be decided once, when a session started, and that was that. If you began a conversation on automatic approval and then reached the part where the agent starts changing files, tightening up meant throwing away the session and the transcript with it. The session header now carries a small Approval mode control with two options, Ask each time and Auto approve, showing which one is live and letting you switch at any point.
Switching applies to what comes next, and only that. The adapter is not reconnected, the transcript is not cleared, and a turn already in progress keeps running, because the mode is simply how Pekan answers requests as they arrive. A request that is already on screen waiting for you is left exactly where it is: switching to Auto approve will not reach back and answer the question you were reading, and switching to Ask each time will not try to take back an approval that has already been sent.
Write scope is unchanged by any of this. A session started read only stays read only in both modes, because automatic approval is only ever allowed to pick from the options the session scope already admits, and an option outside the scope is still shown, explained and refused. Each session keeps its own setting, so collapsing the panel, navigating elsewhere in the app, or switching between two sessions in the same project all leave each conversation with the choice you made for it.
Highlights
- Ask each time and Auto approve can be switched mid-session from the session header.
- The change affects later requests only, and never answers one already waiting for you.
- No reconnect, no cleared transcript, no interrupted turn.
- Write scope is still enforced in both modes, and each session keeps its own setting.