Skip to content

fix(memory): report managed local-service readiness from the Ollama and LM Studio embedding providers - #156483

Merged
obviyus merged 3 commits into
openclaw:mainfrom
wangmiao0668000666:fix/ollama-lmstudio-readiness-reporting
Oct 8, 2026
Merged

obviyus merged 3 commits into
openclaw:mainfrom
wangmiao0668000666:fix/ollama-lmstudio-readiness-reporting

Conversation

@wangmiao0668000666

@wangmiao0668000666 wangmiao0668000666 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #156359

What Problem This Solves

Managed Ollama and LM Studio embedding startup consumed memory_search's 30-second deadline even though startup has its own localService.readyTimeoutMs budget. Both adapters now report readiness waits to the existing memory deadline owner, matching the shared OpenAI-compatible adapter. Embedding requests retain their normal deadline after readiness; warm and unmanaged services are unchanged.

Thanks to @wangmiao0668000666 for the fix and to the reporter of #156359 for identifying the uncovered adapters. The contributor's commits are preserved.

Evidence

Tested through the built Gateway's authenticated POST /tools/invoke endpoint with the real memory_search tool, real indexing, managed child-process startup, and loopback HTTP services implementing Ollama /api/embed and LM Studio /v1/embeddings. Each service was warm, stopped, and restarted with a 40-second readiness delay and a 65-second readiness budget. No internal acquisition or deadline callback was mocked.

Provider Current-main baseline a6a353a790ed Candidate
Ollama 30.035 s: timedOut: true, partial keyword-only results 40.160 s: full semantic result, vectorScore: 1, no timeout
LM Studio 30.057 s: timedOut: true, partial keyword-only results 40.305 s: full semantic result, vectorScore: 1, no timeout

Warm searches passed on both revisions. Subsequent candidate queries completed in 47 ms and 73 ms respectively. On the baseline, another slow restart still timed out; resetting startup delay to zero restored semantic retrieval for both providers. LM Studio used the supported params.preload: false configuration to keep readiness acquisition on the query path.

This verifies the linked issue's readiness-budget bug, not a status-display change. The loopback services return deterministic vectors; no local model weights or external Ollama/LM Studio installation were exercised.

Checks

  • pnpm tsgo:extensions: passed with the real repository native TypeScript checker in secretless Docker.
  • node scripts/run-vitest.mjs extensions/ollama/src/embedding-provider.test.ts extensions/lmstudio/src/embedding-provider.test.ts --maxWorkers=1: 52 passed, 25.31 s Vitest duration / 26.70 s shard wall time.
  • Removed the two new callback-shape/forwarding tests: they replayed a mocked callback rather than protecting the search outcome. Existing provider coverage remains; the real Gateway red/green scenario above supplies the regression proof without adding slow CI cases.
  • Real OpenAI gpt-5-mini agent turn through the built CLI: reasoning low, output budget 4096, returned READY (one assistant turn, no tool calls).
  • No overlap with Pash/Sarah changes.

Compatibility and merge risk

No schema, stored-data, configuration, permission, or published API change. Two-way door: reverting restores the previous timeout behavior without a migration. Blast radius is memory embeddings through managed Ollama and LM Studio services; an incorrect change could pause or resume their memory search deadlines incorrectly.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 1:23 AM ET / 05:23 UTC (Revision 10).

ClawSweeper review

What this changes

The Ollama and LM Studio embedding providers report managed startup waits so memory search preserves its remaining search budget until the service is ready.

Example: Run memory_search while managed Ollama takes 40 seconds to restart.

  • Before: The baseline returns partial keyword-only results after 30.035 seconds with timedOut: true.
  • After: The candidate returns a full semantic result after 40.160 seconds with vectorScore: 1 and no timeout.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct repair with real Gateway red/green evidence and no remaining substantive blocker.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied authenticated Gateway memory_search runs exercise both changed adapters through real managed child startup and HTTP embedding transport: 40-second readiness waits now produce semantic results instead of 30-second timeouts. Warm retries also succeed; deterministic vectors are sufficient for this deadline repair. No persisted format, cache identity, schema, or migration changes are introduced.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Memory search loses semantic results while a managed Ollama or LM Studio service starts, even when startup remains within its configured readiness budget.
Reason: The change completes the existing documented readiness-budget behavior for two omitted adapters. Its bounded wiring repair preserves the established lifecycle and search contracts.

Merge readiness

✅ Ready for maintainer review

This PR remains useful and has sufficient real behavior proof, with no actionable code or security findings. The previous PR-body heading blocker is resolved.

Priority: P2
Reviewed head: 6ae4acf133bfa4d97eb112f058223fde03489ad3

Before merge

None.

Findings

None.

Agent review details

How this fits together

Memory search asks embedding providers to turn queries into vectors for semantic retrieval. These adapters acquire a managed local service before sending embedding requests and notify the existing search deadline owner while waiting for readiness.

flowchart TD
  A[Memory search] --> B[Search deadline owner]
  A --> C[Ollama or LM Studio adapter]
  C --> D[Managed service acquisition]
  D --> E{Service ready?}
  E -->|Waiting| B
  E -->|Ready| F[Embedding HTTP request]
  F --> G[Semantic search results]
Loading

Technical review

Best possible solution:

Use the existing readiness and deadline owners consistently across all three embedding adapters while retaining request deadlines, cancellation, and service leases.

Do we have a high-confidence way to reproduce the issue?

Yes: current-main source shows both adapters omit readiness reporting, and the supplied Gateway red/green runs demonstrate premature search timeout during a 40-second managed startup. This read-only review did not execute target code.

Is this the best way to solve the issue?

Yes: the patch connects the missing adapters to the existing readiness-budget contract without introducing another lifecycle or deadline owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d51917edde3d.

Provenance checked

Testing

Proof path: shipped entry point. Added test files: 0.

Security

None.

Evidence

What I checked:

Likely related people:

  • wangmiao0668000666: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

PR surface

Source +80. Total +80 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 2 104 24 +80
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 104 24 +80

Stored data model

Persistent data-model change detected: unknown-data-model-change: extensions/lmstudio/src/embedding-provider.ts, unknown-data-model-change: extensions/ollama/src/embedding-provider.runtime.ts, vector/embedding metadata: extensions/lmstudio/src/embedding-provider.ts, vector/embedding metadata: extensions/ollama/src/embedding-provider.runtime.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #156359
Summary: This PR is a proven candidate repair for the reported missing readiness callbacks in both dedicated embedding adapters.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: The fix restores semantic recall during managed local-service cold starts, with limited impact on deployments using these two embedding adapters.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-23T23:08:31.657Z sha e46e629076465e5c3b0471992cb94651757548e1 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-23T23:52:49.480Z sha e46e629076465e5c3b0471992cb94651757548e1 :: blocked before merge. :: none
  • reviewed 2026-09-24T00:17:22.383Z sha e46e629076465e5c3b0471992cb94651757548e1 :: blocked before merge. :: none
  • reviewed 2026-09-26T12:27:05.676Z sha e46e629076465e5c3b0471992cb94651757548e1 :: blocked before merge. :: none
  • reviewed 2026-09-27T18:49:41.390Z sha e46e629076465e5c3b0471992cb94651757548e1 :: blocked before merge. :: none
  • reviewed 2026-09-29T01:27:03.511Z sha bba87616bfffee453bd21b43e189385bb72b2c4b :: blocked before merge. :: none
  • reviewed 2026-10-08T00:08:57.263Z sha 529397a :: needs maintainer review before merge. :: none
  • reviewed 2026-10-08T05:16:22.473Z sha 6ae4acf :: needs changes before merge. :: none

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Both items addressed.

P2 type finding — correct, and I had wrongly claimed otherwise. Both extensions declare their own MemoryCoreAcquireLocalService whose target stops at { providerId, baseUrl, headers? }, so the new inline object was an excess-property error (TS2353 at ollama:433 and lmstudio:269). Fixed by declaring the optional callback in both contracts. My earlier "no errors in the changed files" was wrong: my scoped tsconfig used extends, which pulled in the root include, and I then misread a truncated grep. A focused tsgo now shows no errors in either file — and proves the two TS2353 errors did exist before the fix.

Real behavior proof through the actual acquisition owner — added, replacing the stub-only evidence. createConfiguredProviderLocalServiceAcquirer (the same function src/plugin-sdk/memory-core-bundled-runtime.ts:144 wires into createEmbeddingProvider) now drives a real child process and a real health server that stays unhealthy until 1500 ms after its first probe, against a 300 ms search budget:

Unchanged production:

PROOF real acquire elapsed: 1630 ms
PROOF budget expired during real acquisition: true
PROOF service saw requests: ["/health","/health","/health","/health"]

This head:

PROOF real acquire elapsed: 1654 ms
PROOF budget expired during real acquisition: false
PROOF service saw requests: ["/health","/health","/health","/health"]

Identical ~1.6 s cold start with four health polls in both runs; only the budget outcome differs. Nothing is stubbed — child process, health endpoint, acquisition owner, and deadline control are all real.

Still not established: no live Ollama/LM Studio model server and no embedding request to a real model. What is proven is the readiness-signal routing. lmstudio is covered at stub level and by source inspection, since its call site is structurally identical to Ollama's.

The PR body is updated.

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Re your proof gate: stronger end-to-end evidence added, replacing the stub harness.

The managed local service is now a real child process spawned by the real acquisition owner, and that child is itself an HTTP server that mimics Ollama's endpoints — 503 on /health until a 1500 ms cold start elapses, then real vectors from POST /api/embed. The provider's real embed() fetches it and the returned vector is asserted.

Unchanged production:

REALPROOF acquire+embed elapsed: 1639 ms
REALPROOF budget expired during real cold start: true
REALPROOF embedding vector returned: [0.2672612419124244,0.5345224838248488,0.8017837257372732]

This head:

REALPROOF acquire+embed elapsed: 1896 ms
REALPROOF budget expired during real cold start: false
REALPROOF embedding vector returned: [0.2672612419124244,0.5345224838248488,0.8017837257372732]

Both runs complete the whole path — child spawn, real readiness polling, real HTTP embedding round trip — and return the same vector, normalized by the provider's L2 step from the [0.25,0.5,0.75] the child served. Since the embedding is identical on both sides, the only variable is whether the 300 ms budget survives the cold start. Nothing is stubbed but the model weights.

Remaining honest gap: no inference ran and there is no live external Ollama/LM Studio install. lmstudio is covered at stub level plus source inspection; its call site is structurally identical to Ollama's.

Type fix from the earlier review is in e46e6290. PR body updated.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Sep 23, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

LM Studio real-behavior proof added, closing the remaining gap from the Revision 2 review. Same harness shape as the accepted Ollama proof, now driving the LM Studio adapter.

The managed local service is a real child process spawned by the real acquisition owner (createConfiguredProviderLocalServiceAcquirer, the same function src/plugin-sdk/memory-core-bundled-runtime.ts:144 wires in). The child is an HTTP server that mimics LM Studio: 503 on /health until a 1500 ms cold start elapses, then an OpenAI-compatible POST /v1/embeddings. The provider's real embed() (with params.preload: false, so no warmup masks the acquisition) fetches it through the production transport against a 300 ms search budget.

This head (e46e6290):

REALPROOF acquire+embed elapsed: 2041 ms
REALPROOF search budget: 300 ms
REALPROOF service readiness delay: 1500 ms
REALPROOF budget expired during real cold start: false
REALPROOF embedding vector returned: [0.25,0.5,0.75]

✓ src/plugins/zz-realproof-owner-lmstudio.test.ts (1 test) 31805ms
Test Files  1 passed (1)

Unchanged production (merge-base 3f87e358, same harness, only the provider source swapped):

AssertionError: expected true to be false // Object.is equality
 ❯ src/plugins/zz-realproof-owner-lmstudio.test.ts:189:21
     expect(expired).toBe(false);
Test Files  1 failed (1)

The budget really expires during the cold start on current main (received: true at the expiry assertion) and survives it on this head, with the embedding vector returned by the real child in both runs. Nothing is stubbed but the model weights: child spawn, readiness polling, HTTP embedding round trip, and deadline control are all real.

Re-verified Ollama at the same time on this head (fresh runs, not reused output):

