Skip to content

fix: restore images when editing messages - #336

Open
venallope4 wants to merge 1 commit into
agegr:mainfrom
venallope4:fix/restore-images-when-editing
Open

fix: restore images when editing messages#336
venallope4 wants to merge 1 commit into
agegr:mainfrom
venallope4:fix/restore-images-when-editing

Conversation

@venallope4

Copy link
Copy Markdown

Summary

  • Restore images when editing a previous user message.
  • Preserve the original message text and @file references.
  • Support both nested Base64 image blocks and legacy flat image entries.
  • Avoid overwriting an existing input draft.

Validation

  • node_modules/.bin/tsc --noEmit
  • npm run lint
  • NODE_ENV=development node --test --test-name-pattern="restores" components/ChatInput.test.mjs

The two image restoration tests pass.

Notes

The full component test command still has four pre-existing failures caused by tests rendering components without the required I18nProvider. These failures are unrelated to this change.

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.

1 participant