Skip to content

Show the full SQL in harness permission rows, not just the title #786

Closed

Description

@EVWorth

Severity: P1. The user can approve a write without seeing what it does.

What happens

  1. Open http://localhost:1420/?mock=connected, click AI, then Start Claude Agent.
  2. Send "Please update the old shipments".
  3. A permission row appears reading "Run run_write on Local dev: UPDATE shop.orders SET status = 'delivered'" with Allow once / Always allow / Reject.

The statement's WHERE status = 'shipped' AND placed_at < '2026-09-01' line is in the event's detail and never shown, so the row looks like an unbounded update (or, in general, hides whatever follows the first line). "Always allow" has the same primary styling as "Allow once".

Cause

src/components/agent/AgentPanel.tsx:89: PermissionRow renders only item.title. item.detail, which agent-transcript.ts stores, is ignored.

Fix

Render item.detail under the title in a monospace, scrollable <pre>. Style "Always allow" as a secondary button so the one-off choice is the obvious one.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 21, 2026
    3f33116
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions