# v1.4.0 — Friendly agent stream & desktop result cards Agent output finally reads like a conversation, not a log dump — on both the CLI and the desktop app. ## `--pretty`: friendly agent stream (CLI) `run`, `plan`, `execute`, and `handoff` accept a new opt-in `--pretty` flag. It asks the agent CLI for its machine-readable event stream (`claude -p --output-format stream-json --verbose`, `codex exec --json`) and renders it as readable lines: ``` ● model claude-sonnet-5 · session abc123 · thinking: need to look at the failing test first → Bash: pnpm test --filter core Fixed the flaky test — two files changed. ✓ agent turn done — in 10,231 tok · out 1,892 tok · $0.0231 · 48.2s ``` - Deterministic line-by-line JSONL parsing only — no model calls, no summarization (adapter `parseEvent` on Codex/Claude). - Lines that don't parse — and agents without a structured mode — fall back to raw pass-through; the full raw stream still lands in `.ai-session/commands.log`. - Fallback detection is unchanged: patterns keep matching on the raw lines, including error text inside the JSON events. - Opt-in because older agent CLI versions may not support the flags. ## Desktop: structured result cards in the Agent Room Slash-command results (`/status`, `/budget`, `/git`, `/review`, `/guard`, `/risk`, `/checkpoints`, `/sessions`, `/resume`, `/workspace`, `/profile`, `/inventory`, `/inspect`, `/bundle`) now render as structured cards — status chips, a budget gauge bar, per-file git rows, plan-step checklists — instead of raw `JSON.stringify` dumps. Every card keeps the full payload behind a collapsed **raw json** section, so nothing is lost. All display-only DOM builders; the webview still contains no business logic. Also fixed: `/review` results were wiped from the timeline immediately after rendering (the timeline reload raced the card append). ## Compatibility - `--pretty` is opt-in; default output is unchanged. - `AgentEvent` gains new event types (`system`, `assistant_text`, `reasoning`, `tool_use`, `usage`) — additive, existing consumers unaffected. - No config or session-schema changes.