Skip to content

ci: record the preview screenshot agent as a Currents session - #5

Merged
agoldis merged 1 commit into
mainfrom
currents/record-preview-session
Nov 12, 2026
Merged

agoldis merged 1 commit into
mainfrom
currents/record-preview-session

Conversation

@agoldis

@agoldis agoldis commented Nov 12, 2026 •

Copy link
Copy Markdown

Owner: @agoldis

What

When the preview screenshot bot (elie222#3901 upstream) runs on a PR, its browser session is also recorded and uploaded to Currents as one session: the agent's screenshots, a Playwright trace, a video and the MCP session log. The PR's Screenshots section links to the session.

Why

We want to see what a recording of the agent's run adds over 1–3 stills for a reviewer, and what Currents is missing to make it worth using.

Changes

  • Playwright MCP 0.0.84 has no flag to save a trace, so a config file turns on video recording and the session log, and --caps devtools lets the agent call browser_start_tracing / browser_stop_tracing. The prompt asks it to.
  • The agent job uploads the recording as a second artifact. It still has no Currents credential.
  • The trusted job zips the trace, starts a session with the record key (currents session start/attach/share, project Rakazo), and adds a "Recording" line with the 7-day share link to the Screenshots section.
  • This fork has no image bucket, so the section keeps the captions and drops the image lines; the images are in the session.

Risk

The trusted job uploads files that came from a preview of an untrusted PR. It only concatenates and zips them, caps the total at 300 MB, and never runs them.

Tested

Workflow YAML parses. The flow only runs from main, so the first real run is the next UI PR after this merges. It needs CLAUDE_CODE_OAUTH_TOKEN and the Fly settings.

🤖 Generated with Claude Code

https://claude.ai/code/session_011baD3iKo43DsfhRB8dkWCG


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The screenshot agent's browser now records a video and the MCP session
log on its own, and the agent is asked to trace its run. The trusted
job uploads the trace, video and screenshots as one Currents session
and links it from the PR's Screenshots section. Without an image
bucket, the section keeps the captions and links to the session.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011baD3iKo43DsfhRB8dkWCG
@agoldis
agoldis merged commit e8e6e36 into main Nov 12, 2026
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant