You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.bugSomething isn't workingpriority: lowP3 - nice to have / minor / cosmetictriage: reproducibleClear repro + clear fix path
`/config edit` silently fails when `$EDITOR` is set to a value with arguments.
Root cause
The code does:
let editor = std::env::var("EDITOR").unwrap_or_else(|_| "nano".to_string());let _ = std::process::Command::new(&editor).arg(&path).spawn();
When `$EDITOR="zed --wait"`, the entire string is used as the binary name instead of being shell-split. The spawn fails silently — no error is shown to the user.
Steps to reproduce
Set EDITOR="zed --wait"
Run /config edit in jcode
Nothing happens, no error message
Expected behavior
Editor opens, or an error is shown if spawn fails.
Fix
Split `$EDITOR` on whitespace before spawning:
letmut parts = editor.split_whitespace();ifletSome(bin) = parts.next(){let _ = std::process::Command::new(bin).args(parts).arg(&path).spawn();}
Triage: reproducible, autonomous: clear. /config edit used the whole $EDITOR string as the binary name, so values with args (e.g. zed --wait) failed silently. Fixed by shell-splitting $EDITOR (first token = binary, rest = leading args) and surfacing spawn errors. Fix in #417.
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.bugSomething isn't workingpriority: lowP3 - nice to have / minor / cosmetictriage: reproducibleClear repro + clear fix path
Activity
1jehuang commentedon Jun 29, 2026
Triage: reproducible, autonomous: clear.
/config editused the whole $EDITOR string as the binary name, so values with args (e.g.zed --wait) failed silently. Fixed by shell-splitting $EDITOR (first token = binary, rest = leading args) and surfacing spawn errors. Fix in #417.Triage fixes: install.sh, /config edit, FreeBSD, .agents skills, MCP …
fix(config): shell-split $EDITOR for /config edit (#412)
fix(config): shell-split $EDITOR for /config edit (1jehuang#412)
Triage fixes: install.sh, /config edit, FreeBSD, .agents skills, MCP …
fix(config): shell-split $EDITOR for /config edit (1jehuang#412)
Triage fixes: install.sh, /config edit, FreeBSD, .agents skills, MCP …