feat: add a static UI iteration mirror

Closed
AZ
1mo ago
+345-1

What changed

CI already drives cmux with JSON dogfood tours and captures screenshots, accessibility trees, and step logs, but reviewing those artifacts still requires opening individual files. This adds a static cmux UI mirror: e2e-frames.py now emits index.html and mirror.json beside every extracted run.

The mirror has a searchable test list, per-action timeline, large screenshot viewer, keyboard navigation, contact sheets, failures, accessibility trees/logs, and inline text attachments. It also renders GIF/MP4/MOV clips inline, so it is ready for the recording-step work in #15320. It works from file:// with no server, package install, or app build. The ui-frames CI artifact now links from the job summary and includes the mirror automatically.

This is stacked on #15834, so a pushed app build plus a new JSON dogfood tour can produce a reviewable frontend iteration artifact without recompiling on a developer machine.

Changelog

  • Added: a static UI mirror for reviewing cmux interaction screenshots and evidence.

Validation

  • python3 tests/test_ui_mirror.py
  • python3 tests/test_ci_e2e_compilation_cache.py
  • python3 tests/test_run_e2e.py
  • Python AST parsing for the changed scripts
  • git diff --check

No Xcode, Swift compiler, app build, app launch, or restart was run for this PR.


Migrated from https://github.com/manaflow-ai/cmux/pull/15853 after correcting the PR author identity. The head branch and commit history are preserved.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.


Summary by cubic

Adds a static UI mirror so cmux E2E runs can be reviewed in a browser without opening individual screenshot, log, or attachment files. e2e-frames.py now emits index.html and mirror.json beside every extracted run, and the CI job summary links the mirror artifact directly.

New Features

  • ui-mirror.py generates a local-first, dependency-free HTML app with a searchable test list, step timeline, large screenshot viewer, contact sheets, failures, and inline text attachments (works from file:// with no server or build).
  • Mirror supports inline GIF/MP4/MOV clips, ready for the upcoming recording-step work.

Migration

  • The ui-frames CI artifact now includes the mirror automatically; no developer-machine recompile or app build is needed for review.