Repository navigation
chore(chat): remove the dead slash-command hold - #1786
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Low impact] The PR appears safe to merge; it removes unreachable code without changing command behavior.
|
hermesHeldNames was empty, so HermesSlashRoute.held could never be reached. Remove the set, the route, its ChatViewModel arm and string, and the bots.md step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8710f87 to
711dc4c
Compare
Linked issue
Fixes #1783
What changed
The Hermes slash router still had a hold for commands waiting on #702. #702 is closed and
hermesHeldNameswas empty, so the.heldroute could never run.This removes
hermesHeldNames, both checks against it,HermesSlashRoute.held, theChatViewModelarm with its notice (and that string's entry inLocalizable.xcstrings), and the held step indocs/agents/bots.md. Every slash command routes the same as before.HermesUpdateClient's unrelated.heldupdate offer is untouched.How it was tested
scripts/test-sim <udid> --only HermesMobileTests/HermesSlashCommandTests --only HermesMobileTests/BotSlashCommandTests --only HermesMobileTests/SlashCommandTests --only HermesMobileTests/SlashCommandExecutorTests --only HermesMobileTests/ComposerSlashTriggerTests: 101 passed, 0 failed.HermesSlashCommandTestsre-run after the test rename: 30 passed.python3 ci/check_string_catalog.py --derived-data .build/DerivedData: covers all 3079 extracted keys.python3 ci/check_comments.py,python3 ci/check_test_waits.py,python3 -m unittest discover -s ci -p 'test_*.py': pass.This is a deletion, so it adds no test.
Checklist
scripts/test-sim <assigned-simulator-udid>with the tests required byAGENTS.md§ Verifying; the selection and results are recorded aboveCodablemodels decode tolerantly (optionals for fields the server might add or rename)AGENTS.mdis locked)Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code