kvker/dsh-window-state-plugin ↗★ 0

dsh-window-state

DeepSeek Harness plugin: remember the desktop window position and size across launches.

包名
dsh-window-state
兼容性
待验证
Cordis 依赖范围
~4.1.0
版本
0.1.0
许可证
MIT
最近更新
2026年11月17日

同名包的其他仓库

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kvker/dsh-window-state-plugin

使用

  1. 重启后把窗口拖到想要的位置、拉到想要的尺寸;
  2. 正常退出 DSH;
  3. 再打开,窗口回到上次的位置和尺寸。

第一次启动时还没有记录,保持默认位置;之后就会记住。

配置

在 ~/.dsh/profiles/desktop/cordis.patch.yml 里用同 id(window-state)覆盖:

- id: window-state
  config:
    storageKey: 'dsh-window-state:v1'
    minWidth: 520
    minHeight: 600
    saveIntervalMs: 1000
    restoreDelayMs: 400
字段默认值说明
enabledtrue总开关。
storageKeydsh-window-state:v1localStorage 里保存矩形的键。
minWidth / minHeight520 / 600与 Electron 主进程一致的最小尺寸。
saveIntervalMs1000轮询保存间隔。
restoreDelayMs400窗口显示后再补一次恢复的延迟。
stateDir~/.dsh/window-state诊断文件目录。