Skip to content

fix: make generated chat replies open the correct source - #154882

Open
roboclaw-bot wants to merge 4 commits into
mainfrom
roboclaw/chat-reply-source-20260921
Open

roboclaw-bot wants to merge 4 commits into
mainfrom
roboclaw/chat-reply-source-20260921

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: generated chat replies can point at a run ID instead of the saved source message, producing an unavailable source link; temporary source lookup failures can also be misreported as missing messages.

User Impact

New replies use the exact committed source identity and originals remain navigable through main’s Replying to line. Selecting a known author’s name retries a temporarily failed source lookup; missing and inaccessible sources share a privacy-preserving notice, while authorized oversized sources report the display limit. No configuration or migration is required.

Why This Change Was Made

The webchat adapter translates only exact current/originating run aliases through the committed user-turn receipt, with source visibility and session-binding checks. Live delivery, transcript persistence, commands, and adopted completions use the same identity owner. Legitimate explicit references, symbolic current replies, literal prepared text, and media remain unchanged. The UI retains lookup outcomes within its existing connection-scoped cache; rendering does not cause retry loops.

This does not guess historical mappings or rewrite old transcripts. Main now includes #150549’s Replying to line and participant design; this PR preserves it and does not restore the old quote card. #149416 owns diagnostic deduplication. Neither changes this canonical Gateway producer.

Credit: Dallin Romney for the report and requested repair.

Work sessions

Evidence

Current-layout visual proof

Inspected before/after screenshots for denied and retryable Replying-to source lookups are embedded in the linked proof comment. These compare captured head 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84 with its main baseline; the subsequent import-only conflict refresh leaves these reply-navigation/rendered-state inputs unchanged using the real Control UI app and deterministic mocked Gateway responses (1280×900, dark theme). They replace the historical quote-card captures as proof of the current states. All four inspected images were also delivered as actual attachments in the originating discussion at 06:57–06:58 UTC on September 30 (retry Before/After, then denied Before/After); successful delivery receipts were independently verified. Both visual destinations are complete.

September 30 current-main import conflict refresh

  • Current head: 4056113b410a2d836645dfe49be08fdb47856741, based on pinned main fcd48b68c959b61b43d9380ab0a3b93de53967d1. A new actual dispatcher import conflict followed #161352. The resolution retains main’s uniqueStrings import and ordered media de-duplication, while keeping the reviewed removal of the retired reply-payload helper. No behavior, public contract or test was added.
  • The first commit’s range-diff differs only in import context; the other three commits are patch-identical. Prior independent behavior review is reused for this mechanical refresh. The exact-head hosted review remains required. Main’s Replying-to design, source custody, authorization and media owners remain intact.
  • Fresh dispatcher, commentary-media and projection-cancellation proof passed 67 tests across 3 files in 117.28 s wall. Normal core and Gateway-method test types, scoped formatting/lint, line/assertion ratchets and both cycle checks passed (8 refreshed gates, 96.50 s wall). Unchanged UI and earlier focused proof below remain valid.
  • Historical local validation limitation: the max-lines ratchet failed against the then-pinned main/candidate inputs with a stale src/media-understanding/runner.vision-skip.test.ts entry in config/max-lines-baseline.txt (exit 1). An isolated exact-main index control at 68ef53a4a6050cbfa70fde200e1a96d68a2a191c reproduced it with identical source/baseline blobs. This PR did not edit those files or weaken the check. That local result remains a recorded failure, not a passing check; it is not the current hosted status. Current-head CI and the required gates below subsequently completed successfully. No particular upstream repair or cause for the difference is asserted.
  • Current-head qualification: RFR verified September 30, 07:30 UTC. CI 36682253590 completed SUCCESS on exact head 4056113b410a2d836645dfe49be08fdb47856741. Its Actions openclaw/ci-gate and combined required gate are SUCCESS. ClawSweeper revision 15 reviews this exact head: Platinum Hermit 4/6 overall, proof and patch quality; no findings, security findings or before-merge items, with review state ready. Its earlier in-progress CI snapshot is superseded by these terminal live results. GitHub confirms OPEN, non-draft and mergeable/clean; auto-merge remains disabled.
  • All four current-layout images were inspected, embedded in the linked PR comment and delivered as actual originating-chat attachments at 06:57–06:58 UTC. The import-only refresh does not invalidate their denied/retryable rendered-state proof; no duplicate captures or uploads were made.

