zink-ning-lkr/dsh-ui-state2

@zink-ning-lkr/dsh-ui-state

界面状态持久化——官方左侧边栏开合与宽度跨重启恢复(自渲染 DOM,官方 client 通道),兼容 DSH 0.1.0-rc.8 及更新 0.1.x 版本线

AI 分析

核心用途是自动保存并恢复左侧边栏的折叠状态、宽度以及会话的滚动位置。适合希望在重启 DSH 或刷新页面后保持原有界面布局的用户。

パッケージ
@zink-ning-lkr/dsh-ui-state
バージョン
0.2.0
ライセンス
MIT
最終更新
2026/08/26

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zink-ning-lkr/dsh-ui-state

ドキュメント

README 全文を読む ↗

配置存储

ui-state:
  sidebarCollapsed: false   # 用户显式折叠后为 true
  sidebarWidth: 360         # 最近一次展开宽度
  chatScroll:               # 按会话保存的非底部阅读位置(自动维护,可手删)
    "":
      anchorKey: "..."
      anchorTop: 120
      scrollTop: 480
      updatedAt: 1750000000000