Open
Conversation
dc5fa46 to
7094f21
Compare
Closes garrytan#273. Adds bin/gstack-uninstall to cleanly remove gstack from a system: - Stops running browse daemons (SIGTERM with graceful fallback) - Removes Claude skills (~/.claude/skills/gstack + per-skill symlinks) - Removes Codex skills (~/.codex/skills/gstack*) - Removes per-project .agents/ sidecar and .gstack/ state - Removes global ~/.gstack/ state directory - Cleans up /tmp session files Supports --force (skip confirmation), --keep-state (preserve ~/.gstack/ data), and GSTACK_STATE_DIR env override for testing. Uses set -uo pipefail (no -e) so uninstall never aborts partway. Handles broken symlinks. Follows existing bin/ script conventions.
7094f21 to
899320e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
bin/gstack-uninstallto cleanly remove gstack from a system. Closes #273.What it does
~/.claude/skills/gstack+ per-skill symlinks created bysetup)~/.codex/skills/gstack*).agents/skills/gstack*sidecar and.gstack/state~/.gstack/state directory (config, analytics, sessions, projects)/tmp/gstack-*session filesFlags
--force--keep-state~/.gstack/data (config, analytics, projects)-h/--helpWhat is NOT removed
~/Library/Caches/ms-playwright/(shared Chromium, may be used by other tools)~/.gstack-dev/(developer eval artifacts, only present for gstack contributors)Conventions
Follows existing
bin/script patterns:#!/usr/bin/env bash,set -euo pipefail,GSTACK_STATE_DIRenv override for testing,# ─── Section ──box-drawing headers, terse output.Test plan
bin/gstack-uninstall --helpprints usagebin/gstack-uninstall(interactive) lists targets and prompts before removingbin/gstack-uninstall --forceremoves all gstack artifactsbin/gstack-uninstall --keep-state --forceremoves skills but preserves~/.gstack/bash -n bin/gstack-uninstallpasses syntax check