Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .devcontainer/init-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ done

# Initialize rtk global hook for Claude Code (auto-rewrite mode).
# --hook-only: installs only the PreToolUse rewrite hook, no workspace artifacts.
# WORKAROUND: RTK ≥0.36.0 added a GDPR telemetry consent prompt that hangs in
# non-interactive environments. timeout + RTK_TELEMETRY_DISABLED work around it.
# Remove when upstream fixes it: https://github.com/rtk-ai/rtk/issues/1307
echo "Initializing rtk (token optimizer)..."
rtk init -g --hook-only --auto-patch || {
RTK_TELEMETRY_DISABLED=1 timeout 10 rtk init -g --hook-only --auto-patch || {
echo "Note: rtk init may have already been configured or rtk not available"
}

Expand Down
5 changes: 4 additions & 1 deletion claude-code/.devcontainer/init-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ fi
# ── rtk init (token-optimized CLI proxy) ────────────────────────────────────
# Global hook-first mode: installs only the PreToolUse rewrite hook to ~/.claude/,
# no workspace artifacts (CLAUDE.md, .rtk/). Safe to run multiple times.
# WORKAROUND: RTK ≥0.36.0 added a GDPR telemetry consent prompt that hangs in
# non-interactive environments. timeout + RTK_TELEMETRY_DISABLED work around it.
# Remove when upstream fixes it: https://github.com/rtk-ai/rtk/issues/1307
if command -v rtk &>/dev/null; then
rtk init -g --hook-only --auto-patch 2>/dev/null || true
RTK_TELEMETRY_DISABLED=1 timeout 10 rtk init -g --hook-only --auto-patch 2>/dev/null || true
fi

# ── agent-browser skill ─────────────────────────────────────────────────────
Expand Down
5 changes: 4 additions & 1 deletion ralphex-fe/init-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ if [ -d /mnt/claude ]; then
# ── RTK: ensure rewrite hook is configured ─────────────────────────────
# Host mount usually brings the hook, but init idempotently to cover
# standalone usage (no host mount). --hook-only avoids workspace artifacts.
# WORKAROUND: RTK ≥0.36.0 added a GDPR telemetry consent prompt that hangs
# in non-interactive environments. Remove when upstream fixes it:
# https://github.com/rtk-ai/rtk/issues/1307
if command -v rtk >/dev/null 2>&1; then
gosu app rtk init -g --hook-only --auto-patch 2>/dev/null || true
RTK_TELEMETRY_DISABLED=1 gosu app timeout 10 rtk init -g --hook-only --auto-patch 2>/dev/null || true
fi
fi

Expand Down