feat: add semantic Windows exec approval prompts#1027
Conversation
3b0c7fb to
48ece7e
Compare
|
Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 2:20 PM ET / 18:20 UTC. Summary Reproducibility: yes. from source inspection: submit a Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Keep Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: submit a Is this the best way to solve the issue? No. The semantic preview should be additive: preserve the exact-command contract for existing handlers and let only preview-aware presenters render the additional context before the technical command. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bd6c4bf8e575. Label changesLabel changes:
Label justifications:
Evidence reviewedSecurity concerns:
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Windows CI is needed for the final WinUI validation because the relevant MakePri/XAML tooling is Windows-only. The focused approval tests and the Shared Release build pass locally; when convenient, please approve the fork workflow runs for this draft PR. |
What changed
commandPreviewthroughsystem.run.prepareandsystem.runWhy
The Windows approval prompt currently exposes a raw shell or PowerShell command as the primary decision surface. That is not meaningful consent for operators who can judge the requested purpose and impact but cannot safely audit shell syntax.
OpenClaw already defines
commandPreviewas the human-readable summary for an execution plan, but the Windows node did not carry that field into its approval presenter. This change turns the prompt into a semantic decision card while keeping the exact command visible for technical inspection and keeping the host policy as the actual security boundary.User impact
German users see:
If no preview was provided, the prompt tells the operator to deny and request a clearer explanation.
Validation
OpenClaw.SharedRelease build passes with zero warnings/errorsMakePri.exeandXamlCompiler.exeare Windows-only; this draft intentionally relies on repository Windows CI for that validation