Skip to content

fix: show delegated task PRs in session previews - #176535

Merged
roboclaw-bot merged 25 commits into
mainfrom
openclaw/quick-krill
Oct 19, 2026
Merged

roboclaw-bot merged 25 commits into
mainfrom
openclaw/quick-krill

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the parent sidebar and session hovercard omitting PRs published by delegated child sessions.

User Impact

  • Show a task PR count before hover, including sessions without a worktree.
  • Show up to 20 recorded publications from accessible descendants, with branch attribution and live status when available.
  • Keep known links across checkout changes and Gateway restarts; preserve the parent branch's own publication controls.

Why This Change Was Made

Project existing publication receipts through indexed session lineage instead of scanning conversations or adding another source of truth. A bounded, viewer-scoped subscription serves receipt-only sidebar rows; only active views fetch Git/GitHub metadata. Receipt commits and lineage changes refresh the existing owner. No schema migration, config option, or transcript backfill is needed.

Branch publication evidence remains separate from task presentation. Full-set counts stay correct even when the 20-item preview is truncated. Receipt-only updates preserve known branch facts and enriched task status without reviving an authoritatively cleared badge or polling GitHub. The existing prepared-read owner handles branch-fact retention; no new state owner is introduced.

Evidence

  • Real Gateway/Chromium regression reproduced the missing cold parent badge on the base. The fixed flow shows three persisted descendant PRs while leaving the parent's Create PR action independent. Passive hydration makes zero GitHub calls; active metadata survives an isolated Gateway restart.
  • Real socket proof covers two viewer scopes, personal/shared visibility, private-descendant removal, and revocation during a held read. Both tests pass again with LIVE_GITHUB=1 on the final integrated product tree.
  • Feature verification includes 168 affected UI/store/sidebar/locale/GitHub-settings tests and 44 i18n tooling tests. Core/UI types, i18n verification, lint, formatting, and independent P0–P2 review passed. CI repairs preserve catalog-only badges, canonical record coercion, and distinct overflow counts without broadening passive read admission.
  • Performance: settings-only GitHub and skill-editor English stay at their cold consumers; full task-row construction stays in the hovercard. Cold-import regressions fail before and pass after the splits; shared keys, identities, copy, and foreign overrides are preserved. The ineffective renderer-import experiment was reverted. Final strict comparison against main13969119: startup 337,951 / 339,379 B, chat 1,489,840 / 1,490,000 B (1,768 B below base), New Session 1,049,623 / 1,050,000 B, all gzip. No budgets or baselines were raised.
  • Selected-singleton CI planner repair preserves the existing two-worker ceiling and all capacity/time budgets; deterministic regression fails before the fix. All 183 planner/capacity tests and 115 affected consumer tests pass, retaining exact group metadata, runner, timing, and price assertions. The timing mock preserves real exports through importOriginal.
  • Concurrent-main integration repairs: retained the canonical root-help mock fix; completed the sidebar memo import migration; updated the native parent-retention test to the canonical 5,000 ms retry; included the conditional revision in exact page-query fixtures; aligned model-help assertions with current English. Each failure was reproduced before repair. Relevant checks pass: 19 attention/projection tests, 21 native parent/custody tests, all four session-filter browser cases, and the full model-help scenario across light/dark and narrow layout. Required type/lint/format checks and independent reviews pass; no production timing/permission contract was relaxed.
  • Historical local limitation: backend integration recorded 145 passed, 1 existing platform skip, 2 investigated baseline work-count failures. Unchanged cases in control-ui-session-prs-branch.test.ts observed 3 and 30 reads rather than 0 on both base ff2580a and candidate, with correct returned PR facts. No assertion or skip was weakened. Prior failed CI runs are not claimed green; current exact-head CI remains the landing gate.
  • Final conflict resolution retains canonical main session-query assertions; all 5 query/model-help browser cases, 297 planner/capacity/consumer tests, e2e/script types, formatting, and both LIVE_GITHUB tests pass. Qualified-capacity timing mock also uses importOriginal; the exact mock-export ratchet, 182 planner/capacity tests, script types/lint/format and independent review pass. Production code is unchanged from the preceding live/bundle proof. Exact-head CI 39195549434 passed at 0c335cb. Landed as ecb279c.

Before

Before: delegated PRs missing from the parent preview

After

After: three child PRs with live status in the parent preview

Full visual proof

Worked on by

Work sessions

roboclaw-bot and others added 2 commits October 18, 2026 21:54
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 6b88949a-ce45-4652-8ba8-d73b411d751f
@clawsweeper

clawsweeper Bot commented Oct 18, 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.

@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Before

The parent preview has no delegated PRs.

Before: delegated PRs missing from the parent preview

After

The same isolated Control UI shows all three recorded child PRs, with real GitHub status and the parent Create PR action preserved. The complete live test also passes after reopening the database and restarting the Gateway.

After: three child PRs with live status in the parent preview

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XL labels Oct 18, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 18, 2026 22:06
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 18, 2026 22:10
@roboclaw-bot
roboclaw-bot disabled auto-merge October 18, 2026 22:12
@blacksmith-sh

This comment has been minimized.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 18, 2026
@clawsweeper

clawsweeper Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR includes accessible descendant sessions’ recorded PR publications in parent sidebar counts and hovercards.

Example: Recovery improvements delegates work that publishes openclaw/openclaw PRs 176407, 176403, and 176410.

  • Before: The parent hovercard shows its unpublished coordination branch without the delegated PRs.
  • After: The hovercard shows all three delegated PRs and preserves the parent branch’s Create PR action.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful and supported by shipped-entry-point evidence, with prior findings repaired; validation remains incomplete because the failed performance gate cannot yet be attributed.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected Control UI before/after captures show three delegated PRs and preserved parent publication controls; the supplied reviewed-head Gateway runs cover live GitHub metadata, restart, zero-request passive hydration, personal-receipt isolation, descendant privacy withdrawal, and revocation during a held read.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Parent session previews omit PRs published by delegated child sessions.
Reason: Maintainer authorship establishes direction, and recorded task results provide clear value while preserving existing publication and privacy contracts.

Merge readiness

✅ Ready for maintainer review

This PR adds useful, maintainer-directed task PR previews. The prior findings are fixed and no remaining introduced defect was identified; the failed current-head performance gate still needs diagnosis before landing.

Priority: P2
Reviewed head: 5e4572c7a610e547b7140973add42ef65efe94aa

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Gateway combines authorized session lineage, existing publication receipts, and optional GitHub metadata into snapshots consumed by the Control UI’s shared PR store.

flowchart LR
  A[Session lineage] --> C[Authorized PR reader]
  B[Publication receipts] --> C
  D[GitHub metadata] --> C
  C --> E[Existing subscription owner]
  E --> F[Shared UI PR store]
  F --> G[Sidebar and hovercard]
Loading

Technical review

Best possible solution:

Keep the receipt projection in the existing PR owners, preserve branch publication controls, and land after the current-head performance gate is resolved.

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

Current main selects working-branch PRs without projecting descendant receipts, matching the supplied before capture; the reported base/head Gateway regression and inspected after capture demonstrate the intended difference.

Is this the best way to solve the issue?

The approach fits existing ownership: publication receipts remain authoritative, lineage controls membership, and task presentation stays separate from branch publication evidence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3c0d1f307309.

Provenance checked

  • Branch-only PR discovery keeps the original intent (6e505f7: Remove unrelated PR banners derived from assistant mentions while retaining working-branch previews and recorded publication results.)
  • Passive sidebar observation keeps the original intent (af4a236: Avoid Git and GitHub polling for idle sidebar rows.)
  • Reader-bound PR snapshots keeps the original intent (6b0b111: Prevent stale workspace results and retired reader grants from reaching another session or recipient.)
  • Shared PR presentation keeps the original intent (6508e01: Show all supplied PRs consistently, with active work first and missing metadata left absent.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit fd93662 adds src/gateway/control-ui-session-pr-read.ts:161 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fd93662b9552; files: src/gateway/control-ui-session-pr-read.ts)
  • Shakker: Raw commit 6b0b111 adds src/gateway/control-ui-session-pr-read.ts:89 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 6b0b11199466; files: src/gateway/control-ui-session-pr-read.ts)
  • RoboClaw: Raw commit 6508e01 adds ui/src/lib/session-pull-request-presentation.ts:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 6508e01b27c6; files: ui/src/lib/session-pull-request-presentation.ts)

PR surface

Source +1017, Tests +1639, Docs 0, Other 0. Total +2656 across 39 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 22 1280 263 +1017
Tests 14 1661 22 +1639
Docs 2 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 39 2944 288 +2656

Review metrics

Metric Value Why it matters
Production versus tests and support Production +1,280/-263; tests and support +1,661/-22. Growth implements receipt queries, audience-scoped subscriptions, shared metadata, and presentation; tests cover distinct counting, retention, lifecycle, browser, restart, and authorization failures.
Subscription protocol addition One optional passiveSessionKeys parameter within the existing 200-key union bound. Cold sidebar rows can hydrate recorded publications without enabling Git or GitHub polling.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: Improves discovery of delegated task results within session previews without blocking the underlying work or publication workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • 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 (2 earlier review cycles)
  • reviewed 2026-10-18T22:22:49.977Z sha a874f28 :: needs real behavior proof before merge. :: [P2] Preserve branch facts when hydrating receipt-only snapshots | [P2] Revalidate subscriptions using their requested watch keys | [P2] Narrow optional task snapshots before mapping their PRs | [P2] Keep the worker-test inventory in canonical sorted order | [P2] Update affected sidebar and subscription test consumers
  • reviewed 2026-10-19T00:08:25.710Z sha 4e84d58 :: needs changes before merge. :: [P2] Remove or justify the extracted parser's type assertion | [P3] Exclude already-visible branch PRs from the overflow count

Reviewed October 18, 2026, 8:23 PM ET / October 19, 2026, 00:23 UTC (Revision 3).

roboclaw-bot and others added 2 commits October 18, 2026 23:51
Preserve passive receipt retention and current-main prepared reads; complete the reactive host accessor migration.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the clawsweeper:intake:bug Preliminary submission classification; full source review pending. label Oct 19, 2026
roboclaw-bot and others added 4 commits October 19, 2026 02:56
Retain canonical main query assertions; integrated planner, browser, type, boot-budget, and real Gateway checks pass.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit ecb279c into main Oct 19, 2026
158 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/quick-krill branch October 19, 2026 04:00
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 19, 2026
* fix: show delegated task PRs in session previews

Co-authored-by: steipete <[email protected]>

* fix: show delegated task PRs in session previews

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 6b88949a-ce45-4652-8ba8-d73b411d751f

* fix: preserve PR subscription aliases and shared branch facts

Co-authored-by: steipete <[email protected]>

* fix: retain task PR previews across passive subscriptions

Co-authored-by: steipete <[email protected]>

* fix: preserve catalog PR badges and accurate overflow counts

Co-authored-by: steipete <[email protected]>

* perf: load session preview content only when opened

Co-authored-by: steipete <[email protected]>

* perf: keep GitHub settings and hovercard rows off boot path

Move settings-only English to its cold consumers, preserve catalog composition, and count sidebar PR URLs without constructing full preview rows. Revert the ineffective renderer-import experiment.

Co-authored-by: steipete <[email protected]>

* test: preserve real subcli exports in root help mock

Remove the obsolete closed-mock baseline entry after preserving real exports; keep the command visibility fixture overrides.

Co-authored-by: steipete <[email protected]>

* perf: keep skill editor copy out of session boot

Load only session and pin-reader copy with the shared composer, preserving the full Skills catalog and shared translation subtrees.

Co-authored-by: steipete <[email protected]>

* fix(ci): preserve worker limits for selected singleton jobs

Reuse the reviewed selected-plan repair: normalize concurrency after packing without increasing workers or weakening capacity qualifications. Keep fixed-inventory regression coverage.

Co-authored-by: steipete <[email protected]>

* test(ci): account for selected singleton worker policy

Co-authored-by: steipete <[email protected]>

* fix(ui): import attention memo from its cache owner

The sidebar cache extraction left this runtime consumer at the old module, breaking UI builds. Four existing attention tests and UI typechecking fail before the import repair; all 19 attention/projection tests and UI typechecking pass after it.

Co-authored-by: steipete <[email protected]>

* build(ui): refresh sidebar cache boot inventory

Co-authored-by: steipete <[email protected]>

* test(ci): preserve real timing module exports

Co-authored-by: steipete <[email protected]>

* test(codex): use canonical completion retry delay

Co-authored-by: steipete <[email protected]>

* test(ui): include conditional revision in session queries

Co-authored-by: steipete <[email protected]>

* test(ui): align default-model help assertions

Co-authored-by: steipete <[email protected]>

* test(ci): preserve qualified-capacity timing exports

Co-authored-by: steipete <[email protected]>

---------

Co-authored-by: steipete <[email protected]>
steipete added a commit that referenced this pull request Oct 19, 2026
Account for the real-Gateway task PR suite added by #176535 in the independent expected inventory and serial scheduling assertion. Keep complete-set, shard-union, uniqueness and worker-cap checks intact.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Account for the real-Gateway task PR suite added by openclaw#176535 in the independent expected inventory and serial scheduling assertion. Keep complete-set, shard-union, uniqueness and worker-cap checks intact.
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 docs Improvements or additions to documentation gateway Gateway runtime 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. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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.

1 participant