Show formatted notes as the assistant writes - #1105
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |



AI-generated notes currently preview as plain text while the assistant writes. Render structured draft blocks with Tiptap’s
generateHTML()and the live editor’s existing extensions, preserving headings, paragraphs, emphasis, and lists. Show a small “Drafting · Preview updates live” indicator and keep the duplicate draft in chat collapsed by default.Consumes optional replacement
blockssnapshots from ResearchHub/researchhub-backend#4116. The preview reuses the assistant HTML sanitization policy, retains the last renderable snapshot when a node is incomplete, and resets when the stream or draft changes. Older servers retain a plain-text fallback. The empty editor is hidden during initial drafting but stays mounted; partial blocks are never written into it or autosaved. No new frontend dependency is needed.Validation: ESLint on changed files and a full TypeScript check pass. A real local generation using this PR checkout displayed five headings, eight bullet items, seven numbered steps, and bold/italic text while still running. The note completed and saved successfully. Verified the narrow document drawer layout.
Live-test detail: the model’s first save omitted required paragraph wrappers in list items. Existing note validation rejected it, and the model corrected the blocks and saved on retry. The completed note remained formatted after reload.