Skip to content

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

Closed

Description

@gotofd-ops

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

Activity

  1. github-actions commented on Jan 23, 2026

    @github-actions
    Contributor

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

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

  2. avimehenwal commented on Jan 23, 2026

    @avimehenwal

    Can confirm same issue on Mac using zsh shell as well

  3. LeonMueller-OneAndOnly commented on Jan 23, 2026

    @LeonMueller-OneAndOnly
    Contributor

    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.

  4. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions