Skip to content

[Bug] Desktop v1.18.5: UnsupportedContentType error on project reload after update #38789

Description

@Start-Gao

Description

After upgrading to Desktop v1.18.5, the app shows a notification on startup:

无法重新加载test
UnsupportedContentType

The "test" project is the current workspace directory.

Root Cause

The error UnsupportedContentType originates from the generated client SDK (packages/client/src/generated/client.ts), thrown when the server returns a Content-Type header that is neither application/json nor text/event-stream.

This appears to be related to the dual-server compatibility ("Current" architecture) changes in #38462. The new server protocol detection logic is likely sending a request that gets back an unexpected Content-Type response.

Environment

  • OpenCode Desktop v1.18.5
  • Windows 11
  • Project: D:\Workspace\Demo\test

Steps to Reproduce

  1. Install/upgrade to Desktop v1.18.5
  2. Open the app
  3. The app loads the "test" project and shows the error notification

Workaround

(Needs confirmation)

Screenshots

N/A (terminal error notification)

Additional Context

  • Clearing Desktop cache did not resolve the issue
  • The project directory contains normal files (json, html, mjs, md)

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