You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The command provider's actions return (string, error): stdout as the result, a non-zero exit as an error carrying its code #1153
Ruled 2026-10-23: "Anything written to stdout is accumulated and returned in a struct that includes the output to stdout and an exit code… Non-zero exit codes ⇒ error. There is no compensating action." The shell provider returns Result{Command, ExitCode, Stdout, Stderr}: Stderr duplicates what is now narration, Command is the caller's own input, and a zero exit code says nothing. #824 asks the opposite of the ruling, a non-zero exit returned rather than raised.
Solution
The command provider's actions are fallible, not compensable: (string, error), Go's own exec.Cmd.Output shape. The string is everything the child wrote to stdout; the error, on a non-zero exit, carries the exit code and the argv, as *exec.ExitError does, and no stderr, which the user has already seen. No accepted-exit-codes parameter until a use appears (grep 1, diff 1); when one does, it is a parameter, not a richer return. Supersedes #824.
Evidence of completion
command.run and command.script return (string, error); a non-zero exit is an error naming the code
Activity