Q183: unsaved input is kept across pages, and leaving or closing asks before losing it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-09 07:30:13 -04:00
1 parent 3f8832702e
commit 2790d88186
27 files changed
+351 -41

No files matched your search

+2
View File
@@ -124,6 +124,8 @@ export interface DesktopApi {
loadSnapshot(): Promise<DesktopResult<AppSnapshot>>;
/** Restarts the app, which a display-language change needs; the user asks for it after seeing what it interrupts. */
relaunchApp(): Promise<DesktopResult<null>>;
/** Whether typed input would be lost if the app closed now; closing asks first while it is. */
reportUnsaved(input: { unsaved: boolean }): Promise<DesktopResult<null>>;
saveOnboardingDraft(input: { draft: OnboardingDraft | null }): Promise<DesktopResult<null>>;
completeSetup(input: { orgId: string }): Promise<DesktopResult<AppSnapshot>>;
/** Every agent session running now, in every company: what a restart interrupts. */
+1
View File
@@ -1,6 +1,7 @@
export const IPC_CHANNELS = {
loadSnapshot: "agentcompany:load-snapshot",
relaunchApp: "agentcompany:relaunch-app",
reportUnsaved: "agentcompany:report-unsaved",
saveOnboardingDraft: "agentcompany:save-onboarding-draft",
completeSetup: "agentcompany:complete-setup",
runningSessionCount: "agentcompany:running-session-count",