Skip to content

Conversation

@MMK21Hub
Copy link
Collaborator

Fixes #68, see issue comments for details

The bot processes things 60% faster now, by my calcs

@MMK21Hub MMK21Hub marked this pull request as ready for review October 27, 2025 00:59
Copilot AI review requested due to automatic review settings October 27, 2025 00:59
Copy link
Contributor

Copilot AI left a 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_title function

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.

Copilot AI review requested due to automatic review settings October 27, 2025 19:58
Copy link
Contributor

Copilot AI left a 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.

@MMK21Hub MMK21Hub added this pull request to the merge queue Oct 27, 2025
Merged via the queue into hackclub:main with commit f4fe7c3 Oct 27, 2025
4 checks passed
@MMK21Hub MMK21Hub deleted the msg-responding-perf branch October 27, 2025 20:46
MMK21Hub added a commit that referenced this pull request Oct 27, 2025
@MMK21Hub MMK21Hub restored the msg-responding-perf branch October 27, 2025 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve response time when a question is asked

1 participant