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
rtk init -g --uninstall leaves data directory artifacts on disk #1014
Use RTK for a while (triggers hook warning rate-limiting, builds up tracking data)
Uninstall: rtk init -g --uninstall
Check for leftover files:
# macOS
ls ~/Library/Application\ Support/rtk/
# Linux
ls ~/.local/share/rtk/
# Windows
dir %LOCALAPPDATA%\rtk
.hook_warn_last, history.db, tee/, telemetry state, and trusted_filters.json all remain on disk
Root cause
uninstall() in src/hooks/init.rs removes Claude/Gemini/Codex/Cursor/OpenCode integration artifacts (hooks, RTK.md, settings.json entries), but never touches the RTK data directory (dirs::data_local_dir()/rtk/).
That directory accumulates runtime state from several modules:
None of these paths are referenced in the uninstall flow.
Expected behavior
rtk init -g --uninstall should return the machine to a clean pre-RTK state. Uninstalling should comprehensively remove all RTK-owned artifacts - both integration hooks and runtime data. Leaving behind files that require manual discovery and removal undermines trust in the uninstall contract.
The data directory contains only RTK-internal state (rate-limit markers, tee cache, telemetry, trust lists) with one exception: history.db holds token savings data a user may want to export via rtk gain --history before removal. A prompt or a printed note before deleting would address that gracefully.
Uninstall leaves data directory artifacts on disk; well-scoped bug with a PR already open (#1020) — priority is moderate since it affects cleanup correctness but not core functionality.
📁 Relevant files
src/hooks/init.rs
src/hooks/hook_check.rs
src/core/tracking.rs
src/core/tee.rs
src/core/telemetry.rs
src/hooks/trust.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
Activity
pszymkowiak commentedon Apr 4, 2026
🔍 Automated Triage
bugmediumSummary
Uninstall leaves data directory artifacts on disk; well-scoped bug with a PR already open (#1020) — priority is moderate since it affects cleanup correctness but not core functionality.
📁 Relevant files
src/hooks/init.rssrc/hooks/hook_check.rssrc/core/tracking.rssrc/core/tee.rssrc/core/telemetry.rssrc/hooks/trust.rsTriaged automatically by wshm · This is an automated analysis, not a human review.