feat: optimize log viewer performance and add CLI TUI routing#749
Merged
feat: optimize log viewer performance and add CLI TUI routing#749
Conversation
- Add typeFilter to event file reading, filtering by filename before reading file contents (8.6x I/O reduction for tree building) - Add getTreeEventsForJob to LogDataFetcher for selective event loading - Route `perstack log` to interactive TUI by default, with --text flag for legacy text output - Track per-node token breakdown (input/output/cached) in delegation tree - Improve flattenTreeAll with visited set and orphan node handling - Refactor interface-panel to use shared BottomPanel component Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 11, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
typeFilterparameter to event file reading in@perstack/filesystem-storage, filtering by filename before reading file contents (~8.6x I/O reduction for tree building with 28k event files)getTreeEventsForJobtoLogDataFetcherfor selective event loading (only tree-relevant event types)perstack logto interactive TUI by default, with--textflag for legacy text outputflattenTreeAllwith visited set and orphan node handlinginterface-panelto use sharedBottomPanelcomponentTest plan
perstack logopens TUIperstack log --textfalls back to text output🤖 Generated with Claude Code