REALPROOF acquire+embed elapsed: 1668 ms
REALPROOF budget expired during real cold start: false
REALPROOF embedding vector returned: [0.2672612419124244,0.5345224838248488,0.8017837257372732]
✓ src/plugins/zz-realproof-owner.test.ts (1 test) 24339ms — 1 passed

and its red side fails at the same expiry assertion (expected true to be false).

Per-file wall times: zz-realproof-owner.test.ts 24.3 s test / 32.4 s shard; zz-realproof-owner-lmstudio.test.ts 31.8 s test / 112 s shard (cold compiler cache; 64–71 s warm). Both proof files are uncommitted harness in the PR worktree, same as before.

Remaining honest gap: no inference ran and there is no live external Ollama/LM Studio install; what is proven end to end is the readiness-signal routing plus the real embedding transport for both adapters.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 23, 2026
@wangmiao0668000666
wangmiao0668000666 force-pushed the fix/ollama-lmstudio-readiness-reporting branch from e46e629 to bba8761 Compare September 29, 2026 01:17
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Rebased onto current main (78c83b538c5) to clear the merge risk. Resolved head: bba87616bff.

Conflict resolution

The conflicts were import-block collisions with the two provider deslop passes (#158403, #160038) plus test-file cleanups (#158714, #158907):

  • extensions/ollama/src/embedding-provider.runtime.ts — merged the deslop-cleaned import block with this PR's EmbeddingProviderCallOptions / MEMORY_SEARCH_DEADLINE_CONTROL imports; kept the local MemoryCoreAcquireLocalService target type declaring onReadinessWait (the SDK-side llm.acquireLocalService target type on main still stops at { providerId, baseUrl, headers, reconcile }, so the local declaration is still required).
  • extensions/lmstudio/src/embedding-provider.ts — same import/type resolution.

Byte-level check of the resolved head vs the reviewed head e46e6290: zero readiness/deadline-related line differences in all four touched files — every differing line comes from main's deslop refactors. The readiness callback wiring (onReadinessWait → deadlineControl.report("pause" | "resume")) and main's later HTTP/provider behavior are both retained.

Validation on the resolved head (2026-09-29, UTC)

  • Scoped tsgo (prod + test lanes, extensions/ollama + extensions/lmstudio): 0 errors in touched files.
  • Unit tests: extensions/ollama/src/embedding-provider.test.ts 39/39 pass, extensions/lmstudio/src/embedding-provider.test.ts 16/16 pass.
  • Real-behavior proof re-run against the resolved head — real child process spawned by the real acquisition owner (createConfiguredProviderLocalServiceAcquirer), real health polling, real HTTP embedding round trip, real deadline control:

Ollama:

[provider-local-service] starting ollama-proof local service
[provider-local-service] ollama-proof local service ready: pid=29 spawnMs=76 readyMs=1637
DBG budget paused, remaining: 296 ms      # deadline paused for the cold start
DBG budget resumed, remaining: 296 ms
DBG embed returned 20544 ms
DBG budget expired during cold start: false   # 300 ms search budget vs 1500 ms cold start
DBG vector: [0.2672612419124244,0.5345224838248488,0.8017837257372732]   # L2-normalized by the provider
DBG service requests:
223ms GET /health
492ms GET /health
748ms GET /health
1002ms GET /health
1257ms GET /health
1511ms GET /health
1547ms POST /api/embed

LM Studio:

[provider-local-service] lmstudio local service ready: pid=33 spawnMs=12 readyMs=1562
DBG budget paused, remaining: 297 ms
DBG budget resumed, remaining: 297 ms
DBG embed returned 23668 ms
DBG budget expired during cold start: false
DBG vector: [0.25,0.5,0.75]   # wire vector returned as-is
DBG service requests:
223ms GET /health
488ms GET /health
743ms GET /health
998ms GET /health
1252ms GET /health
1509ms GET /health
1547ms POST /v1/embeddings

Both runs end with a clean managed shutdown (reason=host-shutdown, exit code 0).

Data-model compatibility

No stored-data contract changes: the patch only touches the provider call path (readiness callback wiring) and tests. No persisted state, config schema, or migration surface is affected, so migration/upgrade compatibility is unchanged.

Ready for re-review.

…nd LM Studio embedding providers

`memory_search` gives managed service startup its own `readyTimeoutMs` budget so a
cold local service does not consume the search deadline. The deadline owner pauses
and resumes that budget from `ProviderLocalServiceTarget.onReadinessWait`, and the
shared OpenAI-compatible embedding provider builds that callback from the
`MEMORY_SEARCH_DEADLINE_CONTROL` symbol it receives in its call options.

The bundled Ollama and LM Studio embedding providers passed their stored
local-service target to `acquireLocalService` unchanged, so the optional
`onReadinessWait` property was absent and the owner's `target.onReadinessWait?.(...)`
degraded to a no-op. A managed cold start on either provider therefore still ran
against the whole search deadline.

Both providers now read the same symbol from their embedding call options and report
the wait, matching the shared provider. When no deadline control is present the
target is passed through unchanged, so direct embedding calls are unaffected.

Co-Authored-By: Claude Code <[email protected]>
…get types

Both extensions declare their own `MemoryCoreAcquireLocalService` whose target
type stopped at `{ providerId, baseUrl, headers? }`. The new inline object adds
`onReadinessWait`, which is an excess-property error against that narrower
contract (TS2353 at ollama:433 and lmstudio:269).

The canonical `ConfiguredProviderLocalServiceTarget` in core already declares the
optional callback, but it is not exposed through the plugin SDK, so the extension
contracts carry it instead.

Co-Authored-By: Claude Code <[email protected]>
@wangmiao0668000666
wangmiao0668000666 force-pushed the fix/ollama-lmstudio-readiness-reporting branch from bba8761 to 529397a Compare October 8, 2026 00:04
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Rebased both commits onto current main and resolved the conflicts.

Conflicts were import/type-declaration drift in main since the base:

  • ollama/embedding-provider.runtime.ts + test: main changed the engine-embeddings import (RemoteEmbeddingClient) while this PR adds EmbeddingProviderCallOptions and the MEMORY_SEARCH_DEADLINE_CONTROL / MemorySearchDeadlineControl storage import. Merged both; the test file's duplicate deadline-control import is deduped.
  • lmstudio/embedding-provider.ts: main refactored LmstudioEmbeddingClient to Omit<RemoteEmbeddingClient, "fetchImpl"> (that type already carries ssrfPolicy) and sourced MemoryCoreAcquireLocalService from OpenClawPluginApi. Kept main's LmstudioEmbeddingClient shape and kept this PR's expanded MemoryCoreAcquireLocalService, because the SDK's acquireLocalService type still does not declare onReadinessWait — the plugin must widen it to pass the callback.

Local verification on the rebased head:

  • extensions/lmstudio/src/embedding-provider.test.ts + extensions/ollama/src/embedding-provider.test.ts → 54/54 pass
  • oxfmt --check / oxlint clean, tsgo clean

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added size: S triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed size: M labels Oct 8, 2026
@obviyus

obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Oct 8, 2026
@obviyus
obviyus merged commit 6dd7b2e into openclaw:main Oct 8, 2026
109 of 111 checks passed
@obviyus

obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Landed in 6dd7b2e. Thanks @wangmiao0668000666! Verified on a built Gateway: with a 40 s cold start, memory_search now returns results from both Ollama and LM Studio instead of timing out at 30 s.

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Thanks for the review and for landing this, @obviyus! Really appreciate you reproducing it on a built Gateway with a 40 s cold start — confirming that memory_search now waits out the slow startup for both Ollama and LM Studio instead of timing out at 30 s is exactly the behavior this was meant to fix. Glad it's in. 🙏

Happy to follow up if related local-service readiness edges come up.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 9, 2026
…nd LM Studio embedding providers (openclaw#156483)

Have the Ollama and LM Studio embedding providers report managed local-service readiness, so memory search waits for a cold-starting local service instead of timing out at the default 30 s budget.

Fixes openclaw#156359.

Co-authored-by: Claude Code <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
@wangmiao0668000666
wangmiao0668000666 deleted the fix/ollama-lmstudio-readiness-reporting branch October 28, 2026 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: lmstudio extensions: ollama P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Ollama and LM Studio embedding providers never report ready-local-service waits during memory_search

2 participants