Skip to content

feat: implement interactive /uninstall command#102

Merged
emal-avala merged 2 commits intomainfrom
feat/uninstall-command
Apr 15, 2026
Merged

feat: implement interactive /uninstall command#102
emal-avala merged 2 commits intomainfrom
feat/uninstall-command

Conversation

@emal-avala
Copy link
Copy Markdown
Member

Summary

  • Replace the static /uninstall command (which only printed manual instructions) with an interactive version that actually performs the uninstall
  • Auto-detects install method by examining binary path (cargo, homebrew, npm, or manual binary)
  • Shows what will be removed: binary + existing config/cache/data directories
  • Asks for [y/N] confirmation before proceeding (skippable with --force)
  • Runs the appropriate package manager command (cargo uninstall, brew uninstall, npm uninstall -g) or removes the binary directly
  • Updates ROADMAP.md: marks /uninstall as Done and section 3.5 as fully Done

Test plan

  • cargo check -p agent-code passes
  • cargo clippy -p agent-code -- -D warnings passes (zero warnings)
  • All 54 existing tests pass (cargo test -p agent-code)
  • Manual test: run /uninstall in REPL, verify it shows correct install method and paths, deny with N
  • Manual test: run /uninstall --force to verify it skips confirmation

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Replace the static instruction-printing /uninstall with an interactive
command that detects the install method (cargo, homebrew, npm, or manual
binary), shows what will be removed (binary + config/cache/data dirs),
asks for confirmation, and performs the uninstall. Supports --force flag
to skip confirmation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Wrap long conditional chains and match arms to satisfy cargo fmt.
@emal-avala emal-avala merged commit 9160a9f into main Apr 15, 2026
13 of 14 checks passed
@emal-avala emal-avala deleted the feat/uninstall-command branch April 15, 2026 06:01
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.

1 participant