Repository navigation
[desktop] dsh-auth-* cookie 无上限累积,约一个月后请求头超 16 KiB 触发 431 崩溃 #11650
Replies: 2 comments
|
补充几条能定位到代码的根因,以及一个已验证的规避方案。 环境:DSH Desktop 为什么每次启动都会新增一个 cookie
阈值能精确算出来单条约 229 B(
临界点和公式严丝合缝,所以「用了一个月突然崩」是必然,不是偶发。 补充一个观察: 建议的修复(任意一条都能止血,前两条互不冲突)
用户侧规避(已实测,升级不丢)在用户 patch 层 - id: connection
name: "@deepseek-ai/dsh-client-connection"
config:
cookieMaxAgeDays: 3
trustedHosts: !!js ctx.webStartup.trustedHosts注意 patch 对 实测(直接读
|
|
pnpm install dsh-cookie-cleaner ① 先看现状(客户端开着也能跑,只会告诉你读不到)& "$env:USERPROFILE.dsh\profiles\desktop\node_modules.bin\dsh-cookie-cleaner.cmd" ② 完全退出客户端:托盘图标 → 退出,并确认进程列表已无 DeepSeek HarnessGet-Process | Where-Object { $_.ProcessName -match 'DeepSeek|dsh' } # 应当没有输出 ③ 清理(先看会删几条,再真删)& "$env:USERPROFILE.dsh\profiles\desktop\node_modules.bin\dsh-cookie-cleaner.cmd" --clean --dry-run |
Uh oh!
There was an error while loading. Please reload this page.
dsh-desktop-auth-issue.md
All reactions