-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: Add message editing functionality with AI re-response #3075
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add edit button to user messages with hover states - Implement inline editing interface with save/cancel actions - Add state management for edit mode and content tracking - Integrate with existing AI API to generate new responses - Add visual indicators for edit mode, loading, and edited status - Include comprehensive error handling and logging - Preserve conversation context when regenerating AI responses
|
@nahiyankhan @spencrmartin for design review |
The current textarea/bubble looks tiny in edit mode. I made some UI changes, and here are the screenshots. |
|
Can we cut the emoji use and when edit mode is active rely on the form field to communicate that mode vs showing the status? |
done. |
|
I like this - would be great if @zanesq gives the blessing as ChatView and UserMessage.tsx as super high trafficked bits of code and very sensitive, but yeah I think this is worthwhile, good idea! |
|
Will take a look and try it out asap! |
Hi Zane, following up on this feature PR. Is this still being reviewed? It would be a great UX improvement for goose! |
|
@bzqzheng thanks for the reminder. Agreed, its a nice feature and would definitely want to help get this in. We have a revamped UI coming out shortly so unfortunately you'll need to rebase off that soon. I'll wait to review until we get that out, most likely next week. |
|
ok, let's revisit after the big merge (hopefully soon!) |
|
ok, merged, so let's continue |
|
@bzqzheng looking forward to this feature, can you pull in main and get this working again? |
Sure, will get to it some time next week. |
|
@zanesq the UI major update makes this PR "unmergable" since some files are revamped and deleted. |



Add Message Editing Functionality
Overview
This PR introduces message editing, allowing users to revise their prior inputs and view regenerated AI responses. It enables iterative prompt refinement and A/B testing of message variations.
Key Features
Technical Details
UserMessagecomponentuseMessageStreamfor AI regenerationChatViewFiles Changed
ui/desktop/src/components/UserMessage.tsx: Edit functionality and UIui/desktop/src/components/ChatView.tsx: Message update and pruning logicui/desktop/package-lock.json: Dependency updates (if applicable)This feature enhances the conversation experience by allowing prompt revisions and exploring different AI outputs without breaking the existing flow.
Screenshots
Updated screenshots in the PR thread below.