Skip to content

fix(ui): make memory engine switching clear and reliable - #115750

Merged
vincentkoc merged 1 commit into
mainfrom
fix/memory-settings-engine
Jul 29, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/memory-settings-engine

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 29, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where users switching Memory off and immediately back to the default engine could hit config changed since last load. The default engine also appeared as the raw memory-core plugin id and was placed after Memory LanceDB.

Why This Change Was Made

The memory-core plugin now publishes the user-facing name OpenClaw Memory, and the engine picker orders the canonical default owner first. Engine activation waits for pending config autosaves before issuing the plugin mutation, so both writes use the current config hash instead of racing.

User Impact

The Settings → Memory engine picker now shows OpenClaw Memory first, and rapid Off → OpenClaw Memory changes complete without leaving the memory options in a failed state.

Evidence

Before: raw plugin id and default engine ordered second

Before: Memory LanceDB precedes the raw memory-core label

Before: Off → memory-core races the autosave

Before: stale config hash failure after switching back from Off

After: clear default engine and successful selection

After: OpenClaw Memory is first and selected without an error

  • Mocked Chromium regression test covers engine ordering and proves the Off autosave resolves before plugins.setEnabled.
  • Focused UI and memory-core tests cover the default ordering, pending-write barrier, and public plugin label.
  • Codex autoreview: clean, no accepted or actionable findings.
  • Blacksmith Testbox on the code-equivalent prior head: 63 focused tests, Chromium E2E, and the changed-surface gate passed; the final extension-lint lane was rerun successfully after the first delegated session timed out (focused gate, extension lint).
  • Exact-head CI and the repo-native prepare gate passed on 971c0892437 (CI).

AI-assisted; implementation and proof were reviewed against the current owner path and adjacent tests.

@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui extensions: memory-core Extension: memory-core size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@vincentkoc
vincentkoc force-pushed the fix/memory-settings-engine branch from 2081af8 to e3063b2 Compare July 29, 2026 08:13
@vincentkoc
vincentkoc marked this pull request as ready for review July 29, 2026 08:13
@vincentkoc
vincentkoc force-pushed the fix/memory-settings-engine branch from e3063b2 to 4b1771f Compare July 29, 2026 08:38
@vincentkoc
vincentkoc force-pushed the fix/memory-settings-engine branch from 4b1771f to 7aeb914 Compare July 29, 2026 08:43
@vincentkoc
vincentkoc force-pushed the fix/memory-settings-engine branch from 7aeb914 to 971c089 Compare July 29, 2026 09:17
@vincentkoc
vincentkoc merged commit 47c1921 into main Jul 29, 2026
195 of 197 checks passed
@vincentkoc
vincentkoc deleted the fix/memory-settings-engine branch July 29, 2026 09:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

pull Bot pushed a commit to yann0001/openclaw that referenced this pull request Jul 29, 2026
* origin/main:
  fix(gateway): keep Responses replacement streams consistent (openclaw#115799)
  fix(gateway): hosted setup exits no longer stop the gateway (openclaw#115671)
  fix(cron): protect sessions throughout model preparation (openclaw#115804)
  fix(ui): preserve model names alongside aliases (openclaw#115789)
  fix(qa): prepare shared Slack live flows
  fix(ui): stabilize memory engine selection (openclaw#115750)
  fix(web-fetch): release abandoned fallback response bodies (openclaw#115759)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* origin/main:
  fix(gateway): keep Responses replacement streams consistent (openclaw#115799)
  fix(gateway): hosted setup exits no longer stop the gateway (openclaw#115671)
  fix(cron): protect sessions throughout model preparation (openclaw#115804)
  fix(ui): preserve model names alongside aliases (openclaw#115789)
  fix(qa): prepare shared Slack live flows
  fix(ui): stabilize memory engine selection (openclaw#115750)
  fix(web-fetch): release abandoned fallback response bodies (openclaw#115759)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui extensions: memory-core Extension: memory-core maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant