Skip to content

fix: call herdr pane wait-output instead of herdr wait output - #14

Open
silacode wants to merge 1 commit into
yuk1ty:mainfrom
silacode:fix/wait-output-command
Open

fix: call herdr pane wait-output instead of herdr wait output#14
silacode wants to merge 1 commit into
yuk1ty:mainfrom
silacode:fix/wait-output-command

Conversation

@silacode

Copy link
Copy Markdown

Fixes #13

wait_output_args emitted herdr wait output <pane_id> ..., but the herdr
CLI exposes this as herdr pane wait-output <pane_id> .... herdr exits 2 with
unknown command: wait, so apply aborts at the first pane declaring
wait_for and leaves the workspace half-built.

The unit test in src/backend/cli.rs and the fake-herdr integration test in
tests/cli_backend_integration.rs both asserted the same incorrect argv, which
is why CI never caught this — so this changes the builder and both tests.

Verified against herdr 0.8.0: a two-pane layout with wait_for on the first
pane now applies completely.

cargo fmt --check, cargo clippy -- -D warnings, and cargo test all pass.

`wait_output_args` built `herdr wait output <pane_id> ...`, but the herdr CLI
exposes this as `herdr pane wait-output <pane_id> ...`. herdr exits 2 with
"unknown command: wait", so `apply` aborts at the first pane declaring
`wait_for` and leaves the workspace half-built.

The unit test and the fake-herdr integration test both asserted the same
incorrect argv, so the bug was invisible in CI. All three are corrected.
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.

wait_for is broken: emits herdr wait output, but the CLI command is herdr pane wait-output

1 participant