Skip to content

fix(ui): prevent stale copies after text changes - #154259

Merged
vincentkoc merged 6 commits into
mainfrom
fix/generic-copy-payload-lifetime-20260921
Sep 21, 2026
Merged

vincentkoc merged 6 commits into
mainfrom
fix/generic-copy-payload-lifetime-20260921

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 21, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: copying updated text can stay disabled and later copy the previous text when an earlier clipboard request is still pending.

User Impact

User impact: changed text is immediately available to copy, and an old request cannot apply legacy clipboard fallback or copy feedback to its replacement. Native clipboard writes already submitted to the browser cannot be cancelled.

Why This Change Was Made

The copy affordance now owns the lifetime of its exact text payload. Changed text retires the old control; unchanged text preserves focus, pending state, and translated feedback. The five mutable custom copy renderers follow the same boundary. A redundant tool-output key is removed; attachment-load and agent-identity boundaries remain intact. The usage session row has its own small rendering module so the already-oversized overview does not grow; sorting, filtering, formatting, and selection ordering stay with the card.

Related: #153815

Evidence

  • Baseline: 9 intended regression failures and 1 passing unchanged-text case. The copy repair passed 138 tests across 8 focused component/caller files. After the final usage-row repair, all 39 copy and usage cases pass again (2.56 seconds including the runner), including copy-button isolation and row-background selection.
  • UI production and test typechecks, scoped lint/format, i18n verification, and UI build pass. New regression cases add under 0.2 seconds of test execution (2.28 seconds including the focused test runner).
  • Hosted UI CI on the unchanged UI candidate: all 10 new copy-lifetime cases pass, with 0.389 seconds of measured test execution in the shared shard.
  • Independent owner/caller/dependency review and fresh full-candidate autoreview found no actionable P0–P2 issues. Production delta: +134/-100 (net +34) for payload ownership and the explicit stateless row boundary; tests: +223.
  • Initial trusted Testbox proof and post-extraction proof. The latter reran both focused files, scoped lint, UI production/test types, i18n verification, and the UI build successfully.
  • Final guard and ratchet proof: complete task-base ratchet sequence, config-doc/plugin-inventory checks, 39 focused cases, scoped lint, and UI production types pass. Earlier setup attempts stopped on a missing comparison object and an invalid raw-branch comparison against later main; they are not counted as passing proof. Fresh hosted merge CI supplies current-main integration proof.

The first hosted run caught growth in the grandfathered usage overview: 811 → 815 counted lines. The row extraction fixes that violation; its subsequent hosted line-cap gate passes all nine changed source files. The next assertion-safety gate caught a moved legacy type cast: the row now narrows the event target with instanceof Element, and the former owner's grandfathered count decreases from three to two. No allowance or rule was expanded.

Hosted test-stall observability

An earlier head had two undetermined CI failures: the recurring outer 120-second timeout in release-check, and an inner managed-command 30-second timeout in crabbox-staging. Test-only diagnostic observability does not fix those timeouts or establish a common cause. Production release tooling, runner policy, deadlines, retries, assertions, and test-file inventory are unchanged.

The affected release-check case and the file-local staging fixtures use a shared bounded recorder: at most 48 lifecycle records and 96-character fixed labels, plus the last-started child snapshot (not an all-active-process snapshot). It records stages, elapsed times, PID, byte counts, exit/signal state, and pipe closure, never command arguments, environment, output payloads, or paths. Reports occur once on actual failure or original cancellation; staging reports only when its existing scenario/cleanup owner observes failure. Passing tests, expected nonzero exits, and deliberate SIGKILL remain silent. Existing readers, awaits, and cancellation ownership are preserved; observational callbacks and bounded bookkeeping still have a small measurement cost.

The staging recorder covers observed inner 30-second rejections. Setup failures and outer test timeouts can produce no diagnostic, including when an uncancelled scenario later succeeds; this does not add a cancellation owner to close that separate gap. A prior instrumented replay passed but does not explain the hosted failure.

On the diagnostic head, the original release case passed in 10.987 seconds and the original staging callback case passed in 10.939 seconds. The original group 8 → 9 and group 11 → 12 descriptor pairs/order were preserved, with Node 24.19.0 and recorded cache provenance; cache contents are not claimed identical. The latter job instead hit a 30-second command timeout in the FIFO/unsupported-fsync sibling, which was outside the original opt-in. Staging observability now covers that file-local fixture boundary and records fixed FIFO/fsync stage labels. The earlier stalls' root causes remain unknown; a later passing run is not a diagnosis. Fresh exact-head hosted results remain required.

Final diagnostic proof: all 36 cases across the existing command-fixture, release-check, and crabbox-staging files pass (61.19 seconds Vitest; 62.10 seconds including runner), including success silence, failure-only output, buffer/privacy bounds, and existing drain/cancellation coverage. Scoped lint, root-test types, and task-base line-cap/assertion ratchets pass. Independent source review and final full-candidate autoreview are clean. Diagnostic delta: production 0; test support +138/-2 and tests +185/-10. These focused results are not a substitute for fresh exact-head hosted CI.

Rail test setup and final focused proof

The same hosted run caught a bottom-docked rail test setup failure: its raw scrollTop = 0 assignment did not establish that initial end-follow had settled or that reader input had taken over. The test now uses the existing idle/end-readiness checks and real upward wheel input, matching the first test in the file and explicitly handing control to the reader. The exact zero-position poll, later 200-pixel position, rail geometry, and pointer/keyboard preview assertions remain unchanged. This repairs a missing test precondition; the historical writer of the observed offset was not recorded, so it is not evidence of a fixed production scroll defect.

Final focused proof: all 22 command-fixture/staging cases pass with success silence (81.91 seconds Vitest), then all 8 rail E2E cases pass in their original whole-file order (88.58 seconds Vitest; bottom-docked case 5.121 seconds), and all 50 scroll-policy cases pass. The UI build, scoped lint, root-test and UI-E2E types, and formatting pass. Independent exact-byte review and final full-candidate autoreview are clean. This final test-only adjustment adds 14/removes 8 lines; production delta remains unchanged. Fresh hosted CI and exact-head review still govern landing.

Browser host-state observability

On the next hosted head, the release case passed in 12.692 seconds, all staging cases passed, and all rail cases passed. The canonical planner regrouped the tooling files, so these are not original-order replay claims. That run instead stopped at a question-collapse click timeout; the available public diagnostic only reported unavailable renderer state, without distinguishing a rejected read from its diagnostic deadline. Its root cause remains unknown.

The existing test-diagnostic owner now samples cached page/browser flags before reading the renderer, reports completed, rejected, or deadline for that read, and retains fixed first crash/close/browser-disconnect timestamps through page close. Events are observed only since diagnostic registration; absent timestamps do not rule out earlier events, and unregistered pages explicitly report no lifecycle record. Browser listeners detach on page close, repeated installation does not reattach them, and initially closed/disconnected state does not invent an event. This adds no renderer calls, waits, retries, timeout changes, normal-path logs, or public raw errors/URLs/payloads. It is observability, not a question interaction or timeout fix.

Focused diagnostic proof: the unchanged owner fails 14 intended diagnostic assertions with 5 cases passing (1.37 seconds); the repaired owner passes all 19 cases (1.02 seconds), including stalled/late replies, privacy, first-event retention, and listener cleanup. Scoped lint, UI-other/UI-E2E test types, and formatting pass; independent exact-byte review and final full-candidate autoreview are clean. Delta: production 0; test support +49/-1 and tests +137. A first shell-quoting setup attempt ran no tests and is not counted as proof. Fresh first-attempt hosted CI remains the integration and landing gate.

Current landing decision

Exact head a9db5c46238346bf0b0c413c36d52804d617da99 passed fresh first-attempt CI, including all 13 ordinary UI-E2E shards and real-Gateway E2E. The previously failing question case passed in 1.744 seconds, release case in 14.169 seconds, and staging callback/FIFO cases in 13.280/3.339 seconds. The actual hosted merge was c30ef912311c59e2e8945560868124a7a5d35d46, with main parent ac638483c7803d8043990eb040d0385e9196f740; that parent separately includes #154307 and its Node shutdown-policy propagation. This runtime difference and changed cache provenance prevent causal attribution to these diagnostics. Normal protected CI/security gates remain required.

