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
- Install/upgrade to Desktop v1.18.5
- Open the app
- 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)
Description
After upgrading to Desktop v1.18.5, the app shows a notification on startup:
The "test" project is the current workspace directory.
Root Cause
The error
UnsupportedContentTypeoriginates from the generated client SDK (packages/client/src/generated/client.ts), thrown when the server returns aContent-Typeheader that is neitherapplication/jsonnortext/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
Steps to Reproduce
Workaround
(Needs confirmation)
Screenshots
N/A (terminal error notification)
Additional Context