You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#488 gave the permission modal/ask-args view two tiers: a verbatim RAW tier (the wire args string, ↪-wrapped) and a PRETTY tier (Bash: decoded {"command":…} text + timeout_ms annotation). The pretty tier is deliberately shallow — no shell-aware reformatting (no mvdan/sh dependency, per ADR 0108).
Bonus ideas (from #488, separable; could be one PR each)
Heredoc language detection — a Bash command embedding <<'PY' / <<'EOF' bodies could detect the embedded language (python, bash, …) and syntax-highlight it via the existing glamour/chroma stack.
&& / || clause segmentation — multi-clause Bash commands could render each clause visually distinct (separator glyphs / alternating styling) so compound commands are scannable at the approval gate.
mvdan/sh-based pretty-print — normalize compound commands onto multiple lines. NOTE: ADR 0108 keeps the pretty tier byte-faithful today (no shell-aware reformatting); adopting mvdan means the pretty tier rewrites the command. The verbatim raw tier is the approval-integrity floor, so this is safe, but it is a deliberate decision, not a drive-by.
Invariant
Whatever the pretty tier does, the raw tier stays the constant floor: verbatim, untouched, one keystroke away.
Activity