Skip to content

fix: slm upgrade-hosts no longer crashes when Claude Code uses SLM's plugin - #335

Merged
varun369 merged 1 commit into
mainfrom
fix/upgrade-hosts-plugin-managed
Nov 20, 2026
Merged

varun369 merged 1 commit into
mainfrom
fix/upgrade-hosts-plugin-managed

Conversation

@varun369

Copy link
Copy Markdown
Member

What this changes

slm upgrade-hosts --all-detected (and --host claude-code) works for people who get SLM in Claude Code from the plugin. It reports [verified] claude-code: … left untouched: SLM's hooks come from the Claude Code plugin, which updates with claude plugin update superlocalmemory@qualixar`` and continues to the other hosts.

Why

Since 4.2.30, upgrade_claude_settings answers plugin-managed when the plugin is installed, so it never doubles SLM's hooks. The CLI's _HOOK_WORDS / _HOOK_STATUS tables did not include that status, so the command raised KeyError: 'plugin-managed' on the first host and refreshed nothing else. Found on the owner's Mac on 4.2.31.

How it was tested

  • New test test_upgrade_hosts_reports_plugin_managed_claude_code (preview and apply): red with the same KeyError before the fix, green after; settings.json is byte-identical afterwards.
  • tests/test_cli/test_host_hooks_upgrade_cli.py + tests/test_hooks/test_host_hook_upgrade.py: 48 passed.
  • The real command on the owner's Mac, from this branch: upgrade-hosts --all-detected preview runs through all 10 hosts.
  • ruff clean.

Type of change

  • Bug fix (non-breaking)

🤖 Generated with Claude Code

…plugin

With the Claude Code plugin installed, upgrade_claude_settings answers
'plugin-managed' (4.2.30, c01011a), but the CLI's status tables did not
know that word: `slm upgrade-hosts --all-detected` raised KeyError
'plugin-managed' on claude-code, the first host, and never reached Codex,
Cursor or the rest. Found on the owner's Mac on 4.2.31. The report now
says the plugin owns SLM's hooks there, names the update command, and
goes on to the next host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@varun369
varun369 merged commit 6b2418f into main Nov 20, 2026
7 checks passed
@varun369
varun369 deleted the fix/upgrade-hosts-plugin-managed branch November 20, 2026 13:11
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