Skip to content

fix(feedback): stop the Help menu funnelling ordinary bug reports into the crash channel - #12493

Draft
nwparker wants to merge 4 commits into
mainfrom
crashfix/w4-help-feedback
Draft

nwparker wants to merge 4 commits into
mainfrom
crashfix/w4-help-feedback

Conversation

@nwparker

@nwparker nwparker commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

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:

$ python3 - <<'PY'   # over /tmp/crash-index.json
... count reports whose body contains 'Reason: no captured crash report'
PY
total index entries: 127
uncaptured help_menu reports: 11
['F0BLY6Q0MMM', 'F0BMBHBUSSH', 'F0BMBNGJ9N1', 'F0BMCBRNFQT', 'F0BMCC4Q0KG', 'F0BMDGUN1KQ',
 'F0BMJN07RNG', 'F0BMRGYU8CS', 'F0BMRU2UJ9L', 'F0BMSR9D7S8', 'F0BNC7T2DNC']

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

  1. The OS Help submenu had no bug-report item. src/main/menu/register-app-menu.ts:295-310 on origin/main:

    const helpMenu: Electron.MenuItemConstructorOptions = {
      label: translateMain('menu.help', 'Help'),
      submenu: [
        crashReportItem,
        { type: 'separator' },
        featureTourItem,
        setupGuideItem,
        ...

    "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.

  2. The crash dialog did nothing to redirect a bug reporter. With report === null it 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.

  3. The submitted body is hardcoded as a crash. src/shared/crash-reporting.ts:292-306 emits 'Status: uncaptured', 'Source: user-reported', 'Reason: no captured crash report', '- report_source: help_menu', reached from crashReports:submit whenever getRequestedCrashReport returns 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.

  4. 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.

  5. 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 invoking BrowserWindow. 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

Report Version / platform User note (first line) Slack
F0BLY6Q0MMM 1.4.163 win32 10.0.26200 Korean IME: extra newline inserted when Shift+symbol follows Hangul composition permalink
F0BMBHBUSSH 1.4.163 linux 5.15.0-139 { "kind": "mobile_pairing_relay_failure", ... } (pasted from Copy diagnostics) permalink
F0BMRGYU8CS 1.4.167 darwin 25.5.0 arm64 Not connecting SSH permalink

What the fix does

  • Adds Send Feedback… to the OS Help submenu, above Report Crash, on every platform (register-app-menu.ts:139-143, :307), routed through a new ui:openFeedback channel.
  • Mounts the feedback dialog at the app root (App.tsx:2741 → AppFeedbackDialog.tsx) driven by a new store flag (store/slices/ui.ts feedbackDialogOpen), so the menu item works with the sidebar collapsed and on sidebar-less views. SidebarSettingsHelpMenu no 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.
  • Localizes the new menu entry in es/ja/ko/zh. It shipped English-only in an earlier commit on this branch, which put an English "Send Feedback…" directly above a localized "크래시 신고…" — steering exactly the non-English users this entry exists to help back into the crash channel. A new os-menu-locale-parity test now guards the whole menu.* namespace, because the existing catalog gate only warns on missing keys.
  • Relabels the crash dialog when no report was captured: title "Tell us what went wrong", description "No crash was captured, so this reaches the Orca team as a user report…". The transport intentionally stays the crash lane — it is the only path that carries the diagnostic bundle, and ingest already receives report_source: help_menu + captured_crash_report: false to route on.
  • Adds Send to Orca beside Copy diagnostics on the relay mint failure notice (both call sites: MobileHeroPairingStep and Settings › MobilePane), sending the identical payload through feedback:submit. It is in-flight guarded and shows a spinner.
  • Routes Help-menu 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. No git stash was used.

$ git worktree add /tmp/prproof-w4-help-feedback crashfix/w4-help-feedback --detach
$ ln -s .../w4-help-feedback/node_modules /tmp/prproof-w4-help-feedback/node_modules
$ git checkout origin/main -- config/scripts/locale-value-overrides.mjs src/main/index.ts \
    src/main/menu/register-app-menu.ts src/preload/api-types.ts src/preload/index.ts \
    src/renderer/src/App.tsx src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx \
    src/renderer/src/components/mobile/MobileHeroPairingStep.tsx \
    src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx \
    src/renderer/src/components/settings/MobilePane.tsx \
    src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx \
    src/renderer/src/hooks/useIpcEvents.ts src/renderer/src/i18n/locales/*.json \
    src/renderer/src/store/slices/ui.ts src/renderer/src/web/web-preload-api.ts
$ rm -f src/main/window/help-menu-event-target.ts \
        src/renderer/src/components/feedback/AppFeedbackDialog.tsx \
        src/renderer/src/components/mobile/relay-mint-failure-feedback.ts
$ npx vitest run --config config/vitest.config.ts <the 9 touched test files>

Result — EXIT=1, 9 test files failed:

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 7 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  src/main/menu/register-app-menu.test.ts > registerAppMenu > keeps the macOS app-named menu with Settings and quit roles
AssertionError: expected [ 'Report Crash...', undefined, …(2) ] to deeply equal [ 'Send Feedback...', …(4) ]

- Expected
+ Received

  [
-   "Send Feedback...",
    "Report Crash...",
    undefined,
    "Explore Orca",
    "Getting Started with Orca",
  ]

 ❯ src/main/menu/register-app-menu.test.ts:275:24

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/10]⎯

 FAIL  src/main/menu/register-app-menu.test.ts > registerAppMenu > offers Send Feedback above Report Crash so ordinary bugs skip the crash channel
AssertionError: expected -1 to be greater than or equal to 0
 ❯ src/main/menu/register-app-menu.test.ts:324:27
    322|     const feedbackIndex = helpLabels.indexOf('Send Feedback...')
    323|     const crashIndex = helpLabels.indexOf('Report Crash...')
    324|     expect(feedbackIndex).toBeGreaterThanOrEqual(0)
       |                           ^

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/10]⎯

 FAIL  src/renderer/src/hooks/useIpcEvents.test.ts > useIpcEvents Help > Send Feedback > opens the feedback dialog with the sidebar collapsed on a sidebar-less view
Error: Expected the open-feedback listener to be registered
 ❯ Object.openFeedback src/renderer/src/hooks/ipc-events-test-harness.ts:255:15

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/10]⎯

 FAIL  src/renderer/src/components/crash-report/CrashReportDialogSurface.test.tsx > CrashReportDialogSurface without a captured crash report > reads as a user report rather than a crash
TestingLibraryElementError: Unable to find an element with the text: Tell us what went wrong.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/10]⎯

 FAIL  src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.test.tsx > MobileRelayMintFailureNotice > offers sending the diagnostics to Orca instead of only copying them
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Send to Orca"

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[8/10]⎯

 FAIL  src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsx > SidebarSettingsHelpMenu > opens the app-root feedback dialog through the store instead of owning it locally
TypeError: Cannot read properties of undefined (reading 'viewer')
 ❯ src/renderer/src/components/sidebar/SidebarFeedbackDialog.tsx:170:8

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[9/10]⎯

 FAIL  src/renderer/src/store/slices/ui.test.ts > createUISlice feedbackDialogOpen > holds the feedback dialog outside the sidebar so any view can open it
AssertionError: expected undefined to be false // Object.is equality

- Expected:
false

+ Received:
undefined

 ❯ src/renderer/src/store/slices/ui.test.ts:3547:49

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[10/10]⎯


 Test Files  9 failed (9)
      Tests  7 failed | 297 passed | 1 skipped (305)
   Start at  01:43:21
   Duration  12.04s

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:

⎯⎯⎯⎯⎯⎯ Failed Suites 3 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  src/main/window/help-menu-event-target.test.ts [ src/main/window/help-menu-event-target.test.ts ]
Error: Cannot find module '/src/main/window/help-menu-event-target' imported from /private/tmp/prproof-w4-help-feedback/src/main/window/help-menu-event-target.test.ts
 ❯ src/main/window/help-menu-event-target.test.ts:10:1
     10| import { resolveHelpMenuEventTarget } from './help-menu-event-target'
       | ^

 FAIL  src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx [ ... ]
Error: Failed to resolve import "./AppFeedbackDialog" from "src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx". Does the file exist?

 FAIL  src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx [ ... ]
Error: Failed to resolve import "./relay-mint-failure-feedback" from "src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx". Does the file exist?

Targeted red for the locale-parity guard. Reverting all locale files also removes menu.sendFeedback from en.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 only es/ja/ko/zh.json reverted:

$ git checkout origin/main -- src/renderer/src/i18n/locales/{es,ja,ko,zh}.json
$ npx vitest run --config config/vitest.config.ts src/renderer/src/i18n/os-menu-locale-parity.test.ts
EXIT=1

 ❯ src/renderer/src/i18n/os-menu-locale-parity.test.ts (4 tests | 4 failed) 8ms
     × es translates every menu item 5ms
     × ja translates every menu item 1ms
     × ko translates every menu item 1ms
     × zh translates every menu item 1ms

AssertionError: menu.sendFeedback missing from catalog: expected undefined to be defined
 ❯ src/renderer/src/i18n/os-menu-locale-parity.test.ts:20:61

 Test Files  1 failed (1)
      Tests  4 failed (4)

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:

$ npx vitest run --config config/vitest.config.ts \
    src/main/window/help-menu-event-target.test.ts src/main/menu/register-app-menu.test.ts \
    src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx \
    src/renderer/src/components/crash-report/CrashReportDialogSurface.test.tsx \
    src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx \
    src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.test.tsx \
    src/renderer/src/i18n/os-menu-locale-parity.test.ts src/renderer/src/store/slices/ui.test.ts \
    src/renderer/src/hooks/useIpcEvents.test.ts \
    src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsx

 Test Files  10 passed (10)
      Tests  316 passed | 1 skipped (317)
   Start at  01:41:34
   Duration  4.64s

The specific new cases:

 ✓ src/main/window/help-menu-event-target.test.ts > resolveHelpMenuEventTarget > keeps an ordinary invoking window so hidden and multi-window flows stay on their renderer 1ms
 ✓ src/main/window/help-menu-event-target.test.ts > resolveHelpMenuEventTarget > redirects the dashboard pop-out to the main window instead of dropping the click 0ms
 ✓ src/main/window/help-menu-event-target.test.ts > resolveHelpMenuEventTarget > falls back to the main window when the menu reports no invoking window 0ms
 ✓ src/main/window/help-menu-event-target.test.ts > resolveHelpMenuEventTarget > reports no window rather than a destroyed main window 0ms
 ✓ src/renderer/src/i18n/os-menu-locale-parity.test.ts > OS menu locale parity > es translates every menu item 2ms
 ✓ src/renderer/src/i18n/os-menu-locale-parity.test.ts > OS menu locale parity > ja translates every menu item 1ms
 ✓ src/renderer/src/i18n/os-menu-locale-parity.test.ts > OS menu locale parity > ko translates every menu item 1ms
 ✓ src/renderer/src/i18n/os-menu-locale-parity.test.ts > OS menu locale parity > zh translates every menu item 1ms
 ✓ src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx > useSendRelayMintFailureFeedback > drops repeat clicks while a send is in flight so one gh spawn and one report go out 83ms
 ✓ src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx > useSendRelayMintFailureFeedback > disables Send to Orca and shows progress until the submit settles 25ms
 ✓ src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx > AppFeedbackDialog > keeps the typed report when the dialog is dismissed and reopened 124ms
 ✓ src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx > AppFeedbackDialog > still reports a failed submit that the user dismissed while it was in flight 87ms

3. Regression suite — every touched module directory

$ npx vitest run --config config/vitest.config.ts \
    src/main/menu src/main/window src/renderer/src/components/feedback \
    src/renderer/src/components/crash-report src/renderer/src/components/mobile \
    src/renderer/src/components/sidebar src/renderer/src/components/settings \
    src/renderer/src/hooks src/renderer/src/store src/renderer/src/i18n
EXIT=0

 Test Files  617 passed (617)
      Tests  6194 passed | 1 skipped (6195)
   Start at  01:44:06
   Duration  62.72s

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:

$ npx vitest run --config config/vitest.config.ts src/preload \
    src/shared/crash-reporting.test.ts src/main/ipc/crash-reporting.test.ts

 Test Files  10 passed (10)
      Tests  49 passed (49)

Typecheck and the localization gate:

$ npx tsc --noEmit -p config/tsconfig.node.json    → exit 0, no output
$ npx tsc --noEmit -p config/tsconfig.tc.web.json  → exit 0, no output
$ npx oxlint <the 5 changed/new source files>      → no diagnostics

$ npm run verify:localization-catalog
Verified 11136 localization key references against en.json.
es.json coverage: 11808/11990 translated, 182 missing.
ja.json coverage: 11808/11990 translated, 182 missing.
ko.json coverage: 11808/11990 translated, 182 missing.
zh.json coverage: 11812/11990 translated, 178 missing.

(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:

[Crash Report]

Report ID: not captured
Created: 2026-08-01T20:28:47.018Z
Status: uncaptured
Source: user-reported
Process: unknown
Reason: no captured crash report
Exit code: unknown
App version: 1.4.163
Platform: win32 10.0.26200 x64
Electron: 43.1.0
Chrome: 150.0.7871.47

Details:
- captured_crash_report: false
- report_source: help_menu

Diagnostic log:
- Status: attached
- Bundle submission ID: MDVmeG_iNK81jHvxxHTZbQ
- Spans: 6331
- Bytes: 4193967

User notes:
Korean IME: extra newline inserted when Shift+symbol follows Hangul composition

All 11 carry the same two markers:

F0BLY6Q0MMM: Reason: no captured crash report | - report_source: help_menu
F0BMCC4Q0KG: Reason: no captured crash report | - report_source: help_menu
F0BMJN07RNG: Reason: no captured crash report | - report_source: help_menu
F0BMBNGJ9N1: Reason: no captured crash report | - report_source: help_menu
F0BMCBRNFQT: Reason: no captured crash report | - report_source: help_menu
F0BMDGUN1KQ: Reason: no captured crash report | - report_source: help_menu
F0BMSR9D7S8: Reason: no captured crash report | - report_source: help_menu
F0BMRGYU8CS: Reason: no captured crash report | - report_source: help_menu
F0BMRU2UJ9L: Reason: no captured crash report | - report_source: help_menu
F0BMBHBUSSH: Reason: no captured crash report | - report_source: help_menu
F0BNC7T2DNC: Reason: no captured crash report | - report_source: help_menu

And all 9 attached diagnostic bundles contain zero process_gone spans — re-run for this PR, not quoted from triage:

$ for f in F0BMBJ58G4E F0BMEBK6BGS F0BMET7K1B4 F0BMD3HHELW F0BM997S64T \
           F0BM37XCG4X F0BNHEUAM9N F0BMKA03HFD F0BMMLFFNM9; do ... done
F0BMBJ58G4E process_gone_spans=0 total_spans=6332
F0BMEBK6BGS process_gone_spans=0 total_spans=6406
F0BMET7K1B4 process_gone_spans=0 total_spans=7065
F0BMD3HHELW process_gone_spans=0 total_spans=323
F0BM997S64T process_gone_spans=0 total_spans=116
F0BM37XCG4X process_gone_spans=0 total_spans=7211
F0BNHEUAM9N process_gone_spans=0 total_spans=2533
F0BMKA03HFD process_gone_spans=0 total_spans=2233
F0BMMLFFNM9 process_gone_spans=0 total_spans=7774

39,993 NDJSON lines across nine bundles, not one electron.process_gone or electron.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:

F0BLY6Q0MMM   Korean IME: extra newline inserted when Shift+symbol follows Hangul composition
F0BMCC4Q0KG   Same root cause as #6147 (IME-committed characters bypassing the
F0BMJN07RNG   ▏ Title: Korean IME composition broken after recent update
F0BMBNGJ9N1   Korean IME input lag in built-in terminal
F0BMCBRNFQT   저는 한국 유저입니다. 한국어로 프롬프트를 하면 아래와 같이 자동으로 계쏙 줄바꿈이 됩니다.
F0BMDGUN1KQ   When using SSH to work on a remote server (Mac Mini in my case), the agentic chat-interface doe
F0BMSR9D7S8   After updating Orca to version 1.4.167, Remote SSH relay reconnection stopped working correctly
F0BMRGYU8CS   Not connecting SSH
F0BMRU2UJ9L   ssh 접속이 안됨.
F0BMBHBUSSH   {
F0BNC7T2DNC   {

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:

  • The feedback form used to live inside the app's sidebar. If you'd collapsed the sidebar, or were on the Settings page, the form simply didn't exist to open. So the form was moved to live at the top level of the app, where the menu can always reach it.
  • The new menu entry initially shipped in English only. A Korean user would have seen an English "Send Feedback…" sitting directly above a perfectly Korean "크래시 신고…" — and would reasonably have picked the Korean one, right back into the crash channel. Six of the eleven reports came from Korean-locale users, so it's now translated, with a test that fails the build if anyone adds a menu item in English only again.
  • The phone-pairing error banner had a "Copy diagnostics" button and nothing else. Two users copied that blob and pasted it into the crash dialog because that was the only place to put it. There's now a "Send to Orca" button right next to it.

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:

  1. 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.

  2. The remaining uncaptured reports still land in the crash channel. By design: crashReports:submit is 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 on report_source: help_menu + captured_crash_report: false. That ingest-side change is not in this PR and is required to realize the benefit.

  3. 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.

  4. 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.

  5. 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.

  6. 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. /perf reviewed this and found no regression from the mount itself.

  7. 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.

  8. New CI friction: os-menu-locale-parity.test.ts hard-fails if any menu.* key is added to en.json without 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.

  9. 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.

  10. "Send to Orca" fires a gh api user subprocess to attach the reporter's identity (best-effort; a missing gh session 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 /perf caught 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:

  • The ui:openFeedback listener being unreachable from views that unmount the sidebar — which is why the dialog was lifted from SidebarSettingsHelpMenu to a root-mounted AppFeedbackDialog driven by a store flag.
  • The root mount being conditional, which unmounted the dialog on every close and so discarded the typed report and its screenshots on a reflex Escape or outside click, and silenced both the success and failure toasts when a dismiss raced an in-flight submit. Fixed by mounting unconditionally.
  • The new Help items targeting the invoking window, making all four ui: Help entries silent no-ops while the dashboard pop-out was focused. Fixed by resolveHelpMenuEventTarget plus raising the main window.
  • The menu entry shipping in en.json only, 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 new menu.* parity test.
  • "Send to Orca" having no visible busy state against main's 10s submit deadline, so nothing changed on screen and users kept clicking a button that was silently dropping their clicks. Fixed with a spinner/disabled treatment mirroring Retry Relay.

Final verdict: clean — zero blocking findings, zero major findings.

/perf verdict: a regression was found by /perf and fixed in-branch — the unguarded in-flight feedback submit, where each repeat click spawned its own gh api user subprocess against the shared gh concurrency limit and filed a duplicate report. The fix (in-flight ref + disabled button) is covered by useSendRelayMintFailureFeedback > 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 🐋

nwparker and others added 4 commits August 4, 2026 00:14
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]>
@nwparker
nwparker requested a review from brennanb2025 as a code owner August 4, 2026 08:50
@coderabbitai

coderabbitai Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@nwparker, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 06895a35-0f93-450d-99a0-630afd90c195

📥 Commits

Reviewing files that changed from the base of the PR and between e9cf106 and 879c9d5.

📒 Files selected for processing (33)
  • config/scripts/locale-value-overrides.mjs
  • src/main/index.ts
  • src/main/menu/register-app-menu.test.ts
  • src/main/menu/register-app-menu.ts
  • src/main/window/help-menu-event-target.test.ts
  • src/main/window/help-menu-event-target.ts
  • src/preload/api-types.ts
  • src/preload/index.ts
  • src/renderer/src/App.tsx
  • src/renderer/src/components/crash-report/CrashReportDialogSurface.test.tsx
  • src/renderer/src/components/crash-report/CrashReportDialogSurface.tsx
  • src/renderer/src/components/feedback/AppFeedbackDialog.test.tsx
  • src/renderer/src/components/feedback/AppFeedbackDialog.tsx
  • src/renderer/src/components/mobile/MobileHeroPairingStep.tsx
  • src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.test.tsx
  • src/renderer/src/components/mobile/mobile-relay-mint-failure-notice.tsx
  • src/renderer/src/components/mobile/relay-mint-failure-feedback.test.tsx
  • src/renderer/src/components/mobile/relay-mint-failure-feedback.ts
  • src/renderer/src/components/settings/MobilePane.tsx
  • src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.test.tsx
  • src/renderer/src/components/sidebar/SidebarSettingsHelpMenu.tsx
  • src/renderer/src/hooks/ipc-events-test-harness.ts
  • src/renderer/src/hooks/useIpcEvents.test.ts
  • src/renderer/src/hooks/useIpcEvents.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/os-menu-locale-parity.test.ts
  • src/renderer/src/store/slices/ui.test.ts
  • src/renderer/src/store/slices/ui.ts
  • src/renderer/src/web/web-preload-api.ts

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.

@OrcaWin

OrcaWin commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

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.

This branch has not been deployed

No deployments
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.

2 participants