Skip to content

improve: simplify session hovercard attribution - #134636

Merged
Patrick-Erichsen merged 3 commits into
mainfrom
codex/session-hovercard-attribution
Sep 1, 2026
Merged

Patrick-Erichsen merged 3 commits into
mainfrom
codex/session-hovercard-attribution

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The session hovercard repeated update times, separated attribution from the title, overfilled the card with repository/checklist details, and could disappear while the pointer crossed from the sidebar row into the portaled card.

Why This Change Was Made

The hovercard now keeps one compact age in the header, places attribution directly below the title, and renders multiple participants as an overlapping facepile with the primary author plus an “& N others” summary.

The detail area has no horizontal section dividers. It shows the workspace and only the current-or-next plan step with a completed/total count. Terminal sessions hide stale unfinished steps. Repository details are reduced to the first gateway-ordered PR title plus additions/deletions, with at most one visible PR and a + N more summary. Author, branch, changed-file count, and progress-update time are omitted.

Markdown is isolated in an Agent Notepad section. Progress bars are pinned above the note with a visible/accessibility label; the progress_card tool description and public docs now teach the same labeled-first format. The shared portaled-hovercard controller gives every genuine trigger departure enough time to cross the gap, while card entry still cancels closure.

The UI consumes existing creator, participant, PR, and progress-card data. No protocol, persistence, configuration, or SQLite surface changes.

User Impact

Session hovercards are shorter and easier to scan, use compact ages such as 48m and 3d, expose the most relevant work without duplicating the full checklist, and remain interactive when the pointer moves onto links inside the card.

Evidence

Before After
Session hovercard before Session hovercard after

Exact-head mocked-Gateway proof covers the compact layout, one-PR overflow, title ellipsis/accessibility, plan-only/Markdown-only/combined states, sanitized and labeled progress, real pointer bridging, and clicking the PR row.

  • session-progress-hovercard.e2e.test.ts: 8/8 passed
  • focused hovercard/progress component tests: 64/64 passed, including terminal-state suppression
  • progress-card-tool.test.ts: 7/7 passed
  • docs MDX/link checks passed
  • pnpm ui:build passed
  • structured autoreview: clean at P1; independent Standards/Spec findings addressed before push

Judged LOC across the PR: production +482/-403 (net +79); tests +298/-235 (net +63); docs net 0. Production growth provides the attribution/heads-up presentation, sanitized progress promotion with accessible labeling, and the shared portal-interaction repair.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed September 1, 2026, 12:39 AM ET / 04:39 UTC.

ClawSweeper review

What this changes

This PR condenses Control UI session hovercards, adds compact attribution and an Agent Notepad, and makes portaled hovercards stay open briefly while the pointer crosses to the card.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: the previous P1 remains on the exact head. The new compact hovercard can show a running spinner after its session has finished, failed, timed out, or been killed.

Priority: P2
Reviewed head: 26f0a364d8eba2d1e7b15b0360714d87717ef477

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The UI direction and focused coverage are useful, but the unresolved lifecycle-state regression blocks merge readiness.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository State identifies the author as a MEMBER, so the external-contributor proof gate does not apply; the supplied screenshots and mocked-Gateway test claims do not cover the remaining terminal-outcome defect.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository State identifies the author as a MEMBER, so the external-contributor proof gate does not apply; the supplied screenshots and mocked-Gateway test claims do not cover the remaining terminal-outcome defect.
Evidence reviewed 6 items Introduced terminal-state bypass: The introduced compact heads-up derives display solely from the progress-card step and renders a spinner whenever that step is in progress; it receives no session lifecycle status.
Lifecycle facts are available: The hovercard row contract includes status, startedAt, and endedAt, and the runtime retains those facts when it renders the hovercard.
Existing canonical terminal presentation: The full progress renderer already maps an in-progress step plus done/failed/killed/timeout lifecycle status to terminal presentation instead of a live spinner.
Findings 1 actionable finding [P1] Preserve terminal outcome in the compact heads-up
Security None None.

How this fits together

Gateway-backed session rows feed the Control UI hovercard with session identity, lifecycle state, pull-request facts, and progress-card content. The hovercard turns those facts into a compact interactive summary for sidebar and session-link users.

flowchart LR
A[Gateway session row] --> B[Hovercard runtime]
C[Progress card] --> B
B --> D[Compact progress summary]
D --> E[Terminal state decision]
E --> F[Hovercard status icon]
B --> G[Attribution and links]
Loading

Before merge

  • Preserve terminal outcome in the compact heads-up (P1) - renderProgressHeadsUp receives only the saved card, so an in_progress step always produces a spinner even when the row already reports done, failed, timeout, or killed. Pass the lifecycle outcome through the compact projection (with the existing run-window guard) and cover terminal rows; otherwise finished work is presented as live.
  • Resolve merge risk (P1) - Merging would misrepresent completed or failed agent work as still running whenever its persisted plan still has an in-progress step.
  • Complete next step (P2) - A narrow mechanical repair can reuse the existing terminal-outcome presentation invariant and add focused regression coverage.

Findings

  • [P1] Preserve terminal outcome in the compact heads-up — ui/src/components/session-hovercard.ts:334-355
Agent review details

Security

None.

PR surface

Source +72, Tests +46, Docs 0. Total +118 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 8 470 398 +72
Tests 5 281 235 +46
Docs 1 4 4 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 14 755 637 +118

Review metrics

Metric Value Why it matters
Production versus test delta production +470/-398 (net +72); tests +281/-235 (net +46); docs +4/-4 The UI redesign has meaningful production growth, so the compact projection must retain the existing terminal-state invariant.

Merge-risk options

Maintainer options:

  1. Preserve terminal progress state (recommended)
    Carry the row lifecycle outcome into the compact heads-up and add done, failed, timeout, and killed regression cases before merge.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Preserve terminal session outcomes in the compact hovercard heads-up and add focused terminal-row regression coverage.

Technical review

Best possible solution:

Pass the canonical terminal outcome into the compact heads-up (or reuse the existing progress projection), preserving its run-window guard and covering every terminal outcome.

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

Yes, from source: render an in-progress progress-card step with a row status of done, failed, timeout, or killed; the compact path renders an active spinner rather than terminal presentation.

Is this the best way to solve the issue?

No. The compact path bypasses the existing lifecycle-aware progress renderer; it should carry the canonical terminal decision into the new projection rather than infer activity from the saved step alone.

Full review comments:

  • [P1] Preserve terminal outcome in the compact heads-up — ui/src/components/session-hovercard.ts:334-355
    renderProgressHeadsUp receives only the saved card, so an in_progress step always produces a spinner even when the row already reports done, failed, timeout, or killed. Pass the lifecycle outcome through the compact projection (with the existing run-window guard) and cover terminal rows; otherwise finished work is presented as live.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.99

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 84648e8c32b6.

Labels

Label justifications:

  • P2: The defect gives users an inaccurate session-progress status but does not prevent session execution or delivery.
  • merge-risk: 🚨 session-state: The new session-state projection can display a terminal run as active.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Repository State identifies the author as a MEMBER, so the external-contributor proof gate does not apply; the supplied screenshots and mocked-Gateway test claims do not cover the remaining terminal-outcome defect.

Evidence

Acceptance criteria:

  • [P1] pnpm test ui/src/components/session-hovercard.test.ts.
  • [P1] pnpm test ui/src/components/session-progress-card.test.ts.
  • [P1] pnpm ui:build.

What I checked:

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vyctor H. Brzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Pass terminal row state into the compact heads-up and add focused done, failed, timeout, and killed cases.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-01T01:56:57.529Z sha 267bc58 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T03:18:37.578Z sha 26f0a36 :: found issues before merge. :: [P1] Preserve terminal run state in the compact heads-up
  • reviewed 2026-09-01T03:34:31.021Z sha 26f0a36 :: found issues before merge. :: [P1] Preserve terminal state in the compact heads-up
  • reviewed 2026-09-01T04:26:31.031Z sha dd311cd4386cf51766442d0f4c71b252100c56e3 :: found issues before merge. :: [P1] Preserve terminal outcome in the compact heads-up

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling size: XL and removed size: L labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 1, 2026
@Patrick-Erichsen
Patrick-Erichsen force-pushed the codex/session-hovercard-attribution branch from dd311cd to 26f0a36 Compare September 1, 2026 04:31
@Patrick-Erichsen
Patrick-Erichsen merged commit 6e5dabe into main Sep 1, 2026
272 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the codex/session-hovercard-attribution branch September 1, 2026 04:56
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* improve: simplify session hovercard attribution

* improve(ui): streamline session hovercard details

* fix(ui): hide stale hovercard plan after terminal runs
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 maintainer Maintainer-authored PR merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant