Skip to content

test(vibe): make bash-wrap quote assertion platform-aware - #1120

Closed
lwandrebeck wants to merge 1 commit into
yvgude:mainfrom
lwandrebeck:fix/vibe-windows-quote-test
Closed

test(vibe): make bash-wrap quote assertion platform-aware#1120
lwandrebeck wants to merge 1 commit into
yvgude:mainfrom
lwandrebeck:fix/vibe-windows-quote-test

Conversation

@lwandrebeck

Copy link
Copy Markdown
Contributor

wrap_single_command quotes with double quotes on Windows (cmd) and single quotes on POSIX shells, but bash_wraps_general_command_and_preserves_timeout hardcoded the single-quoted form, so the test failed only on windows-latest (left: "lean-ctx -c "git status"", right: "lean-ctx -c 'git status'").

Mirror the existing platform-aware expect_wrapped helper: pick the expected wrapping via cfg!(windows). Unix expectation is byte-identical to before.

Summary

What does this PR change and why

Test plan

  • cd rust && cargo test -- --test-threads=1 (the suite shares process-global state; CI serializes it too)
  • cd rust && cargo clippy --all-targets --all-features -- -D warnings
  • cd rust && cargo fmt --check
  • If cookbook/packages changed: relevant npm test / build steps

Notes for reviewers

  • Risk areas / edge cases:
  • Backwards compatibility:
  • Docs updated (links/files):

Contributor License Agreement

First-time contributors: a bot will ask you to sign our one-time
CLA (it keeps lean-ctx
Apache-2.0 and free for individual developers — see §8). You sign once by
replying to this PR with: I have read the CLA Document and I hereby sign the CLA

wrap_single_command quotes with double quotes on Windows (cmd) and single
quotes on POSIX shells, but bash_wraps_general_command_and_preserves_timeout
hardcoded the single-quoted form, so the test failed only on windows-latest
(left: "lean-ctx -c \"git status\"", right: "lean-ctx -c 'git status'").

Mirror the existing platform-aware expect_wrapped helper: pick the expected
wrapping via cfg!(windows). Unix expectation is byte-identical to before.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@yvgude

yvgude commented Jul 21, 2026

Copy link
Copy Markdown
Owner

Cherry-picked to main as 58b2895. Thank you for the contribution!

@yvgude yvgude closed this Jul 21, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants