Skip to content

🤖 fix: keep workspace creation loading overlay during hydration#2685

Open
jaaydenh wants to merge 1 commit intomainfrom
fix/workspace-creation-loading-transition
Open

🤖 fix: keep workspace creation loading overlay during hydration#2685
jaaydenh wants to merge 1 commit intomainfrom
fix/workspace-creation-loading-transition

Conversation

@jaaydenh
Copy link
Contributor

Summary

Keep the workspace-creation loading experience continuous across navigation by preserving the existing creation overlay until the new workspace finishes hydrating.

Background

On mobile, creating a workspace showed two back-to-back loading screens with a restarted animation:

  1. Creating workspace overlay from ProjectPage
  2. Loading workspace... placeholder from WorkspaceShell

Because the sidebar is collapsed on mobile, both appeared full-screen and looked like a redundant second loading screen.

Implementation

  • Added app-level transition state in App.tsx to carry creation overlay metadata (workspaceId, name/title).
  • Set that transition state in onWorkspaceCreated before auto-navigation.
  • Rendered CreationCenterContent as an absolute overlay in the main pane while transitioning.
  • Added onWorkspaceHydrated plumbing (App -> AIView -> WorkspaceShell) and clear the transition state once workspaceState.loading is false.
  • Added defensive cleanup when the user navigates away from the target workspace (or to settings/analytics) before hydration completes.

Validation

  • make static-check

Risks

  • Low. This change is UI-state scoped and only affects the new-workspace transition path.
  • Potential stale-overlay risk is mitigated by explicit clear conditions (workspace hydrated, route changed, settings/analytics routes).

Generated with mux • Model: openai:gpt-5.3-codex • Thinking: xhigh • Cost: $2.13

@jaaydenh
Copy link
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. 👍

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jaaydenh jaaydenh self-assigned this Feb 28, 2026
@jaaydenh jaaydenh force-pushed the fix/workspace-creation-loading-transition branch from c2251ab to 492a114 Compare February 28, 2026 08:21
@jaaydenh
Copy link
Contributor Author

@codex review

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 492a114d2c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jaaydenh jaaydenh force-pushed the fix/workspace-creation-loading-transition branch from 492a114 to 5c2d14e Compare February 28, 2026 08:29
@jaaydenh
Copy link
Contributor Author

@codex review

Addressed the stale workspace-creation transition cleanup by clearing the transition when the active workspace route no longer matches the transition target (including leaving to project/home routes).

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Preserve the creation overlay across the ProjectPage -> WorkspaceShell transition to avoid showing two sequential loading screens on mobile. App now tracks the newly-created workspace transition and clears it once WorkspaceShell reports hydration complete.

---

_Generated with `mux` • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh` • Cost: `$2.13`_

<!-- mux-attribution: model=openai:gpt-5.3-codex thinking=xhigh costs=2.13 -->
@jaaydenh jaaydenh force-pushed the fix/workspace-creation-loading-transition branch from 5c2d14e to 3f640a5 Compare March 5, 2026 15:39
@jaaydenh
Copy link
Contributor Author

jaaydenh commented Mar 5, 2026

@codex review

Rebased on latest main, resolved merge conflicts, and re-validated. Please do another pass.

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Delightful!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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