Skip to content

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

@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
Artifact is captured from the Cortex GUI; focus screenshots may include a simple issue marker ring.

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.
Run tag: E2E 20260304-181400

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