jitianjiyan/dsh-auth-cookie-guard ↗★ 44

dsh-auth-cookie-guard

Give the local listener a header budget large enough for its own launch cookies, and retire the cookies of every earlier start, so the desktop welcome handshake cannot lock a profile out after ~72 restarts.

包名
dsh-auth-cookie-guard
兼容性
待验证
版本
1.0.6
许可证
MIT
最近更新
2026年11月19日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:jitianjiyan/dsh-auth-cookie-guard

配置

在 profile 的 patch 层给这一行加 config 即可(maxHeaderBytes 会被夹到 16 KiB–1 MiB,keep 到 1–64):

- id: auth-cookie-guard
  name: dsh-auth-cookie-guard
  config:
    maxHeaderBytes: 131072
    keep: 4

一般不需要改。若某台机器上 cookie 已经多到超过 64 KiB(约 350 次启动),把 maxHeaderBytes 临时调到 262144,启动一次让清理跑完,再调回默认值即可。