v0.4.0 — collapsible reasoning summary cards
What's new
Replace native "思考/Thinking" disclosure rows in the DeepSeek Harness conversation view with collapsible summary cards:
- 🏷️ Model badge with vendor logo (DeepSeek whale / OpenAI / Claude / Gemini / Qwen) + name + token badge
- 📊 Context (token estimate), Reasoning (stages), Tools (mention detection), Completion (real measured elapsed)
- 📜 Full reasoning text, live-updating during streaming
- 🧩 Self-healing selectors (
data-variant="think"attribute + install-time class probe) - 🛟 Degraded fallback keeps the native row visible if the body cannot be mounted
Hardening (2 adversarial review rounds)
- Fix: click toggle operated on the JS object instead of the DOM element (pill did nothing)
- Fix: regex infinite-loop freeze (
TOOL_REmissing global flag) - Fix: fabricated 0.0s elapsed for already-finished rows → now shows "—"
- Fix: model probe mis-matched "Settings"/"Workspace" triggers → anchored on effort badge
- Fix: keep-branch regression that hid all pills (collapsed rows lack thinkBody in DOM)
- Fix: installer
rm -rfguard over-blocked the default$HOME/Documentspath - Fix: HMR dispose/version safety, fallback text pollution, WCAG AA contrast
- Security: zero
innerHTML/eval; all DOM writes via createElementNS/textContent
Install
git clone https://github.com/AOWAYHONG/dsh-hide-reasoning.git
cd dsh-hide-reasoning
./install.sh
# restart `dsh web`, hard-refresh (Cmd+Shift+R)Attached: dsh-hide-reasoning-plugin.zip (installer package with install/uninstall scripts).