Skip to content

Fix the Fix > Close All action not resulting in the welcome screen being shown#4107

Merged
timon-schelling merged 1 commit intomasterfrom
fix-close-all-docs
May 6, 2026
Merged

Fix the Fix > Close All action not resulting in the welcome screen being shown#4107
timon-schelling merged 1 commit intomasterfrom
fix-close-all-docs

Conversation

@timon-schelling
Copy link
Copy Markdown
Member

Closing all documents left the Welcome panel as the only tab, but the old active document index could still point to a tab that no longer existed. The fix is to reset it to 0 when the document list becomes empty.

Closing all documents left the Welcome panel as the only tab, but the old active document index could still point to a tab that no longer existed. The fix is to reset it to 0 when the document list becomes empty.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the portfolio store to reset the active document index to zero when the document list becomes empty. The review feedback suggests a more robust approach by clamping the active document index within the valid bounds of the document list to prevent potential out-of-bounds errors during list updates.

Comment thread frontend/src/stores/portfolio.ts
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

@Keavon Keavon changed the title Fix missing welcome panel after closing all documents Fix the Fix > Close All action not resulting in the welcome screen being shown May 6, 2026
@timon-schelling timon-schelling added this pull request to the merge queue May 6, 2026
Merged via the queue into master with commit 8ae8c47 May 6, 2026
10 checks passed
@timon-schelling timon-schelling deleted the fix-close-all-docs branch May 6, 2026 12:13
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