Skip to content

fix(desktop): keep legacy storage migration on the main renderer - #407

Draft
adampeterhiggins wants to merge 2 commits into
ah/detached-chat-native-ownersfrom
ah/detached-chat-session
Draft

adampeterhiggins wants to merge 2 commits into
ah/detached-chat-native-ownersfrom
ah/detached-chat-session

Conversation

@adampeterhiggins

Copy link
Copy Markdown
Owner

An auxiliary preload could consume the one-shot V1 import, and a denied sync take threw out of the IPC listener before a reply was assigned.

Take and complete now require the current main window, including before that ref is assigned. Protocol handlers can be registered on an explicit session without changing the default one. Only an unauthorized-sender error on the take channel becomes null, so the renderer still gets a reply and the payload stays for the main window. This does not activate the detached chat shell; the legacy quick-message panel stays operational.

This restacks the accepted session commits onto parent #406 (ah/detached-chat-native-owners at 5f3cec64c06a78cd88927f45b12f891862ba1921). Foundation tracker: #397.

Rebase onto that exact native SHA had no conflicts. git range-diff e045d817e461fbed07dbc6d5a9c1f62fce4e8850..b29faf9a65452d134be0203976142f3327ab3807 5f3cec64c06a78cd88927f45b12f891862ba1921..589a952a8ca96ade83881e33cb63f75d811a086c is equivalent for both commits (788d8dbfba = 501c6a4a63, b29faf9a65 = 589a952a8c).

Validation: 20 focused tests passed (ElectronProtocol, DesktopIpc, legacy local storage migration). Desktop typecheck passed. Scoped lint on the six session files passed. Native ownership tests were not re-run; the rebase did not change those commits.

Grok 4.7 via Symphony Cursor coordinated GPT-6.1-Sol Codex.

Made with Cursor

adampeterhiggins and others added 2 commits October 21, 2026 08:38
An auxiliary preload could consume the one-shot V1 import. Take and complete now require the current main window, including before that ref is assigned, and protocol handlers can be registered on an explicit session without changing the default one.

Co-authored-by: Cursor <cursoragent@cursor.com>
A sync denial threw out of ipcMain.on before returnValue was assigned. Only that unauthorized-sender error on the take channel becomes null, so the renderer still gets a reply and the payload stays for the main window.

Co-authored-by: Cursor <cursoragent@cursor.com>

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.

1 participant