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

dsh-window-state

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

Package
dsh-window-state
Compatibility
Unverified
Cordis peer range
~4.1.0
Version
0.1.0
License
MIT
Last updated
Nov 17, 2026

Other repositories with this package name

Install

$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诊断文件目录。