The exact-head ClawSweeper review reports no code or security findings and accepts the payload-lifetime repair. Its historical-cause requirement and matching Rank-up move are explicitly deferred to historical CI stall attribution, not treated as a current landing blocker: the native-admission test-failure policy permits normal gated landing after bounded investigation when the original failure, attempted reproductions, evidence, and uncertainty are recorded. Those records are above. Same-order release replay and subsequent hosted runs did not establish the historical release, staging, or question-click causes; no owning fix is invented, no passing replay is called a cure, and no retry, assertion, timeout, review label, or protected gate is overridden. Further causal work belongs to that named follow-up if new failure evidence makes it actionable.

The screenshots use the real file-preview component in isolated Chromium, with synthetic files and an in-page clipboard transport. Copy the first file, select the second while the first request is pending, then copy the second. Before: the second copy remains disabled; rejecting the old request falls back to the first file. After: the second copy succeeds immediately and rejecting the retired request triggers no fallback. These are source-level browser proofs, not live deployment, OS clipboard, or heap-profile claims.

Before

Before: second file selected but copy remains disabled while the first file copy is pending

After

After: second file copied while the first file copy is still pending

@vincentkoc vincentkoc self-assigned this Sep 21, 2026
@clawsweeper

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

@vincentkoc
vincentkoc marked this pull request as ready for review September 21, 2026 01:39
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Sep 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

Please review the current head 1e7ac0eab2dc4e6b12ca641dfdf7d659ba2469d1. Regression, caller, dependency, build, and isolated browser proof are summarized in the PR body; the before/after images are embedded there.

@clawsweeper

clawsweeper Bot commented Sep 21, 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 P2 Normal backlog priority with limited blast radius. 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 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 21, 2026, 12:05 AM ET / 04:05 UTC (Revision 6).

ClawSweeper review

What this changes

The PR refreshes copy controls when their text changes, extracts usage-row rendering, and adds bounded test-failure diagnostics and a rail-test setup correction.

Merge readiness

⛔ Blocked before merge - 2 items remain

The fix remains necessary on current main and v2026.9.5. No introduced correctness defect was found, but the acknowledged test stalls still lack diagnosed causes and owning fixes.

Priority: P2
Reviewed head: a9db5c46238346bf0b0c413c36d52804d617da99

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The repair is sound and has useful browser evidence; failure diagnosis remains a separate landing requirement.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected Chromium before/after screenshots exercise the real file-preview copy owner and show immediate second-file copying during a pending first request. The synthetic clipboard transport limits this to component behavior; stale-rejection tests supplement it, and no OS clipboard cancellation claim is made.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected Chromium before/after screenshots exercise the real file-preview copy owner and show immediate second-file copying during a pending first request. The synthetic clipboard transport limits this to component behavior; stale-rejection tests supplement it, and no OS clipboard cancellation claim is made.
Evidence reviewed 10 items Pinned introduction and copy ownership: Reviewed the merge-base-to-head delta. Payload keys retire changed controls while the existing connected-control check suppresses obsolete fallback and feedback; all five mutable custom renderers use the same boundary.
Still necessary on main: Fetched main still renders an unkeyed generic copy button. Changing its text while a write is pending preserves the disabled control and its old request.
Latest release comparison: The supplied latest release, v2026.9.5, also contains the unkeyed generic renderer; it does not already provide this fix.
Findings None None.
Security None None.

How this fits together

Control UI copy controls turn displayed text into clipboard requests and visible feedback. The test helpers separately collect child-process and browser facts when validation fails.

flowchart TD
  A[Displayed text] --> B[Copy control lifetime]
  B --> C{Text changed?}
  C -->|Yes| D[Retire old control]
  C -->|No| E[Preserve current control]
  D --> F[Fresh copy control]
  E --> G[Clipboard request and feedback]
  F --> G
Loading

Before merge

  • Resolve merge risk (P1) - The release-check, staging, and question-collapse failures remain explicitly undiagnosed; their owning fixes are not established.
  • Complete next step (P2) - Identify and document the causes and owning fixes for the release-check, staging, and question-collapse stalls before landing; added diagnostics and subsequent passing runs do not resolve that requirement.
Agent review details

Security

None.

PR surface

Source +34, Tests +725, Other 0. Total +759 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 8 134 100 +34
Tests 9 739 14 +725
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 18 874 115 +759

Review metrics

