`rtk git push` exits `128 + signal` with no output when the child is killed by a signal (streaming path has no diagnostic)
Summary
When a wrapped command is terminated by a signal, the streaming path (run_streaming, used by rtk git push, rtk git status, and every other command routed through it) returns 128 + signal and prints nothing — no stdout, no stderr. The proxy path reports the same situation on stderr, so the two paths disagree about whether a signal-killed child is worth mentioning.
Reproduction
No repository, network access, or real failure needed — a fake git that kills itself is enough:
mkdir -p /tmp/fakebin
printf '#!/bin/sh\nkill -9 $$\n' > /tmp/fakebin/git
chmod +x /tmp/fakebin/git
# streaming path — silent
PATH=/tmp/fakebin:$PATH rtk git push; echo "exit=$?"
# exit=137
# (stdout empty, stderr empty)
# proxy path — reports it
rtk proxy /tmp/fakebin/git push; echo "exit=$?"
# [rtk] /tmp/fakebin/git: process terminated by signal 9
# exit=137
PATH=/tmp/fakebin:$PATH rtk git status behaves the same way: exit 137, no output.
Reproduced on 0.44.0; the code path is unchanged on develop and on master (0.45.0).
Expected behaviour
The streaming path emits the same one-line stderr diagnostic the proxy path already does, e.g.
[rtk] git: process terminated by signal 9
Exit codes should stay exactly as they are.
Why it matters
128 + signal carries no information on its own: exit 137 is indistinguishable from a tool that genuinely exited with code 137. With no output at all, the caller cannot tell "the child was killed" from "the tool failed and printed nothing". Automated callers are hit hardest — a CI step or an agent that reads exit codes and output has nothing to key on, so a kill (OOM killer, a cgroup/memory limit, a supervisor timeout, a manual kill) is easily misattributed to whatever the command was doing at the time, e.g. a network or permission problem. One line on stderr turns a long debugging detour into an immediate diagnosis.
Where
src/core/stream.rs:262—status_to_exit_codereturns128 + sigwith no diagnostic. Called from both branches ofrun_streaming(passthrough at:297, streaming at:519).src/core/utils.rs:196(exit_code_from_output) andsrc/core/utils.rs:217(exit_code_from_status) already print[rtk] <label>: process terminated by signal <n>.exec_captureand the proxy path go through those, which is exactly why proxy reports the kill andrtk git pushdoes not.
The reporting logic already exists in the codebase; the streaming path just doesn't use it.
This is the diagnostic half of the same direction as #2681 (propagate signal exit code instead of unwrap_or(1)): the code is now propagated, but nothing says why it is what it is.
This issue has been automatically marked as stale due to 90 days of inactivity. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet.