MichengAI/dsh-archive-manager ↗★ 82
@michengai/dsh-archive-manager
NPM-installable DSH Web plugin for managing archived sessions. 适合积累了大量历史会话,需要高效分类、检索和恢复归档的用户。
インストール
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MichengAI/dsh-archive-managerドキュメント
README 全文を読む ↗Usage
| Goal | Action |
|---|---|
| Archive one chat | Open its sidebar menu and choose Archive session |
| Archive a workspace | Open the workspace menu and choose the option to archive its chats |
| Find an archive | Open Settings → Archived sessions, then choose title/content search or filter by project, favorites, and dates |
| Change the order | Sort by update time, creation time, title, or most/fewest turns |
| Restore one chat | Click the restore icon, or choose More → Restore and open |
| Archive a project or ungrouped chats | On Unarchived, open the group’s … menu and confirm archiving all chats in that group, regardless of search filters |
| Favorite a chat | Click its right-side star; use the favorites dropdown to filter |
| Preview archived content | Click a match snippet or More → Quick preview |
| Clean up idle chats | On Unarchived, set idle days, preview candidates, and confirm |
| Locate a session | Copy its ID or path from More |
| Handle read errors | Expand diagnosis, diagnose first, and confirm repair when eligible |
| Archive across projects | Switch to Unarchived, select sessions across projects, then click Archive and confirm |
| Restore or delete in bulk | Select chats and use the bulk actions, or use the project menu; there are no separate Restore all / Delete all buttons |
The page opens on Archived, with Unarchived on the right. Switching tabs clears selections; changing search or project filters preserves them. Check the hidden selection count before applying bulk actions, or clear your selection first.
Select all filtered results selects matching sessions, including collapsed groups. Project-wide actions still apply to the whole project regardless of search filters. Unarchived excludes subagents and blank placeholders.
Settings and sidebar batch archive/restore call the single-session APIs serially: official ctx.workspaces.archiveSession on every supported host, official ctx.workspaces.unarchiveSession on DSH 0.1.6+, and this plugin's workspaceRegistry.unarchiveSession on older hosts.
Favorites and idle cleanup
Compact project groups can be collapsed. Stars and restore/archive icons appear on the right; archived session menus include restore-and-open and deletion.
- Use the star on either tab and the Favorites only dropdown to find important chats. Favorites persist on the host across archive, restore, and browser changes. Reopen management to see changes made in other pages. Unknown or unreadable sessions retain their stored favorite IDs; cleanup requires confirmed artifact absence.
- On Unarchived, enter 1–36,500 whole idle days and preview candidates under the current filters. Deselect individual candidates before confirmation. Favorites, the current chat, running sessions (including subagents), and pending interactions are protected; sessions without a valid activity time are excluded.
- Archive rechecks favorites and activity. Batch archive, restore, and delete report successful, skipped, failed, and remaining items; the first failure stops the batch. Retry only the remainder. Delete retries still require confirmation.
- Undo this archive restores sessions archived by the current batch, including successful retries. It is available only while the current management page remains open; refreshing or closing clears it. Permanent deletion cannot be undone.
- Favorites can still be archived manually. Protection applies to idle cleanup only. There is no scheduled or automatic background cleanup.
View and continue archived conversations
Native conversation navigation has been available since 0.1.40; 1.0.0 uses these entry points:
- Click the session title: open the native DSH session to view messages, attachments, and tool details. Continue chatting while keeping the session archived.
- More → Restore and open: unarchive the session and open it to resume work.