Back to home

kaidiren

dsh-reasoning

No description

Stars
0
Language
TypeScript
Created
Aug 15, 2026
Updated
Aug 15, 2026

Introduction

@kaidiren/dsh-reasoning

English | 中文

DSH web GUI plugin: auto-expand assistant reasoning (Think rows).

What it does

  • Expand thinking: while the setting is on, every Think row (the collapsible deep-thinking block) appears expanded by default — streaming thought and freshly loaded history included. Turn it off and rows stay collapsed, expandable per-row by clicking.
  • Settings card: a card in the plugin-configuration section of Settings > Plugin config (a sibling of the "Web UI plugins" group card) toggles the behavior; the choice persists in the browser (localStorage).

The plugin is DOM-based on purpose: disclosure state lives in React component state (collapsed content is not in the DOM at all), so the reliable hook is forwarding clicks on the stable data-* attributes emitted by the official conversation UI (data-variant="think", data-disclosure-row, data-expandable, data-open).

Install

From npm (recommended)

dsh plugin --profile web add @kaidiren/dsh-reasoning

From the repository (development)

git clone https://github.com/kaidiren/dsh-reasoning.git
cd dsh-reasoning
pnpm install
pnpm build
dsh plugin --profile web add link:$(pwd)

Restart dsh web after installing.

Known limitations

  • Depends on the conversation UI's data-* contract; a future DSH release that renames the attributes would need a selector update.

License

BSD-3-Clause.