Skip to content

fix: allow dashboard child sessions to be pinned - #143719

Closed
jjjhenriksen wants to merge 13 commits into
openclaw:brzezowski/personal-pins-retentionfrom
jjjhenriksen:fix/dashboard-child-global-pins
Closed

jjjhenriksen wants to merge 13 commits into
openclaw:brzezowski/personal-pins-retentionfrom
jjjhenriksen:fix/dashboard-child-global-pins

Conversation

@jjjhenriksen

@jjjhenriksen jjjhenriksen commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Dashboard child sessions could not be pinned from the Control UI, making useful child conversations harder to return to.

User Impact

Users can pin a dashboard child from the sidebar, chat header, or Sessions page. The pin belongs to their personal navigation and survives reload. Committed personal pins protect the session from automatic cleanup through the retention dependency below.

Moving a child into a group records independent placement, which remains after removal from that group. Snooze/Wake keep their existing eligibility for roots, Home-parented sessions, and explicitly promoted sidebar roots; pinning an unpromoted dashboard child does not make it snoozable. Ordinary chat children and subagent runs retain their pin restrictions.

Why This Change Was Made

The integration uses the existing personal sidebar preference owner instead of restoring the global pinned shelf or writing global pins from the UI. Pin eligibility, group placement, and snooze eligibility remain separate decisions, preserving execution lineage.

Depends on #180610 — personal-pin retention, head abdaa76c40d2bd9e7333c80e3538134092be26dc. This PR targets brzezowski/personal-pins-retention, so its diff is reviewed relative to that foundation, which must be merged first. The foundation protects a session while any profile retains a committed personal reference; unsynced local preference changes are outside the server guarantee.

Original contribution by Jacqueline Henriksen (@jjjhenriksen); contributor ancestry is preserved.

Evidence

Published head: 4fb77e988286d8494a09f11e162d5617e8e67c0e; validated tree: 6178667e561b66d674d4d0290cb238663f014751.

The screenshots compare main 4f6666a6594f841fa723952b4c306b5d967aea32 with the published head above, using the same synthetic dashboard session and Example model. They exercise the maintained mocked-Gateway browser harness.

Before — dashboard child menu on main:

Before: dashboard child menu has no Pin session action

After — Pin session is available, with no unintended Snooze action:

After: dashboard child can be pinned while Snooze remains absent

After pinning and reloading — the personal navigation entry remains:

After reload: dashboard child remains pinned in personal navigation

After moving into a group and removing it — the child remains independent of its parent:

After group removal: dashboard child and parent remain separate rows, with personal pin preserved

Risk and coverage

  • Three regressions failed on the preceding integration production tree c6aa7d9904bb9943b92ae85373790cdbff6f80f2: unintended child snooze acceptance, exposed snooze state, and a Snooze menu entry when the parent was archived. The repaired production passed those boundaries.
  • Green coverage totals 41 unique cases: 28 patch/promotion cases, 3 projection cases, 7 menu cases, and 3 browser scenarios. The 28 unchanged backend cases passed on production-identical tree 2e36119; the corrected projection, menu, and browser checks passed on the final tree.
  • One initial projection assertion required explicit undefined properties, while the correct response omitted them. It now asserts absence of snooze state. Its corrected red/green proof passed without another production change.
  • Measured command costs on one secretless AWS c7a.4xlarge, running serially: initial backend batch 54.85 s (30 passed, 1 fixture mismatch), corrected projection 35.41 s (3 passed), menu 7.00 s (7 passed), browser 39.76 s (3 passed). Peak RSS was 4.17 GiB. The harness built temporary Vite UI bundles; no full OpenClaw build, tsgo, full CI, or general suites ran.
  • Nine previously passing retention-dependency tests and the unchanged English-baseline proof were reused. Browser checks prove personal pin/reload and group move/remove behavior with a mocked Gateway; they do not constitute live Gateway restart/persistence or a new concurrency proof. The contributor's older real-Gateway evidence applies to the original head, not this integration.

@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T05:25:37.890410Z 8baafea PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added triage: dirty-candidate Candidate: broad unrelated surfaces; may need splitting or cleanup. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: S and removed triage: dirty-candidate Candidate: broad unrelated surfaces; may need splitting or cleanup. triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Sep 10, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Sep 10, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8baafeaeee

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread ui/src/lib/sessions/session-key.ts Resolved
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 10, 2026
@clawsweeper

clawsweeper Bot commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR enables personal shortcuts for nested dashboard sessions and expands shared-pin eligibility while preserving separate snooze and group-placement rules.

Example: Project dashboard is a dashboard child of Project dashboard parent.

  • Before: Its menu has no Pin session action.
  • After: Pin session adds a personal rail shortcut that remains after browser reload without changing execution lineage.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused integration has no definite correctness finding, but current persistence proof and latest-stable upgrade evidence preserving shared and personal pin state are incomplete, and the shared-pin product scope remains unsettled.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Useful nested dashboard conversations cannot be added directly to personal navigation without first changing their sidebar placement.
Reason: Personal shortcuts have clear value, but the additional reinterpretation of existing shared child pins changes intentional owner-defined behavior.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open: it contains useful, distinct work with active maintainer involvement, but broadens an intentional shared-pin policy that still needs an explicit owner decision.

