Repository navigation
feat: show when conversation memory is being saved - #140380
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 13, 2026, 9:52 AM ET / 13:52 UTC (Revision 10). ClawSweeper reviewWhat this changesAdds a “Saving conversation memory…” indicator to Control UI, carrying the maintenance phase through Gateway events, reconnect snapshots, protocol definitions, and focused tests. Merge readiness⛔ Blocked before merge - 1 item remains This remains a useful, distinct improvement absent from current main and v2026.9.4. No actionable introduced defect was found. The PR now records acceptance of coordinated client upgrades, addressing the prior review’s compatibility decision. Priority: P2 Review scores
Verification
How this fits togetherBefore answering, OpenClaw may run private conversation-memory maintenance. The Gateway projects a content-free status onto the parent conversation, which Control UI displays and restores after reconnecting. flowchart LR
A[User sends message] --> B[Pre-reply maintenance check]
B --> C[Private memory maintenance]
C --> D[Parent conversation status]
D --> E[Gateway events and reconnect snapshot]
E --> F[Control UI memory indicator]
C --> G[Normal reply preparation]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +22, Tests +40, Other +1. Total +63 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the content-free phase in the existing startup-status flow, preserve private maintenance execution, and ship clients under the recorded matched-release contract. Do we have a high-confidence way to reproduce the issue? Not applicable as a regression: this adds previously unavailable status visibility. Current main and release source confirm the missing label; the related report supplies field evidence of the confusing wait. Is this the best way to solve the issue? Yes. Extending the existing parent-run status and reconnect flow is a narrow solution, and the PR explicitly records its client compatibility tradeoff without changing maintenance ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eb5a9ec6bfed. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
cd6671b to
4bca3fd
Compare
|
@clawsweeper re-review Head 4bca3fd906a771d144ce93d22e516fddcf7cfd8e refreshes the branch against main with equivalent feature commits and regenerated Swift output. The PR body now links five newly inspected, invitation-free production-bundle/mock-Gateway screenshots covering preparation, memory status, reload restoration, model waiting and final clearing. 626 focused tests pass. The public phase/wording and coordinated-client-upgrade decision remains with maintainers. Fresh hosted CI is running. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
4bca3fd to
05f2615
Compare
|
Maintainer decision for The remaining ClawSweeper compatibility item is resolved as a product decision: bundled same-origin outdated UI is rejected with reload guidance at The shared memory-maintenance owner is the best boundary: it records a content-free parent-run fact only for runnable maintenance, restores preparation after success/failure, and suppresses restoration after cancellation. Private child content remains hidden. Gateway snapshot/reconnect and UI clearing reuse the existing flow. The two old-head CI attempts failed an existing settings-test startup race. This branch now includes the canonical fixes from #146949 and #147029 through an ancestry-preserving merge of main Fresh autoreview of this head is scoped-clean with no actionable P0–P2 findings. Exact-head ClawSweeper also reports no code finding. Exact-head CI is now successful. Passing attempt-1 proof includes:
The unchanged-base account-picker pointer E2E initially navigated to Profile unexpectedly. Retained diagnostics did not identify the click target; one isolated retry and aggregate gate passed in attempt 2. Its original cause remains unproven; no source repair, weakened assertion, or timeout increase was made. Earlier Testbox runs remain excluded from exact-head proof because their complete materialized source identity was not established. Direct Codex contract inspection at Production +24/−1 (net +23, including one generated Swift line); tests +115/−75 (net +40). The five author-provided historical synthetic screenshots were personally inspected; no fresh live-provider/device execution is claimed. This addresses the visibility request in #139926, without claiming to shorten maintenance or explain its separate 207.859s started-provider wait. Thanks @PollyBot13. |
|
Merged via squash.
|
* feat: show when conversation memory is being saved * fix: regenerate Swift memory maintenance status
Related: #139926
What Problem This Solves
Control UI users cannot distinguish pre-reply memory maintenance from generic preparation or model waiting. This adds a content-free “Saving conversation memory…” status while that maintenance runs, including after reconnecting.
The related report observed a 65.263-second memory checkpoint during one turn. Its separate 207.859-second model wait had no evidenced preceding flush; this change does not claim to diagnose or reduce that latency.
Why This Change Was Made
Reuse the existing parent-turn startup status and reconnect flow. The memory owner emits
memory_flushingonly after maintenance preparation succeeds and restorespreparing_contextinfinallyunless the turn was cancelled. The maintenance child and its messages, tool calls, and checkpoint contents remain private. Normal execution events subsequently select model waiting and clear the status on visible output.Maintainer review accepts this bounded public phase and wording under the existing client/Gateway release-pair contract. There are no new configuration options, persistence migrations, protocol version bumps, background writes, or provider-specific behavior.
Client compatibility:
User Impact
Users can tell when conversation memory is being saved without opening logs or seeing private maintenance content. Skipped maintenance keeps existing behavior. “Saving” describes work in progress; existing failure reporting remains responsible for the outcome. No response-speed improvement is claimed.
Evidence
Reviewed head:
6231925f39dee774d6dd0eb68d5bfc73a68abc56. The contributor feature patch is unchanged; a signed merge of main6461d6b93f51db00b25ce9e776da327ac6652721includes the canonical settings-test harness fixes from #146949 and #147029 while preserving contributor ancestry.git diff --checkpasses.4bca3fd906a771d144ce93d22e516fddcf7cfd8e: 626 focused tests and a production-bundle Chromium mock-Gateway scenario. Maintainer visual inspection of the five pinned images below confirms preparation, memory status, restoration, model waiting, and clearing. These remain historical visual boundary proof; no live provider execution or native-device version-pair run is claimed.Restored after reload · Model waiting · Final output clears the status.
The baseline image exercises
preparing_contextin the refreshed bundle, not an old-main build. The images use a synthetic conversation and transport.Contribution by @PollyBot13; report by @noelillinger. AI-assisted implementation and review with Codex, with maintainer product and compatibility review.