Skip to content

feat(ui): replace chat timeline with compact left rail - #142227

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
improve/chat-timeline-rail
Sep 8, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
improve/chat-timeline-rail

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Sep 8, 2026 •

Copy link
Copy Markdown
Member

Closes #142207

What Problem This Solves

The Control UI chat's tall right-side line and highlighted dots take too much visual space, distract from reading, and compete with the conversation. A timeline without a defined tail is the wrong model for message navigation. One dot per message cannot scale to hundreds of messages without overlap; the original implementation sampled ten landmarks but kept the tall presentation.

Why This Change Was Made

Move navigation to a vertically centered rail in the left gutter. Every resting mark is exactly 8 × 2px, with 12px between centers and muted color at 40% opacity. Each mouse target stays 44px wide. Marks for all messages currently visible in the transcript illuminate together. An IntersectionObserver updates affected attributes while preserving the marker nodes.

Only pointer hover changes widths: the pointed mark reaches 32px (4× the resting width) in text color, with a symmetric 24/16/12px falloff across three neighbors. Every other mark retains its resting color. Keyboard focus keeps the resting width and uses the existing focus token. The preview begins 12px after the maximum-width mark and shows up to three lines, or “Preview unavailable” when there is no text.

Every projected message keeps its mark. Long rails scroll internally within 45vh, with a hidden scrollbar and a soft 60px fade only at ends with hidden content. The rail follows the visible message anchor while allowing independent exploration.

Clicking a mark scrolls to the message and briefly tints its block using the existing hover surface and inherited radius. There is no message border or ring. The tint fades over 1.2s; reduced motion keeps it static for 1s. The virtualizer owns the flash lifetime and waits for a distant target to mount before highlighting it. New jumps, child animations and leaving the conversation cannot leave stale highlight state.

User Impact

Readers can preview and jump through long conversations without a continuous line or author-dependent stroke widths. Arrow keys, Home/End, Enter/Space, and Escape keep working. Mobile, short panes, and saved widths without enough left gutter hide the rail.

Evidence

  • Exact-head CI: successful run34264506820, commit 7e75b8954059c3931f25d5f5746a72e06dbd8031.

  • Focused rail, rendering and controller tests: 68/68 passed. The existing reply-navigation test covers both motion preferences, flash duration, repeated clicks, child animation events and disconnect cleanup.

  • Canonical bundled mock-Gateway E2E: 2/2 passed, dark and light themes with 240 messages. Covers geometry, minimum 44px hit width, unchanged neighbor colors, hover falloff, visible-message tracking, internal scrolling, distant jumps, both message roles and reduced-motion paint. Tests use OPENCLAW_VITEST_MAX_WORKERS=2.

  • Regression proof: both motion variants failed before the lifetime fix because a child's animation ended the highlight. Both browser themes then reproduced a missing flash on a distant virtualized jump; the target now completes its reveal when its row mounts.

  • node scripts/check-changed.mjs: passed, including types, formatting, export checks and scoped TypeScript/CSS lint. No manifest or lockfile changes.

The inspected overview compares original main with the final rail. Other pairs compare the approved rail before the final hover-width adjustment with this revision using the same 240 synthetic messages, dark theme and viewport: 1440 × 900 desktop or 390 × 844 mobile. Hover targets the same message. Stress contact images combine the transcript midpoint with a rail crop showing both fades and visible-message marks. Flash contacts group user, assistant and reduced-motion states; durations are verified by tests. All captures use the canonical dismissal for the sidebar invitation card. Fixtures and images stay outside the product commit.

StateBeforeAfter
Chat overview: original main → final railBefore: Chat overview: original main → final railAfter: Chat overview: original main → final rail
Rest: identical 8 × 2px marks at 12px centersBefore: Rest: identical 8 × 2px marks at 12px centersAfter: Rest: identical 8 × 2px marks at 12px centers
Hover: 4× maximum width and 12px preview gapBefore: Hover: 4× maximum width and 12px preview gapAfter: Hover: 4× maximum width and 12px preview gap
240 messages: midpoint, both fades and visible marksBefore: 240 messages: midpoint, both fades and visible marksAfter: 240 messages: midpoint, both fades and visible marks
Jump feedback: user, assistant and reduced motionBefore: Jump feedback: user, assistant and reduced motionAfter: Jump feedback: user, assistant and reduced motion
390px mobile: reading width preservedBefore: 390px mobile: reading width preservedAfter: 390px mobile: reading width preserved

