Double-click an archived session in the sidebar to unarchive and open it in one gesture, replacing DSH's native double-click-to-rename.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:TryToFindHeart/dsh-archived-open
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
中文 → README.md
Is this for you?
DeepSeek Harness (DSH) hides an archived session behind a guard: clicking its sidebar row only shows "Archived sessions cannot be opened. Unarchive it to view.", and double-clicking the title triggers DSH's native rename. You have to unarchive first, then click again.
- You archive a lot and keep wanting to look back at old sessions. Install it. Double-click once to open the session.
- You only want to peek and keep the archive state as it is. Do not install it. This plugin really unarchives — the session returns to the normal list.
- You never archive, or never reopen archived sessions. Skip it.
Quick start
# 1. clone into ~/.dsh/plugins/dsh-archived-open
git clone https://github.com/TryToFindHeart/dsh-archived-open.git ~/.dsh/plugins/dsh-archived-open
# 2. register it in the desktop profile
dsh plugin --profile desktop add link:$HOME/.dsh/plugins/dsh-archived-open
# 3. restart DSH
dsh.bundle.patch points at the bundled cordis.patch.yml, so the plugin is
inserted into the plugin tree automatically; there is no profile patch to edit
by hand.
After the restart, double-click any archived session: it is unarchived and opened in the same gesture, and DSH's native double-click rename no longer appears.
What it does
It fuses "unarchive" and "open" into one double-click, replacing the native double-click rename.
- Double-clicking an archived row in the sidebar unarchives the session and opens it.
- The row's own controls (the "…" menu, archive/pin buttons) behave as before.
- Rapid repeated double-clicks restore once.
- Single clicks keep DSH's native archived-session toast; they do not unarchive.
- Double-click rename on non-archived sessions is unchanged.
- A rejected unarchive is not swallowed: it writes an
errorline instead of silently jumping the view somewhere else.
How it works
DSH 0.2 funnels every session-row click through one guard:
const guardedOpen = (sessionId) => {
if (archivedSessionIds.includes(sessionId)) {
notifyArchivedNotOpenable()
return
}
open(sessionId)
}
An archived session can therefore never be opened. Unarchiving itself is a
shipped capability (uiWorkspace.unarchiveSession); it is simply not wired to
the double-click.
The plugin intercepts dblclick first, in the capture phase on document
(before React's delegated onDoubleClick):
- match
[data-row-key="session:<id>"]where<id>is inarchivedSessionIds; preventDefault()+stopPropagation()+stopImmediatePropagation(), so the title span's native double-click rename never receives the event;await unarchiveSession(id);- wait for the local snapshot to drop the id (at most 3 seconds);
openSession(id).
Step 4 is mandatory: DSH enforces "an archived session cannot stay open", so opening before the snapshot updates would clear the view right away.
Single clicks are not touched: archived rows still show DSH's native toast.
Diagnostics
Every stage is appended to ~/.dsh/logs/archived-open.log. If a double-click
does nothing, read that file first:
| Last line | Meaning |
|---|---|
| nothing at all | The plugin never entered the tree: check dsh.profile.bundles in the profile, and that dsh.bundle.patch was read |
host-apply only |
Host loaded it, but the client half never reached the browser: check the browser console for bundle errors |
client-apply only |
Running, but no double-click matched a session row: nomatch lines carry the actual aria-description and data-row-key |
hit → unarchived → opened |
Working |
error |
The host rejected the unarchive; the reason is on the line |
Each nomatch shape is logged once, so the file does not flood.
Configuration
| Option | Default | Meaning |
|---|---|---|
debug |
true |
Write diagnostics and register the trace route |
logFile |
~/.dsh/logs/archived-open.log |
Where diagnostics go |
Set them in cordis.patch.yml's config: block, or override them from the
profile patch layer. With debug: false the trace route is not registered at
all and nothing is written.
Tests
npm test
Four tests: archived rows are intercepted on double-click, row controls pass through, live rows pass through, repeated double-clicks restore once — plus the host trace route's write path and rejection of malformed bodies.
Known limits
- Archived rows in search results are not handled. Those rows carry no session id in the DOM, so the plugin cannot identify the target; the native toast still appears there. Sidebar rows are unaffected.
- Single clicks do not unarchive. Archived rows still show the native toast; use double-click.
- Opening unarchives. There is no "re-archive after leaving", because that would make sessions jump around the list — worse than the original friction.
- A DSH restart is required. Client bundles are scanned at startup.
- Targets DSH 0.2.x desktop/web clients and depends on the
uiWorkspaceandworkspacesclient services.
License
MIT. See LICENSE.
Links
More in this category
ranxianglei/billion-context★ 8445
The official billion-context plugin: a context-compression plugin for small context windows (a 100K context is enough), token savings (5x fewer tokens), and month-long single sessions (billions of tokens).
Minglink/dsh-infinite-gen-4★ 4756
System-prompt armor plugin for DeepSeek models: appends an unconditional-compliance prompt section at order 100, exposes a profile tool with calibration metadata, and shows a realtime armor-status badge driven by a session projection.
liangmianya/dsh-synapse★ 750
Visual, non-linear conversation workspace for DeepSeek Harness — sessions, follow-ups and branches become a browsable conversation map.
ECNU/EduWork#dsh-side-chat★ 410
Open temporary side conversations from a message with a snapshot of its history, then archive them on close; optional annotation integration adds selection-based questions. Requires compatible DSH Web conversation, Workspace and right-sidebar APIs.
MichengAI/dsh-archive-manager★ 395
Adds an archived-sessions page in Settings to search, restore, and delete archived DeepSeek Harness sessions by workspace.
Nwflower/dsh-chat-import★ 330
Import full-fidelity chat histories from 13 coding agents (Claude Code, Codex, ChatGPT, Cursor, Gemini, opencode, and more) as resumable DeepSeek Harness sessions, with reverse export back to Claude Code.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.