Repository navigation
feat:Add inline user message editing - #346
6crucified wants to merge 3 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The video was too large (16MB) for GitHub's limit (10MB) |
|
closing this for now because it does not follow our contribution guidelines: for ui changes, please include clear before/after screenshots, and a short video if the change depends on motion or interaction details. feel free to update the pr with that context and reopen it. |
|
does it work with attachments? |
|
it should, now. |
|
This is an essential feature. I don't know how Theo and Julius don't find this annoying enough to ship a fix. @juliusmarminge do you have time to look at this? |
|
Essential feature? Just hit the revert button and then type in your revised message. Your attitude doesn't help here, I am basically soloing maintenance + engineering and have 400 open issues, 300 open PRs and a product vision I need to fulfill so excuse me if stuff gets lost in the noise |
|
Sorry. I can see the revert button now, but didn't before. I wonder if this PR is relevant anymore if revert does the job. |
|
@juliusmarminge can you please re-open this? the revert feature doesn't really solve the problem for example - when I stop the execution seconds after sending the prompt to correct it, there is no way to do anything with it, revert doesn't allow me to send new prompt in the same place, it just removes what AI generated in the few seconds, which isn't really helpful tbh it would work fine-ish if there would be a way to revert to the end of the AI response, so it will remove my prompt, but it doesn't work that way also reverting doesn't work at all with grok cli, it just throw errors the edit is what plenty of other AI apps using, it's just good UX, simply because people are used to doing it that way |

Summary
Fixes #331
Note
Add inline editing of user messages in the chat timeline
EditableUserMessageBubblecomponent in ChatView.tsx that lets users edit previously sent messages (text and images) directly in the timeline.submitUserTurnhelper to share send logic between normal sends and edit resends; edit resends preserve the composer draft while normal sends clear it.EDIT_REVERT_SYNC_TIMEOUT_MS) means a slow store update could cause the edited message to be sent before the reverted message is fully removed, producing a race in the timeline.Macroscope summarized d458ed4.