Skip to content

Plugin causes OpenCode 1.1.53 to crash with 'Failed to reload ui' error #1559

@tangchunwu

Description

@tangchunwu

Bug Report

Environment

  • OpenCode Version: 1.1.53
  • oh-my-opencode Version: 3.2.3 (latest)
  • OS: macOS (Darwin 25.2.0)
  • Installation Method: npm install in ~/.config/opencode

Description

After installing oh-my-opencode plugin, OpenCode completely breaks with multiple critical errors:

  1. UI Loading Failed: "Failed to reload ui"
  2. Provider Request Errors: error sending request for url (http://127.0.0.1:65322/provider) (and other random ports)
  3. Session System Crash: "无法加载 ui 的会话" (Cannot load UI sessions)
  4. File System Failure: "列出文件失败" (Failed to list files)

Steps to Reproduce

  1. Install oh-my-opencode:

    cd ~/.config/opencode
    npm install oh-my-opencode
  2. Add plugin to ~/.config/opencode/opencode.json:

    {
      "plugin": ["oh-my-opencode@latest"]
    }
  3. Restart OpenCode

  4. Result: OpenCode UI completely breaks with the errors mentioned above

Expected Behavior

Plugin should load without breaking OpenCode's core functionality.

Actual Behavior

  • UI fails to load
  • Session system crashes
  • File listing fails
  • All core OpenCode features become unusable
  • OAuth server (127.0.0.1:xxxxx) crashes immediately after startup

Workaround

Removing the plugin from opencode.json and restarting OpenCode restores functionality:

{
  "plugin": []
}

Additional Context

  • The OAuth server indicator (bottom-left corner) turns green on startup, then immediately turns red
  • Same behavior occurs with or without opencode-antigravity-auth plugin
  • Even with all providers successfully authenticated, the plugin still causes crashes
  • This appears to be a compatibility issue specific to OpenCode 1.1.53

Providers Configured (all working without the plugin)

  • OpenAI (OAuth)
  • GitHub Copilot (OAuth)
  • antigravity (API)
  • Kimi For Coding (API)

Error Screenshots Reference

The errors appear as notification banners:

  1. "Failed to reload ui - error sending request for url (http://127.0.0.1:65322/provider)"
  2. "无法加载 ui 的会话"
  3. "列出文件失败"

Suggestion

This seems like a critical compatibility bug with OpenCode 1.1.53. Would appreciate investigation or guidance on supported OpenCode versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions