feat: editable user messages with conversation forking#22
Merged
dsfaccini merged 11 commits intopydantic:mainfrom Apr 10, 2026
Merged
feat: editable user messages with conversation forking#22dsfaccini merged 11 commits intopydantic:mainfrom
dsfaccini merged 11 commits intopydantic:mainfrom
Conversation
Replace the regenerate button with inline message editing. Users can click the pencil icon on any user message to edit it, then choose to update the current conversation (truncate + resend) or fork into a new conversation from that point. Fork navigation arrows (< 1/N >) appear on messages that have sibling forks, allowing users to navigate between conversation branches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Set up Playwright with Chromium, mock AI SDK UI Message Stream protocol, and add 10 tests covering: edit icon hover, inline textarea, draft persistence, escape cancel, modify/fork dialog, update conversation, fork creation, sidebar update, and regenerate button removal. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The submit (checkmark) and cancel (X) buttons on the edit textarea were left-aligned despite the user message bubble being right-aligned. Now they align to the right and use green/red colors for clarity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
If the user enters edit mode but submits without changing the text, just close the editor instead of showing the dialog. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the regenerate button with inline message editing. Users can click the pencil icon on any user message to edit it, then choose to update the current conversation (truncate + resend) or fork into a new conversation from that point. Fork navigation arrows (< 1/N >) appear on messages that have sibling forks, allowing users to navigate between conversation branches. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Set up Playwright with Chromium, mock AI SDK UI Message Stream protocol, and add 10 tests covering: edit icon hover, inline textarea, draft persistence, escape cancel, modify/fork dialog, update conversation, fork creation, sidebar update, and regenerate button removal. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The submit (checkmark) and cancel (X) buttons on the edit textarea were left-aligned despite the user message bubble being right-aligned. Now they align to the right and use green/red colors for clarity. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Defer setSendTrigger in handleModify to avoid race with setMessages - Guard handleFork against invalid conversationId - Restore regenerate/Retry button removed by accident - Add bounds checks on ForkNavigation click handlers - Use edited text for fork sidebar label Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Merge remote feat/editable-user-messages (old localStorage base) into local (rebased onto upstream/main with IndexedDB). All conflicts resolved keeping local version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add braces to setTimeout arrow to satisfy no-confusing-void-expression - Remove unnecessary ?? fallback (pendingEdit.text is always defined) - Format lucide-react import per prettier - Remove redundant bounds checks flagged by no-unnecessary-condition Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Set up husky + lint-staged to run eslint --fix on staged ts/tsx files, typecheck the full project, and run Playwright tests before each commit. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
< 1/N >arrows appear on messages with sibling forks, allowing navigation between conversation branchesTest plan
pnpm exec playwright test— 10/10 passingpnpm exec eslint src/ tests/— cleanpnpm run typecheck— clean🤖 Generated with Claude Code