dsh-todo-float: Convert the session task list into a top-right floating card

Introduction

DeepSeek Harness (DSH) provides a task list feature in conversations, displayed by default in a panel above the input box. For users who need to check task progress frequently, this placement can feel cumbersome. dsh-todo-float transforms this list into a floating card in the top-right corner. When expanded by default, it shows task names and progress; when collapsed, it shows the current task name; when all tasks are completed, it displays the completion progress. The card width is adjustable by dragging, and you can switch back to the original list mode in settings.

Plugin Overview

  • Name: dsh-todo-float
  • Maintainer: jipika
  • Category: Client
  • Core Value: Displays a collapsible task card in the top-right corner of the conversation, replacing the default panel above the input box

Two Display Modes

The plugin offers two display modes, toggleable via Settings → General Settings → Task List Display Mode.

Card Mode (Default)
- A floating card in the top-right corner of the conversation; click the card header to collapse/expand
- Expanded state shows: Task 1 done · 1 in progress · 1 pending + individual tasks
- Collapsed state shows the current task name by default; when all are completed, it shows “All done 3/3”
- Card width is adjustable by dragging, ranging from 240px to 560px

List Mode
- Restores the original DSH style: tasks are displayed in a list panel above the input box
- The width limit from card mode also applies to list mode (the capsule shape width cap is set to the dragged value)

Switching between the two modes takes effect immediately — no restart or refresh required. The mode selection is stored in localStorage["dsh-todo-float:mode"] and mirrored to <html data-todo-float-mode="card|list"> for CSS evaluation.

Installation

There are two installation methods — pick either one:

# ① npm (via registry, faster)
dsh plugin --profile <profile> add dsh-todo-float

# ② GitHub (source install, tracks the main branch)
dsh plugin --profile <profile> add github:jipika/dsh-todo-float

After installation, you need to add an insert configuration to the profile’s cordis.patch.yml:

# ~/.dsh/profiles/<profile>/cordis.patch.yml
- insert:
    - id: todo-float
      name: dsh-todo-float

Note: The desktop profile is exclusively managed by Electron. You must manually modify package.json + run pnpm install, and after modifying lib/client.js, you must restart the host process or the application.

Rollback

If you need to restore the official default behavior:

  1. Remove (or comment out / set disabled: true on) the todo-float insert line in cordis.patch.yml
  2. Restart the application

At this point, the plugin is fully uninstalled, the official dock panel and official settings revert to their original state, and no residual effects are left in localStorage.

Design Conventions

The card does not use any custom-built controls. All visual metrics and copy are sourced from DSH globals:

  • Surface: Uses declarations from the official TodoPanel.module.css (--dsw-alias-bg-base, --dsw-specific-menu, --dsw-menu-backdrop-filter, etc.)
  • Spacing: Padding 6px 12px, row gap 10px, title 13·500·24, list max-height:180px
  • Font sizes: Uses font tokens --dsw-font-xs-13 / --dsw-font-xs-strong-13
  • Status glyphs: Official StateDot (done / ongoing / idle — three levels)
  • Animations: Official duration tiers (120ms / 160ms + ease)
  • Copy: Uses official i18n; plugin-specific copy is registered in the todoFloat namespace

Known Limitations

  • Depends on official slot names (conversation.input.dock, settings.general.item), useProjection("todos"), and [data-testid="todo-panel"]; if the official implementation refactors these contracts, updates will be required
  • When switching away from and back to a conversation, the todos projection may become empty (the official panel has the same behavior — this is not a plugin bug; refreshing restores it)
羽毛球分组比赛记分
小程序二维码

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

Xiaoye