@wangyf397/dsh-thinking-dial
v1.0.3
Published
DSH_ThinkingDial: a reasoning-level progress bar in the DSH Web composer. Click or drag to set the session reasoning effort; the bar carries a blue-to-orange-red spectrum that leans toward the selected level.
Maintainers
Readme
@wangyf397/dsh-thinking-dial
A reasoning-level progress bar for the DSH Web composer. Click, drag, or press an arrow key to set the session's reasoning effort without opening the model menu.
推理 ████████████████░░░ 高What it does
- Adds one control to the composer tool row, left of the model selector.
- Click or drag along the bar to choose a level;
←/→,Home,Endalso work. - Writes through the same per-session model directory as the shipped model selector, so the model menu's effort caption stays in sync and the next request uses the chosen effort. A running step keeps the effort it started with.
- Appears only for a model that advertises two or more reasoning efforts (DeepSeek Flash advertises
off / low / high / max). Models without reasoning metadata show nothing. - Degrades visibly instead of silently: if the model catalog or the selection is missing the control renders a dim
推理marker whose tag names the missing input (no-catalog,no-metadata, …) and logs[thinking-dial]to the browser console.
The bar
The fill is one cool-to-warm spectrum, anchored to the whole track and revealed from the left, so the visible tip alone tells you the level:
| Level | Track position | Tip color |
|---|---|---|
| low | 33.33% | cyan hsl(188 88% 58%) |
| high | 66.67% | pink hsl(330 88% 58%) |
| max | 100% | orange-red hsl(12 90% 56%) |
- 24 hue stops spread over equal thirds (blue → cyan → pink → orange-red) with a light lavender bridge across the cyan-to-pink gap, so no stretch re-reads as a second blue band.
- A level-colored layer above the spectrum pulls the whole bar toward the selected level's hue (opacity
.10 / .25 / .40for low/high/max), so switching level repaints the entire bar, not just its tip. - Inside the revealed part a rainbow sheen drifts, a white sweep crosses it, and a glowing spark rides ahead of the sweep.
prefers-reduced-motionstops the drift and hides the spark. - All chrome (track, label, value) uses DSH theme tokens and follows light/dark automatically.
Install
In the Web UI: Plugins → Install, then confirm @wangyf397/dsh-thinking-dial. This is the supported path — it installs the package and selects the bundle, so cordis.patch.yml is applied to the active profile.
The CLI forwards to pnpm, which only installs the package, so bundle selection is a second step:
dsh plugin --profile web add @wangyf397/dsh-thinking-dialthen add the package to dsh.profile.bundles in that profile's package.json:
"dsh": { "profile": { "bundles": ["@wangyf397/dsh-thinking-dial"] } }Restart the profile after editing the profile manifest; a page refresh is enough for later client-only edits.
The package is a bundle: cordis.patch.yml inserts the plugin row, and the browser half registers into the conversation.input.left slot declared by @deepseek-ai/dsh-client-ui-conversation.
Requirements
- DSH Web (
dsh web) with@deepseek-ai/dsh-client-ui-model-selectionmounted — it provides themodelDirectoriesservice this control reads and writes. - No configuration, no credentials, no network calls of its own.
License
MIT
