You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression for /plannotator-last command on pi #949
As of the latest v0.21.0 release, I believe there's a regression with the plannotator pi extension, where the /plannotator-last command renders a blank page when the session has more than one recent assistant message
I did some debugging with agents and I believe this was caused by commit 1fa6052, which converted messageAnnotationEntries from a render-time useMemo into an on-demand useCallback. I'm not super familiar with React, but it seems that root cause is that for conversations with more than 1 assistant response, setState() is being called during render and causing an infinite render loop.
I created a fork with a fix and more detailed bug report here, but it's AI-generated, so it probably deserves a review.
Fixed in v0.21.1 via #950. Your diagnosis was spot on — the render-path call to saveCurrentMessageState() was writing state during render; it now reads via getMessageStatesWithCurrent(). Thanks for the thorough report and the fix, @emmaneugene.
Update with pi install npm:@plannotator/pi-extension to pick it up.
Activity
[-]Regression for /plannotator-last command on pi[/-][+]Regression for `/plannotator-last` command on pi[/+]backnotprop commentedon Jun 22, 2026
Fixed in v0.21.1 via #950. Your diagnosis was spot on — the render-path call to
saveCurrentMessageState()was writing state during render; it now reads viagetMessageStatesWithCurrent(). Thanks for the thorough report and the fix, @emmaneugene.Update with
pi install npm:@plannotator/pi-extensionto pick it up.fix(editor): stop setState-during-render loop in multi-message annota…
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
fix(ui): reconcile #948 with the draft-transport seam + lockstep 0.21.1
Make the document UI reusable as published building blocks (#957)