Skip to content

Commit 3b4defa

Browse files
swissspidyCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 960910d commit 3b4defa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Ability_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ private function build_input_with_stdin( $assoc_args ) {
626626
$input[ $key ] = $value;
627627
}
628628

629-
// Return null if no input provided (for abilities without input schema).
630-
return empty( $input ) ? null : $input;
629+
// Return null only when no input was provided (no --input flag and no field args).
630+
return ( empty( $input ) && null === $json_input ) ? null : $input;
631631
}
632632

633633
/**

0 commit comments

Comments
 (0)