Repository navigation
fix: slm upgrade-hosts no longer crashes when Claude Code uses SLM's plugin - #335
Merged
Merged
Conversation
…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]>
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.
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 withclaude plugin update superlocalmemory@qualixar`` and continues to the other hosts.Why
Since 4.2.30,
upgrade_claude_settingsanswersplugin-managedwhen the plugin is installed, so it never doubles SLM's hooks. The CLI's_HOOK_WORDS/_HOOK_STATUStables did not include that status, so the command raisedKeyError: 'plugin-managed'on the first host and refreshed nothing else. Found on the owner's Mac on 4.2.31.How it was tested
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.upgrade-hosts --all-detectedpreview runs through all 10 hosts.Type of change
🤖 Generated with Claude Code