Skip to content

feat: implement the REPL integration#46

Merged
shadowusr merged 2 commits into
masterfrom
users/shadowusr/TESTPLANE-995.initial
Jun 10, 2026
Merged

feat: implement the REPL integration#46
shadowusr merged 2 commits into
masterfrom
users/shadowusr/TESTPLANE-995.initial

Conversation

@shadowusr

@shadowusr shadowusr commented May 14, 2026

Copy link
Copy Markdown
Member

What's done?

Implemented the REPL integration. The idea is that REPL can be yet another "backend"/"transport" for communicating with browser, so the BrowserAdapter was introduced, which will let us use other backends in the future, namely connect to CDP endpoints.

Currently, this integration lets agents perform two crucial actions:

  • run code
  • take snapshot

Other commands will return an error similar to Tool 'navigate' is not yet supported with REPL sessions. Currently supported in REPL mode: snapshot, run-code.

Which together means that agents can execute & debug tests line-by-line.

API is attach-to-repl, then other tools automatically begin using the repl connection. Command help output:

Usage: testplane-cli attach-repl [options]

Attach to a running Testplane REPL session

Options:
  --port <value>  Testplane REPL TCP port
  --host <value>  Testplane REPL TCP host (default: "127.0.0.1")
  -h, --help      display help for command

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ec1c0021ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

}

return tool.cb(args, browser);
return tool.cb(args, browser as never);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Gate MCP actions by REPL transport

When an MCP client opens a session with attach-repl, browser becomes a ReplBrowser, but this path still invokes every action tool regardless of its new supportedTransports value. Tools such as click and navigate are marked launch-browser only and call Webdriver-specific methods that ReplBrowser does not implement, so MCP users can hit runtime failures after attaching to a REPL; the daemon path added a transport check, but the MCP server needs the same guard or transport tracking.

Useful? React with 👍 / 👎.

@shadowusr shadowusr force-pushed the users/shadowusr/TESTPLANE-988.qol-changes branch from 6519311 to 25c0f3b Compare May 17, 2026 20:22
@shadowusr shadowusr changed the base branch from users/shadowusr/TESTPLANE-988.qol-changes to master May 17, 2026 20:49
@shadowusr shadowusr force-pushed the users/shadowusr/TESTPLANE-995.initial branch from ec1c002 to 7817082 Compare May 17, 2026 20:53
@shadowusr shadowusr merged commit 4f2f022 into master Jun 10, 2026
7 of 8 checks passed
@y-infra y-infra mentioned this pull request May 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants