Repository navigation
Conversation
|
This PR consolidates 13 upstream perf PRs: bounded/incremental caches (Raycast Reviewed the full diff across all 20 source files. Overall this is careful, well-tested work that is behavior-preserving in most areas. One change stands out as a genuine behavior shift worth verifying before merge. Strengths
Concerns / potential bugs
Suggestions
🟡 Approve with minor comments — the work is careful and well-tested; concern #1 (fs/child_process facade preference) is the one behavior change I'd want confirmed against real extensions before merging. 🤖 Automated review by Claude Code (Opus 4.8). |
|
Addressed the actionable review feedback in
Verification:
|
What changed
withCache, RaycastCache, extension wrapper compilation, extension bundle preparation, and menu-bar visible payload updates.fs/child_processpaths and by clearing abortable promise and exec timeout handles.Why
Long-lived menu-bar sessions can accumulate work from repeated refresh timer recreation, unchanged tray payload IPC, storage-triggered remounts, background no-view overlap, cache growth, sync IPC, and callback queues. This PR combines the related fixes so the upstream review can evaluate the full lag-reduction path together.
Compatibility impact
has/removestill reconcile stale localStorage entries.How tested
node --test scripts/test-with-cache-expiry.mjs scripts/test-menubar-payload-cache.mjs scripts/test-extension-wrapper-cache.mjs scripts/test-extension-bundle-cache.mjs scripts/test-menubar-storage-remounts.mjs scripts/test-abortable-promise-hooks.mjs scripts/test-inline-args-write-coalesce.mjs scripts/test-extension-sync-facade.mjs scripts/test-raycast-cache-size-index.mjs scripts/test-background-no-view-dedupe.mjs scripts/test-background-refresh-timer-diff.mjs scripts/test-exec-command-timeout-cleanup.mjs scripts/test-oauth-callback-queue.mjsnode scripts/measure-extension-wrapper-cache.mjsnode scripts/measure-extension-bundle-cache.mjspnpm exec tsc -p tsconfig.main.json --noEmit --pretty falsepnpm testpnpm exec tsc -p tsconfig.renderer.json --noEmit --pretty falsefails on the standalone branch because of existing repo-wide renderer typing debt unrelated to this consolidation.Performance evidence
created=2 cleared=2to keyedcreated=0 retained=2 cleared=0.queued=3toqueued=1 skipped=2.set-fill getItem=0,set-with-eviction getItem=0).Stack validation
Applied this consolidation over
codex/consolidate-validation-checks(fix(validation): restore project checks) and validated the combined stack:pnpm exec tsc -p tsconfig.renderer.json --noEmit --pretty falsepnpm testReplaces