Skip to content

Revert Messages#13

Draft
mik-tf wants to merge 4 commits into
developmentfrom
development-revert-messages
Draft

Revert Messages#13
mik-tf wants to merge 4 commits into
developmentfrom
development-revert-messages

Conversation

@mik-tf

@mik-tf mik-tf commented Dec 20, 2025

Copy link
Copy Markdown
Contributor

Summary

Key Changes

** Core Edit Functionality**

  • Added editMessage() function in ChatInterface.svelte that enables inline editing of user messages
  • Integrated with existing ChatMessage.svelte component for edit UI (textarea, save/cancel buttons, keyboard shortcuts)

** AI Retriggering Logic**

  • When editing a user message followed by an AI response, automatically removes the old AI response and generates a fresh one
  • Prevents duplicate messages by sending edited content directly to backend without creating new user message entries
  • Maintains proper conversation flow and chronological ordering

@mik-tf

mik-tf commented Dec 21, 2025

Copy link
Copy Markdown
Contributor Author

Converting to draft and will make another PR without conflict.

@mik-tf mik-tf marked this pull request as draft December 21, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable Revert to Previous Command / Edit a previous command

1 participant