RangeError: Maximum call stack size exceeded in Web UI during initialization #7309

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

Originally created by @gotofd-ops on GitHub (Jan 23, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

A RangeError occurs in the browser when accessing the OpenCode server UI. The error persists even after attempting to reset the service environment and using a clean workspace.

Environment
OpenCode Version: 1.1.33

Deployment: opencode serve running on Linux (Systemd user service)

Access URL: http://127.0.0.1:4096

Error Details
Error Message: RangeError: Maximum call stack size exceeded

Stack Trace:

Image

Plaintext
at R0 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6834)
at pa (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6591)
at Jc (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8001)
at Y5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8969)
at http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8823
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8175)
at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186)
at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816)
at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186)
Steps to Reproduce
Start the server using opencode serve.

Open the UI in a browser (tried Incognito mode to bypass cache).

The application fails to load, showing the error modal immediately.

Additional Context
The error was initially suspected to be related to recursive symlinks or complex file structures in the workspace. However, the issue remains even when pointed to a completely empty directory using WorkingDirectory in the Systemd unit. This suggests a possible infinite loop in the frontend asset (index-Bj9zfj-u.js) during the initial state hydration or component rendering.

Plugins

None

OpenCode version

OpenCode Version: 1.1.33

Steps to reproduce

Start the server using opencode serve.

Open the UI in a browser (tried Incognito mode to bypass cache).

The application fails to load, showing the error modal immediately.

Screenshot and/or share link

Image

Operating System

ubuntu 22.04

Terminal

bash

Originally created by @gotofd-ops on GitHub (Jan 23, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description A RangeError occurs in the browser when accessing the OpenCode server UI. The error persists even after attempting to reset the service environment and using a clean workspace. Environment OpenCode Version: 1.1.33 Deployment: opencode serve running on Linux (Systemd user service) Access URL: http://127.0.0.1:4096 Error Details Error Message: RangeError: Maximum call stack size exceeded Stack Trace: <img width="1670" height="978" alt="Image" src="https://github.com/user-attachments/assets/816d3553-8792-4152-a77e-d5e034886acb" /> Plaintext at R0 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6834) at pa (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:6591) at Jc (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8001) at Y5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8969) at http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8823 at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8175) at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186) at X5 (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8816) at yr (http://127.0.0.1:4096/assets/index-Bj9zfj-u.js:2:8186) Steps to Reproduce Start the server using opencode serve. Open the UI in a browser (tried Incognito mode to bypass cache). The application fails to load, showing the error modal immediately. Additional Context The error was initially suspected to be related to recursive symlinks or complex file structures in the workspace. However, the issue remains even when pointed to a completely empty directory using WorkingDirectory in the Systemd unit. This suggests a possible infinite loop in the frontend asset (index-Bj9zfj-u.js) during the initial state hydration or component rendering. ### Plugins None ### OpenCode version OpenCode Version: 1.1.33 ### Steps to reproduce Start the server using opencode serve. Open the UI in a browser (tried Incognito mode to bypass cache). The application fails to load, showing the error modal immediately. ### Screenshot and/or share link <img width="1670" height="978" alt="Image" src="https://github.com/user-attachments/assets/6ce7a396-1e9f-4fd0-938f-2e8f8e0968cf" /> ### Operating System ubuntu 22.04 ### Terminal bash
yindo added the bugweb labels 2026-02-16 18:06:47 -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
  • #10185: [Bug] 1.1.33 web get error: Maximum call stack size exceeded
  • #10186: An error occurred when opening OpenCode in web mode (RangeError: Maximum call stack size exceeded)
  • #10188: [Bug] Desktop: Blank UI after update to latest version
  • #10163: OpenCode updated to 1.1.33 white screen

Feel free to ignore if this is a different variant or use case of the issue.

@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 - #10185: [Bug] 1.1.33 web get error: Maximum call stack size exceeded - #10186: An error occurred when opening OpenCode in web mode (RangeError: Maximum call stack size exceeded) - #10188: [Bug] Desktop: Blank UI after update to latest version - #10163: OpenCode updated to 1.1.33 white screen Feel free to ignore if this is a different variant or use case of the issue.
Author
Owner

@avimehenwal commented on GitHub (Jan 23, 2026):

Can confirm same issue on Mac using zsh shell as well

@avimehenwal commented on GitHub (Jan 23, 2026): Can confirm same issue on Mac using zsh shell as well
Author
Owner

@LeonMueller-OneAndOnly commented on GitHub (Jan 23, 2026):

Same error on macOS

I'm experiencing the exact same issue when trying to open the web UI:

RangeError: Maximum call stack size exceeded
    at R0 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:6834)
    at pa (http://localhost:4096/assets/index-Bj9zfj-u.js:2:6591)
    at Jc (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8001)
    at Y5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8969)
    at http://localhost:4096/assets/index-Bj9zfj-u.js:2:8823
    at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8175)
    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)

Environment:

  • OS: macOS (darwin)
  • Same asset file: index-Bj9zfj-u.js
  • Same stack trace pattern showing recursive calls between yr and X5 functions

This confirms the issue is not specific to Linux/Ubuntu and affects multiple platforms.

@LeonMueller-OneAndOnly commented on GitHub (Jan 23, 2026): ## Same error on macOS I'm experiencing the exact same issue when trying to open the web UI: ``` RangeError: Maximum call stack size exceeded at R0 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:6834) at pa (http://localhost:4096/assets/index-Bj9zfj-u.js:2:6591) at Jc (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8001) at Y5 (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8969) at http://localhost:4096/assets/index-Bj9zfj-u.js:2:8823 at yr (http://localhost:4096/assets/index-Bj9zfj-u.js:2:8175) 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) ``` **Environment:** - OS: macOS (darwin) - Same asset file: `index-Bj9zfj-u.js` - Same stack trace pattern showing recursive calls between `yr` and `X5` functions This confirms the issue is not specific to Linux/Ubuntu and affects multiple platforms.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7309