Repository navigation
Description
Summary
Part of #1943. Needs #1954 (PR #1957).
Room members run in Auto+Judge by default (#1957). A judge decides their gated tool calls, and only a call the judge rejected and the member escalated with RequestApproval still needs a human. Today that call waits in the member's own chat. The room shows ◐ tester waiting for approval and a note naming the session, so you have to leave the room, resume room-<room>-<agent> and decide there.
In Slack you would answer it in the channel. The room should show the pending call as an actionable message and let you approve or reject it right there:
tester wants to run
go test ./...
The judge rejected it: "the request did not ask to run tests". tester: "the user asked why main is red, the suite shows which test fails".
[Approve] [Reject]
Design
- Host
- When a member's run suspends on an approval, the host logs a post of
kind: approvalin the room. It carries the tool call id, the tool name, a short form of its arguments, the judge's reason and the member's justification. - When the call is decided, wherever that happens, the host logs a quiet line saying who decided what.
- When a member's run suspends on an approval, the host logs a post of
- Binding
- A follower answers with a new frame,
decide_room_approval(room,member,tool_call_id,approveorreject). - The host forwards it to the member's thread as the
approval_responsethe registry already routes. - The first decision wins. A later one, from the room or from the member's own chat, gets a notice that the call was already decided.
- A follower answers with a new frame,
- TUI
- The room view renders an approval post with its call and the two choices.
- The newest open approval can be decided from the keyboard and by a click, like the status indicators.
- The header keeps showing
◐ waiting for approvaluntil it is decided.
- Desktop
- [FEATURE] Rooms in the sidebar: a room view of every agent's posts and member mentions in the composer desktop#741 renders the same post with buttons.
Open questions
- Should Auto-Approve, which switches the member to Auto-Accept the way it does in a chat, be offered in a room, or only Approve and Reject?
- Should several members' open approvals be listed in one place, or only inline where each was posted?
Out of scope
- Approving from Telegram or other channels.
- Members approving each other's calls.
Acceptance Criteria
- A member's escalated tool call appears in its room as an approval post with the call, the judge's reason and the member's justification
- Approve and Reject on that post, from the TUI by keyboard or click, decide the call, and the member's run continues accordingly
- The room logs who decided the call, and the member's activity leaves
waiting - A call decided in the member's own chat closes the room's approval post, and a second decision gets a notice
-
docs/rooms.mdanddocs/browser-extension-protocol.mddescribe the approval post anddecide_room_approval - Tests cover the host relay, the binding frame, first-decision-wins and the TUI's approval post
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
feat(rooms): approve or reject a member's tool call from the room (#1963