Review follow-up: the guide now states the final 32px hover width, the replacement captures omit the dismissed invitation card, and the PR is ready for review. No design changes or skipped review items.

Risk and coverage

The rail renders one lightweight mark per projected message and normalizes text only for the open preview. Coverage includes simultaneous viewport visibility, partial bubbles, stable marker identity, midpoint anchor changes within an unchanged visible cohort, conditional fades, independent rail scrolling, pointer activation at a faded edge, keyboard navigation and history-input isolation.

The existing virtualizer remains the sole jump owner. Pending reveals use its cancellable scroll command and row-mount lifecycle; a single timer clears the tint on completion or disconnect. The focused tests retain stale-command and reader-takeover coverage. The old animation-event cleanup and outline effect are removed.

Checked consumers are the sole rail renderer in chat-thread.ts, the projected IDs passed through chat-message-group.ts and chat-message-bubble.ts, and the virtualizer's gutter and reveal paths. Coverage includes resizing, saved widths, sidebar geometry, history changes, folded work, attachment-only previews and reduced motion.

Proof uses an isolated mock Gateway. Live-Gateway behavior is not claimed. Exact-head hosted CI and the native landing gates are checked before merge.

@vyctorbrzezowski vyctorbrzezowski self-assigned this Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 8, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 2:47 PM ET / 18:47 UTC (Revision 8).

ClawSweeper review

What this changes

Replaces the Control UI’s sampled right-side chat timeline with a compact, scrollable left rail offering per-message previews, keyboard navigation, visible-message indicators, and brief jump highlighting.

Merge readiness

✅ Ready for maintainer review

The prior documentation finding and screenshot follow-up are resolved. No remaining actionable defect was identified; the redesign remains distinct from current main and the open bookmark work.

Priority: P3
Reviewed head: 7e75b8954059c3931f25d5f5746a72e06dbd8031

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent redesign with inspected visual evidence, focused reported browser coverage, and resolved prior feedback.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after overview and resting-mark images demonstrate the changed rail in the Control UI. The supplied body reports production-browser interaction coverage through an isolated mock Gateway for scrolling, distant reveals, saved widths, and motion preferences; live-Gateway behavior and independent reruns are not claimed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before/after overview and resting-mark images demonstrate the changed rail in the Control UI. The supplied body reports production-browser interaction coverage through an isolated mock Gateway for scrolling, distant reveals, saved widths, and motion preferences; live-Gateway behavior and independent reruns are not claimed.
Evidence reviewed 8 items Pinned PR remains open: Live REST inspection confirms this PR remains open and unmerged at the reviewed head, assigned to vyctorbrzezowski. Supplied metadata establishes MEMBER authorship and the protected maintainer label.
Previous finding resolved: The current guide specifies 32px, matching the stylesheet and browser assertion. The previous completed review projection identifies 40px documentation as its sole finding; direct comparison with that older revision was unavailable because a required historical blob could not be read.
Inspected visual proof: Inspected all four prepared images from the media manifest: the before/after overview and resting-mark crops. The overview visibly changes the tall right timeline to a compact left rail, preserves the transcript and composer, and omits the invitation card. The supplied body snapshot, sourceRevision 72b39b68fdc935a08c3f1637fe1e6212b74e8ce62011aa8e5111fcefb97659b6, reports 68 focused tests and two browser cases with 240 synthetic messages; those executions were not independently rerun.
Findings None None.
Security None None.

How this fits together

The Control UI projects loaded conversation messages into a virtualized transcript. The navigation rail previews those destinations and delegates jumps to the existing transcript owner.

flowchart LR
  A[Loaded conversation] --> B[Transcript projection]
  B --> C[Compact navigation rail]
  D[Viewport visibility] --> C
  C --> E[Preview and keyboard selection]
  E --> F[Transcript jump owner]
  F --> G[Visible highlighted message]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +335, Tests +285, Docs +2. Total +622 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 6 551 216 +335
Tests 3 405 120 +285
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 958 336 +622

Review metrics

Metric Value Why it matters
Production versus test growth Production net +335 lines; tests net +285 lines Production growth implements per-message visibility, internal rail scrolling, and owned reveal cleanup; test growth exercises those interactions and existing settings.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #142207
Summary: This PR implements the paired compact-rail request; the original rail and bookmark proposal provide related but distinct context.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Keep the compact rail on the existing transcript projection and jump lifecycle while preserving saved widths, keyboard access, and reduced-motion behavior.

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

Not applicable as a defect reproduction: this is a specified navigation redesign, and current source plus inspected comparisons establish the existing and proposed presentations.

Is this the best way to solve the issue?

Yes. Replacing the existing rail while retaining the transcript’s projection, navigation, and settings owners avoids a competing navigation backend.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9982628f1778.

Labels

Label justifications:

  • P3: This improves desktop conversation navigation and visual ergonomics without addressing a blocked core 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. Sufficient (screenshot): Inspected before/after overview and resting-mark images demonstrate the changed rail in the Control UI. The supplied body reports production-browser interaction coverage through an isolated mock Gateway for scrolling, distant reveals, saved widths, and motion preferences; live-Gateway behavior and independent reruns are not claimed.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before/after overview and resting-mark images demonstrate the changed rail in the Control UI. The supplied body reports production-browser interaction coverage through an isolated mock Gateway for scrolling, distant reveals, saved widths, and motion preferences; live-Gateway behavior and independent reruns are not claimed.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before/after overview and resting-mark images demonstrate the changed rail in the Control UI. The supplied body reports production-browser interaction coverage through an isolated mock Gateway for scrolling, distant reveals, saved widths, and motion preferences; live-Gateway behavior and independent reruns are not claimed.

Evidence

What I checked:

  • Pinned PR remains open: Live REST inspection confirms this PR remains open and unmerged at the reviewed head, assigned to vyctorbrzezowski. Supplied metadata establishes MEMBER authorship and the protected maintainer label. (7e75b8954059)
  • Previous finding resolved: The current guide specifies 32px, matching the stylesheet and browser assertion. The previous completed review projection identifies 40px documentation as its sole finding; direct comparison with that older revision was unavailable because a required historical blob could not be read. Public docs: docs/web/control-ui/chat.md. (docs/web/control-ui/chat.md:54, 7e75b8954059)
  • Inspected visual proof: Inspected all four prepared images from the media manifest: the before/after overview and resting-mark crops. The overview visibly changes the tall right timeline to a compact left rail, preserves the transcript and composer, and omits the invitation card. The supplied body snapshot, sourceRevision 72b39b68fdc935a08c3f1637fe1e6212b74e8ce62011aa8e5111fcefb97659b6, reports 68 focused tests and two browser cases with 240 synthetic messages; those executions were not independently rerun. (7e75b8954059)
  • Existing navigation ownership preserved: The rail consumes projected message IDs and delegates activation to the transcript. Pending message reveals complete through the virtualizer’s update and row-mount lifecycle; disconnect clears the highlight timer. Preview text uses the existing display-text normalization and escaped Lit interpolation. (ui/src/pages/chat/components/chat-transcript-virtualizer-host.ts:581, 7e75b8954059)
  • Current main still uses sampled landmarks: The inspected main source still caps the rail at ten sampled destinations. It does not implement this PR’s per-message compact rail. (ui/src/pages/chat/components/chat-position-rail.ts:14, 9982628f1778)
  • Latest supplied release also retains sampling: The supplied latest-release revision contains MAX_POSITION_MARKERS = 10, so release inspection provides no basis to treat the redesign as already shipped. (ui/src/pages/chat/components/chat-position-rail.ts:14, 1391f7cd2d40)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (7 earlier review cycles)
  • reviewed 2026-09-08T14:22:16.127Z sha 9b566b1 :: blocked before merge. :: none
  • reviewed 2026-09-08T14:31:38.342Z sha 9b566b1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-08T14:43:07.657Z sha 9b566b1 :: blocked before merge. :: none
  • reviewed 2026-09-08T16:31:53.930Z sha 9360687 :: blocked before merge. :: none
  • reviewed 2026-09-08T17:07:26.752Z sha d885018 :: needs changes before merge. :: none
  • reviewed 2026-09-08T17:58:02.987Z sha fd119fc03e16e5981dcf89f9c4b90b110df0a6e3 :: needs changes before merge. :: none
  • reviewed 2026-09-08T18:34:27.677Z sha 7376174 :: needs changes before merge. :: [P3] Document the final 32px hover width

@vyctorbrzezowski
vyctorbrzezowski force-pushed the improve/chat-timeline-rail branch from fd119fc to 7376174 Compare September 8, 2026 18:25
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review September 8, 2026 18:29
@vyctorbrzezowski
vyctorbrzezowski merged commit 1f4517a into main Sep 8, 2026
139 of 140 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the improve/chat-timeline-rail branch September 8, 2026 18:55
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
* feat(ui): replace chat timeline with compact left rail

* fix(ui): align chat rail with visible messages

* fix(ui): tighten chat rail mark spacing

* fix(ui): refine chat rail and message jump feedback

* fix(ui): cap chat rail hover and preserve preview gap

* docs(ui): match the final chat rail hover width
steipete added a commit that referenced this pull request Oct 15, 2026
Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: #145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: #153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: #142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same #142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: #162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: #148070/#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: #125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: #113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.
steipete added a commit that referenced this pull request Oct 15, 2026
Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: #145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: #153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: #142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same #142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: #162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: #148070/#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: #125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: #113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.
steipete added a commit that referenced this pull request Oct 15, 2026
* refactor(ui): consolidate chat owners and remove obsolete adapters

Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: #145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: #153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: #142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same #142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: #162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: #148070/#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: #125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: #113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.

* refactor(ui): consolidate chat lifecycle and internal state paths

Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: #158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  #125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: #158335 added reply persistence
  and #166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: #146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: #171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report #171310 and fixes #171377/#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: c399fb7
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: #123874 flattened the flexible
  #113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 5716bb1 (tests/support excluded).

* test(ui): align talk fixtures with transport contracts

Require detach disposition when append rejection closes the relay. The UI and
Gateway ship together; the prior fallback's omitted field is no longer valid.

Close the Google socket before start settles when testing startup rejection.
Synchronous frame decoding removed the fixture's former artificial decode
microtask; waiting one turn now settles start before the close. Preserve all
error, callback, microphone, socket and timer assertions.

No production change or new best-effort tradeoff. The preceding commit records
the accepted transport assumptions and their provenance.

* refactor(agents): consolidate runner lifecycle plumbing

Share lifecycle hook capture, native policy loops and gated diagnostic content
construction. Combine initial session metadata updates through the existing
writer and reuse the persisted-input notifier. Keep delivery evidence in a
typed WeakMap without mutating or wrapping frozen error objects.

Security checks, public contracts, transcript durability, parallel tool
correlation and ordinary shutdown settlement remain. No schema, configuration,
dependency, protocol or public SDK signature changes. The standalone session
memory backend and its lifecycle machinery are untouched.

Best-effort tradeoffs accepted:
- Reusing the same engine during active disposal no longer has a WeakRef
  tombstone rejection. #168789 cites synthetic #143426/#143592 disposal cases,
  not a human production report. Misuse may fail in the engine normally;
  closing admission and actual resource settlement remain.
- Fresh bounded primitive diagnostics are not redundantly cloned before
  publication (#108304). Listener egress still isolates its payloads.
- Internal delivery-evidence readers receive the attachment-time snapshot,
  not another defensive copy (0ea0807). No human mutation report was found;
  unsupported internal mutation could affect a later reader. Confirmed-send
  suppression and attachment-time copying remain.

Lane y08: 105 net production lines removed (165 added / 270 removed), excluding
tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator
bundling after recent, older and largest-owner audits found no further sound
candidate. No PR or hosted-CI success is claimed.

Proof: production and affected test types, changed-file lint/format, runtime
and madge cycles (zero), lint-suppressions (3/3), and independent P2 review
passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery
(33/33) completed. Support proof was stopped after ten minutes without an
assertion result; Gateway cancellation timed out during startup/imports with
no assertion result, and deletion was not reached. CLI reliability was only
partially exercised in an earlier interrupted selection. These are unresolved
proof gaps, not attributed main failures.

* refactor(agents): remove duplicate runner preparation work

Trust canonical inline model modalities and waiter-owned cleanup. Fold the
sole-caller HTTP setup wrapper and stage warning predicate into their owners,
and remove an unused diagnostic clock option.

This pass removes 32 net production lines; the branch total is 137. Core and
affected test types, lint, format, cycle checks, stage timing and suppression
tests pass. Independent P2 review is clean. Wider focused runtime selections
remain incomplete under host load; coordinator bundling needs broad CI proof.

* refactor: withdraw inconclusive stream cleanup and repair bundle ratchets

Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
…w#173015)

* refactor(ui): consolidate chat owners and remove obsolete adapters

Keep both live rendering routes and the existing DOM, text, persisted shapes,
security boundaries, draft durability, and ordinary session concurrency.
Consolidate effective-tool loading, header registration, transcript refs,
history target capture, and PCM output ownership. Remove unused adapters
after their completed native-control cutovers and redundant internal work.

Best-effort tradeoffs accepted:
- Pending-page/live-update overlap: openclaw#145240 records synthetic request-order
  proof, not a cited human incident. Displayed disposition can briefly lag
  until the next ordinary refresh; durable receipts remain authoritative.
- Synchronous rail self-retirement: openclaw#153245 records a synthetic benchmark,
  not a cited human incident. Focus restoration is best effort in that case.
- Obsolete intersection callbacks: openclaw#142227 records synthetic E2E proof, not
  a cited stale-delivery incident. Target maps ignore retired rows; a late
  callback can request redundant layout.
- Obsolete mutation callbacks: the same openclaw#142227 provenance. Native disconnect
  remains; a late delivery can resample the current scroller.
- Obsolete resize callbacks: openclaw#162617 records synthetic performance traces,
  not a cited stale-delivery incident. Native cleanup remains; a late callback
  can sample current layout.
- Wrong bundled Gateway PR identity: openclaw#148070/openclaw#147952 describe the feature,
  not a wrong-target incident. The producer constructs the exact requested
  target; a contract violation now displays its returned result.
- Cross-tab prefetch election: openclaw#125128 covered a retired five-session idle
  sweep with synthetic performance proof. Two tabs can now redundantly read
  one explicitly hover/focus-intended target; per-tab limits remain.
- Malformed internal sidebar maps: openclaw#113712 introduced feature normalization,
  not a cited incident. Settings validates load/save and all callers use that
  output; impossible malformed typed values are not repaired at every update.

* refactor(ui): consolidate chat lifecycle and internal state paths

Continue the y01 largest-owner, export/caller and duplicate-helper audit.
Delegate composer mounting to the canonical interop boundary while retaining
field equality, keyed renderer identity and foreground picker cleanup. Remove
test-only panel refresh methods and commit counters; exercise the actual view,
polling and committed DOM instead. Trust admitted immutable composer metadata
and the full tool-stream owner contract. Narrow sidebar traversal to its
normalized single column and simplify browser/Gateway realtime decoding.

Both shipping Lit/Solid paths and rendered markup remain unchanged. No config,
protocol, storage, dependency, security-boundary or Phase E backend changes.

Best-effort tradeoffs accepted

- Malformed internal tool-stream hosts: openclaw#158032 introduced shape probes during
  a bookkeeping refactor, not a human incident. Real owners have complete state;
  a broken internal caller now fails rather than silently skipping cleanup.
  openclaw#125197's human steering/order report still justifies the unchanged causal
  reconciliation algorithm; no report ties malformed-host probes to that bug.
- In-place mutation of admitted draft metadata: openclaw#158335 added reply persistence
  and openclaw#166682 moved the annotation copies, without a mutation incident. Actual
  editors replace records/arrays. A future in-place mutator must follow that
  contract or it may alter a pending snapshot. Durable receipts/revisions stay.
- Non-JSON relay events: openclaw#146676 added transport machinery without a human
  cyclic-frame incident. Frames already crossed JSON decoding; an impossible
  internal cycle or BigInt now throws. Activation count/byte bounds remain.
- Older Gateway close-disposition support: openclaw#171377 added a compatibility path,
  but UI/Gateway ship together and the current server advertises the field.
  Unsupported skew now rejects. Accepted-answer durability from the real human
  report openclaw#171310 and fixes openclaw#171377/openclaw#172159 remains intact.
- Blob/typed-array/arbitrary Google message representations: 2a4c20f
  added these alternate decoder branches without a linked human report. The
  browser WebSocket is configured as arraybuffer before listeners. Unsupported
  synthetic representations are ignored; actual strings/ArrayBuffers still
  decode, and removal of the artificial await needs no post-await stale check.
- Extra sidebar columns after normalization: openclaw#123874 flattened the flexible
  openclaw#113712 layout to one tabbed panel. A broken internal producer is no longer
  searched as a multi-column layout; persisted legacy flattening still runs.

The earlier commit records the original eight accepted best-effort scenarios.
Coverage and remaining justified owners are logged in .local/y01-ledger.md for
coordinator bundling. Combined candidate removes 416 net production lines
against 7f7310a (tests/support excluded).

* test(ui): align talk fixtures with transport contracts

Require detach disposition when append rejection closes the relay. The UI and
Gateway ship together; the prior fallback's omitted field is no longer valid.

Close the Google socket before start settles when testing startup rejection.
Synchronous frame decoding removed the fixture's former artificial decode
microtask; waiting one turn now settles start before the close. Preserve all
error, callback, microphone, socket and timer assertions.

No production change or new best-effort tradeoff. The preceding commit records
the accepted transport assumptions and their provenance.

* refactor(agents): consolidate runner lifecycle plumbing

Share lifecycle hook capture, native policy loops and gated diagnostic content
construction. Combine initial session metadata updates through the existing
writer and reuse the persisted-input notifier. Keep delivery evidence in a
typed WeakMap without mutating or wrapping frozen error objects.

Security checks, public contracts, transcript durability, parallel tool
correlation and ordinary shutdown settlement remain. No schema, configuration,
dependency, protocol or public SDK signature changes. The standalone session
memory backend and its lifecycle machinery are untouched.

Best-effort tradeoffs accepted:
- Reusing the same engine during active disposal no longer has a WeakRef
  tombstone rejection. openclaw#168789 cites synthetic openclaw#143426/openclaw#143592 disposal cases,
  not a human production report. Misuse may fail in the engine normally;
  closing admission and actual resource settlement remain.
- Fresh bounded primitive diagnostics are not redundantly cloned before
  publication (openclaw#108304). Listener egress still isolates its payloads.
- Internal delivery-evidence readers receive the attachment-time snapshot,
  not another defensive copy (8c995fb). No human mutation report was found;
  unsupported internal mutation could affect a later reader. Confirmed-send
  suppression and attachment-time copying remain.

Lane y08: 105 net production lines removed (165 added / 270 removed), excluding
tests; tests add 67 net lines. Below-500 branch-only handoff for coordinator
bundling after recent, older and largest-owner audits found no further sound
candidate. No PR or hosted-CI success is claimed.

Proof: production and affected test types, changed-file lint/format, runtime
and madge cycles (zero), lint-suppressions (3/3), and independent P2 review
passed. Maintenance resources (6/6), CLI spawn (40/40), and restart recovery
(33/33) completed. Support proof was stopped after ten minutes without an
assertion result; Gateway cancellation timed out during startup/imports with
no assertion result, and deletion was not reached. CLI reliability was only
partially exercised in an earlier interrupted selection. These are unresolved
proof gaps, not attributed main failures.

* refactor(agents): remove duplicate runner preparation work

Trust canonical inline model modalities and waiter-owned cleanup. Fold the
sole-caller HTTP setup wrapper and stage warning predicate into their owners,
and remove an unused diagnostic clock option.

This pass removes 32 net production lines; the branch total is 137. Core and
affected test types, lint, format, cycle checks, stage timing and suppression
tests pass. Independent P2 review is clean. Wider focused runtime selections
remain incomplete under host load; coordinator bundling needs broad CI proof.

* refactor: withdraw inconclusive stream cleanup and repair bundle ratchets

Retain current main stream-state contracts after the UI failure replay could not establish an exact-main comparison. Shrink the delivery-evidence assertion allowance and keep its frozen/primitive regression intact in a focused unit file.
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 maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. 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.

Improve chat message navigation with a compact left rail

1 participant