Skip to content

Conversation

@AmirSa12
Copy link
Member

@AmirSa12 AmirSa12 commented Dec 10, 2025

the last completion gets 'replayed' if you press tab a second time. see: nuxt/cli#1082 (comment)

in this PR, we are switching from execSync to spawnSync when invoking the nested cli during completion
execSync required building a single command string, which caused the shell to re-parse arguments and drop empty trailing args "" by passing an argv array directly to spawnSync, we preserve the exact user-provided arguments and ensure completion behaves correctly

@changeset-bot
Copy link

changeset-bot bot commented Dec 10, 2025

🦋 Changeset detected

Latest commit: 970a537

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bomb.sh/tab Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/bombshell-dev/tab/@bomb.sh/tab@89

commit: 970a537

@AmirSa12 AmirSa12 changed the title fix: the last completion gets 'replayed' if you press tab a second time fix: ensures the nested cli receives the exact user-provided arguments Dec 10, 2025
@AmirSa12 AmirSa12 changed the title fix: ensures the nested cli receives the exact user-provided arguments fix: make the nested cli receive the exact user-provided arguments Dec 10, 2025
@AmirSa12 AmirSa12 merged commit 5832a09 into main Dec 10, 2025
9 checks passed
@AmirSa12 AmirSa12 deleted the fix/replayed-arg branch December 10, 2025 18:32
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.

2 participants