Skip to content

fix(memory): block turns when required recall times out - #1849

Open
memand wants to merge 1 commit into
agent0ai:mainfrom
memand:fix/memory-recall-timeout-nonfatal
Open

fix(memory): block turns when required recall times out#1849
memand wants to merge 1 commit into
agent0ai:mainfrom
memand:fix/memory-recall-timeout-nonfatal

Conversation

@memand

@memand memand commented Aug 23, 2026

Copy link
Copy Markdown

Summary

Makes automatic memory-recall timeouts visible, controlled, and fail closed.

Behavior

When required automatic memory recall exceeds its bounded timeout:

  • no main-model call or agent response is produced without recalled memories;
  • a concise error explains that the response was blocked;
  • the failed recall task is cleared;
  • HandledException terminates the turn through the framework's controlled exception path;
  • asyncio.CancelledError still propagates unchanged.

The wait extension now also evaluates a completed recall task, so a timeout that finished before the wait extension runs is not silently missed.

Validation

/opt/venv-a0/bin/python -m unittest -v tests.test_memory_recall_wait
Ran 3 tests ... OK

Tests cover pending timeout blocking, completed timeout blocking, and cancellation propagation.

Fixes #1848.

@memand
memand force-pushed the fix/memory-recall-timeout-nonfatal branch from 712041a to b21108a Compare August 23, 2026 19:59
@memand memand changed the title fix(memory): make recall timeouts non-fatal fix(memory): block turns when required recall times out Aug 23, 2026
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.

bug(memory): required recall timeout must block the turn

1 participant