Agent 要运行命令、改文件或调用工具时,CLI 会向你请求权限。这一页讲这些请求在 Armadra 里出现在哪里、怎么答复、谁有资格答复,以及你怎么及时得到通知。
请求出现在哪里
同一个请求在几个地方都能看到,答复一处即可:
- 节点头部:终端视图下,节点头部的状态胶囊变成「等待审批」,旁边出现「允许」与「拒绝」。Agent 在向你提问而不是请求权限时,是「等待回答」和「回答」按钮,点它跳到会话里作答。
- 会话视图的权限卡:会话视图里,权限请求是一张卡,写明要做什么,命令类请求显示命令本身,工具调用可以点「详情」展开参数。有风险的操作会带「有风险」标记。
- 侧栏通知:侧栏的「通知」列出所有「等待审批」「等待回答」「出错」的节点,点一项跳到对应节点;没有待处理的事时显示「没有需要处理的事」。
- 系统通知与手机推送:见下文「通知」。
批准或拒绝
- 看清卡片上写的是什么:命令、文件改动还是工具调用。拿不准就点「详情」。
- 点「允许」或「拒绝」。会话视图的卡片按 CLI 提供的选项排列,常见的有:
- 「本次」:只对这一次生效,「允许」或「拒绝」;
- 「始终」:「始终允许」「始终拒绝」,之后同类请求不再询问,请慎用;
- 「本会话允许」:只在当前会话里放行。
- 答复后卡片变成结果,例如「已允许」「已始终允许」「已拒绝」,回合接着往下走。
键盘:焦点在卡片里时,按 Esc 拒绝,按数字键 1–9 选第几个选项。
Armadra 只是把你的选择交给 CLI,权限策略仍然是 CLI 的。想少被打扰,可以在启动时选别的权限模式(见Agent 与 CLI),每种模式的含义由 CLI 决定。
提问
有些 Agent 会向你提问而不是请求权限。提问同样出现在节点头部与会话里,用「提交」「继续」「拒绝」或「取消」作答。
谁能答复
不是所有能看到画布的人都能替 Agent 答复:
- 自己的电脑上,你就是答复人。
- 共享的工作空间里,答复要求「接管」角色(云上叫「可接管」);「执行」角色只能答复自己启动的终端上的请求。查看、编辑角色看到的是「等待接管」,不能答复。
- Agent 请求关闭某个节点时,也会弹出「允许」与「拒绝」确认,同样只有接管角色能答;请求超时后会提示「这个请求已经失效。」
角色与授予方式见自托管部署与远程访问和团队与控制台。在服务器壳上,答复审批会记入审计。
Armadra 不替人回答
- 协调者
ama 遇到成员的权限请求时只报告「受阻」,不会替你批准。
- 其他 Agent 也不会自动点「允许」,都是停下来等你决定。
- 请求会一直挂着等你;过久没人处理时,节点上会出现「久未处理」,Agent 无进展时出现「停滞」或「空等」标记。可以在「设置 → 通知」里设置「停滞提醒」与「久未处理提醒」的分钟数。
Agent 之间通过连线读取上下文、发消息这类画布协作动作,本身不需要你逐次审批;它们只做连线与节点权限本来就允许的事。
通知
- 系统通知:在「设置 → 通知」打开「需要你时通知」,Agent 请求权限时弹出「<节点标题> 等待审批」;同一页还有「提示音」与「音量」。
- 手机推送:手机上有「接收哪些通知」的一组开关,可以单独打开或关闭「等待审批」「等待回答」「Agent 出错」「Agent 停滞」等;已登记的设备在「设置 → 通知」的「推送设备」里。点通知直接打开对应节点。详见手机 App。
- 手机上也能直接答复,不必回到电脑前,前提是你的角色允许。
Guides
Permission requests and approvals
Where agent permission requests appear, how to approve or reject them, who can answer, and why Armadra never answers for you.
When an agent wants to run a command, change a file or call a tool, its CLI asks you for permission. This page covers where those requests show up in Armadra, how to answer them, who is allowed to answer, and how you get notified in time.
Where requests appear
The same request is visible in several places; answering it in one is enough:
- Node header: in the terminal view, the status chip becomes “Awaiting approval” and “Allow” and “Reject” appear beside it. When the agent is asking you a question rather than requesting permission, the chip reads “Awaiting an answer” and the button is “Answer”, which takes you to the session to reply.
- Permission card in the session view: the request is a card that says what is about to happen. Command requests show the command itself, and tool calls can be expanded with “Details”. Risky operations carry a “Risky” mark.
- Sidebar notifications: “Notifications” in the sidebar lists every node that is awaiting approval, awaiting an answer or in error; choose one to jump to that node. With nothing pending it reads “Nothing needs you”.
- System notifications and phone push: see “Notifications” below.
Approve or reject
- Read what the card says: a command, a file change or a tool call. If unsure, open “Details”.
- Choose “Allow” or “Reject”. Session-view cards list the options the CLI offers; common ones are:
- “Once”: applies to this request only, “Allow” or “Reject”;
- “Always”: “Always allow” or “Always reject”, so similar requests are no longer asked about; use with care;
- “Allow for session”: allowed only within the current session.
- After you answer, the card shows the outcome, such as “Allowed”, “Always allowed” or “Rejected”, and the turn carries on.
Keyboard: with focus inside a card, Esc rejects and the digits 1-9 pick the option in that position.
Armadra only hands your choice to the CLI; the permission policy is still the CLI’s. To be asked less often, choose a different permission mode at launch (see Agents and CLIs); what each mode means is up to the CLI.
Questions
Some agents ask you a question instead of requesting permission. Questions also appear in the node header and in the session; answer with “Submit”, “Continue”, “Decline” or “Cancel”.
Who can answer
Not everyone who can see a canvas can answer for its agents:
- On your own computer, you are the one who answers.
- In a shared workspace, answering needs the Driver role (called “Full control” in the cloud); an Operator can only answer requests on terminals they started themselves. Viewers and Editors see “Waiting for a driver” and cannot answer.
- When an agent asks to close a node, an “Allow” or “Deny” confirmation appears; again only a Driver can answer. An expired request says “This request has expired.”
For roles and how they are granted, see Self-hosting and remote access and Teams and console. On a server shell, answering an approval is recorded in the audit log.
Armadra never answers for you
- When a member hits a permission request, the coordinator
ama only reports it as blocked; it does not approve on your behalf.
- Other agents do not click “Allow” either; they stop and wait for your decision.
- A request waits for as long as it takes. When nobody has dealt with it for a while the node shows “Waiting too long”, and an agent making no progress shows “Stalled” or “Idle, no result”. Set the minutes for “Stalled alert” and “Waiting-too-long alert” under Settings → Notifications.
Canvas collaboration actions between agents, such as reading context over a link or sending a message, do not need an approval each time; they only do what the link and node permissions already allow.
Notifications
- System notifications: turn on “Notify when input is needed” under Settings → Notifications and a request pops up as “ needs approval”. The same page has “Sound” and “Volume”.
- Phone push: the phone has a set of “Notify me about” switches, so you can turn “Approval requests”, “Waiting for an answer”, “Agent errors”, “Stalled agents” and so on on or off individually; registered devices are listed under “Push devices” in Settings → Notifications. Tapping a notification opens that node. See Mobile app.
- You can answer from the phone too, without going back to the computer, as long as your role allows it.