Skip to content

Pr/66 - #85

Merged
agegr merged 4 commits into
mainfrom
pr/66
Jun 23, 2026
Merged

agegr merged 4 commits into
mainfrom
pr/66

Conversation

@agegr

@agegr agegr commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Supersedes #66

fallleave and others added 4 commits June 4, 2026 14:23
…event JSON.stringify stack overflow

Previous attempt removed the `tree` field entirely, which broke BranchNavigator.
This new approach keeps `tree` but compresses linear chains (single-child nodes
are collapsed into their parent) before serialization, reducing depth from 2000+
to the number of branching points — well within V8's ~3000 recursion limit.

Branching points (nodes with >1 children) are preserved as-is, so users with
branched sessions retain full in-session branch navigation.
@agegr
agegr merged commit 3bf0d4a into main Jun 23, 2026
@agegr
agegr deleted the pr/66 branch June 24, 2026 11:39
FFatTiger pushed a commit to FFatTiger/pi-web that referenced this pull request Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants