Repository navigation
refactor(memory): move overview presentation into Memory Core - #174452
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: needs maintainer review before merge. What this changesMoves Memory overview rendering, status requests, styles, and translations into Memory Core through a packaged Settings presentation. Example: Open Memory Settings with custom-memory selected and embeddings not yet checked.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-directed PR open: the ownership cutover is coherent, prior findings are addressed, and no new actionable defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Settings host supplies agent, engine, connection, navigation, and shared visual primitives; the packaged Memory Core view requests existing Gateway diagnostics and renders their results. flowchart LR
A[Memory Settings route] --> B[Host Settings lifetime]
C[Packaged asset inventory] --> D[Memory Core overview]
B --> D
D --> E[Bound request callback]
E --> F[Gateway memory diagnostics]
F --> D
Technical reviewBest possible solution: Complete the plugin-owned overview cutover while preserving host authority, existing activation behavior, and the normal exact-head CI gate. Do we have a high-confidence way to reproduce the issue? No malfunction is alleged; current-main source confirms the split ownership, and supplied browser evidence exercises the extracted presentation. Is this the best way to solve the issue? The narrow packaged presentation fits repository ownership policy, removes the replaced renderer, and keeps routing and configuration writes with their existing owners. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1b9731a20f3b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +2595, Tests +1090, Docs +48, Config +11, Other +94. Total +3838 across 60 files. Added test files: 5. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)
Reviewed October 16, 2026, 2:19 PM ET / 18:19 UTC (Revision 4). |
9b849bd to
23c010d
Compare
23c010d to
f38762c
Compare
|
Addressed the review findings on current head
The subsequent compression-progress failure counted only top-level assets. Both disk observations now recurse, and the fixture emits nested assets; all 13 Vite build tests, native targeted lint and formatting pass with exact cadence and failure assertions unchanged. Explicit UTF-8 encoding fixes the filename overload; the exact UI-app test typecheck lane also passes. Final net change is +3838 lines (GitHub rename-aware +4778/-940 across 60 files). Native review records and the PR body now match this exact head. Required hosted CI is still running: https://github.com/openclaw/openclaw/actions/runs/38945637150. Preparation and merge remain gated on required green. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…174639) * test: repair standalone loader and private UI server fixtures Advance the runtime loader generator in the standalone metadata fixture, matching the synchronous loader after a99f797 (#172750). Preserve missing-source, boundary, hard-link, and import-count assertions. Register memory-overview-plugin.e2e.test.ts with the existing private Control UI server owner after dbd0a21 (#174452), retaining serial execution and complete inventory checks. Main a1c6b9e reproduced both failures. Focused affected proof: 51 passed; root test typechecks, touched type-aware lint and format passed. Independent P2 review found no actionable findings. No CI reruns. * fix: preserve Doctor capture placement and group GitHub App settings Forward the resolved capture placement into the preparation worker's existing root owner. Doctor's temporary read-only inspection must not create state/tmp/plugin-captures. Keep native image custody and cleanup unchanged; the direct worker regression fails before this correction. The GitHub App schema introduced in 4579af0 (#173668) inherited common tiers from ordinary GitHub identity. Signing keys, installation and repository permissions are specialized administrative settings, so place both App subtrees under Advanced. Retain the common-leaf snapshot unchanged and keep ordinary GitHub identity common. The real Doctor native-capture test and all six worker lifetime/recovery tests pass under Node. Schema quality (3), native synthetic UI (1), and the previously reviewed fixture checks (51) pass. P2 review found no actionable findings. No config/schema migration or timeout changes. Core production and selected test types, touched type-aware lint, formatting and whitespace checks passed. * test(ui): preserve packaged Memory overview fixture ownership The initial private-server registration put the mixed Memory suite into a project without bundled setup. Natural PR CI 38962681715 exposed the resulting source-Vite index.js?import response in the packaged asset assertion. Move the unchanged source case to its own registered private-server file and keep the packaged cases on the shared production preview. All four browser cases and 14 ownership cases pass; selected type graphs, type-aware lint, formatting and P2 review pass. No assertion, timeout or test coverage change.
…aw#174452) * refactor(memory): move overview into Memory Core * fix(memory): qualify Settings contract integration * fix(memory): prepare Settings presentation for UI-only delivery * test(ui): align catalog refresh clock with polling interval Match the two-minute refresh contract introduced by openclaw#174404 (bd43f1f). Keep the existing cursor replay, retained-host, and history assertions. * test(ui): exercise optional hover loading outside Chat Chat eagerly imports the hover provider since openclaw#173652 (adbbb40). Use the real About Docs link to retain the failed-download, reload, title fallback, no-card, and no-preview-RPC assertions. * test(ui): count nested assets in compression progress Include nested packaged plugin assets in the observed sidecar totals and emit nested fixture assets so the exact cadence and failure assertions cover this layout. * test(ui): type recursive compression filenames as UTF-8
…penclaw#174639) * test: repair standalone loader and private UI server fixtures Advance the runtime loader generator in the standalone metadata fixture, matching the synchronous loader after ce27c34 (openclaw#172750). Preserve missing-source, boundary, hard-link, and import-count assertions. Register memory-overview-plugin.e2e.test.ts with the existing private Control UI server owner after f9ffe38 (openclaw#174452), retaining serial execution and complete inventory checks. Main 5d76018 reproduced both failures. Focused affected proof: 51 passed; root test typechecks, touched type-aware lint and format passed. Independent P2 review found no actionable findings. No CI reruns. * fix: preserve Doctor capture placement and group GitHub App settings Forward the resolved capture placement into the preparation worker's existing root owner. Doctor's temporary read-only inspection must not create state/tmp/plugin-captures. Keep native image custody and cleanup unchanged; the direct worker regression fails before this correction. The GitHub App schema introduced in f9a4f5e (openclaw#173668) inherited common tiers from ordinary GitHub identity. Signing keys, installation and repository permissions are specialized administrative settings, so place both App subtrees under Advanced. Retain the common-leaf snapshot unchanged and keep ordinary GitHub identity common. The real Doctor native-capture test and all six worker lifetime/recovery tests pass under Node. Schema quality (3), native synthetic UI (1), and the previously reviewed fixture checks (51) pass. P2 review found no actionable findings. No config/schema migration or timeout changes. Core production and selected test types, touched type-aware lint, formatting and whitespace checks passed. * test(ui): preserve packaged Memory overview fixture ownership The initial private-server registration put the mixed Memory suite into a project without bundled setup. Natural PR CI 38962681715 exposed the resulting source-Vite index.js?import response in the packaged asset assertion. Move the unchanged source case to its own registered private-server file and keep the packaged cases on the shared production preview. All four browser cases and 14 ownership cases pass; selected type graphs, type-aware lint, formatting and P2 review pass. No assertion, timeout or test coverage change.
Closes #174428
What Problem This Solves
Memory overview/status presentation still lives in core Settings even though Memory Core owns the feature.
User Impact
The Memory overview keeps its current status, explicit embedding test, and navigation behavior, including when the engine is off, disabled, offline, or supplied by another plugin. There is no configuration migration or runtime plugin activation requirement.
Why This Change Was Made
Move the overview, controller, styles, and translated strings into Memory Core through a packaged Settings view. Core retains agent selection, engine/config writes, routing, and shared visual primitives. The additive Settings contract retires RPC/navigation authority when the agent, engine, connection, route, or plugin generation changes; normal plugin activation remains unchanged.
This is the smallest complete slice after #173210. Indexed-memory search and other panels are separate work.
Evidence
Native build passed, including canonical plugin distribution copying, UI build, SDK declarations/exports, and performance budgets. The final affected plugin/UI rebuild also passed.
UI-only production builds and
ui:devprepare declared Settings presentations through the canonical plugin builder. Development delivery serves the same validated generation; selected preparation preserves sibling distributions. The actual dev-server Memory route and seven artifact inventory regressions pass.Actual production-bundled browser coverage passes for delivered JS/CSS, custom/off/disabled engines, explicit probes, offline behavior, navigation remount and stylesheet cleanup, and shared row separators. No browser page errors.
Focused controller, plugin presentation, actual Memory page, host lifetime, Settings runtime, existing activation runtime, manifest, builder/check, and Gateway catalog tests passed. Retained callbacks and in-flight replies are rejected across boot/client/generation changes before the Solid flush.
UI and core production typechecks, the affected chat/Gateway/extension test typechecks, targeted lint/format, assertion/mock ratchets, extension import boundaries, and SDK export checks passed. The moved catalog verifies 55 keys across 20 locales with no unused translations.
Four real-WebSocket transport regressions use the unmocked Gateway browser client and a synthetic protocol responder: allowed requests reach the server; unauthorized and retained callbacks after agent, connection-epoch, or runtime retirement send no request before an acknowledged socket barrier; a held successful reply is rejected after retirement. This qualifies Settings lifetime fencing, not backend authorization policy.
Independent review found one later-update exception path that did not retire the presentation. The fix now aborts its signal, disposes view/assets exactly once, rejects retained callbacks and pending replies, and renders the error; the dedicated regression passes.
Native SDK API comparison from
a09c26b193b4to9b849bda7f8ccompleted: six added types on the existingcontrol-uisubpath, no new/removed entrypoints, and no removed exports. Reachable declaration changes reflect the shared placement metadata and Doctor DTO. The subsequent CI accounting, fixture, and delivery corrections leave these SDK declarations unchanged.The public-export budget accounts for exactly those six types:
ControlUiSettingsComponents,ControlUiSettingsContext,ControlUiSettingsPlacement,ControlUiSettingsSnapshot,ControlUiSettingsView, andDoctorMemoryStatusPayload. The budget preserves main’s other 18 added exports. Native surface validation on rebased headf38762cff184passes at 3,798 public exports, with no unauthorized shipped removals.The Memory-dependent mobile layout and agent-selector scenarios pass with the delivery correction. Two inherited E2E assumptions were aligned in separate test-only commits: the catalog clock now matches the two-minute interval from #174404, and the optional-hover fallback runs on the real About Docs link because Chat eagerly loads that component since #173652. Both named scenarios pass, preserving their behavioral assertions. A subsequent hosted build-progress assertion counted only top-level assets; its disk observations now include nested plugin assets, and its fixture explicitly emits nested files. All 13 Vite build tests pass with the exact cadence, paired-sidecar and failure-path assertions preserved. Targeted native lint and formatting pass. Explicit UTF-8 filename encoding also passes the exact UI-app test typecheck lane. Required hosted CI passed on exact head
c766a305faaa: https://github.com/openclaw/openclaw/actions/runs/38945637150. The current-head review reports no actionable findings.Before: frozen pre-extraction overview rendered with the same sanitized data, viewport, theme, and host primitives. After: the actual Memory route loading the packaged plugin. Both use Chromium 153.0.8010.12 at 1440×1000. The standalone baseline lacks the app-shell background; the lobster appearance may vary by its existing random seed. The comparison verifies layout and behavior, not pixel identity.
Before
After
Scope and size
The old core overview renderer, status/probe effects, and overview stylesheet are removed. The host keeps only the Settings placement and authority boundary. The production feature/page/controller portion is approximately 47 lines smaller after separating the new generic capability adapter cost; the whole change grows because this is the first packaged static Settings capability.
Counts treat moved files as full removals/additions; Git rename detection reduces the gross additions/deletions without changing the net. The reusable capability and lifetime tests are intentional growth. Existing translated values move to the plugin-owned catalog; generated translation memory is not part of this PR.