Fix Active Memory memory-only recall latency#75200
Conversation
|
Codex review: passed. Summary Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memory's blocking before_prompt_build hook, which awaits embedded recall before the main prompt is built. The linked issue adds concrete timeout logs from current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Next step before merge Security Review detailsBest possible solution: Ship the bounded Active Memory search-query behavior with regression coverage, while preserving the already-main session-slot reservation and keeping the fix scoped to recall query handling. Do we have a high-confidence way to reproduce the issue? Yes for a source-level reproduction path: an eligible interactive turn reaches Active Memory's blocking before_prompt_build hook, which awaits embedded recall before the main prompt is built. The linked issue adds concrete timeout logs from current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Is this the best way to solve the issue? Yes. The diff is a focused and maintainable fix for the observed metadata-heavy search-query path, with exact-head checks green; if live proof shows models ignore the prompt-only query instruction, a later code-enforced tool-argument seam would be the safer follow-up. What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8b2bf7b2e9fd. |
dac99a2 to
051bac2
Compare
|
@clawsweeper automerge |
|
🦞✅ Source: What merged:
Automerge notes:
The automerge loop is complete. Automerge progress:
|
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408 Review: openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408 Review: openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408e75d87081c8736f1df7fd06bc3b4f887e. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408e75d87081c8736f1df7fd06bc3b4f887e Review: openclaw/openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408e75d87081c8736f1df7fd06bc3b4f887e. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408e75d87081c8736f1df7fd06bc3b4f887e Review: openclaw/openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408e75d87081c8736f1df7fd06bc3b4f887e. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408e75d87081c8736f1df7fd06bc3b4f887e Review: openclaw/openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408 Review: openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408 Review: openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary: - The PR adds a bounded latest-message search-query section to Active Memory recall prompts, regression coverage for metadata stripping, a changelog entry, and pending-final-delivery session slot reservations. - Reproducibility: yes. for a source-level reproduction path: an eligible interactive turn reaches Active Memo ... om current releases, but I did not run a live gateway/provider reproduction under the read-only constraint. Automerge notes: - PR branch already contained follow-up commit before automerge: fix(plugins): reserve final delivery session slots Validation: - ClawSweeper review passed for head 24bf408. - Required merge gates passed before the squash merge. Prepared head SHA: 24bf408 Review: openclaw#75200 (comment) Co-authored-by: SYU8384 <[email protected]>
Summary
memory_recalltomemory_searchwhen recall tooling is unavailable.NONEinstead of injecting worker errors into the main prompt.What this fixes
Validation
pnpm test extensions/active-memory/index.test.ts src/agents/pi-embedded-runner/run/attempt.test.ts src/agents/pi-embedded-runner/run.memory-only-forwarding.test.tspnpm test extensions/memory-core/src/memory/qmd-manager.test.ts extensions/memory-core/src/memory/search-manager.test.ts extensions/memory-core/src/tools.test.ts extensions/discord/src/monitor/provider.test.tspnpm exec oxfmt --check --threads=1 <touched files>pnpm buildpnpm check:changed(local; Blacksmith CLI unavailable in this environment)Live check
queryChars=850,searchQueryChars=4,requiredFirstTool=memory_search, andrequiredFirstToolQueryChars=4, with no fresh QMD command using the full channel/runtime metadata.