usebruno/bruno · error · Error
Collection is already inside the workspace
Error message
Collection is already inside the workspace
What it means
Error "Collection is already inside the workspace" thrown in usebruno/bruno.
Source
Thrown at packages/bruno-electron/src/ipc/collection.js:359
if (!collectionPath || !isDirectory(collectionPath)) {
throw new Error(`Collection: ${collectionPath} does not exist`);
}
// resolve a collision-free target folder inside `<workspace>/collections`
const collectionsDir = path.join(workspacePath, 'collections');
if (!fs.existsSync(collectionsDir)) {
await createDirectory(collectionsDir);
}
let folderName = sanitizeName(path.basename(collectionPath));
if (fs.existsSync(path.join(collectionsDir, folderName))) {
const uniqueName = await findUniqueFolderName(folderName, collectionsDir);
folderName = sanitizeName(uniqueName);
}
const newPath = path.join(collectionsDir, folderName);
if (path.normalize(collectionPath) === path.normalize(newPath)) {
throw new Error('Collection is already inside the workspace');
}
// tear down the old watcher before moving the collection directory
if (watcher && mainWindow) {
watcher.removeWatcher(collectionPath, mainWindow, collectionUid);
if (wsClient) {
wsClient.closeForCollection(collectionUid);
}
}
// move the collection directory into the workspace
try {
await moveCollectionDirectory(collectionPath, newPath);
} catch (error) {
// reopen the collection at the original path
if (watcher && mainWindow && fs.existsSync(collectionPath)) {
try {
await openCollection(mainWindow, watcher, collectionPath);View on GitHub (pinned to 9bdd81c7bd)
Solutions
- The collection is already part of the workspace; no action needed.
- Remove it from the workspace first if you intend to re-add it elsewhere.
When it happens
Trigger: Thrown at packages/bruno-electron/src/ipc/collection.js:359 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/65031c7cf5dfa840.
Report an issue: GitHub.