qwen-code/packages/webui/src
Dragon 8255027426
feat(vscode): add message edit/rewind and message metadata UI (#3762)
* feat(vscode): add message edit/rewind and message metadata UI

- Add rewindSession extension method to ACP agent for session rewind
- Add rewindToTurn method in Session to truncate conversation history
- Handle conversationRewound event in webview to reset messages, tool calls, plans, and UI state
- Add editMessage flow in VSCode companion: user edit → rewind request → truncated state
- New MessageMeta component with timestamp, copy, and edit actions (hover-reveal)
- Integrate MessageMeta into AssistantMessage and UserMessage components
- Reset task timer on editMessage in WebViewProvider

This enables users to edit a previous user message, which rewinds the
conversation to that turn and re-submits the edited content.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>

* test(webui): assert message datetime attribute

* fix: address message edit rewind review feedback

* fix(vscode): preserve edit turn indexes on session switch

* fix(vscode): reset edit rewind turn indexing

* fix(vscode): restore edit rewind state transactionally

* fix(vscode): handle edit rewind review feedback

---------

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-05-09 16:52:46 +08:00
..
adapters feat(webui): add data adapter layer for ACP and JSONL protocols 2026-01-20 21:33:35 +08:00
components feat(vscode): add message edit/rewind and message metadata UI (#3762) 2026-05-09 16:52:46 +08:00
context feat(webui): add webview container and isolate styles for VSCode integration 2026-01-17 10:53:32 +08:00
hooks fix(followup): prevent tool call UI leak and Enter accept buffer race (#2872) 2026-04-09 00:07:03 +08:00
styles feat(cli, webui): add follow-up suggestions feature (#2525) 2026-04-03 20:07:23 +08:00
types fix(webui): remove @qwen-code/qwen-code-core dependency (#2902) 2026-04-07 13:11:03 +08:00
utils fix(vscode-companion): slash command completion not triggering after message submit (#3609) 2026-04-26 22:27:54 +08:00
index.ts fix(core): address post-merge monitor tool and UI routing issues (#3792) 2026-05-04 21:19:41 +08:00