Preface¶
Developing Agents in DeepSeek Harness (DSH) often leads to tool calls, media displays, and Markdown files piling up in the conversation stream: default cards have high information density, and viewing files with local paths often requires switching to an external editor. The dsh-chat-enhancement (displayed as “Chat Enhancement” in the UI) by community maintainer vb2250158 is aimed at the Web client, layering capabilities such as preview, collapsing, language, and recovery onto the official UI slots; package.json describes it as providing inline previews for DSH chat tool results. The current version is 0.3.72, and the license is MIT. The SkillHub directory page lists the GitHub source and indicates an update about one week ago; the repository has 0 stars, and the directory currently has no public summary, so details are subject to the README.
What is this¶
dsh-chat-enhancement is a public client plugin for DSH. It injects multiple @deepseek-ai/dsh-client-ui-* modules via the Cordis bundle and exports Host-side capabilities (such as ./typert, session title providers, etc.). It does not change the “everything is a plugin” architecture but extends the existing chat stream, sidebar previewer, and Host services: inline display of media and Markdown, collapsing of tool rows and thinking rows, language segmentation for thinking/replies, interrupted session recovery, selection annotation, goal duration tracking, etc. Some capabilities depend on manual patching and rebuilding of Harness source code via host-patches or patches within the repository, which is independent of the pnpm dsh plugin add installation flow.
Core Features¶
The following list is based on the “Scope” section and recent release notes in the README, listing only items explicitly written in the documentation.
Inline Preview for Media and Markdown¶
show_image: Saved as managed attachments via the DSH filesystem backend (including mounted NAS); displays thumbnails within the chat; supports fullscreen preview, download, pagination in conversation order, and pinned floating windows with adjustable ratios (approx. 20%–78% screen height).show_video/show_audio: Buffers media within the DSH process and provides playback to the browser via session-bound tokens; does not expose raw paths. Supported formats are listed in the README (e.g., MP4/WebM, MP3/WAV). The default single-file limit is 50 MiB (configurable viamaxVideoBytes/maxAudioBytes).- Markdown:
.md/.markdownchips in the chat open an inline preview upon clicking; supports local absolute paths, paths relative to the session workspace, and parent directories; must be regular UTF-8 files; default read limit is 2 MiB (maxMarkdownBytes). Sessions without a working directory can still preview absolute paths. - The browser retrieves bytes via
readAttachmentauthorized per session; does not readfile://and does not connect directly to NAS. PDFs still require a separate managed protocol.
Conversation Stream Display and Language¶
- Three or more consecutive tool calls or thinking segments can be collapsed into a summary row; the latest one always remains outside the summary. Media display cards do not participate in collapsing.
- Assistant reply action rows can display the actual model name for that turn (derived from the
requestConfigof that message); the running status slot can display the actual requested model and provider for the current turn (requires the host to provide the corresponding extension slot). - Thinking and Reply Language: After selecting a language in the plugin configuration, the Host injects a language segment at the end of the system prompt; the default “Follow conversation” setting does not inject anything. This is unrelated to the interface language in “General Settings”.
- Switches for auto-expand reasoning, language drift reminders, and tool row descriptions showing the model’s self-reported description for this call are located in “Plugins → Chat Enhancement → Configuration”. Displaying tool row descriptions requires applying
patches/2026-09-16-tool-row-description.patchand rebuilding the officialui-toolpackage. If the patch is not applied, the model can still fill indescription, but the interface will not display it.
Annotations, Code References, and Goals¶
- Selection Annotation: Select text in the chat stream or Markdown preview and choose “Add as attachment” to write it to
Annotation-<sequence or time>.json(批注-<序号或时间>.json); it does not auto-send. Prefers usingaddAttachmentFiles, with a fallback to the file selector entry for older DSH versions. - Inline Code Reference Links: The Agent can use formats like
[lines 73–74](<path#L73-L74>). Clicking opens the right-side code preview and briefly highlights it; the config itemchat-enhancement.codeReferenceHighlightMsdefaults to 1600 ms (100–10000). Requires a Markdown enhancement plugin to render inline links (README mentions 0.1.5). - Goal Bar: Displays wall-clock duration since creation; shows cumulative tokens and total time at the end of the completion turn. Since 0.3.72, session statistics are separately accounted for as “context compression time”.
Interrupted Session Recovery and Management¶
- After the Host starts, it can automatically scan and resume unexpectedly interrupted sessions (
recoveryAutoResumedefaults totrue) without delivering a recovery prompt; requires corresponding Host capabilities such ashost-patches/prompt-free-recovery.patch. - Configuration items (all positive integer milliseconds):
recoveryLookbackMsdefault 86400000,recoveryPollIntervalMsdefault 1500,recoveryReadTimeoutMsdefault 30000; since 0.3.61, there is alsorecoveryScanConcurrency(1–16). - Operations CLI (requires local DSH address and
DSH_HOME):
node <plugin>/scripts/recover-sessions.mjs check --base-url <local_DSH_address> --dsh-home <DSH_HOME>
node <plugin>/scripts/recover-sessions.mjs recover --base-url <local_DSH_address> --dsh-home <DSH_HOME>
- Quota exhaustion continuation:
recover-quota --targets <JSON_file>, target format[{"id":"original_session_id","startSeq":original_turn_sequence_number}], requires additionally applyinghost-patches/quota-failure-continuation.patch. - Auto Rename (0.3.64): Regenerates titles from existing user messages in the session menu, persisted via the Host title service, and does not initiate new conversation turns.
- Chat list batch loading, Workspace folder pinning, Desktop question images, etc., are detailed in the README corresponding versions and
docs/documentation; most fields require DSH 0.2.1-alpha.1 or a compatible 0.2 release.
Installation and Activation¶
The Web configuration installation commands provided by SkillHub and the README are as follows (<commit> should be pinned to a specific commit; do not use floating branches):
pnpm dsh plugin --profile web add github:vb2250158/dsh-chat-enhancement#<commit>
Restart DSH after installation. If enabling recovery, compression statistics, session list acceleration, or other Host-side capabilities, you must also apply the corresponding host-patches or patches according to the README, rebuild the corresponding packages in the Harness root directory, and restart the Host again; patching is independent of pin/Import and must be built on each machine individually.
After installation, click this plugin in the plugin list to enter the details page for configuration; the settings menu does not duplicate this entry.
Typical Usage¶
1. After installation and restart, enable media auto-play, language, reasoning expansion, recovery window, etc., in the “Chat Enhancement” configuration as needed; items involving Host services require a DSH restart and a web page refresh after modification.
2. Recover interrupted sessions: Confirm continuation via the recovery row at the bottom of the webpage, or use the aforementioned recover-sessions.mjs; to disable auto-recovery, set recoveryAutoResume: false.
3. When the Agent displays local Markdown (relative to the workspace), the user can click the file chip to preview it inline, subject to the maxMarkdownBytes limit.
4. When used with the proactive questioning plugin (README Unreleased example), Markdown image syntax can be used in the question description; since Desktop 0.3.67, absolute local paths are read via /api/file.
5. Developer Verification (README “Verification” section):
npm run build:client
npm test
node --check lib/client.js
npm pack --dry-run
After source code changes, npm run build:client must be run before refreshing the browser; DOM tests require configuration of variables such as DSH_TEST_DEPENDENCY_ROOT and will be skipped if not configured.
Use Cases and Notes¶
Suitable for: Developers who debug Agents in the DSH Web interface for long periods, need to view images/listen to audio/read Markdown inline for tool results, want to collapse long tool chains and thinking blocks, need interrupted session continuation and session title organization, and are willing to apply official patches as needed.
Notes:
- The plugin runs under the current DSH process permissions and can read session attachments and local files via the Host (within the boundaries declared in the README); before installation, you should read the source code and the MIT license of the GitHub repository, and do not write local paths, NAS paths, or credentials into shared configurations.
- Many capabilities (recovery, quota continuation, compression statistics, session list, workspace pinning, etc.) cannot be completed by
plugin addalone; you must verify that the patches match the Harness version; if they do not match, the README explicitly prompts to update and restart. - There are version compatibility relationships with plugins such as dsh-proactive-questioning and Markdown enhancement (e.g., 0.1.6, 0.1.7); when upgrading, check the README version notes together.
- SkillHub (Directory Page) is a community plugin index and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-chat-enhancement brings tool outputs, media, and Markdown in DSH chats into a unified set of inline preview and collapsing rules, layering operational capabilities such as language, recovery, annotation, and statistics. The installation command is pinned to a commit and restarting enables basic client features, while Host-level patches are applied step-by-step according to the documentation. For more version details and patch steps, see GitHub: vb2250158/dsh-chat-enhancement and the SkillHub Directory Page.