Repository navigation
Replies: 2 comments 1 reply
|
补充一例 Windows Desktop 0.2.2-rc.1 的独立实测:仅清理本地 DSH 认证 Cookie 后恢复启动,未禁用或卸载第三方插件。 环境与症状
本次实际观察
证据边界:原始崩溃日志没有 HTTP 状态,本次没有抓取真实失败请求的 netlog。上表是最小 HTTP server 的合成请求测试,不应当被解读为已直接捕获该次真实启动请求返回 431。71 条在实际 Chromium 请求中还会叠加其他请求头。 已验证的最小恢复完全退出 DSH、保存原始数据库备份后,仅执行: DELETE FROM cookies
WHERE host_key = '127.0.0.1'
AND name LIKE 'dsh-auth-%';
这与本讨论所述的 Cookie 累积问题一致。建议在桌面端管理已结束 Host 遗留的认证 Cookie,保留仍在运行实例的认证隔离,并在 welcome 错误中显示实际 HTTP 状态,减少被误判为插件故障的情况。另有 Windows 同类反馈:#12739。 隐私说明:此补充仅包含脱敏后的错误、数量和复现方法;不上传 Cookie 值、启动 token、数据库、回滚备份、账号凭据或聊天内容。 |
|
补充一例:Windows 0.2.2-rc.1 —— 71 条未过期的 摘要Windows 桌面端 环境
崩溃时间线(本地时间 UTC+8,2026-11-10)
Cookie 实测(只读,应用已完全退出)数据库: SELECT count(*) AS n, sum(length(value)) AS value_bytes
FROM cookies
WHERE host_key = '127.0.0.1' AND name LIKE 'dsh-auth-%';
-- n = 71, value_bytes = 12283
恢复过程(仅一项改动)
新增副作用:失败启动覆盖了 profile patch15:05:54(即崩溃 #2 与 #3 之间), 丢失的条目包括 证据边界
建议
|
Uh oh!
There was an error while loading. Please reload this page.
Desktop fails to start with "desktop welcome: Web authentication failed" after ~70 launches
(stale dsh-auth cookies → HTTP 431)
Version: @deepseek-ai/dsh-desktop 0.2.2-rc.1, Electron 44.7.0, macOS arm64
Symptom
Desktop refuses to start; every launch fails with:
The crash report lists recent plugin operations, which suggests a plugin cause, but the Host
starts fine with the same profile.
Root cause
BrowserAuthmints a cookie nameddsh-auth-<sha256(host:port)>with Max-Age 30 days.127.0.0.1and Path is/, so Chromium sends every previous launch'scookie on each request; nothing ever removes them.
dsh-auth-*cookies → a 16,186-byte Cookie header.431, andconnectDesktopWelcomereports any non-OK status as "Web authentication failed".Reproduction (Host side)
Start the desktop host and request
/with a valid auth cookie plus N staledsh-auth-*cookiesof the real size (name 52 bytes, value 173 bytes):
Workaround
Quit the app, then delete the stale cookies:
Suggestions
dsh-auth-*cookies for 127.0.0.1 beforeauthenticating, or mint session-lifetime cookies for desktop.
a generic auth failure.
maxHeaderSizealone only postpones the failure.All reactions