Skip to content

Name the requesting agent in the approval dialog #801

Closed

Description

@EVWorth

Severity: P2.

What happens

  1. Open ?mock=connected, click AI, then Start Claude Agent, and wait about 6 seconds without sending anything.
  2. A dialog opens: "The agent wants to change data", Local dev / shop, DEVELOPMENT, DELETE FROM shop.customers WHERE is_active = 0, "This changes 132 rows."

No turn is running in the panel, and the dialog doesn't say which harness, session or external MCP client asked. The row count is plain secondary text below 1,000 rows. It is emphasised (bold, warning colour) only at 1,000 or more.

Cause

  • src/components/agent/ApprovalDialog.tsx:98-130 has no requester line.
  • AgentAsk::Approve (src-tauri/src/mcp/bridge.rs) carries no session or client field.
  • ApprovalDialog.tsx:39: many = rows >= 1000 gates the emphasis.

Fix

Add the session or client identity to the approve request and show it in the dialog header ("Claude Agent (in-app session)" or "External client on the endpoint"). Always show the row count prominently, with the verb ("Deletes 132 rows").

Part of #783.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions