Skip to content

feat(chat): edit saved conversation messages - #11189

Merged
mudler merged 2 commits into
masterfrom
bot/issue-10805-edit-chat-messages
Jul 31, 2026
Merged

feat(chat): edit saved conversation messages#11189
mudler merged 2 commits into
masterfrom
bot/issue-10805-edit-chat-messages

Conversation

@localai-org-maint-bot

Copy link
Copy Markdown
Collaborator

Fixes #10805

What changed

  • add inline Edit, Save, and Cancel controls for saved user prompts and assistant responses
  • persist edits through the existing local chat-history storage without sending an inference request
  • preserve structured content blocks and attachment metadata when editing file prompts
  • cancel open edits when generation starts to avoid racing streaming history updates
  • add localized labels, focused Playwright coverage, styling, and quickstart documentation

Verification

  • npm run build passes
  • all chat locale JSON files parse with jq
  • git diff --check passes
  • focused Playwright specs were added but could not execute on this host because no Chromium binary is installed; browser/package downloads are denied by the environment with HTTP 403
  • npm run lint -- --quiet still reports the same six pre-existing hook-rule errors present before this change (e2e/coverage-fixtures.js lines 44/53 and Chat.jsx lines 192/193/200/207)

Notes for reviewers

No API or backend behavior changes. Saved edits affect only the browser-local conversation history.

@localai-org-maint-bot
localai-org-maint-bot force-pushed the bot/issue-10805-edit-chat-messages branch 3 times, most recently from 13d6d22 to 915442a Compare July 29, 2026 14:05
Add inline edit, save, and cancel controls for stored user and assistant messages without triggering inference. Preserve structured message attachments and cancel edits when streaming starts.

Assisted-by: Codex:gpt-5
The saved-message edit test reloads the page to verify persistence, but its init script was replacing localStorage with the original fixture on every navigation. Seed only an empty store so reloads exercise the data written by the application.

Assisted-by: Codex:gpt-5 [Codex]
@localai-org-maint-bot
localai-org-maint-bot force-pushed the bot/issue-10805-edit-chat-messages branch from 915442a to 21a1bfb Compare July 31, 2026 03:17
@mudler
mudler merged commit 9584377 into master Jul 31, 2026
69 of 70 checks passed
@mudler
mudler deleted the bot/issue-10805-edit-chat-messages branch July 31, 2026 21:38
@localai-bot localai-bot added the enhancement New feature or request label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Altering LLM responses post fact

3 participants