Skip to content

improve(chat): align native conversation and tool activity with web - #2093

Merged
bkudiess merged 14 commits into
openclaw:mainfrom
bkudiess:bkudiess-chat-alignment-polish
Nov 10, 2026
Merged

bkudiess merged 14 commits into
openclaw:mainfrom
bkudiess:bkudiess-chat-alignment-polish

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 of b17231b39b66bcff4fc572dabcccdaa9dd2141ae and its integration of main 932bc0e3c7b71a94cdd27dcdd78ad4e2343a5064.

  • Fresh update closeout: full build passed; 5,306 Shared passed with 27 ordinary skips; 5,614 isolated Tray passed with zero selected skips. The explicit normal-OS-profile-read exclusion remains disclosed below.
  • Latest-head Build and Test run: in progress. Dispatch has passed; pending jobs are not counted as successful validation.
  • Local native Debug update evidence: 1/1 tool-accessibility case passed with all three trusted/fallback inputs and redaction assertions; the corrected feedback run was 1 passed (480 DIP), 1 failed (1100 DIP). The wide case reaches the final resize-back/Jump before failing. The final observer-only diagnostic edit was compiled afterward but has not yet been rerun natively.
  • The original animated reproducer at b17231b3 remains available unchanged and in the independent investigation. The unchanged upstream reproducer at bf29dc7, 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 terminal 0xC000027B with first stowed result 0x88000FA8 (AG_E_LAYOUT_CYCLE). This supports the separate microsoft/microsoft-ui-xaml#12490 investigation, not attribution of the remaining wide Jump failure.
  • At earlier 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.
  • Uploaded native screenshots at 34cb0c40 and earlier integrated captures at 3bd4ff5e retain their actual source identities. They are historical visual evidence, not current-head UI proof.
  • Pre-update b17231b3 Build 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.
  • Pre-update CodeQL run: passed. The unrelated ClawSweeper HTTP 500 dispatch failure passed attempt 2 after one retry. Change-related UI failures were not rerun away. New-head CI is separate from these results.

Earlier Hanselman review used claude-opus-5.5 (default context) and gpt-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-native code-review assessment covered all 98 files against main and the implementation/proof plan. Its three history/recovery findings were fixed in 34cb0c40 and accepted in follow-up; the hover race and merge resolutions were also independently reviewed. The runtime has no rubber-duck role 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-review assessment, not a shared-helper clean-status or runtime verdict.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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:

$out and $run below denote private isolated evidence directories. Tray, roaming and local data roots are isolated; inherited OPENCLAW_* opt-ins are cleared before managed tests.

.\build.ps1
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared.trx' --results-directory $out
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName!=OpenClaw.Tray.Tests.SettingsManagerIsolationTests.OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData' --logger 'trx;LogFileName=tray.trx' --results-directory $out

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.

dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~ChatTimelinePresentationTests|FullyQualifiedName~ChatToolActivityPresentationTests' --logger 'trx;LogFileName=chat-policies.trx' --results-directory $run

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 set OPENCLAW_VISUAL_TEST=1; real-app fixture runs opt in separately and select the matching executable through OPENCLAW_GATEWAY_FIXTURE_APP. Pointer cases also set OPENCLAW_RUN_KEYBOARD_PROOF=1.

The update was built in an exclusively loaned short checkout with source hashes matching the parent worktree:

dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Debug -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false -v quiet
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 -c Debug -p:DevBuild=false -p:RequireSignedCleanupHost=false --no-build --filter 'FullyQualifiedName~ConversationFeedback_ThinkingToolReviewsAndHistoryRetainComposerWithoutSearch|FullyQualifiedName~NativeToolIdentityScreenshotProofTests.SyntheticNativeRows_RenderTrustedIdentitySafeInputAndTruthfulFallback' --logger 'console;verbosity=normal' --logger 'trx;LogFileName=followup.trx' --results-directory $run

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:

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -r win-arm64 -c Debug -p:DevBuild=false -p:RequireSignedCleanupHost=false --no-build --filter 'FullyQualifiedName~ConversationFeedback_ThinkingToolReviewsAndHistoryRetainComposerWithoutSearch' --logger 'console;verbosity=normal' --logger 'trx;LogFileName=feedback.trx' --results-directory $run

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:

dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Debug -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false -p:BuildProjectReferences=false -v quiet

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:

$native = 'FullyQualifiedName~ReactorToolActivityProofTests|FullyQualifiedName~ChatToolInputSyntaxTests|FullyQualifiedName~ReactorMarkdownReadingRampProofTests|FullyQualifiedName~ChatThemeProofScopeTests|FullyQualifiedName~CompletedWork_|FullyQualifiedName~ExpandedWork_|FullyQualifiedName~LiveWork_|FullyQualifiedName~MessageFooters_|FullyQualifiedName~HistoryLoading_StopsPulsingBeforeCompletedMessagesReplaceIt|FullyQualifiedName~ConversationFeedback_|FullyQualifiedName~ConversationParity_|FullyQualifiedName~GatewayFixtureInteractiveUiTests|FullyQualifiedName~Timeline_UsesAndRefreshesTheCurrentRosterIdentity|FullyQualifiedName~Timeline_GeneratedAgentFaceFitsAvatarSlot|FullyQualifiedName~QueuedMessages_'
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Release -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false -v quiet
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-build -c Release -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false --filter $native

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.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Debug -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false --filter 'FullyQualifiedName~ExpandedWork_MessageFootersBelongToTheHoveredMessage|FullyQualifiedName~ExpandedWork_MessageFootersBelongToTheFocusedMessage'

Result: 4 passed. The broader Debug selection passed 55/57, with two explicit foreground-admission failures, not ordinary skips.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj --no-restore -c Debug -r win-arm64 -p:DevBuild=false -p:RequireSignedCleanupHost=false --filter 'FullyQualifiedName~ConversationScrolling_JumpIconReachesExactBottomAndPreservesReaderPosition'

Not passing: both widths have failed initial-tail readiness; later executions abort with native LayoutCycleException. The hosted UI job at 34cb0c40 aborted during this case with "Element is already the child of another element". The pre-update b17231b3 UI job also crashed its native testhost. Fixture cases LateHistoryForPreviousSessionCannotReplaceSelectedTranscript, SessionHistoryRestoresSelectionTranscriptAndDraftAcrossAgents, and NewAgentUsesGatewayCreationAndRefreshesWithoutReplacingConversation failed before the 15-minute fixture timeout. NativeToolIdentityScreenshotProofTests.SyntheticNativeRows_RenderTrustedIdentitySafeInputAndTruthfulFallback timed out waiting for a native tool row.

At b17231b3, the long worktree's native build failed with MSB3030 copying 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 WMC9999 after 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

  • Environment tested: native Windows ARM64, .NET SDK 10.0.403, Windows App SDK 2.6.5, Reactor 0.1.0-preview.16; isolated synthetic Gateway profiles.
  • PR head or commit tested: 03770d8f011de807347ca7e811e0a0c6775a1bda corresponds 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.
  • Exact steps or command run: commands above exercise the separate activity disclosures and retained two-width chat contracts. Historical selections cover recovery, typography, themes, hover/focus and completed-text pixels.
  • Evidence after fix: the updated accessibility test expanded three separate activities, then Tool call Bash. Done., Tool call Apply Patch. Done., and Tool call Tool. Done.. UIA found command: powershell -NoProfile -Command Get-ChildItem .\src, file_path: src\OpenClaw.Chat\ChatTimelineReducer.cs, and command: [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.
  • Observed result: accessibility passes and the 480-DIP feedback case reaches all retained assertions. The 1100-DIP final Jump remains short of the reported bottom; no two-width success or crash-fix claim is made.
  • Screenshot or artifact links verified? (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.
  • Not verified or blocked: the separate wide Jump failure and its attribution, latest-observer native execution, current-head Release/full native proof, fixture history/navigation failures, latest-head green CI, and real supported-Gateway paging/recovery compatibility. The demonstrated pre-existing animated-scroll crash continues independently rather than holding this app PR for a native-platform fix. No signed-package, live provider, or web/Windows read-state synchronization claim.

Security Impact

  • New permissions or capabilities? (Yes/No): No.
  • Secrets or tokens handling changed? (Yes/No): No.
  • New or changed network calls? (Yes/No): Yes.
  • Command or tool execution surface changed? (Yes/No): No.
  • Data access scope changed? (Yes/No): No.
  • If any answer is 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

  • Backward compatible? (Yes/No): Yes by design; installed-Gateway compatibility proof remains open.
  • Config or environment changes? (Yes/No): Yes, an independent persisted Show thinking preference and optional bounded OPENCLAW_CHAT_SYNTAX_TIMEOUT_MS override.
  • Migration needed? (Yes/No): No.
  • If yes, list the exact upgrade steps: N/A. Unsupported optional Gateway reads must remain explicit rather than silently successful.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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.

bkudiess and others added 3 commits November 8, 2026 11:03
…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]>
@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@bkudiess

bkudiess commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

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.

Tool input and output in Light theme

Tool input and output in Dark theme

Sent message metadata and copy glyph share a vertical center

Only the focused nested message reveals its actions

@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
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]>
@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

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

  • Before: Tool details use the older presentation without syntax-colored input.
  • After: Input receives syntax coloring, output stays literal and muted, and completed activity can fold into a Worked disclosure.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful authorized direction and credible visual evidence, with verified correctness defects and incomplete runtime and upgrade validation.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Native conversations obscure supplied reasoning and tool work and present inconsistent spacing, alignment, and message actions.
Reason: The collaborator-authored direction authorizes the presentation changes and independent thinking preference; clearer inspectable activity provides concrete user value.

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
Reviewed head: 3bd4ff5e79686876f8f6c790e51669671a68cefe

Before merge

  • Add real behavior proof - Authority-chain proof required: exercise an allowed saved-result read and a replacement or revoked account through the production client, bridge, provider, and mounted reader, including replacement before initial users.self verification and a delayed response after invalidation. Show rejection before unauthorized dispatch or display. The four inspected current-candidate screenshots support syntax styling, alignment, and nested focus only. The body retains scrolling failures and lacks supported-Gateway paging/recovery results. Supply redacted runtime traces or recordings for these paths and an upgrade run from the latest stable release with settings intact; redact credentials and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Reconcile tool calls and results across history pages (P2) - If the initial page starts with result call-1 and the older page contains its invocation, each page is reduced independently. The initial rebuild creates a completed fallback row, while the older rebuild creates an invocation without that result. Concatenation retains both because their Gateway message IDs differ, leaving duplicate activity and an interrupted invocation. Reconcile the boundary by exact run/call identity through the existing history/reducer owners while preserving active live state.
  • Pass the physical session ID for live tool results (P2) - A live toolResult carrying a canonical result ID and truncation metadata reaches this branch without MapContentTool's sessionId argument. Its ToolResultReference therefore has a null SessionId, so ToolResultCard cannot construct the recovery request and Show full output remains unavailable until history reload. Pass the current physical session ID, as the assistant-content branch already does.
  • Preserve windowReset and reload invalidated history (P2) - When a page cursor belongs to a replaced transcript generation, the Gateway can return messages: [] with windowReset: true. This parser drops that flag. LoadOlderAsync then commits an ordinary empty page and MarkCommitted removes pagination state, leaving cached history displayed as though earlier history were exhausted. Carry the reset signal through the typed response and recover through the existing authoritative history replacement path.
  • Allow nested-tools through the fixture launcher (P3) - The patch adds nested-tools to FixturePlayback and implements its runtime scenario, but the PowerShell launcher's ValidateSet omits it. Passing -Scenario chat-interactive -Interaction nested-tools fails parameter validation before the fixture starts. Add the new scenario to this existing list.
  • Resolve security review attention item - The new saved-result reader needs final-effect account-replacement evidence; no concrete unauthorized disclosure was established.
  • Resolve merge risk - Before merge, the author must establish that account replacement during initial profile verification cannot admit saved-result reads using the previous account's cached history.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

  • [P2] Reconcile tool calls and results across history pages — src/OpenClaw.Tray.WinUI/Chat/ChatHistoryState.cs:240-242
  • [P2] Pass the physical session ID for live tool results — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1618-1619
  • [P2] Preserve windowReset and reload invalidated history — src/OpenClaw.Shared/OpenClawGatewayClient.cs:1007-1014

Tests

  • Missing end-to-end proof: Missing evidence covers successful native scrolling, supported-Gateway paging/recovery, allowed and forbidden account transitions, latest-stable settings preservation, and failing-base/passing-head regressions for the identified defects.
Agent review details

How this fits together

Authenticated 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]
Loading

Technical review

Best 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:

  • [P2] Reconcile tool calls and results across history pages — src/OpenClaw.Tray.WinUI/Chat/ChatHistoryState.cs:240-242
    If the initial page starts with result call-1 and the older page contains its invocation, each page is reduced independently. The initial rebuild creates a completed fallback row, while the older rebuild creates an invocation without that result. Concatenation retains both because their Gateway message IDs differ, leaving duplicate activity and an interrupted invocation. Reconcile the boundary by exact run/call identity through the existing history/reducer owners while preserving active live state.
    Confidence: 0.98
  • [P2] Pass the physical session ID for live tool results — src/OpenClaw.Tray.WinUI/Chat/OpenClawChatDataProvider.cs:1618-1619
    A live toolResult carrying a canonical result ID and truncation metadata reaches this branch without MapContentTool's sessionId argument. Its ToolResultReference therefore has a null SessionId, so ToolResultCard cannot construct the recovery request and Show full output remains unavailable until history reload. Pass the current physical session ID, as the assistant-content branch already does.
    Confidence: 0.99
  • [P2] Preserve windowReset and reload invalidated history — src/OpenClaw.Shared/OpenClawGatewayClient.cs:1007-1014
    When a page cursor belongs to a replaced transcript generation, the Gateway can return messages: [] with windowReset: true. This parser drops that flag. LoadOlderAsync then commits an ordinary empty page and MarkCommitted removes pagination state, leaving cached history displayed as though earlier history were exhausted. Carry the reset signal through the typed response and recover through the existing authoritative history replacement path.
    Confidence: 0.99
  • [P3] Allow nested-tools through the fixture launcher — scripts/run-gateway-fixture.ps1:15
    The patch adds nested-tools to FixturePlayback and implements its runtime scenario, but the PowerShell launcher's ValidateSet omits it. Passing -Scenario chat-interactive -Interaction nested-tools fails parameter validation before the fixture starts. Add the new scenario to this existing list.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Establish account-bound recovery (recommended)
    The author supplies allowed and forbidden-account traces through the production reader, including account replacement before initial verification and delayed completion after replacement.
  2. Defer saved-result recovery
    The author separates the new saved-result read path from the presentation improvements until its account boundary is established.

Provenance checked

  • Compact tool presentation changes intended behavior with a stated reason (aac07ab: Compact consecutive calls while retaining inspectable details and source chronology.)
  • Pending-message placement changes intended behavior with a stated reason (820cffe: Present queued submissions as pending conversation bubbles without changing send mechanics; this PR explicitly chooses a separate panel.)
  • Native tail navigation changes intended behavior with a stated reason (ca8fb4a: Keep virtualization native and reject stale queued navigation; explicit Jump and disclosure anchoring extend that behavior.)
  • History and runtime ownership keeps the original intent (f8a8825: Extract focused runtime owners while keeping atomic state coordination authoritative.)

Testing

Proof path: in-process harness.

Security

Needs attention: The new saved-result reader needs final-effect account-replacement evidence; no concrete unauthorized disclosure was established.

Evidence

What I checked:

Likely related people:

  • Barbara Kudiess: Raw commit f8a8825 adds src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs:70 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8a8825ccbb4; files: src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs)
  • Caleb Eden: Raw commit aac07ab adds src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs:20 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: aac07abb1fbd; files: src/OpenClaw.Tray.WinUI/Chat/ToolCallCardRenderer.cs)
  • Scott Hanselman: Raw commit 6438564 adds src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs:49 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 64385643f853; files: src/OpenClaw.Tray.WinUI/Chat/ChatHistoryLoader.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: The candidate improves chat usability but introduces limited-scope history and recovery failures.
  • add merge-risk: 🚨 compatibility: New optional Gateway reads and reasoning metadata need supported-version and upgrade validation.
  • add merge-risk: 🚨 session-state: Paging can leave duplicate tool identities or retain an invalidated transcript window.
  • add merge-risk: 🚨 security-boundary: Saved-result locators cross an authenticated account/session boundary, including asynchronous profile replacement.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: The candidate improves chat usability but introduces limited-scope history and recovery failures.
  • merge-risk: 🚨 session-state: Paging can leave duplicate tool identities or retain an invalidated transcript window.
  • merge-risk: 🚨 compatibility: New optional Gateway reads and reasoning metadata need supported-version and upgrade validation.
  • merge-risk: 🚨 security-boundary: Saved-result locators cross an authenticated account/session boundary, including asynchronous profile replacement.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 9, 2026, 1:40 PM ET / 18:40 UTC.

@bkudiess

bkudiess commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

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.

Current-head Release tool input and output in Light

Current-head Release tool input and output in Dark

Current-head Release nested-message focus isolation

bkudiess and others added 3 commits November 9, 2026 11:04
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]>
@socket-security

socket-security Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednuget/​colorcode.core@​2.0.1510010090100100

View full report

@bkudiess bkudiess added status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. and removed status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. labels Nov 9, 2026
@bkudiess

bkudiess commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
bkudiess and others added 6 commits November 9, 2026 15:02
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]>
@bkudiess
bkudiess merged commit 243f9cf into openclaw:main Nov 10, 2026
27 checks passed
paulcam206 added a commit to paulcam206/openclaw-windows-node that referenced this pull request Nov 10, 2026
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.
paulcam206 added a commit to paulcam206/openclaw-windows-node that referenced this pull request Nov 11, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant