{"record":{"id":"fd0fe908a6c96ca1","repo":"usebruno/bruno","slug":"collection-was-moved-into-the-workspace-but-could","errorCode":null,"errorMessage":"Collection was moved into the workspace but could not be re-opened. Reload the workspace to access it.","messagePattern":"Collection was moved into the workspace but could not be re-opened\\. Reload the workspace to access it\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js","lineNumber":2684,"sourceCode":"        collectionUid,\n        collectionName: collection.name\n      })\n      .then(async (result) => {\n        dispatch(closeAllCollectionTabs({ collectionUid }));\n        dispatch(removeCollectionFromWorkspace({\n          workspaceUid: activeWorkspace.uid,\n          collectionLocation: collection.pathname\n        }));\n        await waitForNextTick();\n        dispatch(_removeCollection({ collectionUid }));\n\n        if (result?.newPath) {\n          const openResult = await dispatch(openMultipleCollections([result.newPath], { workspacePath: activeWorkspace.pathname }));\n          const reopened = (openResult?.opened || []).some(\n            (openedPath) => normalizePath(openedPath) === normalizePath(result.newPath)\n          );\n          if (!reopened) {\n            throw new Error('Collection was moved into the workspace but could not be re-opened. Reload the workspace to access it.');\n          }\n        }\n        dispatch(ensureActiveTabInCurrentWorkspace());\n      })\n      .then(resolve)\n      .catch(reject);\n  });\n};\n\nexport const browseDirectory = () => (dispatch, getState) => {\n  const { ipcRenderer } = window;\n\n  return new Promise((resolve, reject) => {\n    ipcRenderer.invoke('renderer:browse-directory').then(resolve).catch(reject);\n  });\n};\n\nexport const browseDirectories = () => (dispatch, getState) => {","sourceCodeStart":2666,"sourceCodeEnd":2702,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js#L2666-L2702","documentation":"Error \"Collection was moved into the workspace but could not be re-opened. Reload the workspace to access it.\" thrown in usebruno/bruno.","triggerScenarios":"Thrown at packages/bruno-app/src/providers/ReduxStore/slices/collections/actions.js:2684 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reload the workspace (File > Reload Workspace) to re-open the moved collection.","Check the collection directory exists and contains bruno.json or opencollection.yml."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}