Skip to content

fix: clean up old broken hook entries on re-install#67

Merged
matthiastjong merged 2 commits intomainfrom
fix/cleanup-old-hooks
Apr 29, 2026
Merged

fix: clean up old broken hook entries on re-install#67
matthiastjong merged 2 commits intomainfrom
fix/cleanup-old-hooks

Conversation

@matthiastjong
Copy link
Copy Markdown
Owner

Removes both old flat format and correct format /api/skill entries on re-install to prevent invalid settings.json accumulation.

Matthias 't Jong and others added 2 commits April 29, 2026 17:02
The filter now removes both old flat format ({ command }) and new
format ({ hooks: [{ command }] }) entries containing /api/skill,
preventing invalid entries from accumulating in settings.json.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Without export, bash variables are not visible to child processes.
The node heredoc uses process.env to read them, which requires export.

Tested: full script simulation produces correct settings.json with
both env vars and hook populated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@matthiastjong matthiastjong merged commit d6f4ae5 into main Apr 29, 2026
3 checks passed
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