Earlier September 30 owner-aware conflict repair — prior head

  • Prior head: 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84, based on pinned main 3ab80f87fe46c32c80d34c3ece86e98ee62649b7. This repairs actual conflicts; prior-head CI and scores below remain historical.
  • Preserves main’s current Gateway refactors: shared staged authorization checks, prepared-input/media ownership, derived finalization state, transcript mirror types, and recorder hashing. User persistence occurs once before canonical source resolution; append/broadcast checks remain with their owners. The original committed-source/SID-custody repair and type-cycle split are retained.
  • Composed lookup state with main’s newly landed Replying to UI rather than restoring the quote card. Existing pending/missing/oversized projections and all renderer/participant/style files remain untouched. One composition defect was reproduced: structured denied reads set the outcome but failed to invalidate the new reply row. The fix publishes denials through the same current-connection outcome and invalidation path; no new UI surface or permission rule.
  • 159 tests across 8 files passed in 201.46 s wall, covering raw/prepared source identity, retained/queued custody, cancellation/media siblings, UI navigation and main’s reply-attribution renderer. The two existing denied-read cases reproduced the invalidation failure before the fix (7.39 s wall); the final 21-case navigation suite passed in 4.24 s wall, including one additional stale-denial table case. No new timers, retries, budgets or broad mocks were introduced.
  • Fresh independent P0–P2 review is scoped-clean after staging the already-tested invalidation fix. An earlier adopted-run concern was rejected against the actual late-finalizer caller, which explicitly replaces the session run ID with the adopted batch run ID; the final reviewer confirmed that disposition.
  • All 14 selected gates passed: formatting, line-cap/max-line/assertion ratchets, core/UI types, scoped lint/stylelint, UI i18n, three affected test-type graphs, and runtime/type-inclusive import-cycle checks.
  • Prior-head hosted qualification: CI 36676208724 and required combined gate passed. ClawSweeper revision 14 rated this exact prior head Platinum Hermit 4/6 with no code findings, but retained the now-resolved origin-delivery and dispatcher-conflict preparation items. That evidence is not substituted for current-head qualification.
  • The new current-layout proof is linked above. Older visual assets remain below only as historical context before main’s feat(ui): replace the chat reply quote card with a Replying to line #150549 redesign. No renderer/template/style code change was made for this proof.

Before

Before: malformed run alias cannot open the original message

After

After: canonical source quote opens the original message

Prior September verification — historical heads and CI

September 28 conflict and CI repair

  • Candidate b5aff8c6d5c6b09ab96284333736284088fc9fdd incorporates pinned main a46cde88785df6aa867e35f98aa5fabce6cd45e9. The first September 28 rebase repaired actual conflicts; the two subsequent refreshes incorporate upstream fixes for observed failing CI gates.
  • Both conflicts were composed rather than choosing one side: keep main’s queued-input withdrawal hold from #159503 alongside reply identity resolution, and keep the upload-policy admission/commit callback from #158567 alongside retained-work cleanup. Main’s asynchronous managed-media ownership from #159348 also remains intact.
  • The introduced added/deleted lines and file paths are identical to the reviewed prior patch; range-diff differences are main-context composition only. No new product behavior, test cases, public contract, or rendered UI change was added. Prior behavior review is reused under the mechanical-rebase workflow; old-head CI and scores are not claimed for the new commit.
  • Conflict-repaired head 0a144668855d passed 110 tests across 7 files, 187.80 s wall: reply dispatch, exact admission binding/cleanup, main’s queued-input withdrawal/admission-read/upload policy, and UI quote navigation. The async-media/cancellation siblings passed 18 tests across 2 files, 58.83 s wall.
  • All 11 selected conflict-repair gates passed: formatting, core/UI types, scoped lint/stylelint, UI i18n, three affected test-type graphs, and both runtime-value and type-inclusive import-cycle checks. On prior head fe0588523f33, the reply-dispatch, session-binding and UI navigation suites passed again: 80 tests across 3 files, 71.19 s wall; normal core/UI typechecks and UI i18n also passed. Unchanged scoped lint and topology proof is reused. After incorporating the second upstream fix and installing its frozen lockfile, final head b5aff8c6d5c6 passed the same 80 tests across 3 files in 130.63 s wall, all 11 selected gates, and a direct fixture transform. The freshly fetched main+candidate merge also parses the fixture successfully. No new product patch was added; all three commits remain range-diff-identical.
  • CI root cause: run 36481665642, compact-small-3 failed because the unrelated upgrade fixture extracted reset_lane but omitted its new first_hop_timing dependency (exit 127). The checked-out merge f7f8684b04f5546515b649c35cdbdeccc453eaad combines main dc62a32209588cbf1a639f5d9ca53ddb45e53cce with 0a144668855d; those fixture/daemon inputs are unchanged by this PR. The failure reproduced locally in 13.16 s wall. The cancelled sibling jobs were not passes.
  • Repair: upstream e5fae567e3ba6 loads the actual timing helper and asserts timing output, preserving service-unload assertions, ordering and cleanup. All three PR commits are patch-identical across this second rebase (range-diff =). No unrelated repair, main push, test weakening, or unchanged-head CI rerun was made here. The local post-repair fixture reached later assertions but hit this Team host’s installed system-service discovery (3 failures, including an inaccessible host service environment file); that run is not a pass. Clean Blacksmith Testbox proof then passed all 17 fixture tests in 36.70 s wall (pnpm test test/scripts/upgrade-survivor-systemd.test.ts --maxWorkers=1), with the exact candidate source tree and both fixture/shell-source hashes verified. Delegated run 36484212206, lease tbx_01m3mxm6m8bmxce4tyys43fqay: wrapper exit 0, settled successfully, and lease stopped/completed. The linked Actions carrier can show cancelled during normal one-shot cleanup; that is not the test result.
  • Second CI root cause, now repaired upstream: CI 36484321693 on prior head fe0588523f33 was cancelled after compact-small-3 job 109138125884 failed before any upgrade-fixture tests loaded: Identifier firstHopTiming has already been declared at lines 93/101. The required openclaw/ci-gate failed; 118 cancelled jobs are not passes. #160694, commit cb8e8c73243ccc2dfb57b90a39ff007ccb7c6df9, added a duplicate timing-helper declaration. Failed merge 679fa4036e03a3b212d159454ab032f9f11d7b76, its main parent 1f912070c73b66bb9e1a6f900acaac4cfffe8cd3, and inspected main 6f60364a84e8ab8edf8dd32ba367a95ba726d218 share the identical failing fixture blob 001debe61b3c3a66297654c8a237956a4e450201. The same Vite/Oxc transform reproduced the parse error independently. Upstream a46cde88785d removes only that duplicate and is now incorporated; it restores the exact fixture bytes verified by the 17-test clean-host proof above. The fixture shell, daemon and helper inputs are also unchanged. No unrelated branch repair or main push was made here.
  • Current-head qualification: RFR verified. CI 36486712300 completed successfully on exact head b5aff8c6d5c6b09ab96284333736284088fc9fdd: 174 successful jobs, 18 not-applicable/skipped, zero failures or cancellations. The Actions openclaw/ci-gate and protected combined required gate are SUCCESS, including dependency and security-sensitive review. ClawSweeper revision 11 reviews this exact head: Platinum Hermit 4/6 for overall readiness, proof and patch quality; no findings, security findings, or before-merge items. GitHub readback confirms OPEN, non-draft, mergeable/clean, with auto-merge disabled. This is current-head evidence, not a prior-head substitution.
  • Formerly failing CI shard now passes: compact-small-3 job 109145849962 ran all 17 upgrade-fixture cases, including the reset-lane case, successfully. The fixture shard took 14.31 s including its runner overhead; reported file test time was 9.278 s. All three job invocations passed. Actual checkout was merge 1b77c7882085f33d01f707f00eb23f19db79818b, combining main a571987554be0c4121202535e51dbc3fce45c76f with this exact PR head.
  • Existing inspected screenshots and the verified originating-chat delivery below remain valid for the unchanged rendered behavior. No new screenshots were generated or sent.
September 26 verification on prior head e22c906 — historical, not current-head CI
  • Prior-head qualification (September 26): CI 36212363311 and required openclaw/ci-gate completed successfully. ClawSweeper revision 7 reviewed exact head e22c906f5a38f654c120b4b6ee171c72b3e1e146: Platinum Hermit 4/6, no actionable findings and no before-merge checklist items.
  • Hosted test jobs checked out merge 3754e42cb25ab827c96f208b8e9627461b71eb40, whose parents are main 76e32e92441321b2e564263bc385cc7f4cc8ecd7 and this exact PR head. Actual decoded hosted selectors and passing-case output confirm the files below ran; the routing projection alone is not counted as execution proof.
  • September 26 candidate: e22c906f5a38f654c120b4b6ee171c72b3e1e146, refreshed onto repaired main 5be36d37cb73a4f9ddf23ed9ab4fe51a3797e25c. The source-finalization conflict preserves main’s shared withPreparedWebchatReplyMedia owner and canonicalized inputs, without restoring retired media preparation.
  • Both accepted ClawSweeper P2 findings are addressed: reply identity consults held facts only for run aliases, rather than synchronously reading SQLite for every reply; structured INVALID_REQUEST/FORBIDDEN source denials are unavailable, not retryable transport failures.
  • Source display custody retires on committed SID replacement, removal, uncertain publication, or database-resource closure. It uses the existing physical store-candidate and publication owners, grants no read/delivery authority, and lives until the retained chat work settles—including collected completion after active cleanup. No new row cache or polling loop is introduced.
  • Original-red/fixed-green: two raw/prepared cases reproduced eager session reads; two denied-read UI cases reproduced misleading retry behavior. An independent review exposed stale held SID after in-band replacement; two real replacement/restoration regressions reproduced it and now pass. Real logical-to-physical database path selection is covered, not only fabricated change notifications.
  • Final focused proof passed 105 tests across 7 files in 80.45 s wall, covering dispatcher, exact-admission binding, queued completion, cleanup, commentary media, cancellation, and UI navigation. The earlier conflict-repaired candidate passed the broader 335-case directive/media boundary selection; no current-base owner changes invalidated that composition.
  • Independent P0–P2 autoreview of the final follow-up is scoped-clean. All selected checks passed in serial stages: core/UI types, all 25 test-type graphs, dead exports, formatting, targeted lint and repository guards. The initial aggregate stopped on mechanical lint findings; they were corrected without disabling rules, the exact remaining checks passed, and 16 owner/cleanup cases passed again after a line-cap extraction. Core types passed again after the patch-identical main refresh. Fresh exact-head CI, the required gate, and ClawSweeper qualification now pass; previous-head results are not substituted.
  • Local rounded reporter case-time sums: dispatcher 49 cases / 18.261 s, binding 14 / 13.567 s, cleanup 2 / 0.003 s, UI navigation 17 / 0.528 s. These are sums of rounded case times, not per-file wall. Current hosted measurements follow; historical hosted 42-case/15-case measurements do not describe the expanded suites.

September 26 hosted test costs

These are sums of published, rounded case durations, not per-file wall-clock times. Per-file wall times were not published. All listed jobs completed successfully.

Test file Cases passed CI case-time sum Hosted job
chat-send-reply-dispatch.test.ts 49 11.052 s Gateway group 5
chat-send-session-binding.test.ts 14 9.076 s Gateway group 2
chat-send-work-admission.test.ts 2 0.004 s Gateway group 5 above
chat-pane-history-reply.test.ts 17 0.527 s UI shard 2/3
  • Originating-chat delivery verified: the actual assistant reply in the original discussion (linked under Work sessions) at 2026-09-21 15:43:57 UTC contains the labeled Before and After visible-reply media attachments for the exact two image URLs embedded below. This was checked against the destination session’s stored assistant message, not an implementation-worker report. Both existing assets were reinspected, and GitHub’s rendered PR HTML embeds both as images. The missing item was the citation of existing delivery evidence; no screenshots were regenerated or resent.
  • Existing inspected Control UI screenshots below use synthetic Gateway fixtures—not live Gateway execution or historical transcript repair. The denied-read fix uses the existing privacy-preserving notice; focused production UI-method tests verify one request/no retry, transient retry, and reconnect behavior.

Exact-head architecture CI repair

CI 36210937399 on previous head b37c672a0c4008f3265f12a904d2250d9362304f was cancelled after its runtime-topology architecture job failed. This was PR-caused, not the earlier upstream SDK failure: the type-inclusive Madge check found a cycle from dispatch types through the reply-source module and user-turn recorder. The runtime-value-only scan had passed and did not cover that graph.

The same Madge failure was reproduced locally, then repaired by separating the dispatch binding reader from the recorder-owned source lifetime. Reader logic is byte-identical, all callers moved, and no scanner, rule or baseline was weakened. The complete pnpm check:architecture chain now passes, as do core types, targeted lint, and all 16 existing binding/cleanup tests. The cancelled run and its failed required gate are not passing evidence. The new exact-head run and required gate now pass, including the previously failing architecture job; the fresh exact-head review has no findings or checklist items.

Earlier upstream SDK repair — historical context

Resolved upstream CI failure

The previous-head CI run hit two unrelated SDK TS2552 errors introduced on main by d16cdc55154796e421a87e124f70cb329d004092. Its actual merge 9925a688ed3772a990d8711c9a3479ff6e6c4266 combined main 0e926158bee25d12953777ab09c16c27beae7998 with previous candidate 1565de115ad2f86edc4ead6ddfb69327d0177d46.

A clean main control at d16cdc55154796e421a87e124f70cb329d004092 reproduced the same missing projectHarnessTaskContentForPersistence calls; the SDK file had the same blob in that control and both PR merge inputs. This PR never modifies that unrelated SDK owner. Main’s repair #158520, commit 5be36d37cb73a4f9ddf23ed9ab4fe51a3797e25c, is now incorporated. No main push, blind unchanged-head rerun, merge, or auto-merge was used.


View the OpenClaw team session

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: L maintainer Maintainer-authored PR labels Sep 21, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@vyctorbrzezowski — scope coordination with #150549: this repair translates malformed run aliases at the Gateway delivery/transcript owner; it does not replace the reply-attribution or participant-control work. The UI portion is limited to connection-scoped source-lookup outcomes and two English error strings, preserving symbolic replies and lazy history. No changes are being made to your branch.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 21, 2026 13:43
@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: needs maintainer review before merge. Reviewed September 30, 2026, 3:16 AM ET / 07:16 UTC (Revision 15).

ClawSweeper review

What this changes

The branch binds generated chat replies to saved source-message IDs in Gateway delivery and transcripts, updates Control UI source lookup and retry behavior, and adds documentation and regression tests.

Merge readiness

✅ Ready for maintainer review

Keep this PR open. Current main still passes run IDs through the Gateway reply path, so the branch has a distinct repair. The prior review’s screenshot-delivery and dispatcher-conflict items appear addressed; current-head CI was still running in the supplied check snapshot.

Priority: P2
Reviewed head: 4056113b410a2d836645dfe49be08fdb47856741

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has coherent source-boundary coverage and inspected UI evidence, with no concrete correctness finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The bot-authored PR is exempt from the contributor proof gate. Inspected before/after Control UI screenshots show source-link and denied-lookup improvements in a real browser with a mocked Gateway; focused tests exercise the committed Gateway source ID, but no live Gateway send is claimed. The two linked retry images were unavailable to this reviewer. The patch fixes values written under an existing transcript reply field without changing its stored-data format.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The bot-authored PR is exempt from the contributor proof gate. Inspected before/after Control UI screenshots show source-link and denied-lookup improvements in a real browser with a mocked Gateway; focused tests exercise the committed Gateway source ID, but no live Gateway send is claimed. The two linked retry images were unavailable to this reviewer. The patch fixes values written under an existing transcript reply field without changing its stored-data format.
Evidence reviewed 11 items Current main still lacks the repair: The fetched main dispatcher delivers raw and prepared inputs without resolving run aliases; the new reply-identity module is absent from that main tree.
Committed source identity: The proposed resolver maps only the current or originating run alias to the committed user-turn entry after checking the saved message, visibility, agent, session key, and current session binding.
Source lifetime: The branch retires its source reference on relevant committed session changes or database-resource closure; the dispatch binding also checks retained work and active or queued ownership.
Findings None None.
Security None None.

How this fits together

The Gateway accepts a chat turn, saves its user message, and delivers the agent’s reply. The Control UI reads that reply and fetches its referenced original message to render and navigate the Replying to line.

flowchart LR
A[Chat turn] --> B[Gateway admission]
B --> C[Saved user message]
C --> D[Session and visibility checks]
D --> E[Reply source binding]
E --> F[Live and saved reply]
F --> G[Control UI source lookup]
G --> H[Reply line or notice]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +357, Tests +356, Docs +6. Total +719 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 15 487 130 +357
Tests 7 367 11 +356
Docs 1 7 1 +6
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 23 861 142 +719

Review metrics

Metric Value Why it matters
Production and test growth production +487/−130; tests +367/−11 The production growth implements source custody and UI lookup handling; the test growth exercises the affected identity and retry boundaries.

Technical review

Best possible solution:

Keep committed user-turn identity as the Gateway’s reply-source owner, and preserve the current session and sharing checks when the UI fetches an original.

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

Yes, from source and the supplied browser comparison: current main forwards run IDs without this binding, and the older UI treats structured source errors incorrectly. I did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes. The repair uses the committed user-turn receipt at the Gateway producer and keeps source reads behind the existing authorized lookup, while the UI retries only after an explicit action.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 98f2e33432fd.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Broken reply-source navigation is a bounded chat usability defect.
  • merge-risk: 🚨 session-state: The branch changes the source ID carried through live replies and saved transcripts, where a wrong binding would mis-associate conversation state.
  • 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. Not applicable: The bot-authored PR is exempt from the contributor proof gate. Inspected before/after Control UI screenshots show source-link and denied-lookup improvements in a real browser with a mocked Gateway; focused tests exercise the committed Gateway source ID, but no live Gateway send is claimed. The two linked retry images were unavailable to this reviewer. The patch fixes values written under an existing transcript reply field without changing its stored-data format.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The bot-authored PR is exempt from the contributor proof gate. Inspected before/after Control UI screenshots show source-link and denied-lookup improvements in a real browser with a mocked Gateway; focused tests exercise the committed Gateway source ID, but no live Gateway send is claimed. The two linked retry images were unavailable to this reviewer. The patch fixes values written under an existing transcript reply field without changing its stored-data format.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vyctorbrzezowski: 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 (14 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-26T02:48:46.120Z sha e22c906 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-26T03:55:59.437Z sha e22c906 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T20:55:05.828Z sha 0a144668855db5bda606db1e862c565a8efb6fbf :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T21:24:18.816Z sha fe0588523f331654f63f7cda6c185c15330cfa1c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T21:39:54.941Z sha b5aff8c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-28T22:56:57.194Z sha b5aff8c :: needs maintainer review before merge. :: none
  • reviewed 2026-09-30T06:09:47.115Z sha 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84 :: blocked before merge. :: none
  • reviewed 2026-09-30T06:46:29.945Z sha 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84 :: blocked before merge. :: none

@roboclaw-bot

roboclaw-bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Synchronization recovered and exact-head CI passed on September 22.

CI recovery — September 22

GitHub retained stale PR-head projections after the patch-identical rebase. Its reopen API then explicitly rejected the rebased branch. The existing branch was restored, with an exact lease, to the already-reviewed head 718f00a2d9f3cf37706a5ac86bca8956335729c7; both rebase candidates remain preserved locally. This changes no product patch. One bounded close/reopen cycle restored this same PR, non-draft and with auto-merge disabled.

Fresh PR-event CI run 35784585329 completed successfully on the restored head against a newly generated current-main test merge. This is not a rerun of the September 21 failed workflow. Main already contains the fixture repairs noted in the recovery discussion. Exact-head CI run 35784585329 and the required openclaw/ci-gate passed. ClawSweeper reviewed this head as Platinum Hermit (4/6), with no findings.

No PR merge, auto-merge, main push, release or deployment was performed.

@roboclaw-bot roboclaw-bot reopened this Sep 22, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch from 718f00a to 1565de1 Compare September 26, 2026 01:01
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. 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: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed 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 26, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch from 1565de1 to b37c672 Compare September 26, 2026 02:12
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 26, 2026
@clawsweeper clawsweeper Bot added the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Sep 26, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Current head: e22c906f5a38f654c120b4b6ee171c72b3e1e146.

  • Reproduced the PR-caused Madge type cycle from job 108317901512, then separated the unchanged dispatch binding reader from the recorder-owned source lease. The complete check:architecture chain, core types, targeted lint, and 16 existing binding/cleanup cases pass. No scanner suppression, baseline change, or weakened guard.
  • Verified the actual original-chat assistant reply at 2026-09-21 15:43:57 UTC, not a worker’s claim: its labeled Before/After visible-reply media attachments reference the exact two images already embedded here. The original discussion is linked in Work sessions. Both existing assets were reinspected and both remain inline images in GitHub’s rendered body. The body now records this delivery evidence; nothing was regenerated or resent. Please reassess the prior missing-origin-delivery checklist against that receipt.
  • Fresh exact-head CI is running. The previous cancelled run and failed gate are not passing evidence. No merge or auto-merge is requested.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch 2 times, most recently from 0a14466 to fe05885 Compare September 28, 2026 21:10
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Current head: fe0588523f331654f63f7cda6c185c15330cfa1c.

This incorporates upstream fixture repair e5fae567e3ba6e2218fd09f53bb522c6946cae16 for the actual failed CI job (missing first_hop_timing in the extracted reset-lane fixture). All three reply commits are patch-identical to the previous Platinum-reviewed head; no assertions, timeouts, retries, cleanup or product behavior were weakened.

The original exit-127 failure reproduced locally. Clean Blacksmith Testbox proof passes all 17 fixture tests (36.70 s wall), with candidate source and fixture hashes verified, wrapper exit 0 and the lease stopped. On this head, all 80 focused reply-dispatch, session-binding and UI navigation tests pass; normal core/UI types and UI i18n pass. Details and the local managed-host fixture limitation are in the current PR body.

Fresh CI: https://github.com/openclaw/openclaw/actions/runs/36484321693 (still pending; not claimed green). Existing inspected screenshots and Work sessions links are preserved. Review only—no merge or autofix requested.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 28, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch from fe05885 to b5aff8c Compare September 28, 2026 21:31
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Current head: b5aff8c6d5c6b09ab96284333736284088fc9fdd. This is a patch-identical rebase of Platinum-reviewed fe0588523f33 onto upstream repair a46cde88785df6aa867e35f98aa5fabce6cd45e9. Main accidentally received the first-hop fixture helper twice in #160694, causing a parse error before tests loaded; the upstream fix removes only the duplicate. Both observed CI failures and their distinct upstream repairs are documented in the PR body.

Final validation: all 80 focused reply tests passed (130.63 s wall), all 11 selected gates passed, and the actual fresh main+candidate merge fixture parses. The restored fixture and its shell/daemon/helper inputs match the earlier clean Testbox 17-test pass. All three commits are range-diff-identical; both human coauthor trailers, credit, Work sessions and existing screenshots remain intact.

Fresh CI: https://github.com/openclaw/openclaw/actions/runs/36486712300 (pending, not claimed green). Review only; no merge, auto-merge or autofix requested.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. label Sep 28, 2026
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch from b5aff8c to 8e3f593 Compare September 30, 2026 06:01
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Current head: 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84, conflict-repaired against main 3ab80f87fe46c32c80d34c3ece86e98ee62649b7.

Preserves main #150549 Replying-to/participant design and current Gateway authorization/media owners. Canonical committed-source custody remains across all paths. A denied-read composition regression was reproduced and fixed through the current status/invalidation owner.159 cases/8 files pass, then21 UI cases pass including stale denial;14 selected gates and independent final P0–P2 review pass. Both human coauthor trailers and existing Work sessions/credit remain intact.

Current-head CI: https://github.com/openclaw/openclaw/actions/runs/36676208724 (pending, not claimed green). Full scoped evidence is in the PR body. Review only; no merge, auto-merge or autofix requested.

@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 30, 2026
@roboclaw-bot

roboclaw-bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Collaborator Author

Current Replying-to visual proof — September 30

Head 8e3f5936f8cb2fb3c6ad84ae076e263b31cccb84, compared with its main baseline 3ab80f87fe46c32c80d34c3ece86e98ee62649b7. These are newly captured current-layout screenshots, not the historical quote-card images. Both checkouts remained clean; no product code or head changed.

Captured the actual Control UI app and production reply-navigation/renderer through the repository’s mocked-Gateway WebSocket harness: Chromium, 1280×900, dark theme, identical synthetic conversation and fixed display time. Every image was visually inspected for legibility, clipping and sensitive content. The composer remains usable. This is deterministic browser boundary proof, not a live Gateway or provider run.

Denied source lookup

The Gateway fixture returns structured FORBIDDEN. Before: the reserved Replying-to row stays unresolved/invisible. After: it settles to Original message unavailable, with no source-navigation button and no retry. Both variants made exactly one source lookup.

Before

Before: denied source leaves the current Replying-to row unresolved

After

After: denied source settles to Original message unavailable

Retryable source lookup

The fixture returns temporary UNAVAILABLE; the source has a known synthetic author. After selecting Mira in the Replying-to line, before incorrectly says the original is unavailable and makes no retry (one total lookup). After makes the explicit retry (two total lookups) and shows Could not load the original message. Click the reply to try again. The name remains enabled; rendering alone does not retry.

Before

Before: a transient lookup failure is mislabeled as unavailable

After

After: explicit retry keeps the transient diagnostic retryable

Delivery status

  • PR: these four inspected images are embedded in this comment and linked from the PR body.
  • Originating discussion: delivered September 30, 06:57–06:58 UTC. All four inspected PNGs were sent as actual image attachments, retry Before/After followed by denied Before/After, with labels outside the images. Each delivery returned a successful current-source receipt; no native message IDs were exposed.

Both visual destinations are now complete. Subsequent head 4056113b410a2d836645dfe49be08fdb47856741 resolves the actual main #161352 dispatcher import conflict, retaining its uniqueStrings owner; range-diff is context-only plus three identical commits. The lookup, denial/retry rendering, and captured UI inputs are unchanged, so these inspected images remain valid proof. Fresh dispatcher/media/cancellation tests pass (67 cases); current-head CI and both required gates are now SUCCESS (CI, combined gate). The exact-head review is Platinum Hermit 4/6, ready, with no findings or before-merge items. The earlier local max-lines diagnostic remains documented as historical validation evidence; it is not the current hosted gate state, and no unverified upstream-fix claim is made.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 30, 2026
roboclaw-bot and others added 4 commits September 30, 2026 07:03
Refresh the existing repair through the current shared media-preparation owner
without restoring retired preparation logic.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Resolve run aliases from the committed source and retained work owner. Retire
source references from committed physical-store publications and resource
closure, keeping collected completion valid until its work settles.

Classify structured missing/denied source reads as unavailable instead of
retrying them; transient transport failures remain explicitly retryable.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Separate the dispatch binding reader from the recorder-owned source lease so
the source lifetime no longer depends on the dispatch parameter graph. The
reader body and runtime behavior are unchanged; callers use the new sibling.

Reproduces and fixes the type-inclusive Madge architecture check without
weakening the scanner, adding suppressions, or changing a baseline.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
Publish structured lookup denials through the same current-connection status and render-invalidation path as a normal missing-source response. Preserve the newly landed Replying-to design and explicit retry ownership. Existing denial cases reproduce the missing invalidation; extend the stale-result table to cover a prior connection denial.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Dallin Romney <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the roboclaw/chat-reply-source-20260921 branch from 8e3f593 to 4056113 Compare September 30, 2026 07:09
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. label Sep 30, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime 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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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