dsh-fold-polish: Folding, Layout, and Finding in DSH Session Area

Preface

When running multi-turn conversations or lengthy tool step chains in DeepSeek Harness (DSH), the native transcript often occupies excessive vertical space: long user prompts, assistant bodies, and working step blocks stack together, and the widths of the input box and right sidebar cannot always be adjusted to suit user habits. The following introduces the community client plugin dsh-fold-polish (display name in settings: UI Beautification), which collapses messages and working steps, makes the composer and right sidebar adjustable, enables searching within collapsed content, and provides per-turn duration and confirmed local conversation deletion without modifying model requests.

What is this

dsh-fold-polish is published by maintainer FiVE0016 and categorized as a Client plugin (dsh.client, Web platform, immediately: true). The current package version is 1.1.0 with an MIT license; the host requirement is DSH >= 0.2.0-rc.1 (README development acceptance is based on the host 0.2.1-rc.2 DOM contract).

Plugin Positioning: Enhancement of conversation reading and layout for DeepSeek Harness — display features do not modify model requests; local conversation records are only altered upon user confirmation for deletion.

Core Features

Long Message Collapse

User inputs and assistant bodies default to retaining only 3 lines of text (older defaults of 6 or 10 lines will be migrated to 3 lines upon first upgrade). Click the arrow-adorned “Expand my input / Expand full text · N more lines” pill to expand, or “Collapse” to fold back; the user-side button is right-aligned, and the assistant-side is left-aligned. Images are displayed in full and do not count towards line limits; scroll wheels and hovering will not trigger accidental expansion.

The latest turn remains expanded by default but can be manually collapsed. You can disable “Keep latest turn expanded” in settings, or enable “Collapse all messages” to apply a uniform 3-line budget (the latter takes precedence). Short messages are not collapsed; streaming text remains expanded.

Working Steps

Restores the original two-layer interaction: by default, a thin line and a circular arrow are displayed between steps and replies; multiple step segments initially retain only a double-arrow, which, when clicked, reveals the switches for each segment while keeping content collapsed. A single arrow expands the current segment; an arrow with a horizontal line expands or collapses all steps; the double-arrow “Collapse all” retracts both content and switches. If there is only one segment, the double-arrow directly controls the content. If “Keep only one button by default” is turned off, the switches for all segments are displayed directly. Since version 1.0.2, step button text is disabled by default, reverting to circular buttons; if text is needed, enable “Show text on buttons”.

Input Box Height

Drag the handle at the top edge of the input card: drag up to increase height, down to decrease; double-click to restore the host’s natural height. The handle does not occupy layout space, and tool buttons maintain native bottom spacing; the handle supports arrow keys for height adjustment and Home to reset. Pixel heights can also be entered in the settings page, and selections will be saved.

Set the right sidebar width to 30–70% of the entire application frame in settings. Closing the right sidebar causes the conversation area to bounce back immediately; reopening retains the setting. Actual width is still subject to host limits: at least 400px is reserved for the conversation area.

Find (Collapsed content is searchable)

Select “Find” in the right sidebar to search loaded user inputs, assistant bodies, and tool steps, including content within collapsed sections. Clicking a result expands any obstructions, locates, and highlights the matched text; Enter cycles from the first item, and Shift + Enter cycles backward. Earlier paginated history must be loaded by the host before searching.

Per-Turn Duration

After a full turn is confirmed and finished, “Turn duration: X.X seconds” is displayed at the end of the last reply. The time is derived from the earliest processing start and final step completion recorded by the host, including tool execution; durations are not fabricated for historical turns lacking reliable timestamps.

Delete Local Conversation

Select “Delete conversation…” in the left conversation menu, verify the name, and select “Delete local record”. Cancelling makes no changes; conversations currently being processed must wait until completion before deletion. The list updates after deletion; workspace files, attachments, and other conversations are retained. Since 1.1.0, local deletions involving server-side processing require reloading the entire plugin or restarting DSH after upgrading.

Complex content (videos, canvas, embedded web pages or forms) remains intact to preserve the original components; message previews only truncate text and retain all images, and clicking images still follows the original image logic.

Installation & Activation

The fetched materials do not provide a one-line installation command such as dsh plugin add github:…. The README explains: you can use the host’s plugin manager to install the local packaged .tgz; alternatively, view the plugin entry on the SkillHub directory page and proceed with the installation flow within the host.

After installation or upgrading, if you have modified the plugin’s included src/ and built it yourself, you must execute a build and reload the plugin or restart DSH for the host to load the new client.js:

npm run build

If using the local conversation deletion capability after upgrading to 1.1.0, you similarly need to reload the entire plugin or restart DSH.

The plugin runs with the permissions of the current DSH process; you should review the source code and the MIT license before installation to ensure compliance with your security and compliance requirements.

Typical Usage

  1. Open Settings → Plugins → UI Beautification to adjust collapse line counts, latest turn behavior, step button styles, input box pixel height, right sidebar ratio, etc., as needed.
  2. In long conversations, click the expand/collapse pill next to messages, or use the single and double arrows in the step area to control the visibility of tool steps.
  3. Drag the handle at the top of the input box to adjust height; enter a pixel height in the settings page when a precise value is required.
  4. Open “Find” in the right sidebar to search keywords in the current session (including collapsed blocks), and use Enter / Shift + Enter to navigate between results.
  5. To clear a specific local transcript, follow the confirmation flow of Delete conversation… → Delete local record, and do not force deletion while the conversation is still processing.

Use Cases & Notes

Suitable for: Users who perform long-context development and troubleshoot multi-tool steps in DSH daily, wishing for a more compact transcript, more convenient composer and right sidebar, the ability to search keywords within collapsed content, and to view single-turn duration or delete only local conversation records.

Notes:

  • Pure client-side display enhancement; does not change request content sent to the model.
  • Search scope is limited to loaded conversation pages; earlier history requires host loading first.
  • Right sidebar and conversation area widths are constrained by the host’s minimum conversation width (400px).
  • The community directory SkillHub is an independent site with no official affiliation with DeepSeek / High-Flyer; star counts and entry information are subject to the directory page and GitHub (current lead star count is 0).

Developer local acceptance environment: Node >= 20 (Node >= 22 recommended for browser testing), no runtime npm dependencies; optional npm test, npm run test:browser, npm run check for regression (see repository README and DEVELOPING.md for details).

Conclusion

dsh-fold-polish (UI Beautification) consolidates the most common reading pain points in DSH conversations—long messages, long steps, fixed layouts—into the settings page and the right sidebar’s “Find”, and supports local conversation deletion with confirmation. For entry details, open the SkillHub Directory Page; for implementation and changelogs, refer to the GitHub Repository.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye