diff --git a/components/files/file-browser.tsx b/components/files/file-browser.tsx index e9eb11a8..926f95f5 100644 --- a/components/files/file-browser.tsx +++ b/components/files/file-browser.tsx @@ -491,8 +491,15 @@ export function FileBrowser({ const segments = currentPath.split('/').filter(Boolean); segments.pop(); const parentPath = segments.length === 0 ? '/' : '/' + segments.join('/'); + // Pro shell: going up to root from a subfolder must land on the + // account's filesystem root, not detach back to the account picker. + // Home click (breadcrumb) still detaches. + if (parentPath === '/' && accountLabel) { + onNavigate('/', '__account_root__'); + return; + } onNavigate(parentPath); - }, [currentPath, onNavigate]); + }, [currentPath, onNavigate, accountLabel]); const handleResourceClick = (resource: FileResource, e: React.MouseEvent) => { if (resource.isDirectory) {