RangeError: Maximum call stack size exceeded #7316

Open
opened 2026-02-16 18:06:48 -05:00 by yindo · 2 comments
Owner

Originally created by @baiyf-git on GitHub (Jan 23, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

web ui error:
RangeError: Maximum call stack size exceeded
at kl (http://localhost:4096/assets/index-Bj9zfj-u.js:2:10527)
at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8224)
at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186)
at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186)
at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186)
at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186)

Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @baiyf-git on GitHub (Jan 23, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description web ui error: RangeError: Maximum call stack size exceeded at kl (http://localhost:4096/assets/index-Bj9zfj-u.js:2:10527) at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8224) at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186) at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186) at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186) at X5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8186) ![Image](https://github.com/user-attachments/assets/3ee6f21b-cde7-4036-84c9-b670022149b8) ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 18:06:48 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 23, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10193: opencode web cant open RangeError: Maximum call stack size exceeded
  • #10194: RangeError: Maximum call stack size exceeded in Web UI during initialization
  • #10186: An error occurred when opening OpenCode in web mode
  • #10188: [Bug] Desktop: Blank UI after update to latest version

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #10193: opencode web cant open RangeError: Maximum call stack size exceeded - #10194: RangeError: Maximum call stack size exceeded in Web UI during initialization - #10186: An error occurred when opening OpenCode in web mode - #10188: [Bug] Desktop: Blank UI after update to latest version Feel free to ignore if none of these address your specific case.
Author
Owner

@ndtn-dev commented on GitHub (Jan 23, 2026):

Debugging findings (with Claude AI assistance)

I spent a while troubleshooting this with Claude Code and we found a potentially useful clue:

https://opencode.ai/desktop-theme.json returns HTML instead of JSON

$ curl -sI https://opencode.ai/desktop-theme.json | grep content-type
content-type: text/html

$ curl -s https://opencode.ai/desktop-theme.json | head -1
<!DOCTYPE html><html lang="en">...

Claude felt this was 60-70% likely to be the root cause, noting the endpoint is named .json but returns HTML.

This would explain why:

  • All versions are affected (tested 1.1.16, 1.1.20, 1.1.32, 1.1.34 - same issue)
  • Downgrading doesn't help - the bug is server-side, not in the binary
  • Fresh installs fail - tested with clean volumes, no plugins, no config

The frontend expects JSON from this endpoint but receives the website HTML, likely causing the parsing error that triggers the infinite React reconciliation loop.

What we ruled out:

  • Cached/corrupted data (fresh Docker volumes)
  • Plugins (all disabled)
  • Reverse proxy issues (tested direct HTTP access)

Environment tested:

  • Local host: opencode web (http://127.0.0.1:4096/)
  • OpenCode server mode (Docker, linux-arm64)
  • Direct HTTP access (no reverse proxy)
  • Multiple browsers (Chrome, Firefox, Safari iOS)

Not 100% certain this is THE cause, but thought it was worth sharing since the endpoint being broken coincides with these bug reports appearing.

@ndtn-dev commented on GitHub (Jan 23, 2026): **Debugging findings (with Claude AI assistance)** I spent a while troubleshooting this with Claude Code and we found a potentially useful clue: **`https://opencode.ai/desktop-theme.json` returns HTML instead of JSON** ```bash $ curl -sI https://opencode.ai/desktop-theme.json | grep content-type content-type: text/html $ curl -s https://opencode.ai/desktop-theme.json | head -1 <!DOCTYPE html><html lang="en">... ``` Claude felt this was **60-70% likely** to be the root cause, noting the endpoint is named `.json` but returns HTML. **This would explain why:** - All versions are affected (tested 1.1.16, 1.1.20, 1.1.32, 1.1.34 - same issue) - Downgrading doesn't help - the bug is server-side, not in the binary - Fresh installs fail - tested with clean volumes, no plugins, no config The frontend expects JSON from this endpoint but receives the website HTML, likely causing the parsing error that triggers the infinite React reconciliation loop. **What we ruled out:** - Cached/corrupted data (fresh Docker volumes) - Plugins (all disabled) - Reverse proxy issues (tested direct HTTP access) **Environment tested:** - Local host: `opencode web` (http://127.0.0.1:4096/) - OpenCode server mode (Docker, linux-arm64) - Direct HTTP access (no reverse proxy) - Multiple browsers (Chrome, Firefox, Safari iOS) Not 100% certain this is THE cause, but thought it was worth sharing since the endpoint being broken coincides with these bug reports appearing.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7316