Ctrl+G fails to open a quoted VS Code path containing spaces
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- shell, typescript
- Domain
- cli, developer-experience
Research direction
Look at the external editor handling code, likely in a file like src/editor.ts or src/cli.ts. The issue is with parsing the VISUAL environment variable when it contains quoted paths with spaces. The fix should ensure the shell command is split correctly. Test by setting VISUAL as described and running the Ctrl+G command in the Step prompt.
Written by the indexing model from the issue text.
Description
What happened?
On macOS, Ctrl+G briefly shows the external-editor launch message, then returns to Step without opening VS Code. I reproduced this with Step 0.1.0 and extensions disabled (step -ne --no-session). No error is shown. This makes Ctrl+G unusable when VISUAL points to a quoted app-bundle path with spaces. I have a fix and regression test ready in my fork and would like to submit a PR when external PRs are accepted.
Steps to reproduce
- Confirm that
/Applications/Visual Studio Code.app/Contents/Resources/app/bin/codeexists. - Run
VISUAL='"/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" --wait' step -ne --no-session. - Press Ctrl+G in the Step prompt.
Expected behavior
VS Code opens the temporary prompt.md file and Step waits until I close the editor.
Version
0.1.0
- Dominant language
- TypeScript
- Stars
- 54
- Forks
- 20
- Avg merge
- 4h 1m
- Merged PRs (30d)
- 12
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from stepfun-ai/Step-Code
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#190 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#186 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#185 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#184 ·
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stepfun-ai/Step-Code#153 · 2 comments ·
All issues in stepfun-ai/Step-Code
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
bcgov/bc-wallet-mobile#4761 · 1 comment ·
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
refactor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100