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
History fails to load for very large sessions: RangeError: Maximum call stack size exceeded
#2653
Environment: dsh 0.1.0-rc.6 (global npm install), Node 26 on macOS.
Repro: A session whose log has ~98k events (~74 MB JSONL). Opening its history in the web UI fails with: history unavailable for session "...": RangeError: Maximum call stack size exceeded
The session data itself parses cleanly (no corrupt entries, no unusually deep nesting); the overflow happens in the history read path while replaying/projecting the full event log. Depth appears proportional to log size, so the default ~1 MB Node stack is exceeded on large sessions.
Workaround: launching with a larger stack fixes it: node --stack-size=32768 <path>/dsh/lib/bin.js web
With a 32 MB stack the same session's history loads successfully.
Suggestion: consider making the history restore/projection iterative or checkpointed so reads don't recurse over the whole log; at minimum, document that very large sessions require --stack-size.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Environment: dsh 0.1.0-rc.6 (global npm install), Node 26 on macOS.
Repro: A session whose log has ~98k events (~74 MB JSONL). Opening its history in the web UI fails with:
history unavailable for session "...": RangeError: Maximum call stack size exceededThe session data itself parses cleanly (no corrupt entries, no unusually deep nesting); the overflow happens in the history read path while replaying/projecting the full event log. Depth appears proportional to log size, so the default ~1 MB Node stack is exceeded on large sessions.
Workaround: launching with a larger stack fixes it:
node --stack-size=32768 <path>/dsh/lib/bin.js webWith a 32 MB stack the same session's history loads successfully.
Suggestion: consider making the history restore/projection iterative or checkpointed so reads don't recurse over the whole log; at minimum, document that very large sessions require
--stack-size.All reactions