sssdex/dsh-plugins--plugins-runtime-dsh-auth-cookie-guard ↗★ 0

dsh-auth-cookie-guard

根治 DSH 桌面端启动崩溃:每次启动都会新增一条按端口命名的 dsh-auth-* cookie 且从不清理,累积到 71 条约 15.6KB 就会越过 Node 16KB 请求头上限触发 431,表现为 desktop welcome: Web authentication failed。本插件在宿主侧抬高头上限并在种新 cookie 时批量删除旧 cookie,稳态恒为 1 条。

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

Other repositories with this package name

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add 'github:sssdex/dsh-plugins#f06e2114f14b334430adf24e0c6ce63e17de29f0&path:plugins/runtime/dsh-auth-cookie-guard'

配置(都可选)

在 profile 的 cordis.patch.yml 里:

- id: dsh-auth-cookie-guard
  name: dsh-auth-cookie-guard
  config:
    maxHeaderSize: 1048576        # 抬到多少字节;false 关掉抬高(只做清理)
    maxDeletionsPerResponse: 128  # 单次响应最多下发多少条删除指令
    raiseHeaderLimit: true        # 设 false 则不碰 maxHeaderSize
    cookiePrefix: 'dsh-auth-'     # 不是换前缀就别动
    cookieDb: 'C:\...\Network\Cookies'  # 只在 cookie 库不在默认位置时需要