bigfatdsh/dsh-cookie-guard ↗★ 0
dsh-cookie-guard
清理 DSH 登录 Cookie 的累积增长,修复请求头超过 16KB 后 Web UI 永久打不开的问题。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bigfatdsh/dsh-cookie-guardREADME
Read the full README ↗配置
在 bundle 的 cordis.patch.yml(或 profile patch)里覆盖:
- insert:
- id: cookie-guard
name: dsh-cookie-guard
config:
maxHeaderBytes: 262144
keepOtherCookies: 3
cookieBudgetBytes: 4096
| 键 | 默认 | 说明 |
|---|---|---|
maxHeaderBytes | 262144 | 监听器的 maxHeaderSize。必须大于 16 KiB,旧请求才进得来。范围 16 KiB–1 MiB。 |
keepOtherCookies | 3 | 除当前实例外,最多保留几条其它端口/实例的有效 Cookie。用于 DSH 多开。范围 0–8。 |
cookieBudgetBytes | 4096 | 认证 Cookie 的预算;超过时从最旧的开始删。范围 256 B–16 KiB。 |
只跑一个实例、想更激进,可设 keepOtherCookies: 0,这样除当前 Cookie 外全部删除。
代价是同时开着的另一个 DSH 窗口下次请求会掉登录,需要重新打开它的 token URL。