Repository navigation
Description
The approval card renders its input as raw JSON in a fixed-width box — ui/app/components/chat.tsx:1523 is literally <pre>{JSON.stringify(p.input, null, 2)}</pre>. Long values are clipped with a horizontal scrollbar rather than wrapped.
Observed live on a Codex file-write approval:
"command": "/bin/zsh -lc \"printf '%s\n' 'hello from ask mode' > not…
"reason": "Need write permission to create notes-ask.txt in the work…
The user is being asked to authorise a command whose target they cannot see without scrolling sideways. On the one screen where the human is the security boundary, that is a defect rather than a cosmetic issue.
Shared component, so all three agents are affected — Codex just produces longer inputs (it wraps commands in /bin/zsh -lc "…", and its cards carry cwd, reason and kind alongside the command).
What to do
Wrap rather than clip, and render the fields structurally instead of dumping JSON — command, cwd and reason are not equal in weight. The full input must stay reachable; don't solve clipping by hiding a field that mattered.
Smaller things in the same component
- Protocol noise.
"kind": "command"shows on every Codex card and means nothing to a user. It only matters when it iswriteStdin, which already gets a distinct headline. Show it only when it differs from the default. - The command is duplicated — a
Bash …tool row renders directly above the card saying the same thing. - Verdict notes are detached.
Allowed Bash/Denied Bashrender at the bottom of the whole conversation, below the assistant's reply, rather than inline where the card was. With several approvals in one turn you get a stack of orphaned lines with nothing tying them to what they refer to. - Multi-hunk diffs concatenate with no separator, so two hunks 89 lines apart read as adjacent lines. Context lines and
@@headers are both dropped, so there is no way to tell. Inherited from the opencode diff splitter, now on the path every Codex edit takes.
availableDecisions is already plumbed through the permission_request event (filtered to a safe allow-list) if the buttons should be driven from it rather than hardcoded. Note acceptWithExecpolicyAmendment is deliberately excluded and must stay so — see docs/codex-permissions.md.
Activity