Skip to content

fix(approval): ask about the command, not the paperwork around it - #26

Merged
ericleepi314 merged 1 commit into
mainfrom
approval-command
Aug 19, 2026
Merged

fix(approval): ask about the command, not the paperwork around it#26
ericleepi314 merged 1 commit into
mainfrom
approval-command

Conversation

@ericleepi314

Copy link
Copy Markdown
Collaborator

What

The approval box is the one screen where a misleading line has a cost, and it was showing the whole argument object — with the command it is asking about crowded off the end.

before
╭──────────────────────────────────────────────────────────────────────╮
│ bash command                                                         │
│  command: echo escalated, description: an escalating echo, sandbox_… │
│  the gallery needs the approval box                                  │
│ ⚠ escalate sandbox to danger-full-access: the gallery needs the …    │
│ Do you want to proceed?                                              │

after
╭──────────────────────────────────────────────────────────────────────╮
│ Bash command                                                         │
│  echo escalated                                                      │
│ ⚠ escalate sandbox to danger-full-access: the gallery needs the …    │
│ Do you want to proceed?                                              │
│ ❯ 1. Yes                                                             │
│   2. No                                                              │

Why

The escalation fields are already the warning row's job — stated right below, with their justification — so the command line repeated them and then truncated mid-word. It now carries the salient argument: the same projection the ⏺ Tool(args) row uses, which for a shell call is exactly the command, untruncated (the 64-column cap belongs to the trail row, not here).

The header takes the display label too — Bash command, not bash command — via the same toolTrailLabel the trail already applies to the wire name everywhere else.

Test

  • npm run typecheck, npm test — 150 files / 1953 passing
  • node scripts/verify-boundary.mjs
  • new case in harnessClient.test.ts: an escalating bash call's approval carries echo escalated
  • live capture via the new bash_escalate gallery scenario (--live 12)

🤖 Generated with Claude Code

The approval box is the one screen where a misleading line has a cost, and
it was showing the whole argument object — with the command it is asking
about crowded off the end:

    ╭──────────────────────────────────────────────────────────────────────╮
    │ bash command                                                         │
    │  command: echo escalated, description: an escalating echo, sandbox_… │
    │  the gallery needs the approval box                                  │
    │ ⚠ escalate sandbox to danger-full-access: the gallery needs the …    │

The escalation fields are already the warning row's job, stated right
below with their justification, so the command line repeated them and then
truncated mid-word. Now it carries the salient argument — the same
projection the `⏺ Tool(args)` row uses, which for a shell call is exactly
the command:

    ╭──────────────────────────────────────────────────────────────────────╮
    │ Bash command                                                         │
    │  echo escalated                                                      │
    │ ⚠ escalate sandbox to danger-full-access: the gallery needs the …    │
    │ Do you want to proceed?                                              │
    │ ❯ 1. Yes                                                             │
    │   2. No                                                              │

The header takes the display label too — `Bash command`, not `bash
command` — the same `toolTrailLabel` the trail already applies to the wire
name everywhere else.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@ericleepi314
ericleepi314 merged commit 6f9ceca into main Aug 19, 2026
1 check passed
@ericleepi314
ericleepi314 deleted the approval-command branch August 19, 2026 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant