Skip to content

Regression for /plannotator-last command on pi #949

Closed

Description

@emmaneugene

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.

Thanks for making an awesome tool!

Activity

  1. changed the title [-]Regression for /plannotator-last command on pi[/-] [+]Regression for `/plannotator-last` command on pi[/+] on Jun 21, 2026
  2. backnotprop commented on Jun 22, 2026

    @backnotprop
    Owner

    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.

  3. added 12 commits that reference this issue on Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions