Skip to content

Desktop app crashes on launch ("Cannot read properties of undefined (reading 'temperature')") when a connected server is on an older version #44023

Closed

Description

@OpeOginni

Description

The desktop app fails to load entirely with "Something went wrong" and this error:

TypeError: Cannot read properties of undefined (reading 'temperature')
    at normalizeAgentList

This happens when any connected server is running an older opencode version.
Servers older than ~2026-07-02 serialize agents as request: { headers, body }
(no settings — the field was added to Provider.Request in 140224b).
normalizeAgentList in the app reads agent.request.settings.temperature
without a guard, and since it runs inside a reactive computation during
bootstrap, the throw takes down the whole app before any UI renders.

Restart doesn't help (same response is fetched again), and the user can't
open settings to see or switch the offending server. One stale server bricks
the entire desktop app.

Plugins

none

OpenCode version

Desktop 0.0.0-beta-17728 (client). Any server released before 2026-07-02 triggers it.

Steps to reproduce

  1. bunx [email protected] serve --port 14096 (any pre-2026-07-02 build)
  2. In the desktop app: Settings → Servers → Add server → http://localhost:14096
  3. App crashes on next load with the error above

Verified the old server's /api/agent response contains
"request":{"headers":{},"body":{}} with no settings, which is the exact
input that crashes the normalizer.

Screenshot and/or share link

Image

Operating System

macOS

Terminal

No response

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions