Skip to content

fix(uninstall): remove the OpenCode mode flag - #1104

Merged
DietrichGebert merged 2 commits into
DietrichGebert:mainfrom
manuvarghese456-collab:fix/uninstall-opencode-flag
Oct 13, 2026
Merged

DietrichGebert merged 2 commits into
DietrichGebert:mainfrom
manuvarghese456-collab:fix/uninstall-opencode-flag

Conversation

@manuvarghese456-collab

Copy link
Copy Markdown
Contributor

What

scripts/uninstall.js now also removes $XDG_CONFIG_HOME/opencode/.ponytail-active (or ~/.config/opencode/.ponytail-active). This is the path the OpenCode plugin writes.

Why

It cleaned up every host's flag except OpenCode's. A flag left at off made a later reinstall start switched off.

Tests

tests/uninstall.test.js gets one new assertion, which fails on main.

Checks

npm test (all green on this branch alone), node scripts/check-rule-copies.js, node scripts/check-versions.js. No ruleset text changed, so no benchmark (CONTRIBUTING.md).

🤖 Generated with Claude Code

scripts/uninstall.js cleaned up every host's flag except OpenCode's
($XDG_CONFIG_HOME or ~/.config)/opencode/.ponytail-active. A flag left at
"off" made a later reinstall start switched off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@DietrichGebert
DietrichGebert merged commit f2d50c8 into DietrichGebert:main Oct 13, 2026
1 check passed
@DietrichGebert

Copy link
Copy Markdown
Owner

Thanks! Tested it: after a real OpenCode 2.0.27 session set the level, main's uninstall left the flag behind, with this PR it is removed. Merged, will be in the next release.

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.

2 participants