liguanyu/dsh_PromptRecall
liguanyu★ 0JavaScriptLast synced: 2026-08-15
仿 Codex 的 DSH Web GUI 输入历史插件:会话输入框按 ↑/↓ 浏览历史 prompt,Esc清除当前对话框并进入历史,跨会话、跨重启持久保留,仅存纯文本,安全接管不误伤草稿。 A Codex-style input-history plugin for the DSH Web GUI: recall previous prompts with ↑/↓ in the composer, persisted across conversations and restarts, text-only storage with safe key routing.
README excerpt
dsh PromptRecall 仿 Codex 的 DSH Web GUI 输入历史插件:在会话输入框按 ↑ / ↓ 浏览历史 prompt,历史跨会话、跨重启持久保留。 A Codex-style input-history plugin for the DSH Web GUI: browse previous prompts with ↑ / ↓ in the session composer, with history persisted across conversations and restarts. 特性 / Features - ↑ 召回历史,↓ 向新移动 :空输入框按 ↑ 从最新条目开始逆序浏览,↓ 向新移动,越过最新项后清空输入框并退出浏览。 - 当前对话优先 :回到一个对话时,先召回该对话自己的历史,继续按 ↑ 才进入其他对话的历史。 - 跨会话、跨重启持久 :用户级 JSONL 全局历史,稳定单调 ID,刷新页面或重启后仍可召回。 - 安全的按键路由 :非空草稿、多行正文中间、有选区、弹窗打开时,方向键一律交还编辑器,绝不误伤草稿。 - Esc 草稿保险 :清空未发送的非空草稿时把它存入历史(仅文本),按 ↑ 可找回。 - 位置指示 :输入框上方 pill 显示当前位置(如 ↑ 2/38 );pill 上的 × 两次点击可清空全部历史。 - 仅存文本 + 自动裁剪 :只持久化纯文本;相邻完全相同的条目折叠;文件超限时删除最旧整行并保留最新。 - ↑ recalls, ↓ moves forward : an empty composer starts browsing from the newest entry; ↓ moves toward newer entries, and moving past the newest one clears the composer and exits browsing. - Current conversation first : returning to a conversation recalls that conversation's own history first; pressing ↑ further walks into other conversations' history. - Persistent across conversations and restarts : a user-level JSONL history with stable monotonic IDs remains recallable after page reloads and restarts. - Safe key routing : with a non-empty draft, a …
View full README on GitHub →