dsh-smooth-cursor-patched: DSH Web Smooth Comet Cursor (Community-Patched Version)

Introduction

When writing prompts or answering question cards in DSH Web, the native input cursor jumps instantly: after editing long passages, dragging to select words, or soft-wrapping lines, the cursor position and visual feedback often don’t match expectations. Community plugins such as dsh-smooth-cursor already change the cursor to a smoothly sliding one with support for accent colors and thickness; the upstream has not been updated since 2026-09-09, and several reproducible issues remain in some scenarios. Below is an introduction to the patched branch dsh-smooth-cursor-patched released by maintainer ThinkofRain1213: while preserving the smooth cursor experience, it fixes empty input, selection-following, line-break positioning, and scroll overshoot, and also covers the answer input box of question cards.

What is this

dsh-smooth-cursor-patched is a client-side plugin for the DeepSeek Harness (DSH) Web client, categorized as “Fun Cosplay” in the community directory. It is derived from the personal patched branch of Lacquervii/smooth-cursor; the maintainer states that energy is limited and updates may be interrupted, and if upstream resumes maintenance, priority will be given to merging back into upstream.

In one sentence: it provides a smooth comet-style cursor for the DSH Web chat input box (and the answer box of ask_user_question interactive cards), writes settings into the browser’s localStorage, and patches known defects item by item relative to upstream.

Which scenarios are patched compared to upstream

For the issues listed by upstream dsh-smooth-cursor in its documentation, this branch handles them as follows:

  1. Empty content and first focus — On empty input or first click, a zero-height rectangle is measured and the cursor does not display; this branch performs layered measurement and empty-line fallback for rich-text input boxes.
  2. Bidirectional selection following — When dragging forward to select, it always takes the 0th rectangle of the selection range, causing the cursor not to follow the mouse; this branch takes the first/last rectangle based on selectionDirection, and includes the selection end point and direction in re-measurement.
  3. Soft line breaks and empty lines — On an empty line, range.getBoundingClientRect() snaps back to the previous position, leaving the cursor at the end of the previous line; this branch preferentially measures the actual <br> height at soft-wrap and empty paragraphs.
  4. Long-text scrolling — Without clipping, an out-of-bounds cursor drifts over the chat area or toolbar; this branch culls and clips according to the input box’s scroll viewport.
  5. Ask interface — Upstream only covers textarea[data-phase]; this branch also covers the answer input box of question cards.

Additionally, a new cursor breathing (blinking) feature is introduced: aligned with the VS Code / native ~500ms beat (breathing after 0.5 seconds of no operation, steady while typing), and can be toggled independently in the plugin settings.

Core features

Verified against the README, the current version (npm package 0.1.9-patched.6) exposes the following capabilities:

  • Smooth cursor — Eases toward the target character position.
  • Cursor breathing toggle — 500ms beat, can be turned off or on.
  • Appearance — Palette accent color, custom color picking, cursor thickness.
  • Persistence — Preferences saved in localStorage, changes take effect immediately.

Inspiration and implementation boundaries: the smooth effect is inspired by the VS Code smooth cursor concept and references the Obsidian community’s animated-cursor; rendering and DSH Web integration are independently rewritten. Licensed under MIT.

Installation and enabling

Version requirements: DSH 0.1.6-alpha.2 and later. The plugin configuration page depends on @deepseek-ai/dsh-client-ui-plugin-manager (which provides the plugins.bundle.config slot since that alpha); in 0.1.5 and earlier there is no plugin management interface, the configuration area does not render, and the cursor still works according to existing preferences in localStorage.

The plugin is installed with the Web profile. Recommended to install from npm:

dsh plugin --profile web add dsh-smooth-cursor-patched

You can also install from a specified GitHub repository:

dsh plugin --profile web add github:ThinkofRain1213/dsh-smooth-cursor-patched

After installation, refresh or restart dsh web. Configure it on the bundle details page under Plugins → This plugin: the configuration area is located between the description and “Included components”. Since the current strategy of this plugin, only the plugin page remains as the single configuration entry point (the former input cursor line under “Settings → General” has been removed to avoid duplication).

Typical usage

  1. Complete the installation above and open DSH Web.
  2. Click to focus in any covered input box (the main chat composer or the question card answer box); the smooth cursor takes effect immediately.
  3. Open the Plugins → dsh-smooth-cursor-patched configuration area:
    - Toggle cursor blinking;
    - Choose an accent color or a custom color;
    - Adjust cursor thickness.

No service restart is required; preferences only affect the current browser environment.

For local development, if you need to register the bundle manually, the id / name must match the package name (e.g. dsh-smooth-cursor-patched). Do not change it back to upstream smooth-cursor / dsh-smooth-cursor, otherwise a loader id conflict will cause Failed to load plugins. Development build commands are listed in the repository README (pnpm run build, etc.).

Applicable scenarios and notes

Who it’s for: Developers or everyday users who frequently edit prompts in DSH Web, answer in question cards, and want the input cursor to be more responsive and visually consistent (including a breathing beat).

Ecosystem note: DSH adopts an “everything is a plugin” extension approach; the SkillHub directory page is a community site with no official affiliation with DeepSeek / High-Flyer; installation sources should be npm or the GitHub repository.

Security and maintenance: The plugin is injected and runs with the DSH Web client; its permission boundary is consistent with the current DSH process and browser environment. Before installation, it is recommended to browse the source code and MIT license on the GitHub repository. The repository CI covers type checking, build, and registration id validation, but there are no automated tests at present; cross-browser cursor behavior needs to be manually verified by yourself. The maintainer notes that issue replies may be slow.

Conclusion

dsh-smooth-cursor-patched is a patched continuation of the community smooth cursor solution: it turns the DSH Web input experience into a configurable smooth comet cursor, and makes targeted fixes for edge cases such as empty input, word selection, line breaks, and scrolling. For installation or issues, you can visit the directory page thinkofrain1213/dsh-smooth-cursor-patched and the source repository ThinkofRain1213/dsh-smooth-cursor-patched.

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

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

Xiaoye