Repository navigation
Conversation
clawdcursor only attaches to a running browser over CDP (connectOverCDP), which playwright-core provides. The playwright package adds the test runner on top (~5 MB installed) and nothing clawdcursor uses. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BKm7nbpP8aK35EfAYVt7NL
This branch has not been deployed
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.
Requested by Amr · project thread
Summary
clawdcursor only attaches to a browser that's already running, through
chromium.connectOverCDP. That comes fromplaywright-core. Theplaywrightpackage is a wrapper that adds the test runner (about 5 MB installed), which clawdcursor never uses. This is 1 of 5 separate simplification PRs.Changes
package.json/ lockfile:playwright→playwright-coreat the same version range (^1.64.1, locked at 1.64.1).src/platform/cdp-driver.ts,src/core/confirm-mode.tsandbench/lib/*now point toplaywright-core. The API is the same.vi.mock('playwright')→vi.mock('playwright-core')in 3 tests.scripts/verify-install.jsnow checks forplaywright-core. Its fix hint was wrong before: it saidnpx playwright install chromium, which installs a browser, not the package. It now says to reinstall.scripts/bundle-cli.mjsexternal list, plus mentions in the eslint comment and SECURITY.md.I didn't add a CHANGELOG entry because there's no Unreleased section, and 5 parallel PRs editing the top of the changelog would conflict. It's worth one line at release time.
Test plan
npm run typecheckclean,typecheck:testsclean, lint: 0 errors (same 3 warnings as main)vitest --project unit: 4111 passed, 6 skipped (same as main)npm run test:mcp-schema-snapshot: OK (compact 6, granular 90)npm run buildand loadingdist/platform/cdp-driver.jsworkplaywright-coreconnectOverCDPto a running Chromium, thengetByText().click()Risk / scope
Low. It's the same library at the same version, imported from the package that actually contains it. No guarantees in SECURITY.md are touched.
Generated by Claude Code