Skip to content

Conversation

@mik-tf
Copy link
Contributor

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

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
Copy link
Contributor Author

mik-tf commented Dec 21, 2025

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

2 participants