The folder sidecar was written as a whole document with no concurrency control, and any read failure silently degraded to an empty document, so a later edit could erase every workspace's folder configuration. Rework the read/write path end to end: - Agent side: expose a content revision, require If-Match on PUT, answer 409 with the current document, serialise read-compare-write, and fail the GET loudly instead of serving an empty overlay. Unknown schema versions are reported and never downgraded back to v1. - Client: load/save report failure instead of fabricating an empty document, edits go through one serial queue with optimistic update, rollback on error, and reload on conflict. Editing is blocked while the overlay cannot be read. Creating a workspace is compensated when the follow-up save fails, so no orphan workspace is left behind. - Paths: normalise NFC and lexically fold "." and "..", decide absoluteness by spelling instead of process.platform, share one implementation between core and host, and keep an existing root when a member is re-registered at the same path. - Remote folders: resolve the owner root from the SSH probe instead of the "~" alias, and make "subfolder of this project" versus "register a new cloud workspace" an explicit choice in the dialog. - Stop shipping the client source map, which embedded the full TypeScript sources in the published package. - Track the SSH integration plan and cover the new behaviour with tests (CAS, persistence, remote path parsing). Verification: both tsconfigs typecheck clean, 288 tests pass, build succeeds, and all three ad-hoc verifiers pass. |
||
|---|---|---|
| docs | ||
| lib | ||
| scripts | ||
| src | ||
| tests | ||
| tools | ||
| .gitignore | ||
| CHANGELOG.md | ||
| DEVELOPMENT.md | ||
| LICENSE | ||
| NOTICE.md | ||
| README.md | ||
| README_ZH.md | ||
| cordis.patch.yml | ||
| package.json | ||
| pnpm-lock.yaml | ||
| screenshot.png | ||
| tsconfig.build.json | ||
| tsconfig.client.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
| workspace-groups.example.yaml | ||
README.md
English · 简体中文
dsh-better-workspace-group
A workspace grouping plugin for DeepSeek Harness. Built on z-col/dsh-workspace-groups, it keeps workspaces, folders, and sessions easier to organize and use from the sidebar.
Preview
Implemented features
- Workspace groups: browse by group → project → session, with group creation, renaming, deletion, folding, and pinning.
- Drag-and-drop organization: move projects into or out of groups and reorder groups and projects.
- Group appearance: set group colors and icons, including a new Materials & Lab section for lab work, material structures, characterization, and functional devices.
- Multiple folders per project: attach extra folders, choose the default root, and place sessions under the folder that matches their working directory.
- Local and remote directories: create folders in local workspaces and registered SSH remote workspaces without falling back to a local mirror when a remote operation fails.
- Session tabs: open, switch, pin, rename, reorder, and close tabs, including closing other tabs or tabs to the right.
- Sidebar refinements: keep the default workspace pinned at the bottom, align row metadata and actions consistently, and scroll long appearance dialogs.
- Search and persistence: search sessions without losing their group context and keep groups, ordering, tabs, and folder settings across refreshes and restarts.
Install
For the Desktop profile:
dsh plugin --profile desktop add github:newbieQQ/dsh-better-workspace-group
For Web, replace desktop with web. Fully restart DSH or the corresponding Web profile after installation.
Basic use
- Click New Group in the workspace header, then drag projects into it.
- Use the
⋯menu on a project or group to manage grouping, appearance, and folders. - Open Folders… on a project to attach folders or choose its default root.
For automatic grouping by path or name, see workspace-groups.example.yaml and configure ~/.dsh/workspace-groups.yaml. Manual grouping works without this file.
Uninstall
dsh plugin --profile desktop remove workspace-groups-local
Credit and license
The original project was created by zcol under the MIT License. This fork adds Materials & Lab icons, the bottom default-workspace bar, consistent row actions, remote-workspace folders, and other refinements.
Original work © 2026 zcol; modifications © 2026 newbieQQ. See LICENSE and NOTICE.md.