Repository navigation
fix(memory-lancedb): stop timed-out recall before returning results - #124143
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
Author
|
Land-ready proof for
Native review artifacts validate as |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #124118
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Fixes an issue where a LanceDB-backed recall that reached its 15-second deadline during native vector search could return from the outer timeout while the native query kept running, or accept a vector result that completed at the deadline. The abandoned query consumed work after recall had ended and could later produce a stale success.
Why This Change Was Made
One absolute recall deadline now owns embedding plus vector search. Embedding receives only the remaining budget, and LanceDB receives the same remaining budget through its native
QueryExecutionOptions.timeoutMsowner. The outer race still preserves the existing tool and prompt-hook outcomes, but a completion at or after the deadline is classified as a timeout.This is the LanceDB-native sibling of #124118, not a second Memory Core cancellation path. Memory Core can propagate
AbortSignalthrough its JavaScript/SQLite owner; pinned LanceDB 0.31 exposes query cancellation throughtimeoutMsinstead:QueryExecutionOptions.timeoutMsexecuteTimeoutStreamrejects and stops polling the inner query at the deadlineThe plugin pins exactly
@lancedb/lancedb0.31.0. Search timeouts remain health-neutral and retry on the next recall; embedding timeouts retain the existing shared cooldown policy.User Impact
Timed-out explicit and automatic LanceDB recall no longer accepts a late vector result, and native search receives a cancellation deadline instead of continuing without an owner. A later healthy recall continues to work on the same database. There is no provider auth/routing, configuration/default, storage/schema/migration, SDK/protocol, release, or deployment change.
No docs change is needed because this repairs the existing fixed recall deadline without adding an operator-facing setting or workflow. No changelog file is added because normal PR changelogs are release-owned; this body records the release-note context.
Evidence
Query timeout after 1 msat 3 ms, the composed absolute deadline returnedtimeoutat 1 ms, and a subsequent healthy query succeeded.git diff --check: clean.