fix(doctor): use gateway health status for memory search key check#22327
Conversation
cbd97fb to
90e83a5
Compare
|
The initial CI failure was not caused by this PR. Our 3 changed files ( The failing tests ( |
|
Re-checked CI: the 3 failing test jobs ( |
90e83a5 to
99d09af
Compare
|
Rebased on current Conflict resolution: upstream added All 8 |
|
Hi @gumadeiras — friendly ping! Just rebased on current |
|
Heads up on overlapping PRs: Found a few open PRs that touch the same file for the same To clarify scope: the Happy to drop the |
|
@therk yea please keep one issue per PR; can you drop anything unrelated to the gateway health please; then i'll take a look |
|
✅ CI fully green — all checks passing after rebase. |
99d09af to
b962e64
Compare
b962e64 to
e0204fb
Compare
e0204fb to
2f02ec9
Compare
* upstream/main: (1467 commits) fix(doctor): use gateway health status for memory search key check (openclaw#22327) refactor: harden reset notice + cron delivery target flow refactor(exec): simplify env-prefixed wrapper modifier check fix(skills): support multiline frontmatter fallback without PyYAML fix(skills): make quick_validate work without PyYAML fix(exec): bind env-prefixed shell wrappers to full approval text fix(browser): derive relay auth token from gateway token in Chrome extension Browser relay: accept raw gateway token in extension auth fix(gateway): include platform and reason in node command rejection error CLI: fix gateway restart health ownership for child listener pids (openclaw#24696) docs: detail per-agent prompt caching configuration fix(config): tighten bedrock cache-retention type narrowing feat(agents): add per-agent stream params overrides for cache tuning (openclaw#17470) (thanks @rrenamed) fix(providers): support Bedrock Anthropic cacheRetention defaults/pass-through (openclaw#22303) (thanks @snese) fix(providers): disable Bedrock prompt caching for non-Anthropic models (openclaw#20866) (thanks @pierreeurope) docs(changelog): note /new and /reset auth-label removal (openclaw#24409) fix(reply): omit auth labels in /new and /reset docs(changelog): correct kimi issue references test(tools): fix kimi web_search mock typing feat(media): add moonshot video provider and wiring ... # Conflicts: # ui/src/ui/app-render.ts # ui/src/ui/controllers/agents.ts
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
…penclaw#22327) Merged via /review-pr -> /prepare-pr -> /merge-pr. Prepared head SHA: 2f02ec9 Co-authored-by: therk <901920+therk@users.noreply.github.com> Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com> Reviewed-by: @gumadeiras
Fixes #18062
Problem
openclaw doctorfalsely warned about a missing Gemini API key even when memory search was fully functional. The key is loaded into the gateway process env via sops at startup, butnoteMemorySearchHealthran a static check against the CLI process env — which never has those secrets.Additionally, the suggested fix (
openclaw auth add --provider gemini) referenced a command that does not exist.Changes
src/commands/doctor-memory-search.tsopts?: { gatewayHealthOk?: boolean }parametergatewayHealthOk: trueand static key check fails, shows a softer informational note instead of an error: "The key may be loaded by the running gateway (e.g. via secrets.env). Verify:openclaw memory status --deep"openclaw auth add --provider <X>withopenclaw configure(the correct command)src/commands/doctor.tsnoteMemorySearchHealthcall to run aftercheckGatewayHealthso gateway status is known{ gatewayHealthOk: healthOk }to the health checksrc/commands/doctor-memory-search.test.tsopenclaw configure(notauth add)mockClear→mockResetwith default rejection for test isolationAI-assisted disclosure 🤖
doctor-memory-search.test.ts(8/8 pass) andpnpm buildlocally; fullpnpm testnot run