- [Align Anthropic SSE Stream Error with Official Standard Type & Restore Client Auto-Retry] (PR #3613, Fixes #3612):
- Align SSE Error Event Type: Aligned the
typefield in SSE streaming error events from internal non-standard"error_detail"to the official Anthropic standard"error", ensuring full compliance with the{"type": "error", "error": {"type": "...", "message": "..."}}schema. (Thanks to @cubelikeplayDaniel) - Restore Client Error Detection and Auto-Retry: Fixed issue where Claude official desktop and Cursor treated streamed errors as text or abrupt cuts; clients now recognize official status codes and execute graceful retries. (Thanks to @cubelikeplayDaniel)
- Align SSE Error Event Type: Aligned the
- [Disable Window Transparency on Linux & Clean Up Graphics Workarounds] (Fixes #3605, Ref #3581):
- Disable Window Transparency: Set
"transparent": falseexplicitly intauri.conf.jsonto eliminate WebKitGTK 2.54 offscreen surface composition failures on GNOME Wayland and X11/Xwayland, resolving blank white and frozen windows. (Thanks to @h2kyaw) - Clean Up Obsolete Visual Workarounds & Hardcoding: Removed runtime
set_visualsetup hook inlib.rsand cleaned up unconditionalWEBKIT_DISABLE_DMABUF_RENDERER=1hardcoding inmain.rs, unifying graphics detection inconfigure_linux_graphics()while respecting user overrides.
- Disable Window Transparency: Set
- [对齐 Anthropic SSE 流错误官方标准类型并恢复客户端自动重试] (PR #3613, Fixes #3612):
- 标准错误事件类型对齐: 将 SSE 流式错误事件中的
type字段从内部非标准的"error_detail"对齐为 Anthropic 官方规范的"error",使{"type": "error", "error": {"type": "...", "message": "..."}}结构完全合规。 (Thanks to @cubelikeplayDaniel) - 恢复客户端原生错误识别与重试机制: 修复因错误事件类型不匹配导致 Claude 官方客户端、Cursor 等下游工具将流异常误判为普通文本输出或静默中断的问题,恢复客户端基于标准错误码的自动重试与优雅提示能力。 (Thanks to @cubelikeplayDaniel)
- 标准错误事件类型对齐: 将 SSE 流式错误事件中的
- [Linux 窗口透明度彻底关闭与图形 Workaround 清理] (Fixes #3605, Ref #3581):
- 禁用窗口透明度从根源解决渲染失败: 在
tauri.conf.json中明确配置"transparent": false,彻底消除 WebKitGTK 2.54 在 GNOME Wayland 和 X11/Xwayland 下因 RGBA Visual / 透明 Surface 离屏合成失败导致的白屏、纯黑与闪烁问题。 (Thanks to @h2kyaw) - 清理废弃的 Visual 调整与启动硬编码: 移除
lib.rs中已失效且可能引发 GTK 警告的 runtimeset_visualhack;移除main.rs中历史上由于透明窗口遗留的无条件WEBKIT_DISABLE_DMABUF_RENDERER=1注入,收口由configure_linux_graphics()统一自适应管理并完整保留用户的环境变量自定义覆盖能力。
- 禁用窗口透明度从根源解决渲染失败: 在
What's Changed
- fix(proxy): 对齐 Anthropic SSE 流错误官方标准类型并恢复客户端自动重试 (#3612) by @cubelikeplayDaniel in #3613
Full Changelog: v4.9.5-beta.4...v4.9.7-beta.0