Skip to content

[Bug][alpha]Title-bar button says 'Open File' but triggers folder/project open flow #57

@Maa-ly

Description

@Maa-ly

Project

cortex-ide

Description

The primary title-bar dropdown defaults to label 'Open File', but its click handler dispatches folder:open, which opens project/folder selection rather than file-open flow.

Evidence:

  • cortex-ide/src/components/cortex/primitives/CortexOpenProjectDropdown.tsx:30 -> const displayLabel = () => local.label ?? "Open File";
  • cortex-ide/src/components/cortex/CortexDesktopLayout.tsx:310 -> onProjectDropdownClick={() => window.dispatchEvent(new CustomEvent("folder:open"))}

Error Message

No explicit error; behavior mismatch occurs silently.

Debug Logs

No logs required; mismatch is deterministic from label/action wiring.

System Information

Native GUI: Cortex IDE

Screenshots

Native GUI: Cortex IDE
Captured from the Cortex GUI with explicit click reproduction and resulting dialog state.

Click reproduction (Open File control)

Result after click (Open Folder dialog)

Inline motion proof

Steps to Reproduce

  1. Launch Cortex IDE and inspect the top-left action button label.
  2. Click 'Open File' in the title bar.
  3. Observe it opens folder/project selection flow instead of a file picker.

Expected Behavior

Label and action should match (either 'Open Project' or true file-open behavior).

Actual Behavior

Label says 'Open File' while action routes to folder/project open event.

Additional Context

Mismatch is visible in title bar and reproducible from first click.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions