Repository navigation
feat(system-agent): host memory import in Ask OpenClaw - #115376
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 28, 2026 18:45
steipete
force-pushed
the
steipete/custodian-memory-import-wizard
branch
from
July 28, 2026 19:25
7a614e4 to
c7baa8b
Compare
steipete
force-pushed
the
steipete/custodian-memory-import-wizard
branch
from
July 28, 2026 20:04
a2a6a3c to
01b2766
Compare
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
that referenced
this pull request
Jul 28, 2026
…etwork-none * origin/main: (74 commits) fix(ui): make Control UI ownership and permissions reliable (#115364) feat(system-agent): host memory import in Ask OpenClaw (#115376) fix(chat): preserve literal Markdown image examples (#113904) refactor(chat): keep web and terminal sessions synchronized (#115377) fix(ui): order model picker by provider strength (#115380) feat(ui): make Memory settings a destination page with live overview and dreams (#115383) docs(security): fix warning line wrap (#115388) fix(memory-core): avoid cubic MMR similarity rescans (#113359) fix(discord): preserve code-leading reasoning chunks (#103166) fix(slack): protect outbound hooks from previews fix(ui): keep explicit navigation ahead of chat canonicalization (#115366) fix(exec): safely cancel pending node approvals (#115373) fix: make Code Mode reliable across gateway and provider lifecycles (#115379) perf(ui): debounce event-driven session list refreshes and right-size child paging (#115374) feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (#115226) feat(system-agent): guide gateway configuration in Ask OpenClaw (#115363) fix(agents): make overflow recovery append-only via branch-and-reappend (#115271) (#115310) fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (#115362) fix(codex): isolate native hook relay startup (#115078) fix(ci): stop reviving superseded pull request workflows (#115378) ... # Conflicts: # CHANGELOG.md
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
* feat(wizard): expose memory import outcomes * feat(system-agent): host memory import in chat * test(system-agent): trip the copy-boundary recheck inside the wizard run * fix(system-agent): guard memory import against drift and partial-copy lies * fix(wizard): return typed memory import outcomes in callers * test(onboard): split guided memory-import coverage * fix(system-agent): use effective config for memory import * test(onboard): type memory import detection mock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Importing memories from other local agent homes was an onboarding-only step (plus the Control UI Memory page); Ask OpenClaw — the talk-to-configure surface — could not do it, so "import my memories" required leaving the chat.
Why This Change Was Made
Adds
import memoryas a hosted in-chat flow wrapping the real onboarding step (runSetupMemoryImportStep). Memory import copies files rather than writing config, so it deliberately bypasses the config-wizard write path and uses the wizard bridge directly with its own safety rails: the workspace precondition is checked before any provider code loads; before EVERY provider apply the host rechecks inference authority AND compares the config-file hash against wizard start (strict whole-hash drift guard mirroring the config wizards' "configuration changed during setup" semantics, so a concurrent default-agent/workspace change can never redirect copies); the flow now returns typed per-provider outcomes so summaries are honest ("Imported N items from X", "Nothing to import", per-provider failures, and — when an apply throws mid-copy — "failed partway, some files may have been copied" instead of falsely claiming nothing was copied); completions and indeterminate partial failures append amemory.importaudit entry with per-provider detail; no config write occurs so post-write config validation is intentionally skipped. Onboarding's terminal behavior is unchanged (the hooks are optional and absent there).User Impact
"Import memory" now works as a conversation in Settings > Ask OpenClaw (and its dock) on both surfaces: guided provider selection with option cards, honest outcome and failure reporting, full audit-trail integration, and a clean "finish onboarding first" refusal when no workspace exists.
Evidence
node scripts/run-vitest.mjs src/system-agent/chat-engine.test.ts src/system-agent/operations-setup-flows.test.tspassed 97 tests on currentorigin/main;git diff --check origin/main...HEADpassed.30394712358on01b27669dc3def9a10fd26770b2cb32361acb7bcsucceeded on attempt 2 after one unrelatedserver-startup-logtimeout rerun.