Skip to content

fix(doctor): skip uninstalled tools and show scope - #116

Merged
jeff-r2026 merged 2 commits into
mainfrom
doctor-scope-filter
Jul 2, 2026
Merged

fix(doctor): skip uninstalled tools and show scope#116
jeff-r2026 merged 2 commits into
mainfrom
doctor-scope-filter

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • teamai doctor now skips hook checks for tools whose config directory doesn't exist (tool not installed), instead of reporting them as failures
  • Shows current scope (user / project) at the top of diagnostics output
  • injectHooksToAllTools no longer creates config files for tools that aren't installed — it checks for the parent directory first

Test plan

  • All tests pass
  • New test covers "skip uninstalled tool" behavior
  • Manual verification: teamai doctor from HOME (user scope) and project dir (project scope)

🤖 Generated with Claude Code

jeff-r2026 and others added 2 commits July 2, 2026 15:56
- 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>
@jeff-r2026
jeff-r2026 merged commit aea4147 into main Jul 2, 2026
6 checks passed
@hsuchifeng hsuchifeng mentioned this pull request Jul 3, 2026
3 tasks
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