Skip to content

feat(usage): rebuild the Usage page with the web page's sessions, charts and filters - #1895

Merged
bkudiess merged 27 commits into
openclaw:mainfrom
bkudiess:bkudiess-reactor-usage-page-parity
Nov 10, 2026
Merged

bkudiess merged 27 commits into
openclaw:mainfrom
bkudiess:bkudiess-reactor-usage-page-parity

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The existing Windows Usage page lacks the date ranges, contributor breakdowns and session detail needed to understand everyday usage and estimated cost.

User Impact

Users can inspect Gateway-reported usage natively, open a reported session in chat, export a complete report, or continue deeper analysis in the Gateway's web Usage page.

  • Today, 7-day, 30-day and custom ranges; local/UTC reporting; estimated cost, tokens/cache, session counts, and a daily chart with an accessible table.
  • Compact agent/model/provider breakdowns, bounded session browsing and inline details. Provider allowances, reset times and billing facts remain separate from session-derived estimates.
  • Capability-gated search, filtering, sorting and paging. Missing, unpriced, partial, stale, failed and disconnected data remain visibly distinct from zero or complete results.

Compatibility: Gateways without a compatible sessions.usage API show an update/access notice instead of Usage totals. Older supported schemas use a bounded Basic view, not an exhaustive server search. No data migration is required.

Why This Change Was Made

Keep common daily analysis native without chasing full web parity. Heatmaps, per-turn/prompt-context analytics, transcript exploration and advanced exports remain in the web experience. The web handoff opens /usage; it does not transfer the current date range, filters or selected session.

The Gateway remains the data authority. Parsing, presentation and export ownership are separated from the native host, with cancellation and connection/query-origin guards preventing stale results or misleading exports. Original feature implementation: @bkudiess.

Evidence

All required CI passed for head 2953108c4a316ed275dc3b97912230ee828339b5: Build and Test and CI Gate.

The run's test-results-gateway-fixture artifact contains 48/48 profile cases, 102/102 application cases and 1/1 released-profile compatibility case, with no selected skips. The full fixture suite completed in 768.26 seconds; Usage's pinned-page case passed in 40.20 seconds.

Independent paired reviews covered the feature-repair scope; the final Tab-contract correction received a further scoped independent review. This is not a claim of a fresh whole-head dual-model 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 Usage rendering, accessibility, keyboard navigation and pinned-page interaction. The selected ARM64 and hosted x64 evidence is described below, not a claim that every optional pool scenario ran.

Validation

Local validation used the frozen source tree that became 2953108c. $R below denotes the recorded task-owned results directory; private output paths are omitted.

Command Result
.\build.ps1 -NoTrustRepository Passed
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore -p:UseSharedCompilation=false --logger "trx;LogFileName=Shared.trx" --results-directory $R 5,445 passed, 28 ordinary opt-in skips, 0 failed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore -p:UseSharedCompilation=false --logger "trx;LogFileName=Tray.trx" --results-directory $R Unfiltered: 5,993 passed, 0 failed/skipped
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false -p:RequireSignedCleanupHost=false -nr:false --disable-build-servers -v:minimal Passed, 0 warnings/errors; compilation is not native execution

Focused Shared and Tray selections passed 177/177 and 246/246, respectively. Workflow, documentation, skill and Reactor-bootstrap checks also passed. Hosted CI additionally passed the full Core/CLI, Tray/setup/integration, UI/functional/accessibility, WSL setup/recovery and packaging lanes; optional skipped jobs are not represented as executed proof.

Exact final local pinned-page command

Executed once against the frozen Debug non-Dev ARM64 payload, with an isolated synthetic Gateway/profile and owned-process cleanup. Result: 1/1 passed, 0 skipped, covering Light and Dark. <owned-results> replaces only the private artifact directory.

dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj `
  -c Debug -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false `
  --no-restore --disable-build-servers -m:1 `
  --filter "FullyQualifiedName=OpenClaw.Tray.UITests.GatewayFixtureUiTests.UsagePinned_ToggleOwnsHitPointAndTabOrderWithVisibleOperationFeedback" `
  --logger "trx;LogFileName=tab-contract-once.trx" --results-directory <owned-results> `
  --verbosity quiet --blame-hang --blame-hang-timeout 2m --blame-hang-dump-type none --no-build

The runner supplied the fixture app path and isolated data roots, enabled the fixture gate, and preserved the machine's animation preference. It verified process drainage before releasing its reservation.

Real Behavior Proof

  • Environment tested: local Windows ARM64 Debug non-Dev app and hosted Windows x64, both using isolated profiles and synthetic Gateway data.
  • PR head or commit tested: published head 2953108c4a316ed275dc3b97912230ee828339b5. GitHub tested merge ref b647c7749e6546bfd19c4d6df978c391299ab6a2 with then-main 55ceb602; the repaired test blob is identical in the head and tested merge.
  • Exact steps or command run: the pinned-page command above, plus the hosted fixture/UI lanes in the linked CI run.
  • Evidence after fix: the final local pinned-page fact completed 20 physical pane transitions, two opaque-occluder negative controls and 12 forward/reverse focus receipts across Light and Dark. Hosted UsagePinned also passed.
  • Observed result: pane controls act on the owned window; obstructed targets inject no input; native Tab follows TitleBar, Dashboard, Notifications and Usage content, with the reverse/return identity checks intact. No shared-shell keyboard behavior was changed.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. The linked successful CI run and its test-results-gateway-fixture artifact are available. Obsolete screenshots and private session links are intentionally omitted.
  • Not verified or blocked: Usage-specific live-Gateway/browser compatibility and billing accuracy, actual OS Save-picker interaction, whole-page High Contrast and localized visual fit. No final-head local Release UI run is claimed. The local Dark image was not settled focus-pixel proof; native focus receipts are the evidence for that transition.

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): Yes.
  • If any answer is Yes, explain the risk and mitigation: authenticated read-only sessions.usage and usage.status use the existing operator connection and access checks. The page reads usage/session metadata, not transcript logs or per-turn content. CSV is explicit local output, not telemetry; cells are quoted and formula prefixes neutralized, incomplete exports are refused, and connection/query origin is rechecked across the picker.

Compatibility and Migration

  • Backward compatible? (Yes/No): No for Gateways without compatible sessions.usage. Supported older schemas use the Basic contract; unsupported controls remain hidden and loaded-only drilldowns are not presented as exhaustive.
  • Config or environment changes? (Yes/No): Yes. Optional OPENCLAW_USAGE_RECHECK_INTERVAL_MS and OPENCLAW_USAGE_NOTIFICATION_MS; normal defaults require no user configuration.
  • Migration needed? (Yes/No): No data migration.
  • If yes, list the exact upgrade steps: N/A. Update an unsupported Gateway when the page requests it. Dependency bootstrap and shared navigation are upstream-owned, not a Usage packaging migration.

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.

No GitHub review threads are currently open. This description update does not merge the PR or claim approval on behalf of reviewers.

…rts and filters

Replace the classic XAML Usage page with a Reactor page that gives Windows
users the same usage information as the web Control UI: reporting range with
presets, time zone and scope, totals, daily token and cost charts, started-by
attribution, overview stats and top lists, cost windows, heatmap, activity by
time, a sessions list with per-session details, provider plans, and CSV/JSON
export.

Gateway JSON is parsed in OpenClaw.Shared (sessions.usage, .timeseries, .logs,
usage.status, usage.cost) and projected by WinUI-free presentation code with
unit tests. Released Gateways that reject the newer sessions.usage overview
parameters get a basic view; Gateways without sessions.usage fall back to
usage.cost totals.

Depends on Reactor analyzer fixes microsoft/microsoft-ui-reactor#1427 and
microsoft/microsoft-ui-reactor#1428; with stock 0.1.0-preview.12 the build
reports 7 REACTOR_DSL_001/REACTOR_A11Y_001 false positives.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 27, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. 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: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex review: needs changes before merge.

What this changes

This PR replaces the Usage page with native session analytics, charts, custom ranges, provider allowances and CSV exports.

Example: Inspect usage for October 21–27, 2026.

  • Before: The page provides aggregate totals, daily costs and provider plans.
  • After: Users can inspect contributing agents, models and sessions, expand session details and export the selected range.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful owner-directed feature, but three source-confirmed defects block correctness and historical captures do not establish the current behavior.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 3 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Windows users cannot identify the sessions, agents and models driving usage or inspect a custom reporting range.
Reason: The collaborator-authored direction supplies useful native analysis while explicitly leaving deeper analytics to the web page.

Merge readiness

⛔ Needs changes before merge - 3 items remain

Keep open: this collaborator-authored feature adds useful analysis absent from main, but three correctness defects need repair before merge.

Priority: P2
Reviewed head: 28b94333b17cf358f6cd9e6a0cf6ddd5ba3a4e5e

Before merge

  • Recheck the originating Gateway before writing the selected CSV file (P2) - Start an export on Gateway A, leave the Save picker pending, then replace the client with Gateway B, for example through the existing local connection command. Gateway replacement resets state inside the same controller, so this identity check still passes and FileIO.WriteTextAsync writes A's report. UsageExportWorkflow checks the Gateway only after save returns, which merely suppresses the notification. Carry the originating connection guard into the save callback and check it after the picker returns, immediately before writing.
  • Withhold session percentages when the range report is incomplete (P2) - A report can have partial or stale cache status while its numeric totals and one completed session have no lower-bound flag. With $5 currently aggregated and a completed $5 session, this code displays an exact 100% share even though other sessions remain uncomputed. The hero and contributor policies already reject this state, but session details check only per-total flags and missing prices. Apply the same report/cache completeness requirement before rendering the percentage.
  • Use the expiry-aware allowance policy for provider warning badges (P2) - A provider window reporting 90% with ResetAt already passed still satisfies NearLimit, so the rendered provider row continues showing Near limit and its attention action. The source's expiry callback invalidates AttentionCount but retains the display snapshot, and the row ignores UsageProviderAttention.Select, which already rejects expired windows and provider errors. Reuse that validity policy for the badge while retaining historical allowance text as appropriate.

Findings

  • [P2] Recheck the originating Gateway before writing the selected CSV file — src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs:139-141
  • [P2] Withhold session percentages when the range report is incomplete — src/OpenClaw.Tray.WinUI/Pages/Usage/UsageSessionsSection.cs:35-38
  • [P2] Use the expiry-aware allowance policy for provider warning badges — src/OpenClaw.Tray.WinUI/Presentation/Usage/UsageInsights.cs:9-10

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/Usage/UsageSessionDetailAndExportTests.cs: Remove the helper-only SummaryRow test, which restates null coalescing, and protect fallback behavior through the rendered detail surface instead.
  • Missing end-to-end proof: Current-candidate visible Usage behavior, real-Gateway compatibility and native Save-picker completion remain unproved; the new fixes also need failing-before/passing-after regressions.
Agent review details

How this fits together

The Usage controller sends authenticated operator reads to the Gateway, projects reported metadata into Reactor views, and delegates chat navigation, browser launch and CSV saving to existing Windows owners.

flowchart LR
  A[Usage controls] --> B[Usage controller]
  B --> C[Operator Gateway client]
  C --> D[Gateway usage methods]
  D --> E[Typed usage projections]
  E --> F[Native charts and sessions]
  B --> G[CSV save and navigation]
Loading

Technical review

Best possible solution:

Keep the controller/projection split, fence exports immediately before file writing, and reuse the existing completeness and allowance-validity policies.

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

The three failing paths follow directly from current source and existing input models; no target code, build or tests were executed during this read-only review.

Is this the best way to solve the issue?

The native analysis feature has clear value, and its existing owners can handle the remaining fixes without additional services or configuration.

Full review comments:

  • [P2] Recheck the originating Gateway before writing the selected CSV file — src/OpenClaw.Tray.WinUI/Pages/UsagePage.xaml.cs:139-141
    Start an export on Gateway A, leave the Save picker pending, then replace the client with Gateway B, for example through the existing local connection command. Gateway replacement resets state inside the same controller, so this identity check still passes and FileIO.WriteTextAsync writes A's report. UsageExportWorkflow checks the Gateway only after save returns, which merely suppresses the notification. Carry the originating connection guard into the save callback and check it after the picker returns, immediately before writing.
    Confidence: 0.96
  • [P2] Withhold session percentages when the range report is incomplete — src/OpenClaw.Tray.WinUI/Pages/Usage/UsageSessionsSection.cs:35-38
    A report can have partial or stale cache status while its numeric totals and one completed session have no lower-bound flag. With $5 currently aggregated and a completed $5 session, this code displays an exact 100% share even though other sessions remain uncomputed. The hero and contributor policies already reject this state, but session details check only per-total flags and missing prices. Apply the same report/cache completeness requirement before rendering the percentage.
    Confidence: 0.97
  • [P2] Use the expiry-aware allowance policy for provider warning badges — src/OpenClaw.Tray.WinUI/Presentation/Usage/UsageInsights.cs:9-10
    A provider window reporting 90% with ResetAt already passed still satisfies NearLimit, so the rendered provider row continues showing Near limit and its attention action. The source's expiry callback invalidates AttentionCount but retains the display snapshot, and the row ignores UsageProviderAttention.Select, which already rejects expired windows and provider errors. Reuse that validity policy for the badge while retaining historical allowance text as appropriate.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Usage period selection and reconnect recovery keeps the original intent (Tidy Usage page and recover from disconnected gateway #508: Prevent disconnected loads from remaining blank and recover when the Gateway reconnects; the replacement retains lifecycle subscriptions and response fencing.)
  • Older-Gateway aggregate fallback changes intended behavior with a stated reason (d4284d4: The former policy accepted an initial mismatched cost period to avoid indefinite loading on older Gateways; the current description explicitly replaces that compatibility path with an unsupported/update state.)
  • Operator facade and page ownership keeps the original intent (990a7f4: Expose operator reads without giving pages connection lifecycle control; the new page continues using the manager-owned client.)
  • Reactor dependency changes intended behavior with a stated reason (a4dd026: Preview.16 carried the chat recycled-anchor workaround; this PR deliberately adopts the published preview.17 pair and verified acquisition path for the new page.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • ./scripts/Initialize-ReactorPackages.ps1
  • ./scripts/test-reactor-packages.ps1
  • ./build.ps1
  • dotnet build ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj
  • dotnet build ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj

What I checked:

Likely related people:

  • Ranjesh Jaganathan: Raw commit 990a7f4 adds src/OpenClaw.Shared/IOperatorGatewayClient.cs:10 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 990a7f4a5f74; files: src/OpenClaw.Shared/IOperatorGatewayClient.cs)
  • Scott Hanselman: Raw commit 0b31e21 adds src/OpenClaw.Tray.WinUI/App.xaml.cs:1645 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 0b31e210a421; files: src/OpenClaw.Tray.WinUI/App.xaml.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.

Review metrics

Metric Value Why it matters
Production and test delta Production +5,762/-830 lines; tests and fixtures +7,236/-96 lines The feature includes substantial protocol, lifecycle, export and native-rendering coverage, making a focused consistency repair preferable to another architectural rewrite.

Labels

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: This is a useful analytics improvement with bounded export and presentation defects, rather than an urgent core-runtime outage.
  • merge-risk: 🚨 session-state: An export can retain the previous Gateway's session data through a client replacement and still write it.
  • merge-risk: 🚨 compatibility: Gateways without compatible sessions.usage lose the page's previous aggregate fallback; this tradeoff is explicitly accepted in the collaborator-authored description.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-27T19:16:48.073Z sha b3c8dc4 :: needs changes before merge. :: [P1] Use a reproducible Reactor dependency that builds the new page | [P2] Reset Gateway-bound session state when the client changes | [P2] Keep legacy cost buckets consistent with the selected time zone

Reviewed November 9, 2026, 6:10 PM ET / 23:10 UTC (Revision 2).

Resolve additive resource conflicts without dropping either set of translations.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

Current-head validation and UI proof

Candidate: 86d8597214a32d78ee7be518aeaf5a5876817ba4, including a merge of main at 48cb8a18. The six locale conflicts were resolved by keeping both sets of resource additions. No Usage implementation code changed in that merge.

Still blocked, not CI-green. Build and Test, attempt 1 ran after the conflict resolution. Core/CLI, fast validation, proof-pool contracts and release metadata passed. The stock Reactor package still reports the seven analyzer errors. The two analyzer fixes, microsoft/microsoft-ui-reactor#1427 and microsoft/microsoft-ui-reactor#1428, are now merged, but a compatible published package containing them has not been verified.

Native proof below uses a temporary, local-only 0.1.0-preview.12-local.2 package containing those two analyzer fixes. It does not establish a successful build from the committed dependency graph. Neither the local feed nor its version pins are committed.

Check Result
.\build.ps1 with local analyzer-only Reactor package Passed
Full Shared tests 4,671 passed, 3 failed, 25 skipped
Full Tray tests 4,615 passed, 7 failed, 0 skipped
Focused Shared Usage plus MXC command-runner recheck 99 passed, 0 failed/skipped
Focused Tray Usage/localization plus the three chat failure owners 322 passed, 0 failed/skipped
Real-process x64 accessibility plus startup tests 24 passed, 1 failed, 0 skipped. The Usage page case passed. The failure is two unnamed expanders on SandboxPage, not Usage.

The full-run failures are retained, not replaced by the focused passes. Shared's three failures were command-runner deadlines/output under load. Tray had the four previously observed ARM64 build-prerequisite failures and three chat/concurrency/HTTP-timeout failures. No Usage test failed. The PR body lists the exact commands and limitations.

An independent rubber-duck review checked the final fix round at b3c8dc4d, found no new blocking source finding, and ran 116 Tray Usage tests and 76 Shared Usage/Sessions tests. That is advisory source evidence. Native execution subsequently found the runtime failure below.

New blocking native failure

Switching the fixture through populated, empty, partial and legacy states, with Settings Connection -> Usage navigation between modes, produced:

Render error: InvalidCastException:
Unable to cast object of type 'Microsoft.UI.Xaml.Controls.Border'
to type 'Microsoft.UI.Xaml.Controls.InfoBar'.

The stack enters Reactor's V1HandlerAdapter.Update from ChildReconciler.ReconcileKeyed. The Usage sections have stable keys and exit transitions. A separate local Reactor investigation is reducing this; no animation removal, analyzer suppression, or other Windows-side workaround has been added. Legacy transition proof fails. This screenshot is failure evidence, not a passed state.

Legacy transition fails with a Reactor keyed-child render error

Current-source captures

These are real native app-window captures of synthetic fixture data, not a real Gateway/provider account. The profile, Gateway and MCP endpoint were isolated. Executable and managed-assembly hashes, source identity, fixture receipts and TRX files were retained locally. High contrast was enabled with approval and restored to the original None setting with approval.

Populated report and chart text equivalent

Populated native Usage reporting range and totals

Thirty-day chart with its expanded native text table

High contrast and filtered conversation

Native Usage header using Windows Night sky high contrast

Conversation search narrows synthetic logs from 24 to 6 messages

Empty and partial reports

Empty report shows zero totals and the native empty state

Partial report shows lower-bound totals and partial/cache banners

Released-Gateway fallback, dark theme and disconnected state

Dark-theme basic view for the released Gateway schema with unsupported filters hidden

Disconnected Usage page with disabled refresh/export and Open Connection action

The disconnected banner's own Open Connection button was invoked and the native ConnectionPageMarker appeared. Conversation search was exercised through the native field and showed 6 of 24 messages for Checking. The daily chart's text table was expanded and exposed dates, token counts and costs.

Remaining gaps: failing legacy transition; current-source real-Gateway execution; full native proof-pool completion; populated Usage Axe scan; full session-summary/timeline/context, export-picker and keyboard coverage. These captures do not complete the entire windows-winui-interactive pool.

@bkudiess

Copy link
Copy Markdown
Collaborator Author

Corrected Reactor runtime: consumer retest

Windows source remains 86d8597214a32d78ee7be518aeaf5a5876817ba4. No Windows animation workaround or implementation change was made. This retest used a temporary, unpublished 0.1.0-preview.12-local.4 package with the two analyzer fixes, the keyed-exit correction and its prerequisite exit bookkeeping/attached-property post-pass. It is not a stock-package or green-CI result.

Required command Latest local result
.\build.ps1 Passed on native ARM64 with the neutral local.4 package
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared.trx' --results-directory $out 4,674 passed, 0 failed, 25 skipped
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=tray.trx' --results-directory $out 4,618 passed, 4 failed, 0 skipped

$out was the absolute path to artifacts\usage-proof\86d85972-local4, with OPENCLAW_REPO_ROOT set to this worktree. The four remaining failures are BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver, previously reproduced on the unchanged ARM64 baseline. No Usage test failed. Earlier failures and the failed x64-only local.3 package attempt remain retained; the newer results do not erase them.

Original cast failure no longer occurs in the replay

With the exact neutral DLL payloads deployed, computer-use observed:

  1. Populated: 1.3M tokens, $4.51, 11 sessions.
  2. Empty: zero totals and the empty state.
  3. Partial: lower-bound totals and partial/cache banners.
  4. Legacy: UsageLegacyBanner and the session-less cost view remained rendered, without the prior Border to InfoBar cast error. This synthetic legacy response had no daily values in the selected range; it does not prove populated legacy cost accuracy.
  5. Released after reconnect: 1.3M tokens, $4.51, 11 sessions, UsageBasicBanner, and unsupported query/day/hour filters absent.

Before-correction failure: original native failure capture.

The original legacy transition stays rendered with the local Reactor correction

Visual acceptance is still incomplete. High contrast was already active on the shared desktop during this round, with client-area animations enabled. This round did not change desktop settings. In the released/basic view, native data is present but the plotted daily bars are not visible in the capture below. The cause is not yet attributed. A same-consumer local.2 runtime comparison failed during startup, so it is not valid A/B evidence. A bounded native probe is investigating geometry, brush and animation state.

Remaining visual issue: released-mode daily plot has data but no visible bars under the existing high-contrast desktop

Dependency proof and boundaries

  • The child reproduced three exact preview.12 cast failures before the keyed correction. Its native tests cover leading, trailing, middle and same-key Grid replacements, including live identity/placement after exits.
  • The neutral packaged bytes passed 9 transition fixtures, 0 failures on the native ARM64 Reactor host, including 4 keyed fixtures / 15 assertions.
  • The consumer's three deployed DLL hashes exactly matched the package payloads before launch.
  • The core package SHA256 is 5E12CC8E0D6AEA8442E20A64AFE29076299C6235380F25DFD98CC9DB6B0694AE; Advanced is C4BB5C86C46E6DE89150513351138D42DA209601DFF520748ED6C6DCF17E9B36.
  • The authoritative Reactor correction and preview.12 backport remain local and uncommitted. No new Reactor PR or remote package publication is claimed.
  • The temporary consumer feed and pins have been removed. Windows' working tree is clean, and the task-owned fixture was stopped.

CI remains blocked on the committed stock package. A compatible published Reactor release and a reviewed consumer dependency update are still needed. This is not complete windows-winui-interactive or real-Gateway proof; the chart issue and other declared proof gaps remain open.

Use the existing Usage data palette for marks and selection indicators instead of the native button fill, which can equal the plot background in high contrast. Cover clickable and nonclickable native charts with contrasting theme inputs.

Co-authored-by: Copilot App <[email protected]>
@bkudiess

Copy link
Copy Markdown
Collaborator Author

Current Windows candidate: f285853d2b6134e000d56ca6a8cca6808e8054a3. These are current-source native ARM64 app captures, using the isolated synthetic Gateway fixture and architecture-neutral Reactor 0.1.0-preview.12-local.4. They are not stock-package CI or real-Gateway proof.

The local package contains the two analyzer fixes plus the keyed-exit correction now proposed in microsoft/microsoft-ui-reactor#1429. No temporary package feed/pins or Windows-side animation workaround is published.

The replay survived populated -> empty -> partial -> legacy -> released, including Connection -> Usage remounts. The former Border-to-InfoBar crash did not recur. Populated totals were 1.3M tokens, $4.51 and 11 sessions; the expanded seven-day text table agreed with chart accessibility names. Partial mode showed lower-bound totals and partial/cache banners. Released-schema mode hid unsupported query controls and rendered nonzero bars. The legacy fixture returned no daily rows, so that capture proves transition/fallback rendering, not populated legacy-cost accuracy. After shutting down only the owned fixture transport, Usage disabled Refresh/Export and its Open Connection action opened Connection settings.

f285853d also corrects the chart's high-contrast data-token choice: UsagePalette1Brush, rather than the native button-fill token that can match the plot background. Two mounted native regression cases (interactive and basic charts) failed at the intended color assertion before the fix and passed afterward, with nonzero layout and an independent native button-fill control. Those cases supply controlled high-contrast resource input without changing the desktop theme. The captures below are normal Light theme, not current-head whole-page high-contrast proof.

Earlier proof comments describe older source/runtime combinations and retain their original failures. The failed local.3 x64-only package build and failed local.2 comparison startup are not successful consumer A/B evidence. Current stock CI remains blocked by seven upstream analyzer false positives; the local-package results do not make CI green. Complete interactive/real-Gateway proof pools, populated Usage Axe coverage, complete session-detail/export-picker/keyboard acceptance and production-packaged acceptance remain unverified.

Seven captures follow in replay order: released/basic with visible bars; populated with expanded text table; empty with independent provider usage; partial; legacy without the former render error; disconnected; Open Connection destination.

Current candidate in normal Light theme, released-schema basic view with visible daily bars

Current candidate, populated daily chart and expanded matching text table

Current candidate, empty report while provider-plan usage remains separate

Current candidate, lower-bound totals and partial/cache indicators

Current candidate, legacy empty-cost fallback survives the formerly crashing transition

Current candidate, disconnected Usage with disabled Refresh and Export

Current candidate, Open Connection action reaches Connection settings

@bkudiess
bkudiess marked this pull request as ready for review October 28, 2026 02:32
Keep filtered details scoped to matching usage, preserve model lower bounds, clear unsupported legacy selection and show legacy refresh failures. Pair high-contrast weekday text and fill, and strengthen callback and production-theme regression coverage.

Co-authored-by: Copilot App <[email protected]>
@bkudiess
bkudiess marked this pull request as draft October 30, 2026 14:54
bkudiess and others added 9 commits November 5, 2026 14:33
Merge pinned main 4aee38a while preserving the Reactor Usage owner.

Co-authored-by: Copilot App <[email protected]>
Replace the classic XAML Usage page with a compact Reactor page backed by
read-only Gateway reads.

- Cost, token and session totals; Today, 7-day, 30-day and custom ranges with a
  visible reporting zone; a daily trend with an accessible table; agent, model
  and provider contributors; capability-gated session browsing; lightweight
  detail; native conversation access; a web Usage handoff and a secondary CSV
  export.
- Provider allowance stays distinct from session-derived estimates. Partial,
  stale, failed, unsupported, forbidden and disconnected states are explicit.
- Released Gateways that reject the server overview parameters get a bounded
  basic view (at most 1000 rows). Older Gateways report Unsupported.
- Compact header: short custom-range label and inline date pickers on wide
  hosts, using the shared PageResponsiveLayout helper.
- Adopt official Reactor 0.1.0-preview.17 with a hash-verified, repository-local
  package bootstrap wired into build, CI, CodeQL and Store packaging.
- Update the six locales, DESIGN.md palette resources, the architecture ledger
  and the fixture documentation.

Known open items: the mounted UsagePageRenderingTests 937.14 DIP compact
transition case still fails, and cached Usage state is not yet reset when the
operator Gateway client changes.

Co-authored-by: Copilot App <[email protected]>
- Drop reports, plans, details and export state from the previous Gateway
  when the operator client is replaced; keep range, zone, scope, search,
  sort and metric. In-flight reads are cancelled and generation-fenced.
- Read the operator client once per operation so a replacement between
  reads cannot split one load across two Gateways or send the previous
  Gateway's session key to the new one.
- UI tests: wait on physical-pixel width for the 937.14 DIP transition
  and on model/topology convergence for the Custom range reflow.

Co-authored-by: Copilot App <[email protected]>
Keep reported-day charts, native expanders and shared provider reads. Integrate the authorized adaptive Settings and embedded inset/toggle ownership ports, and add pinned Usage hit, keyboard and feedback proof coverage.

Current source-only shell/test additions remain unvalidated pending the exclusive native lane. Historical proof does not establish acceptance of this candidate.

Co-authored-by: Copilot App <[email protected]>
Keep compact usage facts responsive, localize the allowance warning, and add owned-window paired capture diagnostics. Native pixel proof remains pending.

Co-authored-by: Copilot App <[email protected]>
Integrate pinned main 045d13a, including the shared page foundation and Windows App SDK 2.6.5. Retain the published Reactor preview.17 pair and Usage behavior; adopt main shell navigation and inset ownership.

Validated tree 6d874a2: full build; 315 focused checks; Shared 4909 passed with 25 permitted skips; unfiltered Tray 5529 passed; ARM64 UI build; docs, CI and package checks. Native groups passed: shared UI 15, Usage 98, animations enabled 6 and disabled 1. Independent merge review found one stale toggle-label assumption, corrected. Corrected the inherited tile-fit boundary assertion without changing production layout.

Interactive keyboard, full-app Back/Enter/Escape and visible-pixel proof remain unverified. Earlier failed harness/selection runs are retained in local evidence; they are not reported as passing. This is branch integration, not PR landing.

Co-authored-by: Copilot App <[email protected]>
Preserve query provenance, disclose bounded selected-session details, keep pricing completeness separate from token counts, and coordinate provider refresh after authenticated binding. Bootstrap published Reactor packages before local builds while preserving NoBuild; adopt shared capped-field alignment and focused regressions.

Validated source content in an isolated headless snapshot: full build passed; Shared 4909 passed with 25 permitted skips; unfiltered Tray 5557 passed; Debug ARM64 UI tests compiled with no warnings or errors; documentation and 20 offline bootstrap controls passed.

Native/UI and Debug/non-Dev Release real-app proof remain blocked. The earlier failed run and retained safety lease are unchanged. No native readiness claim is made.

Co-authored-by: Copilot App <[email protected]>
@roboclaw-bot roboclaw-bot added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 9, 2026
Preserve the Usage and Inbox app-owned sources, keep main's shared Inbox page, combine locale additions and fixture scenarios, and update the obsolete notification layout guard for the replacement owner.

Validation: staged/working diff checks, 36 XAML XML parses, and six resource inventories (3490 unique keys per locale) passed. Independent integration/proof-plan review found no confirmed P0-P3 defect. Windows build, .NET tests and native proof remain blocked by unavailable runtimes on this Linux host.

Co-authored-by: bkudiess <[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
Updatednuget/​microsoft.ui.reactor.advanced@​0.1.0-preview.16 ⏵ 0.1.0-preview.1710010088100100
Updatednuget/​system.drawing.common@​10.0.12 ⏵ 10.0.149510090100100
Updatednuget/​microsoft.ui.reactor@​0.1.0-preview.16 ⏵ 0.1.0-preview.179910099100100

View full report

@roboclaw-bot

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Nov 9, 2026
roboclaw-bot and others added 13 commits November 9, 2026 23:35
Check Gateway and page ownership after native file selection, withhold exact session shares for incomplete reports, and share expiry-aware provider attention. Preserve later reset notifications and retained-snapshot render invalidation.

Add deferred-file, completeness, provider lifetime and rendered regressions. Repair deterministic Usage fixture coverage and native geometry proof boundaries without removing keyboard, hit-testing, inset or ink assertions. Retain the unassigned mounted testhost crash as a validation blocker.

Validation: diff checks and static fixture reproduction passed. Independent source/proof-plan review completed; both follow-up test findings were corrected and independently checked. Windows build, .NET tests, negative controls and native proof remain unrun here because pwsh, dotnet and winapp are unavailable.

Co-authored-by: bkudiess <[email protected]>
Rename only the private LINQ tuple member so the unchanged pure-presentation architecture guard does not mistake it for a WinUI Window. Filtering and ordering are byte-identical after normalizing that identifier.

Validation: baseline/candidate token check and git diff --check passed. Full build, Shared/Tray and focused xUnit execution remain blocked locally by missing PowerShell and dotnet; fresh CI and native validation are required.

Co-authored-by: bkudiess <[email protected]>
Keep the failure-detail assertion behind actual native warning layout rather than unchanged fallback text. Prepare each responsive capture through the known host-warning presentation control, retain its Inbox fact, and reject late or unknown notification obstruction without weakening ink or hit-test guards.

Validation: diff checks and independent source/rubber-duck review completed, including corrections for capture-window ownership and asynchronous warning admission. Windows build and Shared/Tray tests remain unrun locally because pwsh and dotnet are unavailable. Preserve the original failed UI run, shared pane-toggle failure and whole-fixture timeout as outstanding validation work.

Co-authored-by: bkudiess <[email protected]>
Treat temporarily missing UI Automation measurements as not ready while retaining consecutive stable widths, exact geometry, all five captures and foreground ink checks. Keep this repair based on the published head, separate from private native height diagnostics.

Co-authored-by: bkudiess <[email protected]>
Observe the root visibility commit as well as the independently rendered question controls. Preserve native control identity, view-model draft and visibility assertions, and verify native draft text while hidden.

Co-authored-by: bkudiess <[email protected]>
Respect content-sized native controls while checking row containment, desired-height allocation, wide center alignment and wrapped query separation. Preserve the six theme/width cases and native session action guards.

Co-authored-by: bkudiess <[email protected]>
Record content-free monotonic phases and responder outcomes without changing the production request, security assertions or timeout budgets. Preserve primary failures and observe responder faults across cleanup races. This collects evidence, not a fix for the retained timeout.

Co-authored-by: bkudiess <[email protected]>
Preserve Usage and Systems ownership, combine fixture scenarios and locale resources, and add a real-client composition regression.

Independent source and proof-plan review found no actionable P0-P3 findings. Static checks passed. Build, .NET tests, report tests, and native proof remain blocked by missing tooling or dependencies; pinned exact-hit ownership remains unresolved.

Co-authored-by: bkudiess <[email protected]>
Keep overview-capable search mounted while a new query loads or fails, without restoring stale figures. Cover retained native focus and recovery through a bounded committed-state wait.

Replace the PR-added UIA point-leaf assumption with exact-center native mouse input and required pane transitions. Record the original UIA bridge result, require exact root HWND and foreground ownership, and reject a real test-owned opaque occluder. Preserve geometry and Tab assertions with no Invoke fallback.

Full isolated build, Shared (5347 passed, 28 permitted skips), Tray (5797 passed), native compilation and docs/bootstrap checks passed on the repair candidate. Final Release query regression passed. Debug and Release pinned fixtures proved physical transitions and occluder rejection, then failed the retained Tab-to-content assertion; attribution remains inconclusive and that gate is not waived. Earlier failed attempts remain recorded.

Co-authored-by: Copilot App <[email protected]>
Merge upstream main 6842791, preserving its newer Workspace account-menu and chat-navigation owners. Combined Usage validation will follow the local simplification pass; no native-readiness claim.

Co-authored-by: Copilot App <[email protected]>
Preserve the approved daily analysis, connection and generation fencing, capability fallback, query recovery, export safeguards and distinct native regressions. Remove unrelated chat/Inbox changes, unused count state and forwarding, web-only fixture analytics, orphan resources and duplicate cases.

Validated exact tree aa2374d: full build; Shared 5347 passed with 28 permitted skips; unfiltered Tray 5828 passed; focused suites 175 and 246 passed; ARM64 UI compilation and docs/skills/bootstrap checks passed. Native runtime proof remains separate.

Co-authored-by: Copilot App <[email protected]>
Merge upstream main 243f9cf normally. The automatic merge preserves the validated Usage reduction and adopts upstream chat, fixture and CI bootstrap owners without manual conflict resolution. Combined-source validation follows before push.

Co-authored-by: Copilot App <[email protected]>
Preserve physical hit and occlusion checks, then assert exact native title-bar stops before visible page focus. Verify Shift+Tab leaves content and Tab returns to the same control. The prior direct history-to-content assertion contradicted unchanged main XAML order.

Validated final source with full build, Shared 5445 passed/28 permitted skips, unfiltered Tray 5993 passed, focused 177/246, UI/integration compilation and workflow/docs checks. The exact pinned fixture passed 1/1 across Light and Dark with 20 physical transitions, two occluder negatives and explicit forward/reverse focus receipts; owned kernel job drained before release.

Co-authored-by: Copilot App <[email protected]>
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: 🚨 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. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants