fix: make AI parser async to prevent Discord heartbeat blocking

This commit is contained in:
2026-02-16 12:24:13 -06:00
parent 9cc2f19ce8
commit a53187d6a9
3 changed files with 14 additions and 8 deletions

View File

@@ -333,7 +333,7 @@ async def routeCommand(message):
total_steps = active_session.get("total_steps", 0)
context = f"\n[Context: User is currently in active session for '{routine_name}', on step {current_step} of {total_steps}. They can say 'done', 'skip', 'pause', 'resume', or 'stop'.]"
parsed = ai_parser.parse(
parsed = await ai_parser.parse(
message.content + context, "command_parser", history=history
)