Skip to content

fix(dreaming): open report cards from Memory Palace#85144

Merged
RomneyDa merged 1 commit into
openclaw:mainfrom
rohitjavvadi:fix-report-card-preview
May 22, 2026
Merged

fix(dreaming): open report cards from Memory Palace#85144
RomneyDa merged 1 commit into
openclaw:mainfrom
rohitjavvadi:fix-report-card-preview

Conversation

@rohitjavvadi

Copy link
Copy Markdown
Contributor

Summary

  • Open Memory Palace report cards through the existing wiki preview flow on primary card click.
  • Keep non-report Memory Palace cards on the existing details expansion behavior.
  • Add Dreaming view regression coverage for report-card preview clicks and non-report details clicks.

Fixes #54749

Verification

  • node scripts/run-vitest.mjs ui/src/ui/views/dreaming.test.ts
  • pnpm exec oxfmt --check --threads=1 ui/src/ui/views/dreaming.ts ui/src/ui/views/dreaming.test.ts
  • git diff --check origin/main..HEAD
  • pnpm check:changed

Real behavior proof

Behavior addressed: Memory Palace report cards now open the report/wiki content preview on primary click instead of expanding the metadata details panel.

Real environment tested: Local OpenClaw checkout on macOS with Node v24.10.0 and pnpm 11.1.0.

Exact steps or command run after this patch: node scripts/run-vitest.mjs ui/src/ui/views/dreaming.test.ts

Evidence after fix: The regression test clicks a kind: "report" Memory Palace card and verifies onOpenWikiPage("reports/weekly-stock.md") runs, the preview shows "Weekly stock report", and the details panel does not open. The adjacent non-report test clicks a synthesis card and verifies it still opens "Page details".

Observed result after fix: Report-card primary clicks route to the existing wiki preview; non-report card primary clicks preserve the previous details behavior.

What was not tested: I did not run a live mobile browser against a running gateway.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S proof: supplied External PR includes structured after-fix real behavior proof. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

Workflow note: Future ClawSweeper reviews update this same comment in place.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

Summary
The PR changes Dreaming Memory Palace report-card primary clicks to open the existing wiki preview and adds regression coverage while preserving non-report card detail expansion.

Reproducibility: yes. Current main accepts report-kind Memory Palace items, but the primary card click handler toggles details for every kind while the existing preview path is only on the secondary Open wiki page button.

PR rating
Overall: 🦞 diamond lobster
Proof: 🦞 diamond lobster ✨ media proof bonus
Patch quality: 🦞 diamond lobster
Summary: Small, well-scoped UI fix with focused regression coverage and direct running-UI screenshots; remaining confidence depends on normal CI and maintainer verification.

What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Real behavior proof
Sufficient (screenshot): Contributor proof includes inspected after-fix mobile Control UI screenshots from a local gateway/profile showing preserved synthesis details behavior and report wiki-preview behavior.

Mantis proof suggestion
A short visible Control UI proof would be useful for maintainers because the changed behavior is a mobile Memory Palace click path. A maintainer can ask Mantis to capture proof by posting a new PR comment that starts with the OpenClaw Mantis account mention, followed by:

visual task: verify mobile Memory Palace report-card primary click opens the wiki preview while a synthesis card still opens Page details.

Risk before merge

  • I did not run the PR's Vitest, formatter, or changed-check commands in this read-only review, so CI or maintainer-run verification remains the merge gate.

Maintainer options:

  1. Decide the mitigation before merge
    Land the narrow report-kind click routing change with the focused regression tests, keeping the explicit Details button and non-report card expansion behavior unchanged.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge
No repair lane is needed; the remaining action is ordinary maintainer review plus CI/verification before merge.

Security
Cleared: The diff is limited to Dreaming UI click handling and colocated tests, with no dependency, credential, workflow, package, or supply-chain surface changed.

Review details

Best possible solution:

Land the narrow report-kind click routing change with the focused regression tests, keeping the explicit Details button and non-report card expansion behavior unchanged.

Do we have a high-confidence way to reproduce the issue?

Yes. Current main accepts report-kind Memory Palace items, but the primary card click handler toggles details for every kind while the existing preview path is only on the secondary Open wiki page button.

Is this the best way to solve the issue?

Yes. Reusing the existing wiki preview flow for report-kind primary clicks is the narrow maintainable fix, and the explicit Details button plus non-report primary click behavior remain intact.

Label justifications:

  • P2: This is a normal-priority Control UI navigation bug with a focused Dreaming/Memory Palace fix and limited blast radius.
  • rating: 🦞 diamond lobster: Current PR rating is 🦞 diamond lobster because proof is 🦞 diamond lobster, patch quality is 🦞 diamond lobster, and Small, well-scoped UI fix with focused regression coverage and direct running-UI screenshots; remaining confidence depends on normal CI and maintainer verification.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Contributor proof includes inspected after-fix mobile Control UI screenshots from a local gateway/profile showing preserved synthesis details behavior and report wiki-preview behavior.
  • proof: sufficient: Contributor real behavior proof is sufficient. Contributor proof includes inspected after-fix mobile Control UI screenshots from a local gateway/profile showing preserved synthesis details behavior and report wiki-preview behavior.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Contributor proof includes inspected after-fix mobile Control UI screenshots from a local gateway/profile showing preserved synthesis details behavior and report wiki-preview behavior.

What I checked:

  • Current main behavior: Memory Palace card primary clicks currently call toggleExpandedCard for every item kind, so report cards expand Page details unless the separate Open wiki page button is used. (ui/src/ui/views/dreaming.ts:1183, 229490a48924)
  • Existing preview path: The current UI already has an Open wiki page action that stops propagation and calls openWikiPreview(item.pagePath, props), which the PR reuses for report-card primary clicks. (ui/src/ui/views/dreaming.ts:1256, 229490a48924)
  • Report item contract: WikiMemoryPalaceItem already includes kind: "report", and the controller normalizer accepts report as a valid Memory Palace kind. (ui/src/ui/controllers/dreaming.ts:125, 229490a48924)
  • PR implementation: The PR adds handleMemoryPalaceCardClick so report items call openWikiPreview and all other item kinds continue toggling expandedPalaceCards. (ui/src/ui/views/dreaming.ts:524, 575105c42a7c)
  • PR regression coverage: The PR adds tests for non-report card clicks opening Page details and report-card clicks calling onOpenWikiPage without showing Page details. (ui/src/ui/views/dreaming.test.ts:414, 575105c42a7c)
  • Running UI proof: The supplied after-fix mobile screenshots were inspected: the report screenshot shows reports/open-questions.md opened in the wiki preview modal, and the paired synthesis screenshot shows Page details still expanding for a non-report card.

Likely related people:

  • mbelinky: The Memory Palace/Dreaming wiki surface landed in the squash commit for memory wiki imports and palace work, with @mbelinky present in the merged feature metadata and review trail. (role: feature owner / reviewer; confidence: high; commits: 64693d2e96ab, 305a80ce3294; files: ui/src/ui/views/dreaming.ts, ui/src/ui/controllers/dreaming.ts)
  • steipete: Recent repository history for ui/src/ui/views/dreaming.ts includes Dreaming UI rendering and lint-cleanup changes after the Memory Palace surface was introduced. (role: recent area contributor; confidence: medium; commits: 6f8b9bb5734b, 4f4d10863916; files: ui/src/ui/views/dreaming.ts)
  • Takhoffman: Adjacent Dreaming replay, repair, and wiki-tab gating work touched the same Dreaming UI/controller area shortly after the Memory Palace feature landed. (role: adjacent dreaming/memory contributor; confidence: medium; commits: 847739d82c60; files: ui/src/ui/views/dreaming.ts, ui/src/ui/controllers/dreaming.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against 229490a48924.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

✨ Hatched: 🥚 common Clockwork Signal Puff

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.

Rarity: 🥚 common.
Trait: polishes edge cases.
Image traits: location proof lagoon; accessory little merge flag; palette moonlit blue and soft silver; mood determined; pose pointing at a small proof artifact; shell soft velvet shell; lighting cool dashboard glow; background tiny artifact crates.
Share on X: post this hatch
Copy: My PR egg hatched a 🥚 common Clockwork Signal Puff in ClawSweeper.

What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@rohitjavvadi

Copy link
Copy Markdown
Contributor Author

Added running UI proof for PR head 575105c42a.

Environment:

  • Chromium mobile viewport 390x844
  • Control UI served locally through Vite from this PR branch

Flow verified:

  • Opened the Dreaming Memory Palace surface with one synthesis card and one report card.
  • Clicked the non-report synthesis card syntheses/travel-system.md; it expanded Page details as before.
  • Switched to Reports, clicked the report card reports/weekly-stock.md; it opened the wiki preview instead of expanding details.

Observed result:

{
  "viewport": "390x844 mobile",
  "nonReportDetailsVisible": true,
  "openedPath": "reports/weekly-stock.md",
  "previewTitle": "Weekly stock report",
  "previewBody": "# Weekly stock report\n\nSummary content.",
  "pageDetailsVisibleForReportCard": false,
  "relevantConsole": [],
  "domHasPreview": true
}

This covers the mobile report-card primary click path and the preserved non-report details path.

@rohitjavvadi

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 22, 2026
@rohitjavvadi

Copy link
Copy Markdown
Contributor Author

Added original running-UI visual proof from a real local gateway/profile, not a component fixture.

Setup used for the proof:

  • Temporary local OpenClaw profile with memory-wiki enabled.
  • openclaw wiki ingest created a source page and dashboard reports in the vault.
  • openclaw wiki apply synthesis created a real synthesis page.
  • openclaw wiki apply metadata reports/open-questions.md added report metadata so the report appears in Memory Palace.
  • Control UI connected to the local gateway at 127.0.0.1:18789 and loaded Memory Palace through the normal wiki.palace / wiki.get gateway paths.
  • Mobile viewport: 390x844.

Result:

  • Clicking the synthesis card syntheses/travel-receipt-process.md still expands Page details.
  • Clicking the report card reports/open-questions.md opens the wiki preview modal for Open Questions instead of expanding details.
  • Relevant browser console errors after the successful connected run: none.

Synthesis card keeps details behavior:

Synthesis card opens Page details

Report card opens wiki preview:

Report card opens wiki preview

@rohitjavvadi

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels May 22, 2026

@RomneyDa RomneyDa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@RomneyDa RomneyDa merged commit 2e15830 into openclaw:main May 22, 2026
162 of 175 checks passed
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 24, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 24, 2026
galiniliev pushed a commit to galiniliev/openclaw that referenced this pull request May 25, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
SebTardif pushed a commit to SebTardif/openclaw that referenced this pull request May 26, 2026
jameslcowan pushed a commit to jameslcowan/openclaw that referenced this pull request Jun 2, 2026
SYU8384 pushed a commit to SYU8384/openclaw that referenced this pull request Jun 3, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mobile: Clicking report in list shows Command Overview instead of report content

2 participants