Repository navigation
fix(memory): keep gateway responsive after startup - #119710
Conversation
Punchcard-Session: coral-workshop-workshop-3f
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:32 PM ET / 19:32 UTC. ClawSweeper reviewWhat this changesThe PR removes delayed memory-manager warmup after Gateway startup so managers initialize only when a memory operation needs them. Regression provenancePossible regression — probable (reproduction; reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review No blocking finding: this is a focused owner-boundary repair for post-ready Gateway stalls, and the protected member-authored PR should remain open for normal maintainer landing review. Priority: P1 Review scores
Verification
How this fits togetherThe memory-core plugin supplies Gateway memory tools and backend managers. Its old startup hook created and synchronized managers after readiness, competing with Gateway health and configuration RPCs; searches already own first-use initialization. flowchart LR
A[Gateway starts] --> B[Memory-core lifecycle]
B --> C{Memory operation requested?}
C -->|No| D[Gateway RPCs remain responsive]
C -->|Yes| E[Memory manager resolves]
E --> F[Backend bootstrap and search]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -72, Tests -223. Total -295 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep one demand-driven manager lifecycle: Gateway startup should not initialize memory indexes, while each backend retains its documented first-use bootstrap behavior. Do we have a high-confidence way to reproduce the issue? Yes: current main's five-second Gateway-start hook creates and synchronizes every configured builtin manager, while the supplied packaged probe exercises the same post-ready RPC window. Is this the best way to solve the issue? Yes: removing unsolicited work at the memory lifecycle owner is better than further delaying it, because builtin and QMD already have demand-driven initialization contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e69c3df2361b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…cope * origin/main: (70 commits) fix(clickclack): preserve MIME extension for unnamed uploads (openclaw#119646) fix(memory): keep post-ready RPCs responsive (openclaw#119710) fix(browser): preserve locale, timezone, and device overrides (openclaw#119695) fix(agents): stop messaging dedupe from dropping final replies that quote a short tool send (openclaw#118178) test(agents): batch code mode budget proof (openclaw#119699) fix(memory): keep gateway RPCs responsive during startup (openclaw#119676) improve(ui): trail transient session status beside row actions (openclaw#119560) refactor(msteams): consolidate channel action target resolution (openclaw#119632) fix: tail context answers the current user message (openclaw#117364) fix(whatsapp): exercise descriptor-safe credential persistence (openclaw#119621) fix(diagnostics-otel): route OTLP endpoints by signal (openclaw#101655) refactor(skills): consolidate workshop transcript and record normalization (openclaw#119643) fix(video): harden DashScope task and media lifecycle (openclaw#117303) refactor(transcripts): consolidate persistence and export ownership (openclaw#119634) fix: preserve ClickClack discussion state contracts (openclaw#118851) fix(matrix): retire shared E2EE clients safely (openclaw#119570) refactor(cron): unify catch-up persistence and payload encoding (openclaw#119636) refactor(ui): centralize composer attachment and capability controls (openclaw#119650) refactor(daemon): consolidate managed service lifecycle ownership (openclaw#119647) fix(browser): honor explicit navigation timeouts across browser drivers (openclaw#119654) ...
Punchcard-Session: coral-workshop-workshop-3f
Related: #119087
Follow-up to #119676.
What Problem This Solves
Fixes an issue where operators could see multi-second
health, first-device, andconfig.getRPC stalls after the Gateway reported ready becausememory-corestarted unsolicited index initialization five seconds later.Why This Change Was Made
The prior delay moved the contention window but did not remove it. This change deletes the startup memory-manager warmup and keeps initialization demand-driven at the memory owner boundary.
Builtin memory search already performs a synchronous bootstrap when its index is empty and always schedules dirty refresh on search. QMD keeps its existing backend-owned boot policy. No memory configuration, storage, or search contract changes.
Repair summary:
memory-coremanager lifecycleThis PR was prepared with AI assistance. I reviewed the code, owner contracts, and runtime evidence.
User Impact
The Gateway remains responsive after readiness instead of pausing later for background memory initialization. The first real memory search owns any required index bootstrap through the existing search contract.
Evidence
Matched packaged
sourcePerformanceprobe, exact latest maine69c3df2361b38285917c29b0c90867c75b8ebe9versus this branch, five measured samples plus one warmup per case:health --jsonhealth --jsonconfig get gateway.portsourcePerformancebuild passed with private QA artifacts enabled.oxfmt,oxlint, andgit diff --checkpassed.Punchcard-Session: coral-workshop-workshop-3f