Project
cortex
Description
Many developers set EDITOR or pass --editor using a command line that includes flags, such as code --wait or subl -w, to ensure the editor blocks until the file is closed. Cortex passes the entire string to Command::new as a single executable name on many platforms, which fails because code --wait is not a single binary. Users experience opaque OS errors (“not found”) even when VS Code is installed and on PATH. The product either needs argv splitting (shell-like parsing) or an explicit, documented contract that only a bare executable name is supported, plus examples for common editors.
Error Message
Debug Logs
System Information
Screenshots
https://github.com/springoliver/bounty_challenge_report_image/blob/main/49105.mp4
Steps to Reproduce
- Run
$env:EDITOR="code --wait", cortex workspace edit.
- Or run
cortex workspace edit --editor 'code --wait'.
- Observe the command failure.
Expected Behavior
Cortex should split the editor command and its flags correctly, or clearly document that only a bare executable name is supported.
Actual Behavior
Cortex tries to execute the full string code --wait as a single binary name and fails before opening the config file.
Additional Context
No response
Project
cortex
Description
Many developers set
EDITORor pass--editorusing a command line that includes flags, such ascode --waitorsubl -w, to ensure the editor blocks until the file is closed. Cortex passes the entire string toCommand::newas a single executable name on many platforms, which fails becausecode --waitis not a single binary. Users experience opaque OS errors (“not found”) even when VS Code is installed and on PATH. The product either needs argv splitting (shell-like parsing) or an explicit, documented contract that only a bare executable name is supported, plus examples for common editors.Error Message
Debug Logs
System Information
Screenshots
https://github.com/springoliver/bounty_challenge_report_image/blob/main/49105.mp4
Steps to Reproduce
$env:EDITOR="code --wait",cortex workspace edit.cortex workspace edit --editor 'code --wait'.Expected Behavior
Cortex should split the editor command and its flags correctly, or clearly document that only a bare executable name is supported.
Actual Behavior
Cortex tries to execute the full string
code --waitas a single binary name and fails before opening the config file.Additional Context
No response