-
Couldn't load subscription status.
- Fork 7
Improve response time when a new help message is sent #82
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
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.
Pull Request Overview
This PR improves the response time for new help messages by moving the AI title generation to run after the user-facing message is sent, rather than blocking the user response. This allows the bot to respond to users faster while the slower AI processing happens in the background.
Key Changes:
- Moved AI title generation call to execute after user-facing messages are sent
- Added performance timing instrumentation throughout the message handling flow
- Extracted AI title generation into a separate
generate_ticket_titlefunction
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| nephthys/utils/slack.py | Added performance timing instrumentation to track total message processing duration |
| nephthys/events/message.py | Reorganized message flow to fetch user info earlier, send user-facing messages before AI processing, and added detailed performance logging throughout |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull Request Overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes #68, see issue comments for details
The bot processes things 60% faster now, by my calcs