fix(doctor): skip uninstalled tools and show scope - #116
Merged
Conversation
- buildHookChecks now checks if the tool's settings parent directory exists before adding the check (skips tools not installed) - doctor output shows current scope (user/project) at the top - injectHooksToAllTools skips tools whose parent dir doesn't exist instead of creating config files for uninstalled tools Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…dirs The pathExists guard in injectHooksToAllTools breaks E2E tests and the intended "first install" behavior where inject creates the settings file. The skip-uninstalled logic belongs only in doctor (read-only diagnostic). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
teamai doctornow skips hook checks for tools whose config directory doesn't exist (tool not installed), instead of reporting them as failuresinjectHooksToAllToolsno longer creates config files for tools that aren't installed — it checks for the parent directory firstTest plan
teamai doctorfrom HOME (user scope) and project dir (project scope)🤖 Generated with Claude Code