feat(js): support shell file/args specs (#191) - #195
Merged
Conversation
Adding .gitkeep for PR creation (default mode). This file will be removed when the task is complete. Issue: #191
Delegate shell-enabled executable spawning to Node so Windows command shims can receive separate argument arrays. Closes #191
# Conflicts: # .gitkeep
konard
marked this pull request as ready for review
August 11, 2026 10:58
Member
Author
Working session summaryImplemented and finalized PR #195.
The branch is synchronized, the worktree is clean, main is merged, and the PR is ready for review and merge. This summary was automatically extracted from the AI working session output. |
Member
Author
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
📊 Context and tokens usage:
Total: (715.6K + 13.9M cached) input tokens, 57.8K output tokens, $23.625975 cost 🤖 Models used:
📎 Log file uploaded as Gist (5869KB)Now working session is ended, feel free to review and add any feedback on the solution draft. |
Member
Author
🎉 Auto-mergedThis pull request has been automatically merged by hive-mind.
Auto-merged by hive-mind with --auto-merge flag |
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
{ mode: 'shell', file, args }ProcessRunner specifications in async and sync modesRoot cause and reproduction
ProcessRunner treated every
mode: 'shell'specification as a completedcommandstring. A shell spec containingfileandargstherefore reached command-string parsing withcommand === undefined; async execution threw fromcommand.includes(...), while sync execution attempted an invalid shell command and returned exit code 127.js/tests/process-runner-shell-argv.test.mjsreproduces the requestedcode.cmd --install-extension ...shape. On Windows it invokes a real.cmdfixture; on other platforms it exercises the same Node shell-enabled spawn boundary. The test covers both awaited and synchronous runners and failed before the implementation.Implementation
Shell specifications are now classified as either command-string or executable-plus-args forms. The latter bypasses command-string parsing, retains the separate command vector, and opts into
child_process.spawn()orspawnSync()withshell: true. Existing streaming, capture, stdin, cwd, environment, cancellation, event, and result processing remains shared with native execution.Because Node's shell-enabled spawning still invokes the platform shell, the README advises callers to pass only trusted values and to prefer
mode: 'exec'for native executables requiring exact argument boundaries.Verification
bun test js/tests/ --timeout 10000— 799 passed, 5 skipped, 0 failed across 58 filesbun run lint— passed (one pre-existing warning in$.cd.mjs)bun run format:check— passedbun run check:duplication— passedbun scripts/validate-changeset.mjsagainst the PR base/head — passedLanguage parity
This is intentionally JavaScript-only: it exposes Node's platform shell command construction for
.cmdshims and has no corresponding Rust runtime API. The PR is labeledparity-exempt.Fixes #191