DeepSHPlugins
dsh-focus-chat 项目预览
GITHUB / COMMUNITY PROJECT

dsh-focus-chat

UI 增强TypeScript

给 dsh 加一个「聚焦会话」视图:屏蔽过程噪音,只看最终产出

21 Starsdingyi222666 更新时间 2026-09-09
访问 GitHub 仓库
dsh-focus-chat 项目预览
dsh-focus-chat 界面截图dsh-focus-chat 界面截图dsh-focus-chat 界面截图dsh-focus-chat 界面截图

项目介绍

左边是日常,右边是专注——只看结果的极简模式
中文

给 dsh 加一个「聚焦会话」视图:屏蔽过程噪音,只看最终产出

English

A "focus chat" view for dsh: silence the process noise, show only final outputs

项目信息与收录信号

快照 2026-09-11
作者 / 组织
dingyi222666
仓库
dingyi222666/dsh-focus-chat
GitHub Stars
21
Forks
1
开发语言
TypeScript
许可证
未记录
最近推送
2026-09-09
Manifest
数据中检测到声明

公开仓库不自动等于可商用;许可证与当前兼容性以原项目文档为准。Manifest 和数据评分不构成安装安全认证。

数据评分

72/ 100
维护活跃
99
文档与实用信息
74
生态关注度
40
安装便捷信号
75
项目声明信号
80

近 2 天仍在更新。

评分来自已有数据快照的五维模型,仅作浏览参考,不是实际使用评测或安全检测结论。

安装与使用

所有项目资料与许可均以对应 GitHub 仓库为准。

dsh plugin add github:dingyi222666/dsh-focus-chat

复制命令不会自动执行。请先阅读仓库文档,确认环境要求与许可证。

项目截图

仓库 README

GitHub 原文

已保存的仓库文档快照;文档抓取时间未记录,可能与上方目录介绍处于不同版本。安装前请核对当前仓库说明。

dsh-focus-chat

npm version

English | 中文

A plugin for the dsh web GUI that adds a focus chat tab — a condensed, Claude Code–style way to read a conversation.

Screenshots

Off — the normal chat viewOn — the focus chat view
Off: the normal chat viewOn: the focus chat view
Settings
Focus chat settings

Instead of watching every step live, one assistant turn collapses into a single summary line:

Thought for 36s, edited 8 files, read 17 files, listed 18 directories, ran 2 shell commands, loaded 3 context items

A whole turn can fold further into one Worked for Xm Ys line — expanding it draws the full detail (tool cards, thinking, context, produced files, copy/fork) exactly like the chat rows; mid-turn interjections split the fold into per-stretch lines, and a stopped turn reads Stopped after X. After a refresh the whole conversation shows up folded: every turn beyond the ~50-message window renders from a Host-side index as "user message + worked-for line + the assistant's actual closing reply", and its process detail loads only when that fold expands. Very long histories page the fold stack via "Load earlier turns"; a missing index silently degrades to the in-window folds.

Switch to it whenever you want the "what happened?" view, and flip back for the full transcript.

Install

# Install from npm (requires dsh >= 0.1.5-alpha.2)
dsh plugin --profile web add @dingyi222666/dsh-focus-chat
# Restart dsh web; the tab mounts automatically
dsh web

Then open the Focus chat tab in any conversation.

Notes:

  • dsh plugin behaves like adding a dependency to your web profile. A bundle plugin is loaded once its full package name appears in the profile's dsh.profile.bundles list (adds automatically on recent dsh builds; add it manually if your build does not); the bundle patch applies on the next boot.
  • With the repo source-launched CLI, run the args through the bin directly (node --import tsx/esm apps/cli/src/bin.ts ...).

Why a separate tab, and not a patch into the chat view?

Short answer: the chat view's internals aren't open to third-party plugins — by design — and this plugin deliberately never touches dsh's own source. Concretely:

  • Keyed slots are owned, not shared. The chat's rows render through slots like conversation.chat.node, tool.call.toolview, and conversation.chat.turnTail. Those slots are declared by the chat entries themselves, and the slot system rejects a second declaration at load time — the conflict *is* the design speaking. A plugin cannot insert its own rows into the chat transcript, and cannot even *declare* the chat's own slots.
  • Plugins can't reuse the chat's renderer code. Importing values from another plugin package across the bundle boundary is forbidden (the bundle purity gate), so there's no way to borrow the chat's components — every row has to be drawn from the shared primitives and the public snapshot.
  • The only legal insertion point is the conversation.view list slot — the whole message surface. That's why the plugin ships its own complete view instead of changing how the chat view displays.

If you want the chat view itself to behave differently, that's an in-repo change to the chat package — exactly what this plugin avoids.

What's missing

Focus chat is a faithful reading surface, not a second chat view:

  • Inspect focuses the trajectory view. A tool row's Inspect action opens the official trajectory view on that call (openView('trajectory', callId)) — the 0.1.5 replacement for the removed details panel. Focus cannot render third-party keyed tool views (see the next bullet).
  • Third-party tool-card extensions don't render here. Cards that other plugins add to the chat view won't appear in the focus view; the built-in card renderers are used instead.
  • Folding is per consecutive tool-run. Any visible content between two runs (a reply, a command, your interjection) keeps them separate.
  • Inline file links need the optional file-mentions service — the same off switch the chat view uses.
  • Remote fold lines lack a few window-only readings. The turn navigator rail lists window turns only; remote turns render no produced-file list (the ui-deliverables turn data), no inline file mentions, and their closing reply cannot fork (branching stays available on window turns). Per-message feedback (like/dislike) is unaffected.

Development

This build targets the dsh v0.1.5-alpha.2 client surface, and every @deepseek-ai/* runtime dependency installs from the npm registry (see package.json). The /client entries those packages ship are window.__ModuleLoader__ browser closures, and the dsh test runtime is built against the source tree, so yarn test resolves the @deepseek-ai client surface from the dsh mainline source checkout at the same 0.1.5-alpha.2 line: vitest.config.ts derives its aliases from that checkout's own tsconfig path map (the MAINLINE constant in the config) — keep the checkout on the 0.1.5-alpha.2 release and everything else stays npm-installed.
  • yarn run build — builds the browser bundle and the Node half.
  • src/client/model/ — the pure logic (folding, merging, row models, the remote turn-slice projection); src/client/view/FocusView.tsx — the view; src/host/ — the host half's turn index and RPC channel; src/protocol.ts — the wire contract shared by both halves.
  • yarn test — behavior tests; yarn run typecheck — type gate.
  • A --dev dsh web server hot-reloads rebuilt bundles — yarn run build alone is usually enough to see changes.

Model Experience

None. The view is a pure client derivation over the already-logged conversation snapshot; nothing here reaches a model request.

KV Cache effect

None; this package neither assembles nor sends provider requests.

使用前核对

安装步骤、兼容版本与授权范围以原项目当前文档为准。Stars 和评分是快照中的导航信号。

安装与排错 · 项目问题反馈

同类项目