Metric Value Why it matters
Production versus test growth Production net +34 lines; tests and test support net +725 lines Production growth has a stated payload-lifetime and row-extraction purpose; diagnostic support and regression coverage account for most branch growth.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep payload lifetime in the shared copy renderer and resolve the test failures at their existing fixture or browser owner.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep payload lifetime in the shared copy renderer and resolve the test failures at their existing fixture or browser owner.

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

Yes, source establishes the path: start a pending copy, replace the displayed text, then reject the first write. Current main retains the old control; this review did not execute that scenario.

Is this the best way to solve the issue?

Yes. Keying controls by their exact payload reuses the existing retirement guard and preserves unchanged-text state without adding another clipboard owner.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs a bounded, user-visible clipboard race without evidence of an urgent runtime outage.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 Chromium before/after screenshots exercise the real file-preview copy owner and show immediate second-file copying during a pending first request. The synthetic clipboard transport limits this to component behavior; stale-rejection tests supplement it, and no OS clipboard cancellation claim is made.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected Chromium before/after screenshots exercise the real file-preview copy owner and show immediate second-file copying during a pending first request. The synthetic clipboard transport limits this to component behavior; stale-rejection tests supplement it, and no OS clipboard cancellation claim is made.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected Chromium before/after screenshots exercise the real file-preview copy owner and show immediate second-file copying during a pending first request. The synthetic clipboard transport limits this to component behavior; stale-rejection tests supplement it, and no OS clipboard cancellation claim is made.

Evidence

What I checked:

  • Pinned introduction and copy ownership: Reviewed the merge-base-to-head delta. Payload keys retire changed controls while the existing connected-control check suppresses obsolete fallback and feedback; all five mutable custom renderers use the same boundary. (ui/src/components/copy-button.ts:90, a9db5c462383)
  • Still necessary on main: Fetched main still renders an unkeyed generic copy button. Changing its text while a write is pending preserves the disabled control and its old request. (ui/src/components/copy-button.ts:85, eba0b02b49d2)
  • Latest release comparison: The supplied latest release, v2026.9.5, also contains the unkeyed generic renderer; it does not already provide this fix. (ui/src/components/copy-button.ts:85, ec9c1a13db89)
  • Latest revision preserves existing failure ownership: The latest commit changes only browser diagnostic support and its tests. It samples cached host flags, retains first observed lifecycle timestamps, and distinguishes renderer rejection from the existing deadline without adding renderer calls or extending the five-second budget. Production copy files are unchanged from the previous reviewed head. (ui/src/test-helpers/control-ui-e2e-diagnostics.ts:312, a9db5c462383)
  • Inspected browser evidence: Inspected both prepared before/after images embedded in the captured PR body. The real file-preview component changes from a disabled second-file copy to visible successful second-file feedback while the first request remains pending. The declared environment is isolated Chromium with synthetic files and an in-page clipboard transport; this is not OS clipboard proof. Captured context sourceRevision: 39b5864d07e5a74966f03fba124a6496d412434b3c8a50c8f3a1fb17c4913c00. (ui/src/components/file-preview-modal.ts:214, a9db5c462383)
  • Earlier review concern remains substantiated: The current body and maintainer request explicitly retain unknown causes for the release-check, staging, and question-collapse stalls. They describe the added instrumentation as observability, not a timeout fix. This independently supports the prior outstanding diagnosis request; later passing runs do not establish its resolution. (a9db5c462383)

Likely related people:

  • Peter Steinberger: Raw commit efe55d7 adds ui/src/test-helpers/control-ui-e2e-diagnostics.ts:272 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: efe55d71621c; files: ui/src/test-helpers/control-ui-e2e-diagnostics.ts)
  • vincentkoc: 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.

  • Document the causes and owning fixes for the release-check, staging, and question-collapse stalls.

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 (5 earlier review cycles)
  • reviewed 2026-09-21T01:48:35.879Z sha 1e7ac0e :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T02:19:53.021Z sha 8774665 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T02:31:15.686Z sha 8774665 :: needs changes before merge. :: none
  • reviewed 2026-09-21T02:57:16.576Z sha d523160 :: needs changes before merge. :: none
  • reviewed 2026-09-21T03:23:08.663Z sha 826b826 :: blocked before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current head b943c817ce02d315fd4220255c2996d2ba1add26. The connected follow-up extracts the usage session row without changing sorting, formatting, selection ordering, or the copy lifecycle; this fixes the hosted line-cap ratchet without weakening it. Fresh 39-case usage/copy proof, UI production/test types, lint, i18n, build, and independent review pass. The PR body records proof and the prior unrelated, undetermined release-tooling timeout; fresh exact-head CI remains required.

@clawsweeper

clawsweeper Bot commented Sep 21, 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:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current head 8774665159005f0541d422612a02648de99c6aae. The final connected correction replaces the extracted row's legacy type cast with runtime Element narrowing and reduces its former owner's assertion count from three to two. Complete task-base ratchets, 39 copy/usage cases (including button/background selection), scoped lint, UI production types, and independent review pass. No rule or allowance expanded. The PR body records prior build/browser proof and the unrelated recurring release-tooling timeout under separate diagnosis; fresh exact-head CI remains required.

@clawsweeper

clawsweeper Bot commented Sep 21, 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 the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current head d523160135aa45ee02ccc8048c72b541d02e8d63. The UI candidate is unchanged. The isolated final commit adds opt-in, bounded, failure-only test lifecycle diagnostics for the two hosted fixture stalls; it does not change production behavior, deadlines, retries, assertions, or runner policy, and does not claim to fix either timeout. All 36 focused cases, scoped lint, root-test types, task-base ratchets, independent review, and final full-candidate autoreview pass. The body explicitly records the staging outer-timeout coverage gap and observer cost. Fresh exact-head hosted CI and original owning group-pair routing remain required.

@clawsweeper

clawsweeper Bot commented Sep 21, 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:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current head 826b826d1e9af0a8c5deefd1ac51e39604dc9239. The production copy candidate is unchanged. The final test-only commit establishes the rail test's existing end-readiness and real reader-input preconditions while retaining every exact position/geometry/preview assertion. It also extends the unchanged bounded, failure-only recorder across the file-local staging fixture owner, including the newly failing FIFO/fsync sibling. All 8 rail E2E cases in original order, 50 scroll-policy cases, 22 command/staging cases, affected types/lint/format, independent exact-byte review, and final full-candidate autoreview pass. The body records that earlier timeout causes and the historical scroll-offset writer remain unknown, and that setup/outer-timeout reporting gaps remain. No production scroll behavior, timeout, retry, runner policy, cancellation ownership, or assertion was weakened. Fresh exact-head hosted CI remains required.

@clawsweeper

clawsweeper Bot commented Sep 21, 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:

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review the current head a9db5c46238346bf0b0c413c36d52804d617da99. Production copy behavior is unchanged. The final test-only commit closes a diagnostic gap from the latest question-click stall: cached host flags before renderer evaluation, fixed first crash/close/browser-disconnect timestamps since existing diagnostic registration, and an allowlisted completed/rejected/deadline result using the existing five-second budget. No question interaction, timeout, retry, cancellation, runner policy, assertion, or test inventory changed. The unchanged diagnostic owner fails 14 intended assertions; the repair passes all 19 cases, scoped lint, UI-other/UI-E2E types, formatting, independent exact-byte review, and final full-candidate autoreview. Previous exact-head hosted release, staging, and rail cases passed; canonical routing regrouped, so there is no original-order equivalence or historical-root-cause claim. The earlier stalls and question-click cause remain unknown. The PR body records these limits and fresh first-attempt hosted CI remains required.

@clawsweeper

clawsweeper Bot commented Sep 21, 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:

@vincentkoc
vincentkoc merged commit 15ab3ed into main Sep 21, 2026
161 of 162 checks passed
@vincentkoc
vincentkoc deleted the fix/generic-copy-payload-lifetime-20260921 branch September 21, 2026 04:20
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to jb510/openclaw that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (49 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119)
  docs: reserve Team live updates for Night Watch (openclaw#154425)
  test(meeting-bot): control browser retry fixture clocks (openclaw#149174)
  fix(ui): use remote defaults for manual worktree creation (openclaw#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013)
  fix(pr): revalidate head reads and reuse repository locators (openclaw#154212)
  fix(browser): start control when the Gateway has activated the plugin (openclaw#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156)
  improve: speed up streaming text with inline brackets (openclaw#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636)
  ci: use four Windows workers on the 16 class (openclaw#154261)
  feat: verify GitHub credit from trusted OIDC claims (openclaw#153940)
  feat(sessions): support explicit local placement for child sessions (openclaw#153912)
  fix(ui): prevent stale copies after text changes (openclaw#154259)
  perf(gateway): reuse session list candidates across viewers (openclaw#154003)
  perf(codex): bound progressive local catalog waits (openclaw#154362)
  docs: keep update requests owned through acceptance (openclaw#154111)
  perf(state): reduce main-thread coordinator waits (openclaw#154244)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (#154119)
  docs: reserve Team live updates for Night Watch (#154425)
  test(meeting-bot): control browser retry fixture clocks (#149174)
  fix(ui): use remote defaults for manual worktree creation (#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (#154013)
  fix(pr): revalidate head reads and reuse repository locators (#154212)
  fix(browser): start control when the Gateway has activated the plugin (#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156)
  improve: speed up streaming text with inline brackets (#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636)
  ci: use four Windows workers on the 16 class (#154261)
  feat: verify GitHub credit from trusted OIDC claims (#153940)
  feat(sessions): support explicit local placement for child sessions (#153912)
  fix(ui): prevent stale copies after text changes (#154259)
  perf(gateway): reuse session list candidates across viewers (#154003)
  perf(codex): bound progressive local catalog waits (#154362)
  docs: keep update requests owned through acceptance (#154111)
  perf(state): reduce main-thread coordinator waits (#154244)
  ...
vincentkoc added a commit that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (58 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (#154119)
  docs: reserve Team live updates for Night Watch (#154425)
  test(meeting-bot): control browser retry fixture clocks (#149174)
  fix(ui): use remote defaults for manual worktree creation (#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (#154013)
  fix(pr): revalidate head reads and reuse repository locators (#154212)
  fix(browser): start control when the Gateway has activated the plugin (#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (#154156)
  improve: speed up streaming text with inline brackets (#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (#153636)
  ci: use four Windows workers on the 16 class (#154261)
  feat: verify GitHub credit from trusted OIDC claims (#153940)
  feat(sessions): support explicit local placement for child sessions (#153912)
  fix(ui): prevent stale copies after text changes (#154259)
  perf(gateway): reuse session list candidates across viewers (#154003)
  perf(codex): bound progressive local catalog waits (#154362)
  docs: keep update requests owned through acceptance (#154111)
  perf(state): reduce main-thread coordinator waits (#154244)
  ...
vincentkoc added a commit to vyctorbrzezowski/openclaw that referenced this pull request Sep 21, 2026
* commit 'f76d38a4ac5e5f4e6c5a5320436db169e33d5c8a': (44 commits)
  fix(ci): remove duplicate database worker test entry
  fix(voice): keep audio flowing while the Gateway is busy (openclaw#154119)
  docs: reserve Team live updates for Night Watch (openclaw#154425)
  test(meeting-bot): control browser retry fixture clocks (openclaw#149174)
  fix(ui): use remote defaults for manual worktree creation (openclaw#154364)
  fix(proxy): keep WebChat and Codex loopback calls direct (openclaw#154013)
  fix(pr): revalidate head reads and reuse repository locators (openclaw#154212)
  fix(browser): start control when the Gateway has activated the plugin (openclaw#154255)
  improve: publish CI dependencies promptly and warm hosted JavaScript caches (openclaw#154156)
  improve: speed up streaming text with inline brackets (openclaw#154398)
  test: isolate historical Node runner policy from CI
  fix: refresh stale Gateway shutdown budgets during updates and Doctor (openclaw#153636)
  ci: use four Windows workers on the 16 class (openclaw#154261)
  feat: verify GitHub credit from trusted OIDC claims (openclaw#153940)
  feat(sessions): support explicit local placement for child sessions (openclaw#153912)
  fix(ui): prevent stale copies after text changes (openclaw#154259)
  perf(gateway): reuse session list candidates across viewers (openclaw#154003)
  perf(codex): bound progressive local catalog waits (openclaw#154362)
  docs: keep update requests owned through acceptance (openclaw#154111)
  perf(state): reduce main-thread coordinator waits (openclaw#154244)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
* fix(ui): retire stale copy actions when text changes

* refactor(ui): isolate usage session row rendering

* fix(ui): narrow session row event targets safely

* test: record bounded lifecycle diagnostics for stalled fixtures

* test: stabilize rail setup and cover staging failure diagnostics

* test: retain host facts for stalled browser diagnostics
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 maintainer Maintainer-authored PR 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. size: L 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