chongfengdy-dev/dsh-message-outline

插件Plugin 原生Native ⭐ 2

DSH web UI plugin: current-session message outline rail (left-edge bars, hover to expand, click to jump). Pure frontend, zero external services.

项目介绍Project Overview

dsh-message-outline 是 DSH web 前端插件,在对话区左缘以细横杠显示当前会话最近 10 条用户消息;hover 展开含行号与文本的大纲,点击即定位到对应消息并黄色闪烁,收起态蓝条随滚动指示当前视口消息。纯前端、订阅 sessions 快照驱动,无外部服务依赖、零轮询,主题跟随 dsh web。适用于长会话中快速回看与跳转自己的消息;仅展示用户消息,不含终端面板或 Token HUD。

dsh-message-outline is a DSH web frontend plugin that renders the current session's recent user messages as thin bars along the chat's left edge. Hovering expands an outline with line numbers and text; clicking jumps instantly to that message with a yellow flash, while a blue bar tracks the message in the current viewport during scroll. It is purely frontend, driven by sessions snapshot subscriptions with no external service or polling, and follows dsh web theming. Use it to navigate long chats; it shows only user messages and excludes terminal panels or Token HUD.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add dsh-message-outline

chongfengdy-dev/dsh-message-outline 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-message-outline

DSH web 前端插件:当前会话消息大纲(左缘横杠)——你发的消息在对话区左缘显示成一列细横杠,hover 展开完整大纲(行号+文本),点击瞬间定位到对话里那条消息。

纯前端实现:零外部服务依赖(不需要 3081/终端服务),sessions 快照订阅驱动、零轮询。

功能

  • 左缘一列细横杠 = 我的消息(最近 10 条,最新在下),收起态无滚动条
  • hover 同一元素展开完整大纲(横杠+行号+文本同一行,展开/收起位置严格对齐)
  • 点击行 → 横杠+文字变蓝并瞬间定位到对话中该消息(黄色闪烁 1.6s)
  • 收起态蓝条 = 当前视口所在消息(对话滚动时跟随,事件驱动节流)
  • 深色/浅色主题跟随 dsh web(--dsw-alias-* 变量)

安装

# 在 dsh 安装好之后(npm i -g @deepseek-ai/dsh)
dsh plugin --profile web add dsh-message-outline
sudo systemctl restart dsh-web   # 或重启 dsh web 进程

刷新浏览器页面即生效(左缘出现消息横杠)。

说明

  • 数据源:当前会话的 sessions 快照(chat.order/chat.nodes + 官方 data-chat-anchor-key 锚点定位),全部历史可跳转(loadOlder 懒加载)
  • 从 dsh-term-panels 拆出独立发布(大纲功能,不含终端面板/Token HUD——那些需要 3081 服务,见 dsh-term-panels)

License

MIT

上一个 Prev dsh-llm-cost 下一个 Next dsh-tui-app