Repository navigation
fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters - #14867
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between caa629e6491e5a0b7bab046806fa07d548788c25 and 5b3951f. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan includes up to 10 reviews per rolling hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe breadcrumb store now retains five entries: one 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
caa629e to
5b3951f
Compare
…lot without starving memory highwaters
5b3951f to
fe7bf30
Compare
…lot without starving memory highwaters (#14867) * fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters * test(crash-reporting): pin retained slot starvation
…dcrumb slot without starving memory highwaters (stablyai#14867)" (stablyai#15005) This reverts commit 28c93da.
…lot without starving memory highwaters (#14867) * fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters * test(crash-reporting): pin retained slot starvation
…lot without starving memory highwaters (#14867) * fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters * test(crash-reporting): pin retained slot starvation
…lot without starving memory highwaters (stablyai#14867) * fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters * test(crash-reporting): pin retained slot starvation
…dcrumb slot without starving memory highwaters (stablyai#14867)" (stablyai#15005) This reverts commit f0d167c.
ELI5
Crash reports carry a short list of recent breadcrumbs plus a few "keep this one no matter
what" slots. Those keep-forever slots were all spoken for by memory-highwater records, so a
newly added parking-census breadcrumb kept getting pushed out of the report before anyone
could read it. This adds one named keep-forever slot for it, and caps the memory ones
separately so the two kinds can't starve each other.
What Changed
src/main/crash-reporting/crash-breadcrumb-store.tsonly:MAX_RETAINED_BREADCRUMBS4 → 5.MAX_RETAINED_MEMORY_BREADCRUMBS = 4, so memory-highwater retention is cappedindependently of the total.
retainedBreadcrumbKeygrants a retained slot to the named parking-census crumb.Why
Split out of #14660 at its reviewer's recommendation, and at the repo owner's direction.
#14660 is instrumentation-only — it adds a parking-pass telemetry breadcrumb and claims no
product behaviour change. But guaranteeing that crumb survives to the bundle cannot be
achieved by ordinary ring coalescing; it needs a retained slot. Changing shared retention is
policy that every breadcrumb producer in the app is subject to, and it has a user-visible
consequence, so it does not belong inside a terminal-telemetry PR where reverting the
telemetry would silently revert the retention policy too.
Five is the minimal budget: it preserves all four existing memory slots and adds exactly
one named singleton slot. Nothing else moves.
Trade-offs
ordinary recent breadcrumb. The recent-ring slice shrinks by one to fund the retained
slot. This affects all crash reports, not just terminal ones.
a general allowlist would be over-abstraction for one caller — but it means the next
producer wanting a retained slot must touch this file again.
Linked Issue
No tracked issue. This is carved out of #14660, which came from the #orca-crashes sweep of
2026-08-14. #14660 depends on this landing — a durability improvement, not a correctness
gate: without it the telemetry still functions and coalesces, but its census crumb is
evictable under ring pressure.
Visual Proof
N/A— main-process breadcrumb retention policy, no UI surface.Testing
Standalone: 1 file, 15/15 tests.
feat(terminal): breadcrumb the worktree parking pass verdicts and manager census #14660 without this change: 7 files, 94/94 — confirming the telemetry stands alone
(functional and coalesced, just evictable).
Materialized merge of
origin/main+ this branch + feat(terminal): breadcrumb the worktree parking pass verdicts and manager census #14660 + fix(crash-reporting): preserve coalesced repeat accounting #14666 (merge SHA2a811e75b5): 18/18 crash-reporting reporters, 171/171 tests. Merged tree actuallybuilt and run, not a
git merge-treeexit code.Starvation proof: a 12-surface interleaving test retains the newest four memory
highwaters plus the latest parking census, so neither class can evict the other.
I manually tested these changes locally — not applicable; main-process retention
policy, covered by the tests above.
Automated tests added/updated
AI Disclosure
Adversarial Review
Carved out of #14660 during that PR's merge-gate review. The retention change was found by
that review (the census crumb was being evicted — "trailing-state loss"), and the same
reviewer then recommended it be split rather than shipped inline. It has not had an
independent adversarial loop of its own as a standalone PR; treat it as needing one.
Review
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass — focused suites andthe materialized merge pass; full lint/test/build left to CI.
Author