mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-10 02:30:39 +01:00
* Keep /autoplan working after a Claude Code 2.1.317 compaction (#4200) On 2.1.317 a compact boundary's logicalParentUuid names a record the session file never receives, and the preserved list ends with the last record kept in place. The journal reader required that tail to equal the logical parent, so the boundary became an orphan, every later record was dropped, and each phase entry was refused on every retry. The reader now accepts a preserved list whose last entry is the segment's tail, and continues a boundary whose logical parent is absent from the file from that tail. The 2.1.300 path is unchanged: when the tail is the logical parent it still needs the boundary cycle, so an unflushed tail supplies no ownership. A boundary that opens the file stays a resumed fork's root, and lists naming no node of this session still continue nothing. Co-authored-by: vilano93 <244097767+vilano93@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * Say the troubleshooting guide's compaction note covers Claude Code 2.1.317 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: vilano93 <244097767+vilano93@users.noreply.github.com> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>