kvker/dsh-window-state-plugin ↗★ 0
dsh-window-state
DeepSeek Harness plugin: remember the desktop window position and size across launches.
같은 패키지 이름의 다른 저장소
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kvker/dsh-window-state-plugin使用
- 重启后把窗口拖到想要的位置、拉到想要的尺寸;
- 正常退出 DSH;
- 再打开,窗口回到上次的位置和尺寸。
第一次启动时还没有记录,保持默认位置;之后就会记住。
配置
在 ~/.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
| 字段 | 默认值 | 说明 |
|---|---|---|
enabled | true | 总开关。 |
storageKey | dsh-window-state:v1 | localStorage 里保存矩形的键。 |
minWidth / minHeight | 520 / 600 | 与 Electron 主进程一致的最小尺寸。 |
saveIntervalMs | 1000 | 轮询保存间隔。 |
restoreDelayMs | 400 | 窗口显示后再补一次恢复的延迟。 |
stateDir | ~/.dsh/window-state | 诊断文件目录。 |