Skip to content

11374 Improve cloud project open flow on error - #11678

Merged
embarc-gabriel merged 1 commit into
audacity:masterfrom
embarc-gabriel:11374-avoid-new-window-with-dangling-null-project
Sep 8, 2026
Merged

embarc-gabriel merged 1 commit into
audacity:masterfrom
embarc-gabriel:11374-avoid-new-window-with-dangling-null-project

Conversation

@embarc-gabriel

@embarc-gabriel embarc-gabriel commented Aug 13, 2026 •

Copy link
Copy Markdown
Contributor

Resolves: #11374

If we fail to open a cloud project in a new window we could have a dangling project pointer.
After this change, if no project is available we close the window if there is more than one project or we navigate to the home page for single window case.

  • I signed CLA
  • The title of the pull request describes an issue it addresses
  • If changes are extensive, then there is a sequence of easily reviewable commits
  • Each commit's message describes its purpose and effects
  • There are no behavior changes unnecessary for the stated purpose of the PR

Recommended:

  • Each commit compiles and runs on my machine without known undesirable changes of behavior

QA:

  • Testflow test cases have been run

@embarc-gabriel embarc-gabriel changed the title 11374 Improve cloud project flow on error opening a project 11374 Improve cloud project open flow on error Aug 13, 2026
@coderabbitai

coderabbitai Bot commented Aug 13, 2026 •

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: 9df144a6-5f0b-4fb2-92b4-2c1fd66b58ff

📥 Commits

Reviewing files that changed from the base of the PR and between b882bb3 and 64f19ab.

📒 Files selected for processing (1)
  • src/project/internal/projectactionscontroller.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/project/internal/projectactionscontroller.cpp

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

After a cloud-open error, the controller stores the results of force-open and latest-synced retries. It stops further UI changes after a successful retry or when a project is already open. If no project remains open, it closes the current window when multiple windows exist. Otherwise, it opens the home page.

Priority: ➖ Normal — Impact reflects medium issue severity.

Estimated code review effort: 2 (Simple) | ~10 minutes

Severity of issue fixed: Medium

Merge Risk: ⚪ Minimal · up to 64f19

Cloud-open failures now close an extra project window or return the remaining window to the home page, avoiding a stranded half-initialized project window. No current merge-blocking risk is identified.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the cloud project open flow as the main change and references error handling.
Description check ✅ Passed The description links issue #11374, explains the failure scenario and motivation, and includes the required checklist. Testflow execution is not marked complete, but this is a non-critical omission.
Linked Issues check ✅ Passed The changes address issue #11374 by handling failed cloud-project opens. The implementation closes the window when multiple windows exist or navigates to the home page for a single-window case, preven…
Out of Scope Changes check ✅ Passed The summarized changes are limited to cloud-project open error handling and window navigation. No unrelated changes are identified.

Warning

Tools execution failed with the following error:

Failed to run tools: 13 INTERNAL: Received RST_STREAM with code 2 (Internal server error)

Warning

Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped musescore/musescore.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 05f30724-c3ae-4632-9d2e-36b594a800d2

📥 Commits

Reviewing files that changed from the base of the PR and between 0ba74a9 and 21c5ea19e840c13135b26c24fc9c1173cf66c464.

📒 Files selected for processing (1)
  • src/project/internal/projectactionscontroller.cpp

@embarc-gabriel
embarc-gabriel force-pushed the 11374-avoid-new-window-with-dangling-null-project branch 2 times, most recently from 83898f7 to 3725578 Compare August 14, 2026 09:14
@embarc-gabriel
embarc-gabriel force-pushed the 11374-avoid-new-window-with-dangling-null-project branch from 3725578 to 64f19ab Compare September 8, 2026 09:01
@coderabbitai

coderabbitai Bot commented Sep 8, 2026

Copy link
Copy Markdown

Note

The previously reviewed commits are no longer reachable (likely due to a force-push or rebase), so CodeRabbit is performing a full review instead of an incremental one. This review may take a little longer.

@embarc-gabriel
embarc-gabriel merged commit 837475e into audacity:master Sep 8, 2026
17 checks passed
kryksyh added a commit that referenced this pull request Sep 22, 2026
11374 Improve cloud project open flow on error (#11678)
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.

When you try to open a cloud project and it fails with a "Cloud sync failed" error, a new project window is opened in a half-initialized state

2 participants