anomalyco / anomalyco/opencode

browser_eval always fails: "undefined is not an object (evaluating 'c.split')"

Open
#44,312 0 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 23, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

browser_eval fails on every call with an internal bridge error, regardless of the evaluated code or the page. Other browser tools (get_text, get_html, query, snapshot) work fine on the same tabs.

Error returned for any input:

undefined is not an object (evaluating 'c.split')

Reproduces 100% on every page tested (example.com, heavy SPA sites), so it is not page-related. Looks like the CDP Runtime.evaluate response handler in the bridge/extension calls .split() on an undefined value.

Plugins

browser extension (live Chrome bridge)

OpenCode version

1.18.18

Steps to reproduce
  1. Open any tab in a group where eval is enabled (e.g. group debug)
  2. Call browser_eval with trivial code, e.g. 1+1
  3. Observe the same error for document.title, JSON.stringify({...}), etc.

Expected: expression is evaluated and its JSON-serializable result returned.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.