Skip to content

feat: replay video — stitch screenshots into captioned replay.mp4#13

Merged
sebyx07 merged 2 commits into
mainfrom
feat/replay-video
Jun 29, 2026
Merged

feat: replay video — stitch screenshots into captioned replay.mp4#13
sebyx07 merged 2 commits into
mainfrom
feat/replay-video

Conversation

@sebyx07

@sebyx07 sebyx07 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • replay.ts: pure buildFfmpegArgs + renderReplay over exec seam; createReplayStep binds real spawn + resolved caption font; frames letterboxed + step labels burned in
  • Graceful ffmpeg-absent: ffmpegOnPath() probes before stitching — absent → skip with note + loud agent.log line, never spawns/crashes
  • FindingsStore.listScreenshots(): ordered NNN-<label>.png frames; session wires replay post-verdict (fail-soft, abort-raced)
  • 12 replay tests: frame ordering, caption sanitization, filter chain, no-font path, exec seam (fake encoder), ffmpeg-absent skip — all via bun test (355 pass, 0 fail)

sebyx07 and others added 2 commits June 29, 2026 17:32
- replay.ts: pure ffmpeg arg-builder + renderReplay over an exec
  seam; createReplayStep binds real spawn + resolved caption font.
  Frames letterboxed onto a uniform canvas, step labels burned in.
- FindingsStore.listScreenshots(): ordered NNN-<label>.png frames
  with de-slugged labels — the replay's raw material.
- Session: post-verdict #ensureReplay generates the clip and records
  its path in findings.evidence; best-effort + abort-raced (fail-soft,
  never blocks teardown), mirroring the summary seam.
- workspace: SessionPaths.replayMp4; errors: ReplayError.
- docs(workspace): document what v1 ships (burned-in captions).

Co-Authored-By: Claude <noreply@anthropic.com>
- replay.ts: ffmpegOnPath() probes the binary (absolute path or PATH
  scan, no subprocess); createReplayStep checks it before stitching —
  absent → skip with a note + loud agent.log line, never spawns/crashes.
- ReplayStep now returns a ReplayOutcome (rendered | skipped+note?) so
  the session can tell "no frames" from "ffmpeg missing".
- session.ts: #ensureReplay records a skipped note as a `replay video`
  step in findings (terminal status, summary preserved); evidence only
  on a real render.
- session-builder: wire logAgent into the replay step's loud sink.

Co-Authored-By: Claude <noreply@anthropic.com>
@sebyx07 sebyx07 added the claudetm Claude Task Master label Jun 29, 2026
@coderabbitai

coderabbitai Bot commented Jun 29, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 6 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1e504cb7-3b42-4cc9-81aa-2a6d9973e72c

📥 Commits

Reviewing files that changed from the base of the PR and between b622365 and 288207c.

📒 Files selected for processing (11)
  • docs/idea/workspace.md
  • src/errors.ts
  • src/services/replay.test.ts
  • src/services/replay.ts
  • src/services/session-builder.ts
  • src/session/findings-store.test.ts
  • src/session/findings-store.ts
  • src/session/session.test.ts
  • src/session/session.ts
  • src/session/workspace.test.ts
  • src/session/workspace.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/replay-video

Comment @coderabbitai help to get the list of available commands.

@sebyx07 sebyx07 merged commit 1bebfbd into main Jun 29, 2026
2 checks passed
@sebyx07 sebyx07 deleted the feat/replay-video branch June 29, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudetm Claude Task Master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant