Repository navigation
ci: record the preview screenshot agent as a Currents session - #5
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
--caps devtoolslets the agent callbrowser_start_tracing/browser_stop_tracing. The prompt asks it to.currents session start/attach/share, project Rakazo), and adds a "Recording" line with the 7-day share link to the Screenshots section.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 needsCLAUDE_CODE_OAUTH_TOKENand the Fly settings.🤖 Generated with Claude Code
https://claude.ai/code/session_011baD3iKo43DsfhRB8dkWCG
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.