Implement reaction history context handling; enhance HTTP server initialization and logging; add static file serving

This commit is contained in:
pacnpal
2025-02-24 16:37:04 -05:00
parent 18c99a0434
commit c5bd2bf65f
7 changed files with 173 additions and 108 deletions

View File

@@ -0,0 +1,15 @@
# Reaction History Fix
## Issue
When handling reactions, the conversation history is correctly retrieved during the initial reaction handling, but this history is not being used during message processing. Instead, fresh history is retrieved, which may not include the full context needed for properly understanding the reaction.
## Fix
Modified _process_message() to use the history provided in the context if available, otherwise fall back to getting fresh history. This ensures that reactions maintain their full conversation context throughout processing.
## Changes
- Check for history in the passed context first
- Only fetch fresh history if none exists in context
- This preserves the reaction context gathered during handle_reaction()
## Files Modified
- discord_glhf/handlers/event_handler.py