Repository navigation
fix(desktop): ask before an update restart from the menu, count uploads and downloads as running work, and harden sign-in prompts - #9533
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ds and downloads as running work, and harden sign-in prompts
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryThe PR asks before restarting for a staged update, counts transfers as running work, and tightens browser sign-in prompts.
|
…he page that started them Uploads keep sending after in-app navigation unmounts their page, so the beforeunload guard now reads a shared in-flight upload count from one guard mounted in the workspace layout. The credential detail guard reuses useBeforeUnloadWhile, and Continue in Browser reads the page origin only in the desktop shell.
There was a problem hiding this comment.
1 issue found across 27 files
Confidence score: 3/5
- In
import-csv-dialog.tsx, closing the dialog unmounts it before the pending-upload guard is installed, so an update restart can interrupt a CSV upload. Keep the guard mounted while the upload is pending.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/sim/app/workspace/[workspaceId]/tables/components/import-csv-dialog/import-csv-dialog.tsx">
<violation number="1" location="apps/sim/app/workspace/[workspaceId]/tables/components/import-csv-dialog/import-csv-dialog.tsx:150">
P2: The workspace tables list unmounts `ImportCsvDialog` when submit closes it, before `isPending` can install this guard, so CSV uploads from that page are not protected from an update restart. Keep the guard mounted through mutation settlement or lift the pending state and guard into a stable parent.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
409ff22 to
9c94992
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Release-audit follow-ups to #9505, #9515 and #9521:
quitAndInstall). It now shows "Sim X is ready to install" with Restart to Update / Later; Restart still runs the in-flight checkprogressingare named in the restart prompt. Knowledge base, file and table uploads hold a Chrome-standardbeforeunloadguard while in flight through one shareduseBeforeUnloadWhile(active)hook (also replacing the knowledge document's hand-rolled guard), so both a normal close and the update probe see themrememberflag, both version-skew directions safe); the noted main-frame URL clears ondid-stop-loadingso an aborted navigation can't let an iframe challenge pass as top-levelwithinWindow,USER_ONLY_SHORTCUTSas aSet,lru-cache(same pin as apps/sim) instead of a hand-rolled LRU, the app-launch notice bar reusesBrowserNoticeType of Change
Testing
e2e/browser-sign-in-prompts.spec.ts(10/10 checks) ande2e/updater.spec.tspass locallytsc --noEmit, targeted apps/sim type-check, biome; full gate in CIChecklist
test-auditauthoring gate)