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 peer 범위
~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诊断文件目录。