fix: snapshot AI streaming preview and task PR flow#4902
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
🦋 Changeset detectedLatest commit: eaaf967 The changes in this PR will be included in the next version bump. This PR includes changesets to release 7 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
EOF && command git push
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e3099f6111
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
keep insert preview accept/cancel local preserve selection through accept undo redo stabilize ai chat specs on shared mocks
This fixes the insert-mode AI streaming history path from #4900 by snapshotting the pre-stream editor state, streaming preview chunks outside undo history, and committing the accepted result as one fresh undo step. It also syncs the local
taskskill so tracked GitHub work opens or updates the PR before posting the issue comment, then includes the PR URL in that comment.Closes #4900.
What changed
aiStreamSnapshothelpers and wired insert-mode accept, undo, and reset flows to the snapshot pathwithoutSavingand refreshed the generated registry artifactstaskskill source and generatedSKILL.mdwith PR-before-comment tracker sync rulesVerification
pnpm checkbun test packages/ai/src/react/ai-chat/utils/aiChatActions.spec.ts/blocks/editor-ai🤖 Generated with GPT-5 Codex (unknown context, medium reasoning) via Codex