Repository navigation
Replies: 1 comment
|
感谢,我是升级导致的一直报错,以为是插件冲突了,排查了半天 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
DeepSeek Harness 启动时的握手逻辑(lib/main.js 中 connectDesktopWelcome):
authenticateWebHost() — 用 Node 原生 fetch 访问本地 host URL,不带 Cookie,每次都成功(返回 303 + Set-Cookie)
connectDesktopWelcome() — 用 Electron net.fetch(url, { credentials: "include" }) 再访问一次,要求响应必须是 2xx,否则抛 desktop welcome: Web authentication failed
第 2 步会带上 Electron 会话里 host=127.0.0.1 的全部 Cookie。你的 Cookie 罐里堆积了 71 个历史 dsh-auth-* Cookie(每次启动新增一个,从不清理,最早可追到 10-13),算下来 Cookie 请求头约 15.8 KB,正好顶到 Node HTTP Server 默认的 maxHeaderSize 16384 上限 → 服务端返回 431 → !response.ok → 启动崩溃。
这也解释了为什么日志里 renderer 控制台是空的、以及为什么今天才开始炸——是累积到临界值才触发
这个 Cookie 泄漏是应用自身的 bug,会再次累积——大约再启动 70 次左右会重新触发。届时执行这条即可:
rm ~/Library/Application\ Support/@deepseek-ai/dsh-desktop/Cookies*
All reactions