Skip to content

RangeError: Maximum call stack size exceeded #10202

Closed

Description

@baiyf-git

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 none of these address your specific case.

  2. ndtn-dev commented on Jan 23, 2026

    @ndtn-dev

    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.

  3. 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