- Add `--extra-cmd` CLI flag to execute a user-specified command
- Command must return JSON with a `label` field, e.g., `{"label": "$1.23/day"}`
- Includes security hardening:
- sanitize() to strip terminal escape sequences (CSI, OSC, control chars, bidi)
- maxBuffer: 10KB limit to prevent memory issues
- Label truncation to 50 chars max
- Display extraLabel in session line when present
Co-authored-by: Johnny Wang <johnnywang1991@msn.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>