-
-
Notifications
You must be signed in to change notification settings - Fork 19
fix: stop message.context source/destination #706
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThe changes update the stop service to handle Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🧹 Nitpick comments (2)
ovos_core/intent_services/stop_service.py (1)
151-164
: Session-levelis_speaking
may stop unrelated audio
if sess.is_speaking:
triggersspeech.stop
irrespective of which skill produced the speech.
Given the TODO comment, this can inadvertently cut off TTS belonging to a different skill that happens to be speaking when the stop confirmation arrives.Consider adding skill-scoped tracking (e.g.
sess.is_speaking_from(skill_id)
) before emitting the stop, or move the check toAudioService
side.test/end2end/test_stop.py (1)
198-211
: Commented-outMessage(...)
literals clutter the expected listKeeping the now-obsolete expectations as commented lines inside the list decreases readability and risks accidental uncommenting/merge conflicts.
Remove them or move the rationale above the list.- # if skill is in middle of get_response - #Message("mycroft.skills.abort_question", {"skill_id": self.skill_id}, - # {"skill_id": self.skill_id}), ... - # if skill is executing TTS - #Message("mycroft.audio.speech.stop", {"skill_id": self.skill_id}, - # {"skill_id": self.skill_id}),
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
ovos_core/intent_services/stop_service.py
(2 hunks)test/end2end/test_stop.py
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: unit_tests
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
Summary by CodeRabbit