dsh-status-flair: Customizing the Status Line for DSH Web Chat

Introduction

In the DSH (DeepSeek Harness) web chat interface, when the model is still processing a request, the chat area displays a running status line, such as “DeepSeek-ing, 7s elapsed · · ·”. The text, along with its color, font size, icon, and shimmer animation, all come from the official client components and theme variables.

If you only want to change the status text or unify it with your own visual style, directly modifying the DSH installation directory or forking the chat component is costly and prone to conflicts during host upgrades. The community plugin dsh-status-flair (maintained by AkotaP) takes a different approach: instead of rewriting the chat component, it uses CSS to override the appearance and wraps locale.translate to replace the text, while preserving the option to “fully use the default DSH settings”. This article introduces its positioning, capabilities, and installation instructions. For the most accurate information, please refer to the GitHub Repository README and the SkillHub Catalog Page.

What is this

dsh-status-flair is a running status customization plugin for the DSH web client, categorized under “Fun Customization”. It provides preset-driven configuration and switching strategies for the running status line in chat (text, color, font size, icon, shimmer rhythm). The appearance layer and text layer are independent of each other and can be fixed or randomized separately. It includes a Default sentinel item that uses the official DSH styles and chat.deepDiving / chat.deepDivingFor text directly without duplicating official assets, ensuring default behavior can sync with official changes after host updates.

The current README indicates plugin version 0.4.0 (Unreleased); engines.dsh in package.json requires >= 0.2.1-rc.2, and the license is MIT.

What does it change

The plugin applies a layered approach to several sources of the running status line in DSH 0.2.1-rc.2. The summary is as follows.

Layer Official Source Plugin’s Approach
Text chat.deepDiving / chat.deepDivingFor Wraps locale.translate, intercepting only these two keys
Color .running and --dsw-alias-label-deep-diving Resets color and shimmer variables on [data-chat-running]
Font Size font-size of .running Overrides font size; icon size follows
Icon Official APNG mask + static SVG Draws preset icons using the mask (built-in SVG / Official Whale / Custom SVG·PNG)
Shimmer TextShimmer keyframes Overrides animation-duration / play-state; 0ms can disable it

The implementation relies only on stable DOM hooks (like [data-chat-running], [data-shimmer]) and does not use build-time hash class names.

Core Features

Appearance Presets and Text Presets

  • Appearance Preset (Look): Color, font size, icon, shimmer rhythm; presets themselves do not store “randomness”.
  • Text Preset (TextPreset): A set of candidate sentences; also does not embed random strategies.
  • Selection Strategy: Appearance can be fixed to a preset or randomized from candidates; text is first fixed or randomized to a group, then within the group, a sentence is selected via “First / Random / Round-robin”. The two layers can be randomized independently.

Switching Timing is controlled by global triggers: Default is re-drawing every conversation turn; it can also be set to fixed or random intervals, or every N steps. Disabling “per-turn trigger” for a layer retains the last selection until other trigger conditions are met.

The factory configuration comes with three appearance presets (e.g., Warm Gold, Dreamy Purple, Terminal Green, interface translated based on zh / en) and no text groups; on first run, text is provided by the official running line. You can create text presets when needed.

Default Item: DSH Native

When Appearance or Text selects default (shown as “Default (DSH Native)” in the UI):

  • Appearance: No plugin CSS variables are set, no <html> markers are applied, and the running line is fully rendered by DSH.
  • Text: translate passes through as-is, displaying official chat.deepDivingFor.

This id does not occupy a custom preset slot, and the plugin does not copy official colors, whales, or text.

Text Placeholders

Text supports DSH native template syntax. For example, {duration} will be replaced by the host-calculated duration (e.g., 7秒 / 7s, depending on interface language); other {name}s are kept as-is. Example: DeepSeek-ing {duration}.

Event Strategy (Since 0.3.0)

Beyond global selection, you can configure Event Rules and Groups: Match rules based on DSH activity categories (14 types such as thinking, read, search, write), tool result brief hints (tool-error / tool-success), and output phases when no tools are used (builtin:waiting / builtin:thinking / builtin:responding) to specify appearance and text selections for different scenarios. Rules take the first valid match in list order; the master switch is off by default. New configurations include four editable starter rules (both Appearance and Text fixed to default).

Event handling uses the existing shared event source of the current main session without subscribing to additional sessions; minRefreshMs defaults to 3000ms to control the minimum refresh interval for event-driven switches.

Configuration and Persistence (0.4.0)

Large config blocks have been migrated to an independent plugin file: Dev versions save to <profile-dir>/dsh-status-flair/settings.json via the authenticated API, supporting in-page drafts, explicit “Save Changes”, and config backup/import. Since 0.4.0, actual profiles do not automatically migrate old blocks; please refer to migration instructions in the repo. Settings entry: Settings → Plugins → Status Flair.

The UI provides an enable switch, two-layer strategies, live preview, preset creation/edit/copy/delete, and custom icons (built-in SVG, paste SVG, upload transparent PNG; optional “Whale (DSH Native Animation)” reads the official APNG mask from the host stylesheet).

Installation and Enabling

Installation modifies profile configuration under %USERPROFILE%\.dsh (or the corresponding user directory on Linux) and requires a DSH restart (which will interrupt running sessions). The plugin runs with current DSH process permissions; please review the repo source code and MIT license before installing.

Method 1: Plugin Page

Sidebar “Plugins” → “Add Plugin”, enter the repository URL:

https://github.com/AkotaP/dsh-status-flair

DSH will probe the repo using git ls-remote and then hand it to pnpm for installation; once done, confirm the plugin is enabled in the list. After publishing to npm, the same input box can accept the package name dsh-status-flair.

Method 2: Command Line (desktop profile)

dsh plugin --profile desktop add https://github.com/AkotaP/dsh-status-flair

Equivalent syntax after npm publication:

dsh plugin --profile desktop add dsh-status-flair

After installation, restart DSH and open the “Status Flair” configuration panel on the Plugins page. To uninstall, use the Plugins page or:

dsh plugin --profile desktop remove dsh-status-flair

And confirm the item has been removed from dsh.profile.bundles in the profile.

Typical Usage

  1. After installation and restart, go to Settings → Plugins → Status Flair and turn on the enable switch.
  2. Configure Appearance and Text strategies in “Default Selection”: e.g., Fix Appearance to “Terminal Green”, Randomize Text to a group and use round-robin within the group; the preview area ★ marks the item actually drawn in the current preview.
  3. Create a Text Preset, write sentences containing {duration}, save changes, start a conversation, and observe if the running line updates as expected.
  4. If you need to switch styles based on tool activity, switch to “Event Rules and Groups”, configure groups and rule priority, enable the Event Rules master switch, and save (starter rules default to DSH native appearance and text; you can expand to modify as needed).

Editing enters an in-page draft and applies to preview immediately; only clicking “Save Changes” writes to settings.json. “Discard Changes” or leaving the page reverts unsaved modifications.

Use Cases and Notes

  • Suitable for: Developers who use DSH web chat long-term, want to unify running status text and visuals, or display different hints based on phases like reading files/searching/responding, without modifying host source code.
  • Notes: Depends on DSH >= 0.2.1-rc.2 and web client injection points; the whale APNG swing speed is determined by the asset, CSS cannot rewrite it. To customize animation, upload your own PNG or SVG.
  • Ecosystem: DSH advocates “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.

Conclusion

dsh-status-flair decouples the running status into configurable appearance and text layers without touching the chat component core, plus optional event-driven rules. The default item aligns with DSH official behavior, facilitating trade-offs between “fully official” and “fully custom”.

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

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

Xiaoye