Fixes env var leak and noisy output when auto-returning Playwright objects from the CLI.
-
Auto-returned Playwright handles are now silently skipped —
await page.goto(url)and similar single-expression code no longer prints anything when the return value is a Playwright handle (Response, Page, Browser, Request, Frame, etc.). These are programmatic references, not display data. The previous behavior also leaked everyprocess.envvariable (API keys, tokens, credentials) viautil.inspectat depth 4.By default expression results are printed and that was the cause — now we don't print those objects which would also waste LLM context.
To see data, explicitly return specific fields or use
console.log:return response.url() // prints the URL return response.status() // prints 200 console.log(response) // prints safe summary
-
console.log(response)now renders a clean summary (via@xmorse/playwright-core@1.59.7) — no env var dump, no 400K+ output:Response@response@abc123 { url: 'https://...', status: 200, statusText: 'OK', headers: [...] }
Fixes #82.