Skip to content

Conversation

@alex-feel
Copy link
Owner

Resolves System Diagnostics warnings on macOS caused by stale installMethod: "global" value in ~/.claude.json after npm removal.

  • Add update_install_method_config() function with CLI-first strategy
  • Integrate config update at 8 native installation points
  • Add 11 comprehensive tests (9 unit + 2 integration)
  • Fix 3 existing tests to mock new config update call

The function uses claude config set CLI command as primary method, with direct file modification as fallback for edge cases.

Resolves System Diagnostics warnings on macOS caused by stale installMethod: "global" value in ~/.claude.json after npm removal.

- Add update_install_method_config() function with CLI-first strategy
- Integrate config update at 8 native installation points
- Add 11 comprehensive tests (9 unit + 2 integration)
- Fix 3 existing tests to mock new config update call

The function uses claude config set CLI command as primary method, with direct file modification as fallback for edge cases.
@github-actions
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  scripts
  install_claude.py 424-426, 1987-1988, 2094-2095, 2183-2184, 2251-2252, 2341-2342, 2414-2415, 2554-2561, 2590-2597
Project Total  

This report was generated by python-coverage-comment-action

@alex-feel alex-feel merged commit 2f72c4b into main Jan 21, 2026
12 checks passed
@alex-feel alex-feel deleted the alex-feel-dev branch January 21, 2026 10:06
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