Priority: P2
Reviewed head: 4fb77e988286d8494a09f11e162d5617e8e67c0e
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should this personal-navigation feature also reactivate existing shared dashboard-child pins and restore their maintenance protection?
  • Recommendation: Narrow to personal shortcuts: Keep the personal-navigation eligibility change and its retention foundation while preserving the existing shared-pin policy.
  • Why: The current integration is supported by maintainer comments, but those comments do not explicitly accept this durable-state change to the intentional policy established in the earlier merged pin-policy PRs.

Before merge

  • Add real behavior proof - Inspected screenshots prove the current browser affordance and personal rail result with a mocked Gateway; the older real-Gateway trace exercises shared pins on an earlier head, leaving the current personal-preference persistence and retention path unproven. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Resolve merge risk - Maintainers must land fix(sessions): preserve personally pinned sessions during automatic cleanup #180610 before this integration; its promised personal-pin cleanup protection currently depends on that draft foundation.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Low-value test ui/src/components/app-sidebar-session-navigation-logic.test.ts: The added saved-pin reconciliation case exercises an unchanged owner with a dashboard-shaped fixture; the new browser pin-and-reload scenario already covers the observable result.
  • Missing end-to-end proof: Provide a current-integration run through the real Gateway showing personal-pin save, reload, cold restart, and cleanup retention, with sensitive values redacted.
Agent review details

How this fits together

Control UI session menus consume Gateway session metadata and update personal navigation preferences; Gateway pin policy also controls shared-pin mutation, projection, ordering, filtering, and maintenance protection.

flowchart LR
  A[Gateway session metadata] --> B[Session eligibility]
  B --> C[Control UI menus]
  C --> D[Personal navigation preferences]
  D --> E[Personal rail shortcuts]
  B --> F[Shared pin projection]
  F --> G[Session maintenance]
Loading

Technical review

Best possible solution:

Enable dashboard-child shortcuts through the existing personal navigation owner, preserve separate snooze and placement rules, and explicitly settle whether shared child pins should also regain eligibility.

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

Current-main source deterministically excludes unpromoted spawned or nested dashboard children, and the inspected before screenshot shows the missing Pin action; no target code was executed during this review.

Is this the best way to solve the issue?

The personal-navigation integration reuses existing owners and correctly separates snooze and group placement, but its backend shared-pin expansion is broader than needed for personal shortcuts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 30103ebc0ebf.

Merge-risk options

Maintainer options:

  1. Land the retention foundation first (recommended)
    Maintainers complete and land the personal-pin retention dependency before landing this integration.
  2. Pause the integration
    Keep this PR pending while the draft foundation's retention contract is settled.

Provenance checked

  • Shared pin eligibility and retention changes intended behavior with a stated reason (e3c0531: Prevent spawned children from appearing as global pinned cards and stop stale child timestamps from protecting maintenance entries.)
  • Own-Home exception changes intended behavior with a stated reason (ba552df: Ordinary conversations linked to their own Home are roots; genuine children remained intentionally excluded.)
  • Independent group placement keeps the original intent (d0b4640: Group moves must preserve independence even when an archived parent temporarily hides nesting.)
  • Snooze eligibility keeps the original intent (d63df96: Snooze applies to eligible root conversations and must not broaden merely because dashboard children become pinnable.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +62, Tests +500, Docs +24, Config 0. Total +586 across 38 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 16 104 42 +62
Tests 13 535 35 +500
Docs 7 43 19 +24
Config 2 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 38 682 96 +586

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded session-organization improvement with existing promotion-based alternatives.
  • merge-risk: 🚨 compatibility: Existing shared dashboard-child pinnedAt values become eligible for projection, ordering, and maintenance protection under the broadened policy.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-10T17:27:25.366Z sha 632f256 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-10T17:45:00.024Z sha e7a84d0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T22:15:36.162Z sha c25b4b8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-11T22:22:48.576Z sha c25b4b8 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-12T00:41:51.990Z sha 55b38a4 :: blocked before merge. :: [P2] [P2] Restore the runtime harness environment after the test
  • reviewed 2026-09-12T02:29:26.219Z sha b64689c :: blocked before merge. :: none
  • reviewed 2026-09-23T15:52:15.468Z sha b64689c :: blocked before merge. :: none
  • reviewed 2026-10-04T17:44:13.139Z sha b64689c :: blocked before merge. :: none

Reviewed October 22, 2026, 2:10 PM ET / 18:10 UTC (Revision 12).

@jjjhenriksen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 10, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 12, 2026
@clawsweeper clawsweeper Bot added 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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 12, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 12, 2026
@openclaw-barnacle

Copy link
Copy Markdown

This assigned pull request has been automatically marked as stale after being open for 27 days.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Oct 8, 2026

@vyctorbrzezowski vyctorbrzezowski 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.

Reviewed the dashboard-child pin eligibility policy, Gateway pin updates and projections, maintenance protection, shared menu actions, and sidebar promotion with agent and archive filtering. The current changes address the earlier shelf-promotion and sidebar-documentation findings. No actionable issue was found in the reviewed diff.

Automated code review complete. No further changes are requested from the author at this stage. Final product and design review will be handled by the responsible maintainer before the PR is considered for merge.

@vyctorbrzezowski
vyctorbrzezowski changed the base branch from main to brzezowski/personal-pins-retention October 22, 2026 17:08
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. and removed 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. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 22, 2026
@vyctorbrzezowski
vyctorbrzezowski deleted the branch openclaw:brzezowski/personal-pins-retention October 27, 2026 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L stale Marked as stale due to inactivity status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: dirty-candidate Candidate: broad unrelated surfaces; may need splitting or cleanup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants