anomalyco / anomalyco/opencode
browser_eval always fails: "undefined is not an object (evaluating 'c.split')"
@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
- Open any tab in a group where eval is enabled (e.g. group
debug) - Call
browser_evalwith trivial code, e.g.1+1 - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.