Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. The merged replacement #143590 addresses the same cold-start failure and is present on current main. No distinct requested behavior remains for this branch to deliver. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Retain the merged readiness-owner implementation and its independent search budgets rather than land a second timeout mechanism. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Retain the merged readiness-owner implementation and its independent search budgets rather than land a second timeout mechanism. Do we have a high-confidence way to reproduce the issue? No current-main failure was reproduced; inspected source and regression coverage show that managed readiness now pauses the search budget. Is this the best way to solve the issue? Yes—the merged replacement resolves the problem at the readiness owner, including query watchdogs and separate wiki deadlines, without requiring this branch’s alternative mechanism. Security review: Security review cleared: The introduced diff changes timeout accounting without adding dependencies, persistence, permissions, or an authorization boundary. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning medium; reviewed against a18d4e4962f5; fix evidence: commit 874b2ce292f4, main fix timestamp 2026-09-10T05:49:46Z. |
Closes #143169
What Problem This Solves
Fixes an issue where users of a managed local embedding service could see
memory_searchtime out after 15 seconds while the service was still starting successfully within its configuredlocalService.readyTimeoutMs.This is especially visible on lower-power hosts where loading the embedding model after an idle shutdown can take longer than the normal search deadline.
Why This Change Was Made
The managed local-service acquisition/readiness phase now suspends the outer search deadline. That phase remains bounded by the service owner's existing
readyTimeoutMs, and caller cancellation still aborts immediately. Once the service is ready, the remaining normal 15-second search budget resumes.The deadline scope is request-local through async context so concurrent searches sharing a manager do not affect one another. This does not add a new configuration field or extend the deadline for remote providers or ordinary search work.
User Impact
The first memory search after a managed local embedding service has stopped can wait for the configured startup window instead of failing at the global 15-second search limit. Warm searches and all work after readiness retain the existing timeout behavior.
Evidence
search-deadline.test.tsandembeddings.test.ts.git diff --check, max-lines ratchet, and assertion-safety ratchet passed locally.