mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-01-28 20:37:33 +00:00
fix: use resolved path from API in folder browser
When selecting home folder in New Project wizard, ~ was being used instead of /home/<user>, causing "Workspace path does not exist" error. Now uses the resolved absolute path returned by the browse-filesystem API.
This commit is contained in:
@@ -170,9 +170,9 @@ const ProjectCreationWizard = ({ onClose, onProjectCreated }) => {
|
||||
const loadBrowserFolders = async (path) => {
|
||||
try {
|
||||
setLoadingFolders(true);
|
||||
setBrowserCurrentPath(path);
|
||||
const response = await api.browseFilesystem(path);
|
||||
const data = await response.json();
|
||||
setBrowserCurrentPath(data.path || path);
|
||||
setBrowserFolders(data.suggestions || []);
|
||||
} catch (error) {
|
||||
console.error('Error loading folders:', error);
|
||||
|
||||
Reference in New Issue
Block a user