Skip to content

[BUG] [v0.0.7] github install/uninstall/update default workflow name casing mismatch — "Cortex" vs "cortex" breaks on case-sensitive filesystems #48524

@lucasevansdev

Description

@lucasevansdev

Project

cortex

Description

cortex github install creates a workflow file named Cortex.yml (capital C), but cortex github uninstall and update look for cortex.yml (lowercase c). On case-sensitive filesystems (Linux), the uninstall/update commands cannot find the installed workflow.

The defaults are inconsistent in src/cortex-cli/src/github_cmd.rs:

  • Line 66: installdefault_value = "Cortex" (capital C)
  • Line 118: uninstalldefault_value = "cortex" (lowercase c)
  • Line 134: updatedefault_value = "cortex" (lowercase c)

Error Message

$ cortex github install --force
   Location: .github/workflows/Cortex.yml

$ ls .github/workflows/
Cortex.yml

$ cortex github uninstall
Remove Cortex workflow './.github/workflows/cortex.yml'? [y/N]: y
# On Linux: error - file not found (cortex.yml ≠ Cortex.yml)
# On macOS: works because filesystem is case-insensitive

Debug Logs

N/A

System Information

macOS Darwin 25.3.0
cortex 0.0.7 (7954d02 2026-04-03)

Screenshots

Image

Steps to Reproduce

  1. Run cortex github install --force — creates Cortex.yml
  2. Run cortex github uninstall — looks for cortex.yml
  3. On Linux (case-sensitive): uninstall fails with "workflow not found"
  4. Check the code: line 66 vs line 118 show the inconsistent defaults

Expected Behavior

All three commands (install, uninstall, update) should use the same default workflow name casing — either all "Cortex" or all "cortex".

Actual Behavior

install uses "Cortex" (capital C) while uninstall and update use "cortex" (lowercase). This breaks the install → uninstall lifecycle on case-sensitive filesystems.

Additional Context

Fix: Change lines 118 and 134 to match line 66:

#[arg(long, default_value = "Cortex")]  // Match install's default
pub workflow_name: String,

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existsideIssues related to IDE

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions