Fix[Editorial Notes]: Persist block metadata on generation to link back notes on reload#682
Draft
yogeshbhutkar wants to merge 1 commit into
Conversation
6ceac22 to
bb546ce
Compare
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.
What?
Closes #678
Why?
Editorial Notes store the root Note ID in block metadata so later review and refinement passes can associate a block with its Note thread. Without saving after a new
noteIdis linked, that metadata exists only in editor state and is lost after reload.Ref:
ai/src/experiments/editorial-notes/hooks/useEditorialNotes.ts
Lines 463 to 468 in 6ceac22
How?
createNote()now reports whether it created a new root Note thread and linked its ID to block metadata. Full-post review accumulates that signal across batches and saves post once at the end, only when a new noteId was linked. Single-block review also saves only when its review links a new noteId.Use of AI Tools
AI assistance: Yes
Tool(s): Codex
Model(s): GPT-5.5
Used for: Initial code skeleton; final implementation was reviewed and edited by me.
Testing Instructions
Screencast
fix.mov
Changelog Entry