Repository navigation
Closed
Description
Summary
Audit follow-up: remove IPC bridge surface with zero consumers in the renderer/overlay/e2e. All three items are safe deletions verified against current main (HEAD d20c9fc).
Findings
1. window:openSettings push has no sender since #390
apps/desktop/src/preload/preload.ts:1017-1018still exposesappWindow.subscribeOpenSettings;apps/desktop/src/renderer/app-shell-effects.ts:326subscribes (unsubscribed at :336).- The only sender (app-menu item
设置…/CommandOrControl+,inmain-window.ts) was deleted in chore(ui): track Storybook-driven UI polish after file-boundary governance #390 (git show 5d696e463). No sender exists anywhere inmain/or the builtdist/main. - ⌘, is already handled by the renderer keydown handler (
app-shell-effects.ts:279-281), so no functional loss.
2. dailyReview.list/get/delete duplicate the live *Archive variants
preload/preload.ts:968-984:list/listArchives→ samedaily-review:listchannel;get/getArchiveanddelete/deleteArchivelikewise.- Renderer only calls
listArchives/getArchive(apps/desktop/src/renderer/app-shell-daily-review-bridge.ts:18,23).deletehas no consumer in either spelling — the wholedaily-review:deletechannel is renderer-dead (archive-store retention cleanup callsstore.deleteArchivedirectly).
3. cursor-subscription:logout is not gated by the experimental flag
apps/desktop/src/main/subscription-ipc-main.ts:408-411registerscursor-subscription:logoutunconditionally, unlike the other 7cursor-subscription:*channels gated byMAKA_CURSOR_SUBSCRIPTION_EXPERIMENTAL !== '0'(oauth/cursor-subscription-helpers.ts:79-80).
Proposed fix
- Delete
subscribeOpenSettingsfrom preload + thesubscribeOpenSettings/handleOpenSettingswiring inapp-shell-effects.ts(keep the keydown handler). - Delete
dailyReview.list/get/deletealiases from preload (andbridge-contract.d.tsif listed); optionally remove thedaily-review:deletechannel end-to-end. - Gate
cursor-subscription:logoutwith the same experimental flag, or remove it with the rest of the cursor surface (see the decision issue for the cursor subscription surface).
Owner
main process / preload (IPC boundary).
Acceptance
- Preload + renderer typecheck clean.
- ⌘/Ctrl+, still opens settings (keydown path).
- Daily Review archive journey unaffected.
Metadata
Metadata
Assignees
Labels
No labels
Activity
refactor(desktop): remove consumer-less IPC bridge surface (apache#2065)