You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f58fd68
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,13 @@ Use your gateway's supported configuration tools when OpenClaw Companion cannot
85
85
}
86
86
```
87
87
88
-
Commands such as `system.run`, `system.run.prepare`, `system.which`, `screen.record`, `camera.snap`, `camera.clip`, `stt.transcribe`, and `tts.speak` require deliberate opt-in. Reapprove and reconnect the node after changing the effective command set.
88
+
Canonical paired Windows nodes already receive the desktop `system.*` defaults,
89
+
including `system.run`, `system.run.prepare`, and `system.which`. Windows still
90
+
applies the local **Run system tools** switch, V2 exec approvals, and sandbox
91
+
policy. Commands outside the Windows gateway defaults, including
92
+
`screen.record`, `camera.snap`, `camera.clip`, `stt.transcribe`, and
93
+
`tts.speak`, require deliberate gateway opt-in. Reapprove and reconnect the
94
+
node after changing the effective command set.
89
95
90
96
</details>
91
97
@@ -211,7 +217,9 @@ These commands restore and build the test projects when needed. Use `--no-restor
> **Audience:** Contributors maintaining the native A2UI renderer for the Windows node
@@ -18,7 +18,7 @@ That worked, but it had costs:
18
18
-**Theming drift.** WinUI windows around the canvas use Mica/Fluent; the canvas uses Lit components styled with CSS. Achieving consistent visuals requires duplicate theme work.
19
19
-**Hardening.** Surface area for arbitrary script execution remains larger than necessary for what is fundamentally a declarative UI tree.
20
20
21
-
The implemented native WinUI renderer renders A2UI surfaces directly into XAML — no WebView, no HTTP host, no JS bridge. The node is self-contained: it can render A2UI whether it's connected to a gateway, an MCP client, or both.
21
+
The implemented native WinUI renderer renders A2UI surfaces directly into XAML - no WebView, no HTTP host, no JS bridge. The node is self-contained: it can render A2UI whether it's connected to a gateway, an MCP client, or both.
22
22
23
23
## 2. Goals & non-goals
24
24
@@ -33,7 +33,7 @@ The implemented native WinUI renderer renders A2UI surfaces directly into XAML
33
33
### Non-goals (initial release)
34
34
35
35
- No A2UI v0.9 features (bidirectional messaging, prompt-first generation, modular schemas).
36
-
- No HTML/JS/CSS escape hatch from inside an A2UI surface (the v0.8 catalog has no such primitive — keep it that way).
36
+
- No HTML/JS/CSS escape hatch from inside an A2UI surface (the v0.8 catalog has no such primitive - keep it that way).
37
37
- No replacement for `canvas.present` / `canvas.navigate` / `canvas.eval`. Those continue to use WebView2 for general web content. Only A2UI rendering moves.
38
38
- No custom (non-catalog) component types in v1. Catalog-strict.
39
39
@@ -74,10 +74,10 @@ Two canvas modes share the surface:
74
74
75
75
| Mode | Trigger | Window |
76
76
|---|---|---|
77
-
| Web (`canvas.present` / `canvas.navigate` / `canvas.eval`) | URL or HTML payload |`CanvasWindow` (WebView2) — unchanged |
78
-
| A2UI native | First `canvas.a2ui.push` since reset |`A2UICanvasWindow` (XAML) — new |
77
+
| Web (`canvas.present` / `canvas.navigate` / `canvas.eval`) | URL or HTML payload |`CanvasWindow` (WebView2) - unchanged |
78
+
| A2UI native | First `canvas.a2ui.push` since reset |`A2UICanvasWindow` (XAML) - new |
79
79
80
-
A user-visible toggle is *not* required — the choice is implicit in which MCP command the agent calls. The two windows must not compete for focus; if both want to be visible, the most-recently-targeted wins (last-write-wins, with a small fade between).
80
+
A user-visible toggle is *not* required - the choice is implicit in which MCP command the agent calls. The two windows must not compete for focus; if both want to be visible, the most-recently-targeted wins (last-write-wins, with a small fade between).
81
81
82
82
### 3.3 Component pipeline
83
83
@@ -145,7 +145,7 @@ Action payload shape (v0.8):
145
145
|`List`|`ItemsRepeater` + `ItemsRepeaterScrollHost`| Virtualization on by default |
146
146
|`Card`|`Border` with `Microsoft.UI.Xaml.Media.MicaBackdrop`-aware brush + corner radius + drop shadow ||
147
147
|`Tabs`|`TabView` (controls) | Lightweight chrome to match Lit version |
148
-
|`Modal`|`ContentDialog` (or full-window overlay `Grid` w/ `AcrylicBrush`) | Track Lit's full-screen overlay style —`dialog::backdrop` analog is `AcrylicBrush` over the parent |
148
+
|`Modal`|`ContentDialog` (or full-window overlay `Grid` w/ `AcrylicBrush`) | Track Lit's full-screen overlay style -`dialog::backdrop` analog is `AcrylicBrush` over the parent |
149
149
|**Display**|||
150
150
|`Text`|`TextBlock`| Map A2UI `style` (h1/h2/body/caption/etc.) to Fluent type ramp |
151
151
|`Image`|`Image` w/ `BitmapImage` source; HTTP fetch via `HttpClient` with allowlist | Reject `file:`, `javascript:`, `data:` (except small `image/png|jpeg|webp`) |
Each mapping lives in a single `IComponentRenderer` implementation under `OpenClaw.Tray.WinUI/A2UI/Renderers/`. The set is closed at compile time (catalog-strict) — no runtime registration in v1.
164
+
Each mapping lives in a single `IComponentRenderer` implementation under `OpenClaw.Tray.WinUI/A2UI/Renderers/`. The set is closed at compile time (catalog-strict) - no runtime registration in v1.
165
165
166
166
## 6. Data model & binding
167
167
@@ -175,8 +175,8 @@ A2UI surfaces carry a JSON data model. Components reference paths into that mode
175
175
176
176
Bindings are **one-way for display** components, **two-way for interactive** components. Implement via:
177
177
178
-
-`DataModelObservable`— wraps a `JsonObject` and exposes `INotifyPropertyChanged` per registered path.
179
-
-`A2UIBinding` markup extension (or code-behind helpers) — produces `Binding` objects that target a path observer.
178
+
-`DataModelObservable`- wraps a `JsonObject` and exposes `INotifyPropertyChanged` per registered path.
179
+
-`A2UIBinding` markup extension (or code-behind helpers) - produces `Binding` objects that target a path observer.
180
180
181
181
Why not raw `Microsoft.UI.Xaml.Data.Binding` paths? JSON paths can include array indices and slashes, which XAML binding paths don't model cleanly. A small adapter is simpler and faster than fighting the binding engine.
182
182
@@ -218,7 +218,7 @@ Default to `XamlControlsResources` + Fluent theme colors. The `createSurface.the
218
218
-`typography`: optional font family override; respect Windows accessibility text scaling first.
219
219
-`radius`, `spacing`: passed through to renderers via `RenderContext`.
220
220
221
-
Theme application is local to the surface's visual tree — switching themes between surfaces does not flash the chrome.
221
+
Theme application is local to the surface's visual tree - switching themes between surfaces does not flash the chrome.
222
222
223
223
## 9. Lifecycle & hosting
224
224
@@ -256,13 +256,13 @@ Mirror what `CanvasCapability` already logs:
-**Visual regression:** golden images per component using WinAppDriver or a snapshot harness — gate on hash + tolerance.
265
+
-**Visual regression:** golden images per component using WinAppDriver or a snapshot harness - gate on hash + tolerance.
266
266
-**Spec conformance:** drive the renderer with the official v0.8 conformance fixtures from `vendor/a2ui/specification/0.8/eval/` (reused from the openclaw monorepo) and assert action outputs match expected.
267
267
-**Stress:** 10k component surface, 1k updateComponents/sec → renderer must not block the UI thread > 16 ms p95.
268
268
-**Parity:** record the JSONL stream of an existing Lit-rendered openclaw surface, replay through the WinUI renderer, diff screenshots.
@@ -273,22 +273,22 @@ This table is historical. Phases 0-3 are now implemented by the native renderer
273
273
274
274
| Phase | Scope | Exit criteria |
275
275
|---|---|---|
276
-
|**0 — Spike**|`Text`, `Column`, `Button` only; one surface; no data model | Single button click round-trips to agent |
277
-
|**1 — Catalog parity**| All v0.8 standard catalog types; data model + bindings; modal/tabs | Full conformance fixtures pass |
278
-
|**2 — Polish**| Theming, transitions, focus management, accessibility (Narrator), keyboard nav | A11y audit clean; UX review against Lit version |
279
-
|**3 — Native default**| Native window default for A2UI rendering | Native path covers the v0.8 surface without the WebView2 host |
> Resolved 2026-04-27 — see decisions below; previous wording preserved for context.
284
+
> Resolved 2026-04-27 - see decisions below; previous wording preserved for context.
285
285
286
286
1.**Window count.** One A2UI window with tabs for multiple surfaces, or one window per surface? Lit version uses one host with multiple stacked surfaces.
287
287
**Decision:** stay with the Lit-compatible single-window-with-tabs layout. Multiple windows is out of scope for v1.
288
288
2.**Component overrides.** Should we expose a hook for downstream apps to swap in custom renderers?
289
-
**Decision:** stay catalog-strict for v1. No extension seam yet — easy to add later if a real customer asks.
289
+
**Decision:** stay catalog-strict for v1. No extension seam yet - easy to add later if a real customer asks.
290
290
3.**Theme negotiation.** Should the agent be told "I'm a native WinUI client, prefer Fluent tokens" via `clientCapabilities`?
291
-
**Decision:** yes — advertise Fluent token preference in `clientCapabilities`. (Tracking task: wire this into the capability summary returned by `canvas.caps`.)
291
+
**Decision:** yes - advertise Fluent token preference in `clientCapabilities`. (Tracking task: wire this into the capability summary returned by `canvas.caps`.)
292
292
4.**Animation budget.** Define a small transition set (fade, slide) and apply automatically, or stay still?
293
293
**Decision:** stay still until the agent asks. No automatic transitions in v1.
294
294
5.**Image caching.** Per-surface, per-process, or persistent?
0 commit comments