fix(widgets): fix CLI launcher error 127 and hide Cursor sidebar button#59
Draft
keshav-k3 wants to merge 1 commit into
Draft
fix(widgets): fix CLI launcher error 127 and hide Cursor sidebar button#59keshav-k3 wants to merge 1 commit into
keshav-k3 wants to merge 1 commit into
Conversation
The Claude/Codex sidebar launchers set cmd:interactive but the backend never honored it, so commands ran as bare shell -c without login profile sourcing and could not find user-installed CLIs (exit 127). Wire cmd:interactive to login/interactive shell flags for cmd blocks and apply the same flags when building -c invocations locally, over WSL, and over SSH. Hide the Cursor launcher from the sidebar while keeping its config and launcher code for later. Co-authored-by: Keshav Kk <keshav-k3@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the Claude/Codex sidebar folder launchers failing with shell exit code 127 ("command not found") and hides the Cursor Agent launcher from the sidebar while keeping its implementation intact for later.
Root cause
The launcher widgets set
cmd:interactive: truein block meta, but the Go backend never read that flag. Cmd blocks were started as non-login shells (zsh -c claude), which inherit the Electron app's minimalPATHand cannot find user-installed CLIs likeclaude,agent, orcodex.Fix
cmd:interactiveis set, pass login + interactive shell flags so commands run aszsh -lic claude(or equivalent), sourcing the user's shell profile andPATH.CLI_LAUNCHER_SIDEBAR_HIDDENflag anddisplay:hiddenin default widgets config — code and config remain for future re-enable.Test plan
go test ./pkg/shellexec/... -run TestAppendShellCommandOptsclaudelaunches without error 127codexlaunches successfully