Skip to content

revert(crash-reporting): drop the dead terminal_parking_pass retained-slot reservation (#14867) - #15005

Merged
brennanb2025 merged 1 commit into
mainfrom
revert-14867-parking-census-slot
Aug 17, 2026
Merged

brennanb2025 merged 1 commit into
mainfrom
revert-14867-parking-census-slot

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 0 $\color{#cf222e}{\Huge{\mathbf{−}}}$​77 $\color{#cf222e}{\Huge{\mathbf{−}}}$​77
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​2 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#cf222e}{\Huge{\mathbf{−}}}$​14

ELI5

We reserved a guaranteed "save this one" slot in the crash-report breadcrumb ring for a terminal_parking_pass event that a sibling PR was going to start emitting. That sibling PR was closed without merging, so nothing ever produces the event. This reverts the reservation so the store doesn't carry config and tests for a breadcrumb that cannot exist.

What Changed

Reverts #14867 (28c93da474) via git revert:

  • MAX_RETAINED_BREADCRUMBS back to 4 with its original comment ("retain two thresholds for each renderer surface without growing the ring")
  • Removes MAX_RETAINED_MEMORY_BREADCRUMBS, RETAINED_SINGLETON_BREADCRUMB_NAMES, the singleton early-return in retainedBreadcrumbKey, and the memory-specific trim loop in recordCrashBreadcrumb
  • Removes the two tests that pinned terminal_parking_pass retention/starvation behavior

No dangling references remain: terminal_parking_pass, RETAINED_SINGLETON_BREADCRUMB_NAMES, and MAX_RETAINED_MEMORY_BREADCRUMBS appear nowhere in src/ after this change.

Memory-highwater capacity is unchanged at 4. Pre-revert, main retained 4 memory highwaters (MAX_RETAINED_MEMORY_BREADCRUMBS = 4) within a total of 5. Post-revert, only renderer_memory_highwater breadcrumbs get a retained key (retainedBreadcrumbKey returns null for every other name), and the retained map caps at MAX_RETAINED_BREADCRUMBS = 4 — so all 4 slots are memory highwaters, exactly as before #14867. The pre-existing "caps retained high-water profiles" test still pins this.

Why

#14867 provisioned a retained singleton slot for terminal_parking_pass in anticipation of #14660, which would have emitted it as part of investigating the React #185 parking-oscillation hypothesis. #14660 has since been closed (#14660 (comment)): park churn appeared in 0 of 16 #185 field reports vs 3 of 336 non-#185 reports, the paired fix #14653 closed at zero diff, and the #185 cluster spans five error boundaries rather than being a terminal parking bug.

With #14660 closed, nothing in production emits terminal_parking_pass — it exists only in the retention set and that file's tests. The reservation is dead config, and the constant split served no purpose independent of it, so a full revert (not a targeted trim) is the right shape.

Linked Issue

No standalone issue exists for this cleanup — it reverts #14867, whose reservation was made for the emitter proposed in the now-closed #14660.

Fixes # (revert of #14867; see #14660 for the closure that made it dead config)

Visual Proof

N/A — main-process crash-breadcrumb retention config with no UI surface or interaction change.

Testing

  • vitest run --config config/vitest.config.ts --no-file-parallelism src/main/crash-reporting/crash-breadcrumb-store.test.ts — 21 passed

  • Adjacent breadcrumb suites (crash-breadcrumb-store-leak, crash-breadcrumb-store-orphan-cleanup, durable-crash-breadcrumb, suppressed-process-gone-breadcrumb) — 14 passed

  • pnpm run typecheck:node — clean

  • Verified the revert restores the exact pre-fix(crash-reporting): give the parking census a retained breadcrumb slot without starving memory highwaters #14867 file state and leaves zero references to the removed names (macOS local)

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below — the reverted tests only exercised the removed dead behavior; surviving coverage still pins the 4-slot memory-highwater cap

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Platform-neutral main-process config; no wire, SSH, or mobile impact. Crash-report snapshots simply stop reserving a slot for an event that is never recorded.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Author

  • X / Twitter: @BrennanKB5

…dcrumb slot without starving memory highwaters (#14867)"

This reverts commit 28c93da.
@coderabbitai

coderabbitai Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The crash-breadcrumb store now retains only renderer memory highwater entries. The total retained-breadcrumb limit is four entries. Terminal parking census retention and separate memory-entry eviction logic were removed. Tests for terminal parking census retention and retention fairness were also removed.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check ⚠️ Warning The description thoroughly explains the change, rationale, testing, and impact, but the required Linked Issue field remains unresolved as “Fixes #”. Provide a valid linked issue or explicitly document the repository-approved exception for this cleanup revert.
✅ Passed checks (3 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the main change: removing the unused terminal_parking_pass retained-slot reservation.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5f18fccf-95c3-4775-b8c5-b34e69475b5c

📥 Commits

Reviewing files that changed from the base of the PR and between 71bbab7 and 9fe4feb.

📒 Files selected for processing (2)
  • src/main/crash-reporting/crash-breadcrumb-store.test.ts
  • src/main/crash-reporting/crash-breadcrumb-store.ts
💤 Files with no reviewable changes (1)
  • src/main/crash-reporting/crash-breadcrumb-store.test.ts

Included review availability: Your plan includes up to 10 reviews per rolling hour; 3 remain after this review.

Comment on lines +9 to +10
// Why: retain two thresholds for each renderer surface without growing the ring.
const MAX_RETAINED_BREADCRUMBS = 4

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Update the retention comment to describe the global cap.

MAX_RETAINED_BREADCRUMBS limits all retained breadcrumbs to four entries. The current comment says that the store retains two thresholds for each renderer surface. The adjacent test records five surfaces, so that per-surface guarantee is not provided. Replace the comment with wording that describes the total cap.

Proposed comment
-// Why: retain two thresholds for each renderer surface without growing the ring.
+// Why: retain up to four renderer memory highwater breadcrumbs without growing the ring.
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
// Why: retain two thresholds for each renderer surface without growing the ring.
const MAX_RETAINED_BREADCRUMBS = 4
// Why: retain up to four renderer memory highwater breadcrumbs without growing the ring.
const MAX_RETAINED_BREADCRUMBS = 4

@brennanb2025
brennanb2025 merged commit a9f9317 into main Aug 17, 2026
46 checks passed
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 21, 2026
…dcrumb slot without starving memory highwaters (stablyai#14867)" (stablyai#15005)

This reverts commit 28c93da.
AmethystLiang pushed a commit that referenced this pull request Aug 25, 2026
…dcrumb slot without starving memory highwaters (#14867)" (#15005)

This reverts commit 28c93da.
AmethystLiang pushed a commit that referenced this pull request Aug 25, 2026
…dcrumb slot without starving memory highwaters (#14867)" (#15005)

This reverts commit 28c93da.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…dcrumb slot without starving memory highwaters (stablyai#14867)" (stablyai#15005)

This reverts commit f0d167c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant