Preface

When running tasks, DSH often exhibits continuous thinking and tool invocations. These details are useful for troubleshooting but can lengthen the scroll area when expanded individually on the Web page, making it harder to quickly locate the model’s final output.

dsh-compact-activity is a DSH plugin designed to collapse continuous thinking and tool invocations into a single-line collapsible item: collapsed by default, expandable when details are needed, while keeping the model’s final output displayed normally.

Maintained by wallpap, the GitHub repository is:

https://github.com/wallpap/dsh-compact-activity

It only adjusts the Web interface display and does not modify the model context, session logs, or tool execution.

What the Plugin Does

Here are the plugin’s documented capabilities:

  • Collapse continuous thinking and tool invocations into a single-line collapsible item.
  • Collapsed by default, expandable when details are needed.
  • Model’s final output is always displayed normally.
  • Real-time display of execution status, count, and last activity summary.
  • Separate count for failed steps during the process.
  • Recognition of non-zero exit codes or termination signals from terminal tools like PWSH and Bash.
  • Displays “Execution Error” when the last process item fails or is interrupted, and “Completed” when finished normally.
  • The overall collapsed status and count text follow DSH’s language settings, supporting Chinese and English.
  • The plugin only adjusts the Web interface display and does not modify the model context, session logs, or tool execution.

Prerequisites

Confirm the usage environment before executing installation commands.

DSH Desktop

Applicable to DSH Desktop 2.0.3. Open DSH Terminal from the system tray and execute the installation, check, and verification commands for the current profile.

Standard DSH CLI/Web

Applicable to environments with dsh and pnpm already available in the terminal. Standard CLI/Web installation requires dsh and pnpm; npm cannot replace pnpm.

Local Source Installation

Local source installation requires Node.js to meet:

^22.19.0 || >=24.0.0

General Notes

  • The plugin does not have a separate settings page.
  • After installation, restart DSH Web or Desktop, and the plugin will take effect automatically.
  • Language is controlled uniformly by DSH’s Language settings.
  • Each Desktop profile has an independent plugin manifest and build configuration. After switching profiles, you need to reinstall, update, and verify commands in the target profile’s DSH Terminal.
  • Desktop applies a 24-hour minimum release time policy for newly published npm packages. When installing, prioritize using @latest and compare the latest npm version with the actual installed version in the profile.

Installation and Activation

DSH Desktop 2.0.3

Open DSH Terminal from the system tray and run for the current profile:

dsh plugin add dsh-compact-activity@latest
dsh --dump-config
pnpm list dsh-compact-activity --depth 0

dsh --dump-config checks the configuration output for the current profile. pnpm list dsh-compact-activity --depth 0 shows the actual installed version of the plugin. After verification, restart DSH Desktop.

Due to Desktop’s 24-hour minimum release time policy, do not rely solely on command success after installation; compare the latest npm version with the actual installed version in the profile. If versions do not match, reinstall using the confirmed version.

Standard DSH CLI/Web

Run in a terminal with dsh and pnpm already available:

dsh plugin --profile web add dsh-compact-activity@latest
dsh --profile web --dump-config

dsh --profile web --dump-config checks the configuration for the web profile. After verification, run:

dsh --profile web

Local Source Installation

After confirming the Node.js version meets ^22.19.0 || >=24.0.0, run in the plugin directory:

pnpm install
npm run check
dsh plugin --profile web add .
dsh --profile web --dump-config

npm run check executes project checks. After verification, run:

dsh --profile web

Typical Usage

After installing and restarting DSH Web or DSH Desktop, the execution process will be displayed as follows:

  • Continuous thinking and tool invocations enter the same single-line collapsible item, collapsed by default.
  • Expand the corresponding collapsible item when details are needed.
  • Status, count, and last activity summary are displayed during execution.
  • Failed steps during the process are counted separately.
  • Non-zero exit codes or termination signals from terminal tools like PWSH and Bash are recognized and counted as failed steps.
  • Displays “Execution Error” when the last process item fails or is interrupted.
  • Displays “Completed” when finished normally.
  • Model’s final output is always displayed normally and does not disappear due to process collapsing.
  • The overall collapsed status and count text follow DSH’s language settings, supporting Chinese and English.

Update and Uninstallation

DSH Desktop Update or Uninstallation

Run in DSH Desktop’s DSH Terminal:

dsh plugin update dsh-compact-activity --latest
dsh plugin remove dsh-compact-activity

After updating, check the actual installed version in the profile again and compare it with the latest npm version. Restart DSH Desktop after the operation.

Standard DSH CLI/Web Update or Uninstallation

Run in the terminal:

dsh plugin --profile web update dsh-compact-activity --latest
dsh plugin --profile web remove dsh-compact-activity

After command execution, restart the corresponding process according to the current usage method of standard DSH CLI/Web.

Applicable Scenarios and Notes

This plugin is suitable for users who use DSH Web or DSH Desktop and want to collapse process information to prioritize viewing the final output. It is more suitable for scenarios with long tool calls, multi-step thinking, and the need to quickly locate the final answer on the page.

Note the following before use:

  • The plugin is loaded and executed by the current dsh process, so it inherits the permissions available to that process. Before installation, check the source code, dependencies, and the LICENSE file in the repository. The retrieved materials did not specify a concrete license name, so this article does not state a definitive license.
  • The plugin only adjusts the Web interface display and does not modify the model context, session logs, or tool execution.
  • Peer dependencies are provided by the DSH host and should not be manually installed into the profile; the current version marks them as optional peers.
  • Each Desktop profile has an independent plugin manifest and build configuration. After switching profiles, you need to reinstall, update, and verify commands in the target profile’s DSH Terminal.
  • Desktop applies a 24-hour minimum release time policy for newly published npm packages. When installing, prioritize using @latest and compare the latest npm version with the actual installed version in the profile.
  • Standard DSH CLI/Web scenarios require dsh and pnpm; npm cannot replace pnpm.
  • Local source installation requires Node.js ^22.19.0 || >=24.0.0.

Conclusion

The value of dsh-compact-activity is not in changing model execution but in organizing DSH’s process information into a more browseable collapsed structure: processes can be collapsed, failures counted, status follows DSH’s language switching, and the final output remains clearly visible.

Repository URL:

https://github.com/wallpap/dsh-compact-activity