feat(gallery): add dynamic workflow summaries

Merged
TE
13d ago
+568-0

Summary

The gallery adds two public-safe Claude-style dynamic-workflow summary placements: an inline row after the latest message and a pinned summary above the transcript. Each has light and dark variants and shows the large-workflow warning, 37/101 agents done, elapsed time, token budget, progress sparkline, phase counts with model labels, and local pause/stop/save affordances. This is gallery-only; controls update local labels and never change production session semantics.

Leo's words: “include Claude dynamic workflows in the gallery” with “inline after latest message summary row” and “pinned panel summary row”.

The detail sheet/tab with phases on the left and selected-phase agents on the right follows in a stacked PR so this review stays within the hard change-size limit.

Testing

  • bun run typecheck (webviews): passed; no type errors in 2569 files.
  • python3 scripts/cmux-next/prepush-gate.py: passed; no new violations.
  • Direct Bun import of agent-pane.dynamic-workflow: passed; 4 summary variants plus pinned transcript proof loaded (inline and pinned, light/dark).
  • Changed-file design-token and type-scale scans: passed.
  • Diff is 568 additions (under the 799-line limit); no standalone missing imports.
  • No app build, test suite, or local browser capture was run on this host. Fleet capture remains unverified.

Changelog

Added: Gallery scenes for inline and pinned dynamic-workflow summaries.

Proof

No capture: this slice did not run an app build, browser capture, or fleet command. Preview routes after the gallery server is available:

  • /gallery/?entry=agent-pane.dynamic-workflow&variant=inline-latest-light
  • /gallery/?entry=agent-pane.dynamic-workflow&variant=inline-latest-dark
  • /gallery/?entry=agent-pane.dynamic-workflow&variant=pinned-summary-light
  • /gallery/?entry=agent-pane.dynamic-workflow&variant=pinned-summary-dark

State: scoped
Owner: /root/gallery (Codex session 01a16c08-6e4a-7d00-aaad-dd83f5db7573)
Head: 4e260799572894f85699202fba2e3eb9abd69a72
Next: independent review and current-head CI reconciliation
Evidence: typecheck, prepush-gate, direct entry import, changed-file static scans, and 746-line diff above
Stop: fleet capture and hosted checks are unverified; no fleet command was dispatched in this gallery-only slice

Agent session: big-red