返回目录
模型与 MCP 插件

dsh-workspace-lastused

just-liuyi/dsh-workspace-lastused

DSH plugin: keeps the most recently used workspace first in the sidebar, persisted across restarts.

Stars
0
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:just-liuyi/dsh-workspace-lastused

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-workspace-lastused

Keeps the workspace you just used at the top of the DeepSeek Harness sidebar, and keeps that order across restarts.

English | 中文

What it does

DSH stores the sidebar workspace order in a durable registry. This plugin listens to the host's api-session/activity event — fired whenever a user message advances a Session's list activity — finds the workspace that owns that Session, and moves it before the current first workspace with workspaceRegistry.insertBefore.

Because the order is durable, the workspace stays first after a restart. No UI is touched: no DOM, no slot replacement, so a sidebar redesign is unlikely to break it.

Behavior

  • Debounced 2 seconds: a burst of messages reorders once.
  • A workspace already first is left alone (no disk write).
  • Only user-authored messages count. Merely opening a workspace without sending anything does not reorder it.
  • Pinned Sessions keep their own pinned area; this plugin only changes workspace order.

Log

Every real reorder appends one line to $DSH_HOME/workspace-lastused.log (falls back to ~/.dsh/workspace-lastused.log), trimmed to the last 200 lines. Useful to confirm what moved and why.

2026-10-19T03:20:11.402Z promoted "001" above "scratch"

Install

dsh plugin --profile <name> add github:DangDangDeng/dsh-workspace-lastused

In DSH Desktop the desktop profile is app-managed, so use Plugins → Add plugin with github:DangDangDeng/dsh-workspace-lastused.

For development, point the installer at a local checkout instead:

dsh plugin --profile <name> add <absolute path to this directory>

Limitations

  • Order changes only when a message is sent, not when a workspace is merely opened.
  • If two workspaces are used within the same 2-second window, only the later Session is promoted.
  • It is a personal preference plugin; it exposes no model tools.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。