dsh-input-history
其他 活跃维护

dsh-input-history

wellorbetter/dsh-input-history

轻量级浏览器脚本扩展,为AI对话类网页界面添加上下方向键快速翻阅历史输入记录的功能,无需复杂配置,安装后即可使用,减少重复输入步骤,提升日常交互效率

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
177 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:wellorbetter/dsh-input-history
git clone https://github.com/wellorbetter/dsh-input-history.git
git clone git@github.com:wellorbetter/dsh-input-history.git
README.md main

Input History

English | 中文

License MIT For DeepSeek Harness dsh-plugin

Arrow-key input history for the DeepSeek Harness Web GUI.
Press ↑ / ↓ in the chat composer to walk back and forth through what you already sent — with a floating history dropdown.

Input history panel

Demo screenshot with sample data — message content is blurred.

What this plugin provides

Installing this bundle adds one client (browser) plugin to every session of the target dsh profile. It registers a floating history dropdown above the composer (conversation.input.overlay) and a clock history button in the composer's tool row (conversation.input.right):

  • ↑ recalls the previous message when the caret is at the very start of the input (an empty input qualifies); ↓ steps forward, and past the newest entry restores the draft you were typing.
  • Enter accepts, Esc / click-outside cancels (restores the pre-recall draft), and clicking a row jumps straight to that message.
  • Date grouping (today / yesterday / earlier) plus per-row timestamps keep long histories scannable.
  • Long messages render as a 3-line clamped preview with the full text on hover (title), and recall puts the complete multi-line text back into the composer.
  • Consecutive duplicate messages are collapsed, and the list is capped at the latest 500 entries.

The plugin is pure client UI — no host-side behavior, no persistence, no network. The history is read live from the session's conversation snapshot, so it is always scoped to the session you are looking at.

How it behaves

composer caret ──↑ at start ──▶ open history (most recent)
        ▲                       │
        │                       ├── ↑  older
        │                       ├── ↓  newer  ── past newest ──▶ restore saved draft, close
        │                       ├── Enter  accept (keep draft)
        │                       ├── Esc    cancel (restore saved draft)
        │                       └── click  jump to that message
        └── ↓ at end ──────────▶ open history (oldest), then ↓ steps newer

Recall never fights the slash (/) or mention (@) menus: when the trigger menu is open, its own up/down arbitration owns the arrows. Modified chords (Ctrl/Cmd/Alt) and IME composition pass through untouched, and multi-line editing is unaffected until the caret reaches a boundary.

Install

Requires the dsh CLI (install DeepSeek Harness).

# from GitHub (recommended)
dsh plugin --profile web add github:wellorbetter/dsh-input-history

# or from a local checkout
dsh plugin --profile web add ./dsh-input-history

Restart the profile (dsh web / dsh --profile <name>) after installing. The plugin is a bundle: it declares dsh.bundle.patch, so dsh plugin reconciles it into the profile's dsh.profile.bundles layer list automatically, and dsh.client so the web shell loads its browser half. It ships plain JavaScript (lib/index.js + lib/client.js), so a GitHub install needs no build step or allowBuilds permission.

Use

Focus the chat composer in any session and press ↑ at the start of the input (or ↓ at the end) to open the history dropdown, then navigate with the arrows and press Enter to accept, or click a row to jump to it. You can also click the clock button in the composer's tool row to open the same panel.

Development

pnpm install
pnpm verify     # asserts the host half, the client bundle, and the patch manifest

License

MIT