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.

Package
dsh-auth-cookie-guard
Compatibility
Unverified
Version
1.0.6
License
MIT
Last updated
Nov 19, 2026

Other repositories with this package name

Install

$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,启动一次让清理跑完,再调回默认值即可。