Introduction

In DSH web sessions, the answer content might be mixed with thinking blocks and tool call content. dsh-session-state is a DSH interface plugin: it defaults to collapsing Think blocks and tool call content, allowing the answer content to be displayed directly; and adds a session activity status bar above the session input box, displaying the cumulative counts of Think / Edit / Bash / Read in real-time, which can be expanded and collapsed.

What is this

In a nutshell: An interface plugin for DeepSeek Harness web used to collapse thinking and tool content within the session, and provide an expandable session activity status bar above the input box.

Repository URL: https://github.com/Hanice404/dsh-Session-State. License: MIT.

The target platform is DeepSeek Harness web (dsh --profile web), with a version requirement of 0.1.0-rc.7 or later.

Core Features

Collapse Thinking Process

Enabled by default. Hides Think blocks in the session, allowing the answer content to be displayed directly. Restores the native collapse style when disabled in settings.

Collapse Tool Content

Enabled by default. Hides tool call content (Bash / Edit / Write / Read / Search / Code) in the session, collapsing it just like thinking blocks, keeping only the answer content.

Session Activity Status Bar

Displays the cumulative counts of the four activity types (Think / Edit / Bash / Read) above the input box. Both the toolbar and the expanded panel are aligned with the input box on the left and right sides.

Expand to View Content

After clicking the status bar to expand, each category is a collapsible section listing the actual content of each activity in that category, and the entire panel is scrollable.

Running Indicator

Categories that are running have a breathing light effect. Animations are automatically disabled under prefers-reduced-motion.

Persistence

The three switches collapseThinking, collapseTools, and statusBar are all saved in the dsh-session-state section of ~/.dsh/settings.yaml.

Installation and Enablement

First, confirm that you are running in the dsh --profile web environment and that the DSH version is 0.1.0-rc.7 or later.

Install from GitHub

The README marks this command as available after release:

dsh plugin --profile web add https://github.com/Hanice404/dsh-Session-State/archive/refs/heads/main.tar.gz

Install from Local Directory

You can use a local directory during development and debugging:

dsh plugin --profile web add file:/path/to/dsh-Session-State

You can also install directly in the profile directory using pnpm:

cd ~/.dsh/profiles/web && pnpm add "file:/path/to/dsh-Session-State"

Do not use link: to install this plugin. This profile uses nodeLinker: hoisted, and link: generates a symlink pointing to the plugin’s source code directory. Node resolves the internal @deepseek-ai/* imports based on the real path of the symlink, leading to:

Cannot find package '@deepseek-ai/dsh-settings'

Restart dsh web

Restart dsh web after installation to load the new plugin bundle on the browser side. First, Ctrl+C to stop the current dsh web, then run:

dsh web

Typical Usage

Directly Edit Settings

Currently, collapseThinking, collapseTools, and statusBar do not have independent setting pages; you can directly edit the dsh-session-state section of ~/.dsh/settings.yaml:

dsh-session-state:
  collapseThinking: true
  collapseTools: true
  statusBar: true

Field meanings:

  • collapseThinking: Default true, collapses the thinking process and directly outputs the answer content
  • collapseTools: Default true, collapses tool call content (Bash / Edit / Write / Read / Search / Code) and directly outputs the answer content
  • statusBar: Default true, displays the session activity status bar

DSH version 0.1.0-rc.7 and above automatically exposes these settings to the browser, requiring no extra steps.

View in Interface

The status bar displays the cumulative counts of Think / Edit / Bash / Read. After clicking the status bar to expand, each category is a collapsible section where you can view the actual content of each activity. Running categories have a breathing light effect; animations are automatically disabled under prefers-reduced-motion.

Applicable Scenarios and Notes

Suitable for:

  • Wanting to prioritize seeing answer content in DSH web sessions, reducing interference from Think blocks and tool call content
  • Needing to view the cumulative counts of Think / Edit / Bash / Read above the input box
  • Needing to expand the status bar to view the actual content of each activity

Notes:

  • The plugin runs with the current dsh process permissions; check the source code and license before installing.
  • The target platform is DeepSeek Harness web (dsh --profile web), with a version requirement of 0.1.0-rc.7 or later.
  • Currently, the three switches do not have independent setting pages; you can directly edit ~/.dsh/settings.yaml.
  • For dependency declarations, see package.json peerDependencies:
  • @deepseek-ai/cordis ^4.0.1
  • @deepseek-ai/dsh-client-ui-settings ^0.1.0-rc.6
  • @deepseek-ai/dsh-client-ui-slots ^0.1.0-rc.6
  • @deepseek-ai/dsh-settings ^0.1.0-rc.6
  • @deepseek-ai/schemastery ^3.18.1
  • react ^18.0.0

Conclusion

The value of dsh-session-state lies in separating thinking processes, tool calls, and session activities into two layers: displaying the answer content directly, summarizing activity status above the input box, and expanding only when details are needed.

GitHub Repository: https://github.com/Hanice404/dsh-Session-State. License: MIT.