dshbase

插件目录 / UI & Skins / dsh-turn-collapse

dsh-turn-collapse

已验证 · 实测可装 mctang985211-coder

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

0Stars
0Forks
0未关闭 issue
—语言
2026-08-18最近推送
跨平台平台

功能简介

UI & Skins 类别的 DeepSeek Harness 插件。

✅
我们的评价
可用 — 实测通过,早期项目

UI & Skins 类别的 DeepSeek Harness 插件。 实测能干净安装、正常启动。早期项目,但功能可用。

「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

README

dsh-turn-collapse

Codex-style turn-level folding for the DeepSeek Harness Web UI: collapse everything between two visible outputs — the reasoning chain and the tool calls — into a single disclosure unit with a triangle toggle.

English | 中文

What it does

In the default DSH chat flow, each assistant turn renders its reasoning (Think row) and its tool calls as separate collapsible rows. dsh-turn-collapse groups them the Codex way:

[▶ 思考与工具 · 5 项]    ← 折叠条:两段实际输出之间的一切(思考 + 工具调用)
文字输出 1
[▶ 思考与工具 · 3 项]
文字输出 2
  • One fold bar per gap between visible outputs (input → first output, output → output, …).
  • Bars are collapsed by default; click to expand the whole group (native Think rows and ToolRows remain individually usable inside).
  • State is persisted per session in localStorage.
  • Visual style reuses the DSH design tokens (--dsw-alias-*) and matches the native header rows.

Install

git clone https://github.com/mctang985211-coder/dsh-turn-collapse
cd dsh-turn-collapse
dsh plugin --profile web add link:$(pwd)
# restart dsh web (hard refresh the browser)

How it works

A pure client-side plugin. It watches the conversation scroll container ([data-conversation-scroll]) with a MutationObserver and reconciles fold groups from the flow items:

  • Flow node kinds come from data-chat-flow-kind (assistant-step, tool-call, …).
  • Reasoning rows are located by data-variant="think" inside each assistant-step.
  • A node counts as a visible output when, after stripping think rows and tool chains, it still contains text.
  • Consecutive non-output elements (thinking-only assistant steps + tool-call nodes) form one fold group; the disclosure bar is inserted before the group's first element.

React re-renders are handled by re-running the reconcile pass; group open/close state survives re-renders and page reloads via localStorage.

No host-side code, no servers, no API surface.

License

MIT

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-turn-collapse」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:mctang985211-coder/dsh-turn-collapse

Headless(CLI)profile:

dsh plugin --profile headless add github:mctang985211-coder/dsh-turn-collapse

实测报告

验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。

安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

UI & Skins 里更多

浏览全部 7819 个插件 →