Skip to content

fix(memory): prevent monologue crash on recall timeout#1486

Open
mdnaimul22 wants to merge 4 commits intoagent0ai:mainfrom
mdnaimul22:fix/memory-recall-timeout
Open

fix(memory): prevent monologue crash on recall timeout#1486
mdnaimul22 wants to merge 4 commits intoagent0ai:mainfrom
mdnaimul22:fix/memory-recall-timeout

Conversation

@mdnaimul22
Copy link
Copy Markdown

Description

This PR fixes a critical issue where the agent monologue loop crashes if a memory recall similarity search times out (30s default).

Changes

  • Wrapped the memory recall task await in plugins/_memory/extensions/python/message_loop_prompts_after/_91_recall_wait.py within a try-except block.
  • Handles asyncio.TimeoutError and CancelledError gracefully by logging a warning instead of crashing the process.

Impact

Improved resilience and stability of the agent when working with large memory vector stores or slow embedding providers.

Wrapped memory recall task await in a try-except block to handle asyncio.TimeoutError and CancelledError gracefully. Prevents the agent loop from crashing when vector search takes too long.
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.

1 participant