Skip to content

VCS diff endpoint returns HTML instead of JSON causing TypeError in Web UI #19291

Closed as not planned

Description

@chiachunli08

Bug Description

When opening a project folder that contains git submodules, the VCS diff endpoint returns HTML instead of JSON, causing a JavaScript error in the Web UI:

TypeError: e.diffs.map is not a function. (In 'e.diffs.map(A=>A.file)', 'e.diffs.map' is undefined)

Steps to Reproduce

  1. Open a project folder that contains git submodules
  2. Navigate to any folder within
  3. The Web UI crashes

Environment

  • OpenCode version: 1.3.0
  • OS: macOS (Darwin 25.3.0, arm64)
  • Project path: ~/Documents (contains git submodules like caibaoshuo_analysis, daily_stock_analysis)

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    webRelates to opencode on web / desktop
    on Mar 26, 2026
  2. github-actions commented on Mar 26, 2026

    @github-actions
    Contributor

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

    Please review these issues to see if your problem is already tracked, and consider closing this one if it is.

  3. removed their assignment
    on Mar 26, 2026
  4. removed
    webRelates to opencode on web / desktop
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 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

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions