#7997·QwenPaw

[Feature]: Support message retraction/editing and workspace rollback in WebUI

Author: ysf7762-devCreated Sep 27, 2026Updated Sep 30, 2026
Labelsenhancement

Summary

A feature to allow users to edit or retract their previously sent messages in the WebUI chat interface, automatically truncating subsequent conversation history and optionally rolling back file changes (snapshots) to ensure a clean context. (在 WebUI 聊天界面中允许用户编辑或撤回已发送的消息,自动截断后续对话历史,并可选回滚文件修改(快照),以保证上下文的干净。)

Component(s) Affected

  • Core / Backend (app, agents, config, providers, utils, local_models)
  • Console (frontend web UI)
  • Channels (DingTalk, Feishu, QQ, Discord, iMessage, etc.)
  • Skills
  • CLI
  • Documentation (website)
  • Tests
  • CI/CD
  • Scripts / Deploy

Problem / Motivation

Currently, once a user sends a message in QwenPaw WebUI, they cannot edit or retract it. When users realize their prompt has errors or missed information after seeing the AI's response, they can only correct it by sending follow-up messages. This severely pollutes the conversation context, introduces noise, and leads to AI hallucinations and wasted tokens.

This feature is highly requested for:

  1. Prompt Engineering: Iteratively testing different prompts to fine-tune AI responses.
  2. Clean Context: Avoiding "Lost in the Middle" issues caused by messy correction messages.
  3. Workflow Efficiency: Similar to the "Edit" button in DeepSeek web UI and the "Retract + File Rollback" feature in TRAE IDE, which users become highly dependent on for coding tasks. (目前用户发送消息后无法修改。看到 AI 回复才发现提示词有误时,只能在后续对话中打补丁,污染上下文、引入噪音、浪费 Token。此功能可以极大提升 Prompt 调试效率和代码编写体验,类似 DeepSeek 网页版的编辑按钮和 TRAE IDE 的撤回+文件回滚。)

Proposed Solution

UI/UX Design: Add "Edit" (✏️) and "Retract/Delete" (/️) buttons below each user message (similar to DeepSeek WebUI).

Behavioral Logic:

  1. Clicking "Edit" opens the message in an input box. Upon sending the edited message, all subsequent conversation history (both user and AI messages) will be automatically truncated.
  2. The AI will then generate a new response based on the edited prompt. Workspace Rollback (Crucial for Coding Agents): When retracting a message in a coding session, a confirmation dialog should appear asking the user if they want to rollback the file workspace to the snapshot taken right before this message was sent (similar to TRAE IDE's checkpoint system).

Technical Boundaries: Since side effects of executed Shell commands (e.g., rm, external API calls, database writes) are irreversible, the UI should clearly warn the user about this limitation. Workspace rollback should only apply to file-level snapshots. (UI 设计:消息下方增加编辑和撤回按钮。交互逻辑:编辑后发送自动截断后续历史并重新生成。工作区回滚:结合代码快照机制,撤回时弹窗询问是否恢复发送前的文件状态。技术边界:明确提示已执行的 Shell 命令等不可逆,UI 上应给出明确警示。)

Alternatives Considered

  1. Sending follow-up correction messages (current behavior, pollutes context).
  2. Starting a brand new conversation (loses previous context and requires repeating all prior steps). (1. 发送后续修正消息,污染上下文;2. 开启全新对话,丢失上下文,需要重新复现之前的步骤。)

Additional Context

Reference: DeepSeek WebUI's message edit feature. Reference: TRAE IDE's "Retract and rollback" feature. Related existing issues in the community: #6408, #5503 (if applicable, search to link). (You can drag and drop the screenshot of DeepSeek or TRAE here to help illustrate the UI). (提供参考产品的截图,或关联社区已有的相关 Issue,比如之前提到的 #6408)。

ImageImage