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
Hook rewrite ignores process-wrapper prefixes (timeout, time) so wrapped commands run raw/unfiltered #2375
When a command is prefixed with a process-wrapper such as timeout 60 …, rtk rewrite returns passthrough (exit 1) instead of rewriting the inner command. The hook then runs the raw command, so no filter is applied and the full, unfiltered output is returned.
This is not filter-specific — it affects every command/ecosystem identically. It shows up in practice because coding agents commonly wrap long-running build/test commands in timeout to bound them (e.g. timeout 300 cargo test).
Process-wrapper commands are in neither set. For timeout 300 cargo test, classify_command sees base word timeout, matches no rule, and rewrite_segment_inner returns None → passthrough.
Impact
Commands wrapped in timeout (and the other wrappers above) receive no RTK filtering and the full raw output, with no error or warning indicating the filter was skipped.
Hook rewrite engine in registry.rs silently passes through any command prefixed with process-wrappers (timeout, nice, time, nohup, stdbuf), bypassing all filtering with no warning.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/discover/registry.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
stdbuf -oL is a common wrapper when an agent wants line-buffered output from a long build or test run, which is the same situation that makes the timeout case worth fixing.
Activity
pszymkowiak commentedon Jun 11, 2026
🔍 Automated Triage
bughighSummary
Hook rewrite engine in registry.rs silently passes through any command prefixed with process-wrappers (timeout, nice, time, nohup, stdbuf), bypassing all filtering with no warning.
📁 Relevant files
src/discover/registry.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
merge upstream/develop: keep signal_relay (rtk-ai#2375), resolve stat…
kauredo commentedon Sep 11, 2026
Follow-up on the fix: four of the five wrappers listed above now peel correctly,
stdbufstill passes through.rtk 0.49.0, Homebrew, arm64:
stdbuf -oLis a common wrapper when an agent wants line-buffered output from a long build or test run, which is the same situation that makes thetimeoutcase worth fixing.Merge upstream v0.49.0 into fork master
fix(rewrite): rewrite inner commands of quoted sh/bash/zsh -c wrappers