fix: allow normal messages starting with /#466
Conversation
Signed-off-by: Richard Chien <stdrc@outlook.com>
There was a problem hiding this comment.
Pull request overview
This PR fixes issue #442 by allowing normal messages that start with "/" to be sent to the agent instead of being incorrectly treated as meta commands. The fix validates slash-prefixed input against registered meta commands before processing, and only treats it as a meta command if it matches a valid command name.
Key Changes:
- Modified the meta command check to validate command names using
get_meta_command()before treating input as a meta command - Refactored
_run_meta_command()to accept aMetaCommandobject and args list instead of parsing internally - Added CHANGELOG entry documenting the fix
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/kimi_cli/ui/shell/init.py | Refactored slash-prefix handling to validate command names before treating as meta commands, allowing invalid meta commands to fall through as normal messages |
| CHANGELOG.md | Added entry documenting the fix for normal messages starting with / |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fix #442