Repository navigation
fix(playwright-mcp): no real time in the files Playwright MCP names, and sync_env_clock names a browser on real time - #794
Closed
sarah-chitty-1 wants to merge 1 commit into
Conversation
…and sync_env_clock names a browser on real time Playwright MCP 0.0.41 saves a screenshot or PDF the call leaves unnamed as <tmpdir>/playwright-mcp-output/<epoch ms of the session>/page-<ISO time>.png and tells the model so (an always-on PSI run on a clock armed 2026-11-01 was told .../1794091861516/page-2026-11-07T22-57-11-639Z.png). Now: - the image gives Playwright MCP one folder for the files it names itself (--output-dir, PLAYWRIGHT_MCP_OUTPUT_DIR, /tmp/playwright-mcp-output), so no folder is named after the session's real start; - the recorder, which fronts the MCP port, gives each browser_take_screenshot or browser_pdf_save call that names no file Playwright MCP's own filename argument, page-<n>.<ext>, n a counter skipping names already in the folder. A call that names its file keeps it. The page clock stays as FD-5706 left it: the playwright-mcp browser is on real time, and a task that needs universe time in its browser names the browser computer (browser_envs = ["chromium"]), whose Playwright MCP and Chromium follow the clock. FD-5902 said sync_env_clock warns when a clock-armed multi env's website browser is Playwright MCP; it didn't, so it now warns and records it in the clock configuration (real_time_browsers). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
Author
|
Closing: PSI always-on tasks are moving to the chromium browser computer, which follows the universe clock and names screenshots by frame id (f1, f2), so this Playwright-side fix isn't needed for us. |
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.
What and why
Playwright MCP 0.0.41 names a screenshot or PDF the call leaves unnamed after the real time, and tells the model. An always-on PSI run on a clock armed to 2026-11-01 was told
…/playwright-mcp-output/1794091861516/page-2026-11-07T22-57-11-639Z.png, so the agent could read the real date from a tool result. This happens with every agent harness. Linear FD-6278.What changes
--output-dir,PLAYWRIGHT_MCP_OUTPUT_DIR, default/tmp/playwright-mcp-output). No folder is named after the session's real start any more.browser_take_screenshot/browser_pdf_savecall that names no file Playwright MCP's ownfilenameargument:page-<n>.<ext>, where the counter skips names already in the folder. A call that names its own file keeps it.sync_env_clockwarns when a clock-armed multi env's website browser is Playwright MCP, but it never did. It now warns, and records the browser asreal_time_browsersin the clock configuration.The page clock stays as FD-5706 left it: the
playwright-mcpbrowser runs on real time, and a task that needs universe time in its browser names the browser computer (browser_envs = ["chromium"]).Console and network output in 0.0.41 carries no timestamps. Downloads keep the site's own filename, now in the fixed folder.
Tests
sync_env_clockwarning). They fail before the change and pass after.playwright_mcp_local_test.py): 5/5 pass, including a new screenshot-name test. On the old image the same call returns…/1795043420347/page-2026-11-18T23-10-20-891Z.png.To ship
The image source changes, so
ghcr.io/scaleapi/agentenv-playwright-mcphas to be rebuilt and published (CI on release), and the env re-registered where it's pinned. The warning is core-only.🤖 Generated with Claude Code


Confidence Score: 5/5
The changes appear safe to merge; no actionable issues were found.Summary
Removes real-time dates from Playwright MCP’s default output paths and adds a warning when its browser does not follow the environment’s clock.
No actionable issues found.
Reviews (1) · Last reviewed commit: "fix(playwright-mcp): no real time in the..." · Reviewed by Greptile