fix(memory-core): add actionable remediation hints for memory search embedding errors#75951
fix(memory-core): add actionable remediation hints for memory search embedding errors#75951QihongRuan wants to merge 2 commits into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep this PR open because current main still lacks leaked-key and invalid-key remediation for memory search embedding failures, but the branch is not merge-ready until the contributor adds real behavior proof, refreshes the conflict against current main, and removes the release-owned changelog edit. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection. Current main routes leaked/invalid non-quota embedding failures to generic memory-search guidance and Is this the best way to solve the issue? No, not merge-ready as submitted. Memory-core is the right layer, but the best fix needs a current-main conflict refresh, preservation of adjacent unavailable-result behavior, removal of the release-owned changelog edit, and contributor real behavior proof. Security review: Security review cleared: The diff is limited to memory-core diagnostic text, tests, and one changelog line, with no dependency, workflow, permission, download, or credential-storage change. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
85b1e3d to
b797705
Compare
b797705 to
f7e85fa
Compare
Classify embedding-provider failures (leaked key, quota/rate-limit, invalid/unauthorized key) and surface step-by-step recovery hints in memory_search unavailable payloads and the openclaw memory status Fix line. Replaces the generic 'Check embedding provider configuration' action with provider-aware guidance. Fixes openclaw#54912.
Auth profiles resolve before env-var fallback, so suggesting GEMINI_API_KEY/ OPENAI_API_KEY/VOYAGE_API_KEY env-only rotation can leave a stale profile winning. Drop env-var hints; point to `openclaw configure` plus gateway restart. Addresses Codex P2 finding on openclaw#75951.
f7e85fa to
5c3b25d
Compare
|
Heads up for reviewers: the 3 red CI checks (
…in Locally, |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
Summary
Fresh port of #55684 onto current
main(the source branch was 16k commits behind and unmergeable). Adds actionable remediation hints whenmemory_searchoropenclaw memory statussurfaces an embedding-provider failure, so leaked-key, quota, and invalid-auth errors stop printing as raw provider strings without recovery guidance.Fixes #54912. Supersedes #55684 (closed-stale).
What changed
extensions/memory-core/src/tools.shared.ts— addsresolveEmbeddingErrorKind(classifies leaked / quota / invalid_key) andresolveEmbeddingErrorHint.buildMemorySearchUnavailableResultnow prefers the kind-specific hint over the previous genericactiontext.extensions/memory-core/src/cli.runtime.ts— addsresolveEmbeddingErrorRemediationwith provider-specific env-var hints (GEMINI_API_KEY,OPENAI_API_KEY,VOYAGE_API_KEY) and emits aFixline inrunMemoryStatusafterEmbeddings error.tools.test.tsandtools.citations.test.tsupdated for the new quota action text; new tests for leaked-key and invalid-key paths.CHANGELOG.md— single-line entry under Unreleased › Fixes (per repo policy and Codex P3 review on fix: add actionable remediation hints for memory search embedding errors #55684).Codex review notes addressed (from #55684)
main(no longer 16k commits diverged).tools.test.ts.Test plan
pnpm exec oxfmt --check --threads=1 …— clean.pnpm test extensions/memory-core/src/tools.test.ts extensions/memory-core/src/tools.citations.test.ts— 20/20 pass (2 new tests included).pnpm test extensions/memory-core/src/cli.test.ts— 48/48 pass.pnpm changed:lanes --base upstream/mainreports onlyextension production+extension test; CHANGELOG is doc-only.pnpm tsgo:extensionserrors insrc/secrets/runtime-web-tools*andextensions/google/web-search-provider.test.tsare pre-existing onupstream/main(unrelated to this change).