Repository navigation
Conversation
The OS Help submenu's only actionable item was "Report Crash...", so users filed IME, SSH and mobile-pairing bugs as crash reports (11 of 127 uploads carried no process_gone span at all). - Add "Send Feedback..." above Report Crash, routed through a new ui:openFeedback channel. The listener lives in useIpcEvents and drives a store flag consumed by a root-mounted SidebarFeedbackDialog, so the menu item works with the sidebar collapsed and on Settings/Activity/Space/Skills where the sidebar help menu is unmounted. - Relabel the crash dialog when no report was captured so it reads as a user report. The transport stays the crash lane: it is the only path that carries the diagnostic bundle, and ingest already gets report_source: help_menu and captured_crash_report: false to route on. The note stays optional so log-only submissions still work. - Offer "Send to Orca" beside "Copy diagnostics" on the relay mint failure notice so that payload no longer gets pasted into the crash dialog. Co-authored-by: Orca <[email protected]>
Send to Orca had no busy state, so repeat clicks each spawned a gh api user subprocess against the shared gh concurrency limit and filed a duplicate report. Co-authored-by: Orca <[email protected]>
Send Feedback... shipped in en.json only, so es/ja/ko/zh rendered it in English directly above a localized Report Crash... — steering non-English users back into the crash channel the entry exists to drain. The catalog gate only warns on missing keys, so a menu-namespace parity test now guards the OS menu bar. Send to Orca had no visible busy state: the in-flight ref already dropped repeat clicks, but with main's 10s submit deadline nothing changed on screen, so users kept clicking a button that silently ignored them. Surface the pending flag and mirror the Retry Relay spinner/disabled treatment. Co-authored-by: Orca <[email protected]>
…p items off the pop-out The root mount unmounted the dialog on every close, so Escape or an outside click threw away the typed report and its screenshots, and a dismiss during an in-flight submit silenced both the success and failure toasts. Mount it unconditionally. Help items also targeted the invoking window, and the dashboard pop-out mounts none of those ui: listeners, so Send Feedback (and Report Crash, Setup Guide, Explore Orca) were silent no-ops while it was focused. Co-authored-by: Orca <[email protected]>
|
Warning Review limit reached
Next review available in: 31 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (33)
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 |
|
Moving this PR to draft because it has been untouched for more than 80 days (latest recorded PR activity or commit timestamp: 2026-08-04T08:50:25Z; checked on 2026-10-27). This keeps the review queue focused on active work while preserving the proposal. Please mark it ready for review when work resumes. |
What this fixes
Signature:
Reason: no captured crash report/- captured_crash_report: false/- report_source: help_menu.Covers 11 of the 127 reports in this batch. These are not crashes. They are ordinary bug reports that users filed through the OS menu bar's Help submenu, because "Report Crash…" was the only actionable item in it. Verified independently over the whole index, not taken on faith from triage:
Be clear about what this is: this PR does not fix a crash. It eliminates 11 false-positive crash reports (8.7% of the batch) and fixes the product defect that produced them. The app never died in any of these — see the field data below.
Root cause
The OS Help submenu had no bug-report item.
src/main/menu/register-app-menu.ts:295-310onorigin/main:"Send Feedback" existed only in the in-app sidebar
(?)menu (src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx:232-238), which is unmounted with the sidebar collapsed and on Settings/Activity/Space/Skills. The two Help surfaces were disjoint: the OS one had only crash reporting, the in-app one had only feedback.The crash dialog did nothing to redirect a bug reporter. With
report === nullit still titled itself "Report a crash" and prompted "Optional: what happened?" (src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx:42-66), so nothing told the user they were in the wrong lane.The submitted body is hardcoded as a crash.
src/shared/crash-reporting.ts:292-306emits'Status: uncaptured','Source: user-reported','Reason: no captured crash report','- report_source: help_menu', reached fromcrashReports:submitwhenevergetRequestedCrashReportreturns null — which is by design for the menu path (src/main/ipc/crash-reporting.ts:262-271). The app never "detected" a crash here; the user opened the dialog and pressed Send.Aggravating path for 2 of the 11: the mobile relay pairing failure banner offered only "Copy diagnostics" (
src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx:114-124). Both of those reports are that clipboard JSON pasted verbatim into the crash dialog.Found while fixing the above, and fixed here too: all four
ui:Help items (ui:openFeedback,ui:openCrashReport,ui:openSetupGuide,ui:openFeatureTour) were sent to the invokingBrowserWindow. The dashboard pop-out mounts none of those renderer listeners, so every one of them was a silent no-op while the pop-out was focused.Representative reports
F0BLY6Q0MMMKorean IME: extra newline inserted when Shift+symbol follows Hangul compositionF0BMBHBUSSH{ "kind": "mobile_pairing_relay_failure", ... }(pasted from Copy diagnostics)F0BMRGYU8CSNot connecting SSHWhat the fix does
register-app-menu.ts:139-143,:307), routed through a newui:openFeedbackchannel.App.tsx:2741→AppFeedbackDialog.tsx) driven by a new store flag (store/slices/ui.tsfeedbackDialogOpen), so the menu item works with the sidebar collapsed and on sidebar-less views.SidebarSettingsHelpMenuno longer owns the dialog; it just flips the store flag. Because the dialog stays mounted while closed, a reflex Escape no longer throws away a long typed report, and a dismiss during an in-flight submit still lands its toast.os-menu-locale-paritytest now guards the wholemenu.*namespace, because the existing catalog gate only warns on missing keys.report_source: help_menu+captured_crash_report: falseto route on.MobileHeroPairingStepand Settings ›MobilePane), sending the identical payload throughfeedback:submit. It is in-flight guarded and shows a spinner.ui:events off the dashboard pop-out to the main window and raises it (src/main/window/help-menu-event-target.ts).Fix evidence
Windows verification: not required for this item (per
/tmp/crash-pr-meta.json:"windows": "not required"). The change is menu construction, renderer store/dialog wiring, and locale JSON — no platform-conditional code paths.1. RED without the source fix
Scratch worktree at the branch commit, source files reverted to
origin/main(the three new source modules deleted), tests left exactly as they are on the branch. Nogit stashwas used.Result —
EXIT=1, 9 test files failed:Three of the nine files fail at import rather than on an assertion, because the module the fix introduces does not exist on
origin/main— stating that plainly rather than dressing it up as an assertion failure:Targeted red for the locale-parity guard. Reverting all locale files also removes
menu.sendFeedbackfromen.json, so the parity test would vacuously pass. To prove the guard actually catches the defect it was written for (the entry shipping English-only), the same scratch worktree was reset to the branch and onlyes/ja/ko/zh.jsonreverted:The scratch worktree was then removed with
git worktree remove --force(confirmed gone).2. GREEN with the fix
Same 9 files plus the locale-parity test, on the branch:
The specific new cases:
3. Regression suite — every touched module directory
Zero failures — there are no pre-existing failures to name in these directories on this machine.
Contract surfaces for the changed preload/IPC/report-format code:
Typecheck and the localization gate:
(Those remaining "missing" counts are the pre-existing catalog gaps in unrelated namespaces — exactly the reason the gate only warns, and exactly why the new
menu.*parity test was added as a hard assertion.)4. Field data — proof the app never crashed
Every one of the 11 reports carries the machine-generated uncaptured header. Verbatim head of
F0BLY6Q0MMM:All 11 carry the same two markers:
And all 9 attached diagnostic bundles contain zero
process_gonespans — re-run for this PR, not quoted from triage:39,993 NDJSON lines across nine bundles, not one
electron.process_goneorelectron.child_process_gone. No process ever died.What the users were actually reporting (first line of each note) — five Korean/Windows IME bugs, four SSH-connection bugs, two pasted relay-pairing JSON blobs:
Note that 6 of the 11 are from Korean-locale users, which is what makes the English-only menu entry (fixed here) a material part of the defect and not cosmetic polish.
Causal strength, stated honestly. The link between "Report Crash was the only Help item" and "users filed bugs as crashes" is a strong inference from the reports' own content and headers, not a controlled experiment. What is proven outright: (a) none of these 11 were crashes, (b) the OS Help menu had no feedback item on
origin/main, (c) both of the relay-pairing reports are byte-identical to the payload the Copy-diagnostics button produces. Whether adding the menu entry reduces the false-positive rate to zero can only be measured after ship.ELI5
Imagine an office with two doors. The door on the hallway — the one everybody walks past — is labelled "EMERGENCY: REPORT A FIRE." The door for ordinary requests ("the printer is jammed") is inside the building, down a corridor, and half the time it isn't even there.
So when someone's printer jams, they do the only thing they can: they pull the fire alarm and write "printer jammed" on the incident form. Now the fire department gets eleven calls a week that aren't fires, and the real fires are harder to spot in the pile.
That's what happened here. Orca's menu bar had a Help menu whose only useful button was "Report Crash…". Users with Korean keyboard bugs, SSH connection problems, and phone-pairing failures had nowhere else to go, so they clicked it. The app dutifully filed each one as a crash report — even though it wrote right in the report that no crash was captured, and even though the attached logs show the app never so much as hiccuped.
The fix puts a second, clearly-labelled door right next to the first one: "Send Feedback…", listed above Report Crash so it's what you see first. Three extra details mattered:
And if you do end up in the crash dialog with no crash to report, it no longer insists it's a crash — it says "Tell us what went wrong" and tells you it's going to the team as a user report.
Trade-offs
Not "none". Here is everything that changes or got worse:
This fixes zero crashes. It removes 11 false positives from the crash channel (8.7% of the batch) and fixes the product defect behind them. Nobody's app stops crashing because of this PR. The content of those 11 reports — IME, SSH, relay pairing — is real user pain that other triage groups own.
The remaining uncaptured reports still land in the crash channel. By design:
crashReports:submitis the only path that carries the diagnostic bundle, and the bundle is often the only usable signal when the note is one line ("Not connecting SSH"). Reports now arrive labelled and honestly presented, but the crash channel does not get cleaner until ingest routes onreport_source: help_menu+captured_crash_report: false. That ingest-side change is not in this PR and is required to realize the benefit.Known follow-up, deliberately not fixed here: user notes arrive truncated to ~200 characters in the Slack
.txt(the bodies observed were 743/754/744 bytes) even though the app caps at 64,000. That truncation is server/Slack-bot side, outside this repo. Mitigation: raise the truncation in the ingest bot — until then, most of a report's body is destroyed on the way in, which independently pushes users to re-file.The crash dialog's title changes for genuinely-crashed-but-uncaptured users too. If a real crash occurred and the crash reporter failed to capture it, the dialog now says "Tell us what went wrong" instead of "Report a crash". That is a softer framing than the situation warrants for that (rarer) case. Accepted because the uncaptured path is overwhelmingly the manual one — 11 of 11 in this batch.
Help menu items now steal focus from the dashboard pop-out. Clicking Send Feedback / Report Crash / Setup Guide / Explore Orca while the pop-out is focused raises the main window in front of it. Previously the click did nothing at all, silently. Raising the window is the lesser evil, but it is a new focus change that did not happen before.
The feedback dialog is now mounted for the whole session, closed, at the app root. That is what preserves a typed draft across a reflex Escape and keeps an in-flight submit's toast alive. Cost: one always-mounted (closed) Radix dialog.
/perfreviewed this and found no regression from the mount itself.A typed feedback draft now survives dismissal for the rest of the session. It clears on a successful send (
SidebarFeedbackDialog.tsx:249) but there is no explicit "discard" affordance — a user who dismisses intending to abandon the draft will find it waiting next time they open the dialog.New CI friction:
os-menu-locale-parity.test.tshard-fails if anymenu.*key is added toen.jsonwithout es/ja/ko/zh. Intentional — the existing catalog gate only warns — but it does mean menu-bar changes now require translations in the same PR.The es/ja/ko/zh strings for "Send Feedback…" came from the repo's locale override table, not a native-speaker review. They are consistent with the adjacent "Report Crash…" translations already shipped, but they have not been proofread by a speaker of each language.
"Send to Orca" fires a
gh api usersubprocess to attach the reporter's identity (best-effort; a missingghsession does not block the send). This is guarded against repeat clicks by an in-flight ref and a disabled+spinner button — that guard exists because/perfcaught the unguarded version spawning a subprocess and filing a duplicate report per click.Adversarial review
5 independent adversarial review rounds were run on this change, each by a fresh reviewer with no memory of the prior rounds, producing 4 rounds of fixes. Round-over-round, the reviews surfaced:
ui:openFeedbacklistener being unreachable from views that unmount the sidebar — which is why the dialog was lifted fromSidebarSettingsHelpMenuto a root-mountedAppFeedbackDialogdriven by a store flag.ui:Help entries silent no-ops while the dashboard pop-out was focused. Fixed byresolveHelpMenuEventTargetplus raising the main window.en.jsononly, so es/ja/ko/zh rendered an English "Send Feedback…" directly above a localized "Report Crash…" — actively steering non-English users (6 of the 11 reporters) back into the crash channel. Fixed, and guarded by the newmenu.*parity test.Final verdict: clean — zero blocking findings, zero major findings.
/perfverdict: a regression was found by/perfand fixed in-branch — the unguarded in-flight feedback submit, where each repeat click spawned its owngh api usersubprocess against the sharedghconcurrency limit and filed a duplicate report. The fix (in-flight ref + disabled button) is covered byuseSendRelayMintFailureFeedback > drops repeat clicks while a send is in flight so one gh spawn and one report go out. No outstanding performance regressions.Made with Orca 🐋