Repository navigation
Replies: 1 comment
|
The release-gap evidence here is solid, and it matches what I see on Windows with One addition to the "so what do I do today" half: user-side cleanup is one rename away and keeps the old directory for rollback — Rename-Item "$env:APPDATA\@deepseek-ai\dsh-desktop" "dsh-desktop.bak-$(Get-Date -f yyyyMMdd-HHmm)"That resets the cookie jar without touching For anyone who hits this repeatedly and doesn't want to remember the path, I packaged the check-and-reset (plus ~25 other startup failure classes, all backed up and reversible) into an MIT tool: #13243 |
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
The
dsh-auth-*cookie accumulation that kills desktop startup is already fixed onmainby93bef27(fix(desktop): remove legacy Host auth cookies from the default session, 2026-10-31), but that commit is not shipped in0.2.2-rc.1(2026-11-04), which is still the newest release. Every report of this bug on the current build is therefore expected behaviour, not a new regression — and no amount of user-side cleanup will make it stop recurring until a build containing that commit is published.This post is not another symptom report. It is the release-gap evidence, plus a request to ship the fix — or, if it must wait, to ship the self-healing fallback so the failure stops being fatal.
Environment
0.2.2-rc.1(desktop-runtime.json→nodeVersion: 24.21.0)%LOCALAPPDATA%\Programs\DeepSeek HarnessGET /releasesends atdsh-v0.2.2-rc.1, published 2026-11-04Evidence that the fix is not in the release
GET /repos/deepseek-ai/deepseek-harness/compare/93bef27...dsh-v0.2.2-rc.1returnsstatus: diverged,ahead_by: 74,behind_by: 2— the release branch is missing two commits that are on the fix's history.removeLegacyHostCookiesis the function introduced by93bef27inapps/desktop/src/web-document.ts, together with the call site inapps/desktop/src/main.tsand the log linedesktop: legacy Host cookie cleanup failed. None of the three strings exist in the packagedapp.asar, so the shipped desktop code predates the fix.What the user sees
"重启" and "禁用第三方插件、备份 profile patch 并重启" both fail, because the failure happens before any plugin loads.
Measured numbers on 0.2.2-rc.1
dsh-auth-*rows in%APPDATA%\@deepseek-ai\dsh-desktop\Network\Cookiesat crashhost_key=127.0.0.1name+valuelength401431 Request Header Fields Too LargeThe breaking point is Node's default
maxHeaderSize = 16384, one cookie before the parser refuses the header. About ten launches a day for a week reaches it.Why "restart / disable plugins" cannot help
cookieName(authority)hasheshost:port. The desktop host picks a random loopback port on every launch (--port 0), so each launch mints a new cookie name; Chromium keys cookies by host, not port, so none of the previous names is ever replaced or expired, and every request carries all of them. Once the Cookie header crosses 16 KiB the request dies in the HTTP parser, before any application code runs.Why
93bef27fixes it, and what it does not coverremoveLegacyHostCookieswalkssession.defaultSession.cookies.get({ url: origin })and removes every name starting withdsh-auth-for that hostname — including the ones minted by earlier launches. That is exactly the missing piece, and it is why shipping it matters more than any profile-level TTL workaround.One gap remains for the web build:
dsh webhas no such cleanup, which is the subject of #12938. If the desktop fix ships but the web side does not, only half the reports stop.Request
93bef27(0.2.2final, or a newrc), and mention the cookie cleanup in the release notes so the many reporters under [Desktop][P0] Startup fails permanently after ~70 launches: dsh-auth-* cookies exceed Node's 16 KB header limit → HTTP 431, reported as "Web authentication failed" #12860 / Desktop startup dies after ~70 launches: stale dsh-auth-* cookies overflow Node's 16KB header limit (HTTP 431) #12586 / Desktop startup fails with "Web authentication failed": stale dsh-auth cookies accumulate until HTTP 431 #12377 / Desktop: dsh-auth-* cookies accumulate on every launch and eventually overflow the request-header limit (0.2.1-rc.5) #12013 / Issue: Desktop startup fails with desktop welcome: Web authentication failed after stale dsh-auth-* cookies exceed the 16 KB header limit (HTTP 431) #12606 know to upgrade.?tokenexchange response, expire every otherdsh-auth-*name seen in the request'sCookieheader (Max-Age=0);--max-http-header-sizeto the host process so a future naming change cannot hard-fail the shell again.Interim workaround (verified on this machine)
Close DSH completely (including the tray), then delete:
The jar is rebuilt on next launch. On
0.2.2-rc.1this buys roughly another 70 launches.To stop the recurrence until a fixed build ships, cap the cookie lifetime from the profile instead of the archive (this is a documented
connectionconfig field, so it survives app updates):Three days holds at most ~30 rows (~6.8 KB, 42% of the limit) at ten launches a day, versus ~70 rows (~15.9 KB, 97% of the limit) at the default 30 days.
Related threads
93bef27does not cover)Submitted through Discussions per the repository README (Issues are disabled).
All reactions