Repository navigation
perf: reuse overlay rendering work and stabilize test fixtures - #1576
Merged
Merged
Conversation
Co-Authored-By: mecatl <[email protected]>
jhrozek
approved these changes
Sep 15, 2026
jhrozek
left a comment
Contributor
There was a problem hiding this comment.
Reviewed cmd/mecatui/ui overlay perf refactor, docs/lint scanner hygiene, and internal/adapter/clientauth test hygiene in parallel. No HIGH/MEDIUM findings — the closure-based prepare/render split preserves behavior correctly, the doc-lint skip-list additions are legitimate (.worktrees is a real repo convention), and the client-auth test split has no coverage gaps. One LOW note: the new differential test for the overlay refactor isn't independent of the code it's testing (it exercises the same prepare* functions on both sides), so it wouldn't catch a bug shared across all of them — not blocking.
Merged
2 tasks
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
Improve the Agents overlay hot path by preparing invariant tab content once per overlay render while preserving the existing per-height viewport behavior.
Changes
.worktreesand.scratch, with poison, positive, and poison-only fixtures.Verification
task lint,task test, full UI race suite, targeted UI equivalence, andtask docs:checkpassed.-count=20.ns/op,B/op, and allocations only. Three local samples in the same benchmark binary: repeated preparation was 7.92–9.48 ms/op, ~985 KB/op, and 17,739 allocs/op; prepared-once was 0.96–1.06 ms/op, ~117 KB/op, and 1,941 allocs/op. This is not an overall CI-percentage claim; host-load variation applies.