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
rtk init -g --hook-only --auto-patch hangs indefinitely in non-interactive environments
(Docker/devcontainer builds, CI) since v0.36.0. The hook setup completes and output is printed,
but the process never exits — it blocks waiting for stdin on the telemetry consent prompt.
Reproduction
# In any non-interactive context (Dockerfile, devcontainer postCreateCommand, CI):
rtk init -g --hook-only --auto-patch
# Process prints hook setup output, then hangs forever
Last visible output before hang:
RTK hook already up to date (hook-only mode).
Hook: /home/node/.claude/hooks/rtk-rewrite.sh
Note: No RTK.md created. Claude won't know about meta commands (gain, discover, proxy).
settings.json: hook already present
Restart Claude Code. Test with: git status
Expected behavior
rtk init should detect non-interactive environments (e.g., ! -t 0 / no TTY on stdin) and skip
the consent prompt, or respect RTK_TELEMETRY_DISABLED=1 to suppress it entirely.
Actual behavior
The process blocks on stdin waiting for consent input that will never come. RTK_TELEMETRY_DISABLED=1 does not prevent the prompt — it only disables data collection after
consent is given.
rtk init hangs indefinitely in non-interactive/CI environments since v0.36.0 due to telemetry consent prompt blocking on stdin; fix should detect TTY absence and skip/auto-decline prompt.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/cli/init.rs
src/telemetry/consent.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
Activity
fix: work around RTK v0.36.0 GDPR consent hang in non-interactive builds
fix: work around RTK v0.36.0 GDPR consent hang in non-interactive bui…
pszymkowiak commentedon Apr 17, 2026
🔍 Automated Triage
bughighSummary
rtk init hangs indefinitely in non-interactive/CI environments since v0.36.0 due to telemetry consent prompt blocking on stdin; fix should detect TTY absence and skip/auto-decline prompt.
📁 Relevant files
src/cli/init.rssrc/telemetry/consent.rsTriaged automatically by wshm · This is an automated analysis, not a human review.
refactor(telemetry): single source of truth for env opt-out check
fix(init): honor RTK_TELEMETRY_DISABLED in consent prompt (rtk-ai#1307)
refactor(telemetry): single source of truth for env opt-out check
fix(init): honor RTK_TELEMETRY_DISABLED in consent prompt (rtk-ai#1307)
refactor(telemetry): single source of truth for env opt-out check
Merge pull request #2477 from ousamabenyounes/fix/issue-1307
fix(init): honor RTK_TELEMETRY_DISABLED in consent prompt (rtk-ai#1307)
refactor(telemetry): single source of truth for env opt-out check
docs(rtk): record RTK_TELEMETRY_DISABLED as the supported opt-out (#117)
docs(rtk): record RTK_TELEMETRY_DISABLED as the supported opt-out (#117…
!15172 merge bump-rtk-0.44.0 into main