[Feature Request / PR-Ready] In-place "Rewind to Previous Message" with draft restoration in Web UI (ui-chat) #6846
codeREDxbt
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary / 概述
In web chat workflows, users frequently want to roll back to a previous user prompt to edit it and branch off, similar to ChatGPT/Claude/Cursor.
Previously in PR #3452, in-place log mutation was attempted but reverted in PR #3459 because rewriting persisted event logs broke SQLite indexing and concurrency.
Solution / 解决方案
We implemented client-level projection rewinding in
ui-chat:IconRefreshOutline16) on user message bubbles on hover with tooltip回退至此消息/Rewind to this message.increaseTitle: false, preserving the parent conversation title (no(1)appended).cwdand draft.Code Changes / 变更代码
packages/client/ui-chat/src/client/apply.ts:Verification / 测试结果
packages/client/ui-chatpassing (apply-inject.client.spec.tsxverified).All reactions