Skip to content

[Bug]: When CLI was installed along with 1.62, newly installed skills still reference playwright-cli instead of npx playwright cli #42135

Closed as not planned

Description

@refactoreric

Version

1.62

Steps to reproduce

  1. npm init playwright@latest (without installing browsers)
  2. npx playwright install chromium
  3. npx playwright cli install --skills agents

In GitHub Copilot in vscode enter a prompt similar to
Using the playwright-cli skills, open a new (headful) browser, navigate to https://www.playwright.dev

Expected behavior

I expected the browser to open and navigate to the Playwright website.

Actual behavior

It's trying to execute playwright-cli and not finding it, because it's only installed as playwright cli
Image

Additional context

No response

Environment

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 40.71 GB / 63.67 GB
  Binaries:
    Node: 21.0.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.0 - C:\Program Files\nodejs\npm.CMD
  IDEs:
    VSCode: 1.128.0 - C:\Users\Eric.Veltman\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
  Languages:
    Bash: 5.1.16 - C:\WINDOWS\system32\bash.EXE
  npmPackages:
    @playwright/test: ^1.62.1 => 1.62.1

Activity

  1. removed their assignment
    on Aug 5, 2026
  2. Skn0tt commented on Aug 5, 2026

    @Skn0tt
    Contributor

    I can see that your model read lines 1-260 of the Skill file, and the note about the installation is in Line 343:

    ## Installation
    If global `playwright-cli` command is not available, try a local version via `npx playwright cli`:
    ```bash
    npx --no-install playwright --version
    ```
    When local version is available, use `npx playwright cli` in all commands. Otherwise, install `playwright-cli` as a global command:
    ```bash
    npm install -g @playwright/cli@latest
    ```
    ## Example: Form submission

    How unfortunate. What model are you using, out of curiosity?

    We can solve this in multiple ways:

  3. refactoreric commented on Aug 5, 2026

    @refactoreric
    Author

    Ah I hadn't noticed that the skills file already contains that 'npx playwright cli' vs 'playwright-cli' note.

    I'm not 100% sure which model ran into the issue originally. I have my model set to Auto, and by now I changed the skills file as a workaround, replacing all 'playwright-cli' by 'npx playwright cli'.

    But it looks like most of my today's playing with Playwright CLI was routed to GPT-5.3-Codex.

  4. Skn0tt commented on Aug 5, 2026

    @Skn0tt
    Contributor

    Out of curiosity, could you try out one of the newer models with larger context and see how many lines that pulls in? Opus 5 / GPT 5.6 Sol / Grok 4.5 etc. GPT-5.3-Codex is a couple months old at this point and we'd rather optimise towards newer models. I'm also curious whether other harnesses, like the Copilot CLI, behave differently here.

  5. refactoreric commented on Aug 5, 2026

    @refactoreric
    Author

    Ouch, so many variables when testing these things 😅 . With GPT-5.6 Sol it worked better. It used the right command from the start, even though I had first deleted the skill and reinstalled the original unmodified version.
    No time to test with Copilot CLI.

  6. Skn0tt commented on Aug 10, 2026

    @Skn0tt
    Contributor

    Sounds good! If it works with Sol we're fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions