Skip to content

fix(workspace): stopped the same collection from rendering twice with conflicting status - #8947

Merged
utkarsh-bruno merged 5 commits into
usebruno:mainfrom
ravindra-bruno:fix/bru-4261
Aug 12, 2026
Merged

utkarsh-bruno merged 5 commits into
usebruno:mainfrom
ravindra-bruno:fix/bru-4261

Conversation

@ravindra-bruno

@ravindra-bruno ravindra-bruno commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Description

BRU-4261

After moving a collection to another workspace, the source workspace showed the same collection twice , for Failed to open and Not cloned. The Not cloned entry also showed actions that didn’t work and causing errors.

Problem

The move didn’t update the source workspace, causing duplicate collection entries. The Not cloned status was also based on whether the collection was open, instead of whether it was actually missing locally.

Fix

The workspace now refreshes the collection list from disk and removes duplicates, so each collection appears only once with the correct Failed to open status. The missing-local flag is also read correctly, removing the badge flicker. Missing collections now show only valid actions, and Remove works as expected.

Screenshots

Before:

Screenshot 2026-08-12 at 4 18 02 PM

After:

Screenshot 2026-08-12 at 4 33 04 PM Screenshot 2026-08-12 at 6 46 26 PM

Contribution Checklist:

  • I've used AI significantly to create this pull request
  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
  • I've run the claude code review skill locally.

Summary by CodeRabbit

  • Bug Fixes

    • Improved handling of collections that are missing locally or cannot be opened.
    • Prevented duplicate unopenable collections from appearing in workspace lists.
    • Removing failed or locally missing collections now updates the workspace correctly.
    • Workspace collections now reload reliably when switching workspaces.
  • Improvements

    • Git actions remain available for locally missing collections.
    • Actions unavailable for missing collections are now hidden.

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 75029286-66d3-498a-b130-8c64659bacdf

📥 Commits

Reviewing files that changed from the base of the PR and between 9af54a4 and 92141f5.

📒 Files selected for processing (2)
  • packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/CollectionsList/index.js
  • packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js

Walkthrough

Workspace collection handling now preserves missing-local state, filters duplicate unopenable entries, changes collection actions, and forces collection reloads during workspace switching.

Changes

Workspace collection handling

Layer / File(s) Summary
Collection state and actions
packages/bruno-app/src/components/WorkspaceHome/WorkspaceOverview/CollectionsList/index.js
Collections preserve notFoundLocally, identify not-cloned entries, filter duplicate unopenable paths, remove failed or missing collections directly, and hide actions that require local files. Git actions remain available when applicable.
Workspace switch refresh
packages/bruno-app/src/providers/ReduxStore/slices/workspaces/actions.js
Workspace switching now forces loadWorkspaceCollections to reload collection data.

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

Suggested reviewers: bijin-bruno

Poem

Missing paths stand clear,
Duplicate ghosts fade away,
Git commands remain.
Workspace switches refresh,
Collections return true.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the primary fix: preventing duplicate collection entries with conflicting statuses.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@utkarsh-bruno
utkarsh-bruno merged commit 9bdd81c into usebruno:main Aug 12, 2026
11 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants