Skip to content

fix(process): argv spawn docs and short preview sockets - #273

Merged
undivisible merged 1 commit into
masterfrom
fix/process-run-argv-not-shell
Aug 20, 2026
Merged

fix(process): argv spawn docs and short preview sockets#273
undivisible merged 1 commit into
masterfrom
fix/process-run-argv-not-shell

Conversation

@undivisible

Copy link
Copy Markdown
Contributor

Summary

  • #267 wrapped process_run in guard_command, which only records owned-native invocations. Spawn was already Command::new + argv (no /bin/sh -c). This corrects the leftover "shell one-liner" docs and tests that ;, &&, $(), and backticks stay extra argv tokens.
  • Shortens the #265 Unix-socket test paths so macOS sun_path (103 bytes) is not exceeded in CI temp dirs.

Test plan

  • cargo test --manifest-path in-cli/Cargo.toml --lib -- test_parse_command_args test_run_unix_preview_client
  • CI in-cli fmt/clippy/test

Made with Cursor

#267 did not close a shell-injection hole; process_run already uses Command::new.
Lock that split in tests and keep macOS unix-socket tests under sun_path.

Co-authored-by: Cursor <cursoragent@cursor.com>
@cursor

cursor Bot commented Aug 20, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_90d6515a-f758-4dcb-8a1d-7fab516c526b)

@mergify

mergify Bot commented Aug 20, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@undivisible
undivisible merged commit 6419bac into master Aug 20, 2026
6 of 7 checks passed
@undivisible
undivisible deleted the fix/process-run-argv-not-shell branch August 20, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant