Repository navigation
improve(chat): align native conversation and tool activity with web - #2093
Conversation
…h web Bring the native Reactor chat closer to the reachable web conversation: - Web-style grouped tool rows with per-category counts, inline "failed", hover/focus chevron, nested wrapper calls (parentToolCallId), and dashboard "Worked for X" disclosure. - Borderless rows aligned to the prose edge, downward expansion, and one thin-bordered transparent detail card with a Completed/failed footer. - Running-work text shimmer gated by Windows animation and high contrast. - Clickable http/https links (accent, no underline) and inline-code highlight in assistant Markdown. - Streaming, reasoning, partial output, run progress and fixture scenarios (agent-activity, nested-tools) with focused tests and docs. Co-authored-by: Copilot App <[email protected]>
Polish native chat typography and tool details, syntax-color inert input, isolate loading and running animations, and keep hover/focus actions scoped to individual messages. Preserve the pending-message panel and remove transcript search. Co-authored-by: Copilot App <[email protected]>
Keep upstream agent identity and settings ownership alongside chat history, tool details, and per-message interaction behavior. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Native ARM64 screenshots from candidate 3bd4ff5: syntax-colored input and literal secondary output in Light/Dark, aligned sent-message copy control, and per-message focus inside expanded Worked. These are isolated synthetic/native-control captures, not live Gateway/provider proof. Known scrolling and history/recovery blockers remain listed in the PR body. |
Reunite exact run/call matches across page boundaries, retain the loaded session on live result locators, and expose history Retry when the Gateway invalidates a paging window. Add isolated provider and wire parsing regressions. Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs real behavior proof before merge. What this changesThis PR updates native chat presentation, reasoning visibility, nested tool activity, history paging, and bounded tool-output recovery. Example: An assistant runs Get-ChildItem and returns literal output.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Blocked before merge - 8 items remain Keep open: this collaborator-authored PR delivers useful, owner-approved chat improvements, but the pinned candidate has actionable history/recovery defects and remains under the author's explicit merge hold. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherAuthenticated Gateway messages enter the shared client, pass through chat history and reducer owners, and become native Reactor conversation rows and tool disclosures. flowchart LR
Gateway[Authenticated Gateway] --> Client[Gateway client]
Client --> History[History loader and state]
Client --> Provider[Chat provider and event mapper]
History --> Reducer[Timeline reducer]
Provider --> Reducer
Reducer --> UI[Reactor timeline and tool renderer]
Technical reviewBest possible solution: Complete paging and recovery within the existing history, mapper, and Gateway-client owners while preserving live-run identity and bounded native rendering. Do we have a high-confidence way to reproduce the issue? The history/recovery failures follow directly from the pinned source and consumed Gateway contract; no target code, build, or tests were executed during this read-only review. Is this the best way to solve the issue? The existing production owners are appropriate, but page composition must reconcile tool identities and cursor invalidation must trigger recovery instead of successful exhaustion. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 045d13ac19b8. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: in-process harness. SecurityNeeds attention: The new saved-result reader needs final-effect account-replacement evidence; no concrete unauthorized disclosure was established. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 1:40 PM ET / 18:40 UTC. |
|
Updated proof for 34cb0c4: all three full-candidate history/recovery review findings are fixed and independently re-reviewed. Full build passed; Shared 4,974 passed / 24 ordinary skips; Tray 5,528 passed with the documented real-profile-read exclusion; 55 selected native Release cases passed. The scrolling and foreground-sensitive pointer gates remain separate blockers, not hidden skips. These current-head unsigned non-Dev Release captures show Light/Dark tool input/output and per-message nested focus. |
Track the immediate hover target separately from the rendered state and scope it to the message row key. Verify leaving a nested message hides its actions before focus is moved. Co-authored-by: Copilot App <[email protected]>
Keep both sets of localized resources and the upstream UI fixture lifetime and passive tail diagnostics without weakening chat proof gates. Co-authored-by: Copilot App <[email protected]>
Preserve SettingsManager snapshot ownership and include ShowChatThinking in SettingsSnapshot.FromData. Add readback coverage rather than restoring the removed SettingsStore snapshot builder. Co-authored-by: Copilot App <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Crash-attribution update: the matched animated-scroll scenario reproduces with main production sources at 932bc0e as well as candidate b17231b. Main's adaptations were test-only. A standard-control native probe also reproduced the loop without Reactor or the chat controller. This establishes that the investigated wide-case crash is pre-existing, not specific to this PR; it does not clear the separate narrow-tail, fixture or accessibility failures. Native tracing of the unchanged original product regression shows a frozen viewport during animation while layout extent/origin and unshiftable compensation alternate by about 35.33 DIP, exhausting layout iterations (0x802B0014). It corroborates the earlier upstream report microsoft/microsoft-ui-xaml#12490. Removing Reactor parking/anchor hooks and application anchoring experiments did not fix it; none were retained. A minimal isolated WinUI-source proposal and native regression have been drafted, but are not compiled or tested and are not a shipping recommendation. No installed runtime or product dependency was replaced. Native compilation is blocked on an identified, authorized prepared Windows build host. The PR remains blocked; no assertion, animation, virtualization or CI gate was weakened. Raw debugger logs/dumps remain private. |
Preserve the original animated acceptance reproducer independently while retaining reader, jump, streaming, resize and composer assertions. Expand all synthetic tool activity groups and surface rendering-observer errors. The wide final-jump proof remains unresolved and disclosed. No production animation, virtualization or dependency workaround is included. Co-authored-by: Copilot App <[email protected]>
Stage item realization across natural layout before a revalidated element bring, preserving stable WinUI, virtualization, reader intent, and bounded cancellation. Reuse the sidebar user identity and decoded photo for queued-message avatars. Co-authored-by: Copilot App <[email protected]>
Retain the released Reactor preview.17 update from main alongside chat syntax coloring and web-link behavior. Preserve both chat and Systems localization, and combine placement with reasoning fields in the protocol snapshot. Co-authored-by: Copilot App <[email protected]>
Create the verified local Reactor feed before restoring the independent fixture job, and fail closed if bootstrap fails. Guard the bootstrap-before-restore ordering so future lane splits cannot omit it. Co-authored-by: Copilot App <[email protected]>
Select an earlier realized transcript action in item order instead of relying on the last physical child, which can be a recycled or unfocusable button. Keep keyboard focus, reader-position, and exact-tail assertions intact. Co-authored-by: Copilot App <[email protected]>
Build both fixture test projects before the test deadline and pass NoBuild for execution. Keep canonical RID-selected outputs rather than creating a second Platform tree; retain the existing deadline and complete test inventory. Co-authored-by: Copilot App <[email protected]>
Integrate main's confirmed initial-offset recovery and account-menu fixes while retaining staged item realization and both bounded correction paths. Observe handled synchronous keyboard focus so pending navigation cannot miss reader intent. Co-authored-by: Copilot App <[email protected]>
main (openclaw#2093) now renders assistant http/https links and bare URLs as live hyperlinks, sanitizing with preserveWebLinks. Disclosure bodies follow that policy, but a summary is plain Expander header text, so a preserved web link would read as "[docs](<https://...>)". Re-sanitize summaries inertly so they read "docs (https://...)" as before. Replace the disclosure inert-content proof with a behavioral proof of the merged policy: web links and bare URLs inside and outside a disclosure are live with exact targets, file: links, images and raw HTML stay inert, the summary link reads as text, and the chat's underline-free link and inline-code chip styling reaches disclosure bodies. This also covers the source-text assertions main added to ReactorChatMarkdownContractTests, which this PR deletes.
main (openclaw#2093) now renders assistant http/https links and bare URLs as live hyperlinks, sanitizing with preserveWebLinks. Disclosure bodies follow that policy, but a summary is plain Expander header text, so a preserved web link would read as "[docs](<https://...>)". Re-sanitize summaries inertly so they read "docs (https://...)" as before. Replace the disclosure inert-content proof with a behavioral proof of the merged policy: web links and bare URLs inside and outside a disclosure are live with exact targets, file: links, images and raw HTML stay inert, the summary link reads as text, and the chat's underline-free link and inline-code chip styling reaches disclosure bodies. This also covers the source-text assertions main added to ReactorChatMarkdownContractTests, which this PR deletes.







What Problem This Solves
Native conversations lose useful thinking/tool feedback and render inconsistent alignment, typography, and actions while work streams or expands.
User Impact
User impact: clearer live and completed work, readable nested tools, syntax-colored input separated from muted output, and correctly aligned message actions. Supplied thinking has its own visibility preference; pending sends remain in a separate panel above the composer. In-conversation search is intentionally removed; global search is unchanged.
Independent baseline issue: the animated-scroll WinUI crash reproduces on unchanged main and in the unchanged upstream WinUI-only sample, without OpenClaw or Reactor. Its fix continues separately and is not an app-PR fix requirement. The original large-history/animated reproducer is preserved at an immutable revision; removing it from this PR's routine suite is scope separation, not crash remediation.
Remaining validation limits: the 1100-DIP feedback case still fails its final Jump after resize-back, about 30.67 DIP short of the reported bottom. That failure has not been attributed to baseline and its assertions remain intact. The preceding CI run also has fixture history/navigation failures. Latest-head CI and a native rerun after the final observer diagnostic change remain pending; this update does not claim green CI or merge readiness.
Why This Change Was Made
This includes the imported conversation-parity work plus its native presentation fixes. Existing history, reducer, tool-renderer and timeline owners retain their responsibilities. Running-label animation moves bounded gradient stops rather than a brush transform that faded unrelated content. Each message owns its hover/focus actions, including narration inside expanded Worked groups; immediate pointer state is separate from pending renders.
Review repairs reunite invocation/result pairs split across history pages, retain session identity on live truncated results, and show history Retry when the Gateway invalidates a paging cursor. Main's committed-settings snapshot owner is preserved, including the Show thinking preference.
This update changes tests and the CI failure reference only. Distinct Jump, reader-retention, streaming, resize and composer assertions move into the existing two-width feedback test. Native keyboard focus establishes reader intent before its non-animated setup step. Tool-accessibility proof expands each separate fixture run group instead of only the first. Rendering-observer exceptions now fail the awaited test rather than masquerading as readiness timeouts. No production animation, virtualization, dependency or runtime is changed.
Evidence
Update candidate:
03770d8f011de807347ca7e811e0a0c6775a1bda, on top ofb17231b39b66bcff4fc572dabcccdaa9dd2141aeand its integration of main932bc0e3c7b71a94cdd27dcdd78ad4e2343a5064.b17231b3remains available unchanged and in the independent investigation. The unchanged upstream reproducer atbf29dc7, with command-line ARM64 build overrides only, independently crashes on loaded Windows App Runtime 2.6.5 ARM64: 50 extent oscillations at a frozen offset during animation, then terminal0xC000027Bwith first stowed result0x88000FA8(AG_E_LAYOUT_CYCLE). This supports the separate microsoft/microsoft-ui-xaml#12490 investigation, not attribution of the remaining wide Jump failure.6c60ffbd, selected native Release proof passed 57/57, including real pointer hover/exit, nested focus, syntax, themes, geometry and actual full-window completed-text pixels. The two scrolling cases were outside that successful selection and remain unresolved. The broader Debug attempt passed 55/57 with foreground-admission failures in two pointer cases; a separate four-case Debug focus/pointer selection passed.34cb0c40and earlier integrated captures at3bd4ff5eretain their actual source identities. They are historical visual evidence, not current-head UI proof.b17231b3Build and Test run: failed the UI lane and aggregate CI Gate. Core/CLI, Tray/setup/integration, WSL setup/revocation/network E2E, x64 publish smoke, both MSIX architectures, bundle, metadata and fast validation passed. Official release/signing jobs were conditionally skipped, not claimed as executed.Earlier Hanselman review used
claude-opus-5.5(default context) andgpt-6-astra(long context), both high reasoning. Both identified the nested-footer hover issue and accepted its tested fix. That review covered local polish, not the imported parity commit. A separate independent app-nativecode-reviewassessment covered all 98 files against main and the implementation/proof plan. Its three history/recovery findings were fixed in34cb0c40and accepted in follow-up; the hover race and merge resolutions were also independently reviewed. The runtime has norubber-duckrole and the shared autoreview helper is absent. Source-review acceptance does not waive runtime gates.The same independent reviewer assessed this three-file update at P0-P3 and separately reviewed its implementation/proof plan: no significant source issues found. It confirmed that feature assertions survive but the removed large-history/animated scenario is no longer exercised by this suite. It explicitly retained the unattributed wide-case failure and latest-observer native rerun as open proof limits. This is a narrative
code-reviewassessment, not a shared-helper clean-status or runtime verdict.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: native chat, Settings, expanded tools, typography, focus/hover, animation and scrolling. Incomplete while the wide Jump, fixture and latest-head native/CI proof remain open. The independently demonstrated baseline animation crash is tracked separately.windows-wsl-gateway-e2e: added history paging and bounded tool-result read contracts. Green setup/recovery CI does not by itself prove the new chat contracts against an installed Gateway.Validation
This update's source-matched closeout:
$outand$runbelow denote private isolated evidence directories. Tray, roaming and local data roots are isolated; inheritedOPENCLAW_*opt-ins are cleared before managed tests.Result: full build passed; 5,306 Shared passed with 27 ordinary skips; 5,614 isolated Tray passed with zero selected skips. The excluded Tray case reads the normal OS roaming profile; it was not run on this shared Windows user. No whole-unfiltered-Tray claim is made.
Result: 171 passed, zero skips, before the final native-observer diagnostic edit; production policy/grouping code is unchanged by this update.
.\scripts\validate-docs.ps1: passed, 73 Markdown files..\scripts\validate-agent-skills.ps1: passed, 16 skills and 25 Markdown files..\scripts\test-agent-skills-validator.ps1: passed, 27 fixtures plus repository skills.git diff --check: passed.Historical managed validation at
b17231b3:.\build.ps1: passed, including documentation checks.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 5,306 passed, 27 ordinary skips.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName!~SettingsManagerIsolationTests.OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData': 5,614 passed. The excluded case reads the normal OS roaming profile; it was not run on this shared Windows user.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --filter 'FullyQualifiedName~SettingsPageViewModelTests|FullyQualifiedName~SettingsStoreTests' -v quiet: 30 passed, including thinking-preference snapshot readback after the settings-owner merge.Review-repair regressions at
34cb0c40:dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --filter 'FullyQualifiedName~ParseHistory_': 5 passed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~ToolRecovery_|FullyQualifiedName~OlderHistory_|FullyQualifiedName~ChatPlacementHistoryProjectionTests': 44 passed. Baseline cases reproduced the reviewed defects; the live-result regression uses production Gateway event parsing. Fixtures isolate persistence and include the same call ID in a different active run.Exact native commands, successful selection, and retained failures
Runs isolate roaming/local/tray data and set
OPENCLAW_REPO_ROOT. Capture runs setOPENCLAW_VISUAL_TEST=1; real-app fixture runs opt in separately and select the matching executable throughOPENCLAW_GATEWAY_FIXTURE_APP. Pointer cases also setOPENCLAW_RUN_KEYBOARD_PROOF=1.The update was built in an exclusively loaned short checkout with source hashes matching the parent worktree:
Build: passed, zero warnings/errors. Native run: 1 passed, 2 failed. Accessibility passed; both feedback cases initially failed reader positioning. After establishing native keyboard reader intent:
Result: 1 passed (480 DIP), 1 failed (1100 DIP), zero skips, no crash. At the final Jump after resize-back, the wide case reports Idle offset 2779.333251953125 versus maximum 2810.0000610351562; the production warning records exhaustion of its existing 121-frame/3-retry bound. Later composer/history assertions were not reached in that wide run. The separate accessibility pass retains exact trusted input, fallback and redaction checks. All owned windows/processes were cleaned up.
The final observer diagnostic edit was then compiled against unchanged, already-built production dependencies:
Result: passed, zero warnings/errors. Native execution after this final observer edit remains pending; the earlier runs are not relabeled as a current-head pass.
At
6c60ffbd:Build passed; 57 passed, zero selected skips. Unsigned non-Dev Release is not signed-package proof. This selection does not claim the separately failing scrolling cases.
Result: 4 passed. The broader Debug selection passed 55/57, with two explicit foreground-admission failures, not ordinary skips.
Not passing: both widths have failed initial-tail readiness; later executions abort with native
LayoutCycleException. The hosted UI job at34cb0c40aborted during this case with "Element is already the child of another element". The pre-updateb17231b3UI job also crashed its native testhost. Fixture casesLateHistoryForPreviousSessionCannotReplaceSelectedTranscript,SessionHistoryRestoresSelectionTranscriptAndDraftAcrossAgents, andNewAgentUsesGatewayCreationAndRefreshesWithoutReplacingConversationfailed before the 15-minute fixture timeout.NativeToolIdentityScreenshotProofTests.SyntheticNativeRows_RenderTrustedIdentitySafeInputAndTruthfulFallbacktimed out waiting for a native tool row.At
b17231b3, the long worktree's native build failed withMSB3030copying the integrated fixed-worker payload. All 192 source files existed; the 116 paths at least 260 characters matched the 116 copy failures. A real short checkout with canonical outputs builds successfully, unlike aliases that MSBuild canonicalized back to the long path. No shared path policy or installed runtime was changed. The earlier failed builds still count as failures, not executed tests.An earlier merge-in-progress build failed
WMC9999after its source changed; it is retained as invalidated/failed evidence, not a pass. No speculative SDK downgrade, scrolling workaround, or weakened assertion was committed.Real Behavior Proof
03770d8f011de807347ca7e811e0a0c6775a1bdacorresponds to the recorded dirty source used for this update's build/managed closeout. Native update runs retain their own source/binary receipts and predate the final observer-only edit. Earlier visual evidence is pinned separately; hosted CI uses the PR merge ref.Tool call Bash. Done.,Tool call Apply Patch. Done., andTool call Tool. Done.. UIA foundcommand: powershell -NoProfile -Command Get-ChildItem .\src,file_path: src\OpenClaw.Chat\ChatTimelineReducer.cs, andcommand: [redacted]; forbidden run-identity and secret strings were absent. An owned-HWND synthetic screenshot was captured and inspected privately. Historical Light/Dark tool and nested-focus captures retain their actual source revision.Yes/No/N/A): Yes. Exact uploaded comments were read back, and the three linked images were fetched through authenticated GitHub attachment reads. Anonymous HEAD requests returned 403; the authenticated images were inspected successfully.Security Impact
Yes/No): No.Yes/No): No.Yes/No): Yes.Yes/No): No.Yes/No): No.Yes, explain the risk and mitigation: existing authenticated Gateway history/result reads gain paging and bounded recovery. Session, connection and generation fences remain required. Syntax coloring is display-only, preserves sanitized literal text, and uses bounded regex matching. It never executes PowerShell or other input. Sandbox file-transfer changes arrived from main and are not introduced by this PR.Compatibility and Migration
Yes/No): Yes by design; installed-Gateway compatibility proof remains open.Yes/No): Yes, an independent persisted Show thinking preference and optional boundedOPENCLAW_CHAT_SYNTAX_TIMEOUT_MSoverride.Yes/No): No.Review Conversations
All four accepted source-review findings (nested footer ownership plus three history/recovery cases) and the additional stale-hover race have fixes and regression evidence. Merge integrations preserve current main ownership. The latest three-file update also received independent source and implementation/proof-plan review. Remaining PR-specific or unattributed runtime/CI limits stay open; no merge or readiness approval is claimed.