Repository navigation
perf(process): reuse capture-local text normalization matchers - #2965
rudycelekli wants to merge 2 commits into
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Retain unresolved process identity and launch evidence through retryable cleanup. Share capture path normalization and preserve failed filesystem observations. Bound child output and drain Windows pipes without one-chunk throttling. Reviewed fixes include #1628, #2632, #2644, #2784, #2928, #2931, #2965, #2992, and #3011. Validation: 92 focused source tests passed; four platform-specific skips. Real Windows and Hopper lifecycle coverage was not rerun.
# Conflicts: # src/process/capture/ProcessCaptureLifecycle.ts # src/process/capture/ProcessHarness.ts # src/process/capture/ProcessNormalization.ts
|
CI-fix track: none of the failures came from this PR. The test shards failed on |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Heads up: main already has this change in 599a8ee. The code is in 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
Closing: main already contains this change, so this PR is superseded. Thanks for the review. |
|
Thanks @rudycelekli for identifying repeated matcher construction in terminal updates. Main now shares capture-local normalization work across the renderer and retained-event consumers (main). |
Repeated terminal updates rebuild the same path, PID and caller-pattern matchers. Prepare immutable scenario-dependent matchers once per capture and share them between renderer and retained-event consumers, while keeping the PID lookup live during terminal startup. Sample PID matchers are prepared only when PID normalization is selected. Output/provenance equivalence passes 9,035 adversarial producer assertions; no target authority or capture contract changes. AI-assisted implementation and verification with OpenAI Codex.
Verified on current main
8fef2aa6:npm run checkand 13 focused normalization tests pass. The executed macOS PTY suite passed 6 cases with 2 Linux-only skips before the clean rebase; all touched producer/consumer bytes are unchanged. No Windows/Linux runtime claim.Two 24-trial actual TerminalRenderer measurements preserve identical output digests. First warm elapsed medians for 0/4/64 observed paths were 136→134,151→260 and 315→201ms; the four-path result regressed. A subsequent bounded run measured 160→171,189→160 and 218→145ms, with a zero-path regression. Both host measurements and CPU samples are retained; peak process RSS was 162/163 MB for the combined runs. These are producer measurements on a contended host, not universal speedups or whole-task savings. Task tokens and process-capture cost remain unmeasured.