Skip to content

fix: defer outdated notification until state machine completes#899

Merged
EhabY merged 1 commit intomainfrom
fix/defer-outdated-notification-until-setup-complete
Apr 18, 2026
Merged

fix: defer outdated notification until state machine completes#899
EhabY merged 1 commit intomainfrom
fix/defer-outdated-notification-until-setup-complete

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Apr 16, 2026

  • Delay the outdated workspace notification until after the state machine finishes so it does not fire during an in-progress update (e.g. after "Update and Restart" reloads the window).
  • Re-evaluate deferred notifications when markInitialSetupComplete() is called so the notification still fires for workspaces that are outdated after a normal startup.
  • Add staleness checks to Commands.updateWorkspace() so it verifies the workspace is still outdated before showing the modal and again after the user confirms.
  • Pass latestWorkspace instead of the stale closure-captured workspace when the user clicks "Update" in the notification.

Delay the outdated notification until after initial setup so it does not
fire during an in-progress update. Add staleness checks to the update
command so it verifies the workspace is still outdated before proceeding.
Copy link
Copy Markdown

@zenithwolf1000 zenithwolf1000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provisional ✅ as I'm still learning the codebase, but doesn't seem too complicated.

@EhabY EhabY self-assigned this Apr 18, 2026
@EhabY EhabY merged commit 9b367d9 into main Apr 18, 2026
31 of 36 checks passed
@EhabY EhabY deleted the fix/defer-outdated-notification-until-setup-complete branch April 18, 2026 14:22
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