Update: Optimize buildSteps for large event counts#48
Merged
Conversation
|
Deployment failed with the following error: Learn More: https://vercel.com/fl4tlin3s-projects?upgradeToPro=build-rate-limit |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
63f9003 to
58411ae
Compare
|
Deployment failed with the following error: Learn More: https://vercel.com/fl4tlin3s-projects?upgradeToPro=build-rate-limit |
58411ae to
3e950bd
Compare
3e950bd to
c3cec99
Compare
|
Deployment failed with the following error: Learn More: https://vercel.com/fl4tlin3s-projects?upgradeToPro=build-rate-limit |
c3cec99 to
09e8447
Compare
|
Deployment failed with the following error: Learn More: https://vercel.com/fl4tlin3s-projects?upgradeToPro=build-rate-limit |
09e8447 to
6630f8d
Compare
6630f8d to
b7b5782
Compare
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
buildStepsinuseStepStoreCloses #42
Test plan
pnpm typecheckpassespnpm testpassespnpm format-and-lintpassespnpm check-depspassespnpm buildpassesNote
Incremental, cached step map processing in
useStepStore, rebuilding only on truncation or historical event loads.packages/tui/src/hooks/state/use-step-store.ts):stepMapRef,processedCountRef, andneedsRebuildRefwith auseEffectupdate loop.getOrCreateStep,processEvent,buildStepsFromMap; clone tool entries when buildingsteps.MAX_EVENTStruncation andsetHistoricalEventsby marking rebuild; computecompletedSteps/currentStepwithoutuseMemo.@perstack/tuidescribing the optimization.Written by Cursor Bugbot for commit b7b5782. This will update automatically on new commits. Configure here.