Skip to content

Bug: Open Workspace button shows 'undefined' location #4

Description

@jms830

Description

When clicking the "Open Workspace" button in the Sync tab, an alert appears showing "Workspace location: undefined" instead of the actual workspace path.

Steps to Reproduce

  1. Open the Eidolon dashboard
  2. Navigate to the Sync tab
  3. Configure workspace (select a directory)
  4. Click the "Open Workspace" button (📂 icon)
  5. Observe the alert message

Expected Behavior

The alert should display the full path to the configured workspace directory, such as:

Workspace location: /Users/username/Documents/ClaudeProjects

Or ideally, open the workspace folder directly in the system file manager.

Actual Behavior

Alert shows: "Workspace location: undefined"

Technical Details

  • File: entrypoints/dashboard/main.ts (line 2034-2045, openWorkspaceFolder() function)
  • The function attempts to read config.workspacePath but this value may not be properly set
  • The workspace path is stored separately from the FileSystemDirectoryHandle

Root Cause

When setting up the workspace:

  1. FileSystemDirectoryHandle is stored in IndexedDB
  2. WorkspaceConfig is stored in chrome.storage.local
  3. The workspacePath property in config may not be populated with the actual path

Suggested Fix Options

Option 1: Store Path During Setup

// In setupWorkspace()
const path = dirHandle.name; // Or construct full path
config.workspacePath = path;
await saveWorkspaceConfig(config);

Option 2: Use Native File Manager

Instead of showing path in alert, use the File System Access API to show the folder:

// This would require additional browser API permissions
window.showDirectoryPicker({ id: 'workspace', mode: 'read' });

Option 3: Derive Path from Handle

Get the directory name from the stored FileSystemDirectoryHandle and display that.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions