Implement reaction history context handling; enhance HTTP server initialization and logging; add static file serving
This commit is contained in:
15
memory-bank/fixes/reaction_history_fix.md
Normal file
15
memory-bank/fixes/reaction_history_fix.md
Normal 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
|
||||
Reference in New Issue
Block a user