From 875966650b63e65a90883051457e1bce8bd4640b Mon Sep 17 00:00:00 2001 From: JoshRob Date: Sun, 8 Nov 2026 22:22:18 -0600 Subject: [PATCH] 2.8.4: the installer drops dead and duplicate entries --- CHANGELOG.md | 6 ++++++ install.sh | 10 ++++++++++ package.json | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a41276..cfd531a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## [2.8.4] - 2026-11-09 + +### Fixed + +- **`install.sh` cleans up after previous installs.** It now drops configured paths that no longer exist and duplicated entries, not only the ones named after this plugin. A dead path stays silent at load time and misleads anyone debugging why a plugin "does not work". + ## [2.8.3] - 2026-11-09 ### Fixed diff --git a/install.sh b/install.sh index 519fa67..1915497 100755 --- a/install.sh +++ b/install.sh @@ -86,6 +86,16 @@ entries = [ e for e in entries if not (isinstance(e, str) and ("opencode-antigravity-auth" in e or "antigravity" in e)) ] +# Drop what a previous install left behind: absolute paths that no longer exist and +# duplicates. A dead entry is silent at load time and misleads the next diagnosis. +kept = [] +for e in entries: + if isinstance(e, str) and e.startswith("/") and not os.path.exists(e): + continue + if e in kept: + continue + kept.append(e) +entries = kept entries.append(plugin) data[key] = entries diff --git a/package.json b/package.json index 1c7d693..e11c2d7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "opencode-antigravity-auth", - "version": "2.8.3", + "version": "2.8.4", "description": "Google Antigravity IDE OAuth auth plugin for OpenCode v2 - access Gemini 4 Argon, 3.8 Flash, and Claude models using Google credentials", "main": "./dist/index.js", "types": "./dist/index.d.ts",