Skip to content

fix: work around RTK v0.36.0 GDPR consent hang in non-interactive builds - #80

Merged
gatezh merged 1 commit into
masterfrom
fix-rtk-gdpr-hang
Apr 14, 2026
Merged

gatezh merged 1 commit into
masterfrom
fix-rtk-gdpr-hang

Conversation

@gatezh

@gatezh gatezh commented Apr 14, 2026 •

Copy link
Copy Markdown
Owner

What

Prevents rtk init from hanging indefinitely during devcontainer/Docker builds due to the GDPR telemetry consent prompt introduced in RTK v0.36.0.

Why

RTK v0.36.0 added an interactive telemetry consent gate that blocks on stdin. In non-interactive environments (devcontainer postCreateCommand, Docker entrypoints), there's no stdin — so the process hangs forever, preventing containers from starting.

Changes

  • Add timeout 10 to all rtk init invocations so the process is killed after hook setup completes (the consent prompt is the only thing that blocks past that point)
  • Set RTK_TELEMETRY_DISABLED=1 as defense-in-depth to disable data collection
  • Affected files: .devcontainer/init-plugins.sh, claude-code/.devcontainer/init-plugins.sh, ralphex-fe/init-docker.sh

Notes

This is a temporary workaround until the upstream fix lands: rtk-ai/rtk#1307. All three patched files have a WORKAROUND comment with the upstream link so it can be cleaned up later.

Closes #77

RTK ≥0.36.0 added a telemetry consent prompt that blocks on stdin,
hanging indefinitely in Docker/devcontainer builds. Add `timeout 10`
to kill the process after hook setup completes, and set
RTK_TELEMETRY_DISABLED=1 as defense-in-depth.

Temporary workaround until upstream fix lands:
rtk-ai/rtk#1307

Closes #77
@gatezh
gatezh merged commit b5e558c into master Apr 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

rtk init hangs on v0.36.0 telemetry consent prompt in non-interactive builds

1 participant