Repository navigation
improve(dev): build only the tray graph in run-app-local.ps1 - #1586
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs changes before merge. Reviewed October 2, 2026, 7:51 PM ET / 23:51 UTC (Revision 2). ClawSweeper reviewWhat this changesThe developer launcher builds only the Windows tray app and its dependencies, supports an explicit runtime and feature branches, and updates documented callers. Merge readiness⛔ Needs changes before merge - 1 item remains This PR remains useful: current main still uses the full build path. No introduced correctness defect was found, but the previously requested passing local validation remains outstanding. Priority: P3 Review scores
Verification
How this fits togetherThe local launcher takes a developer’s configuration, runtime, and identity choices, builds the tray application, checks its output identity, and starts it. The full repository build remains the separate closeout gate. flowchart TD
A[Developer launch options] --> B[Select Windows runtime]
B --> C[Build tray project graph]
C --> D{Build succeeds}
D -->|No| E[Report failure and stop]
D -->|Yes| F[Verify output identity]
F --> G[Launch tray application]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep the fast tray launch path separate from the mandatory full-repository closeout, preserving runtime selection and identity checks. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug reproduction: this is a developer workflow improvement, supported by source comparison and reported real launcher runs. Is this the best way to solve the issue? Yes. Building the existing tray project graph is a focused way to shorten launches while retaining the full build as the closeout gate. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f879af8a5661. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Replace the build.ps1 delegation with one incremental dotnet build of the WinUI project for the launched RID, skipping prerequisite checks, docs validation, and CLI builds. Remove -AllowNonMain and the main-only guard, allow -RuntimeIdentifier without -NoBuild, and update callers.
c6721d2 to
fe6d3ac
Compare
Scoped maintainer triage verdictTAKE_AFTER_CHECKS. Take confidence: 85%. Recommendation confidence: 93%. Reviewed head: Basis and remaining gatesNo blocking source defect was found. RID selection precedes the tray project build, launch stops on build failure, identity validation remains, and in-repository callers were updated for intentional branch-guard removal. Reported Tray closeout still has two NativeSpeech/VC++ prerequisite failures despite green hosted CI. Obtain clean required validation on a supported host. Keep fast tray launch distinct from full-repository validation and explicit CLI rebuild needs. ARM64 execution claims need actual ARM64 proof, not merely a command definition. To reach 90%+ take confidencelarroy + maintainer: accept guard removal, obtain clean required Tray closeout with VC runtime installed; verify cold tray launch and explicit CLI freshness for proof callers. Floor + developer launcher smoke; no production hardware pool by itself. Here, Floor means final-head Quoted execution results are author/maintainer receipts reviewed during the scoped triage, not tests rerun by this posting session. Missing or stale-head proof is not a pass. A dedicated child session is preparing a read-only revalidation/closeout plan; no implementation, destructive execution, CI rerun or merge is authorized by this verdict. |
|
Global triage: HOLD_FOR_AUTHOR. Take confidence 20%; recommendation confidence 98%; effort medium; risk high. Reviewed exact head Author: resolve the current durable review findings, add focused regressions, and request a fresh exact-head review. This is a triage classification, not a merge action. No branch changes were made. |
Summary
run-app-local.ps1no longer delegates tobuild.ps1. It runs one streamed, incrementaldotnet buildof the WinUI tray project graph for the RID it launches, then starts the app. It skips the prerequisite survey, documentation validation, and CLI builds;.\build.ps1stays the closeout gate.-AllowNonMainand the main-only guard; the script launches whatever branch is checked out. Updated every caller (README, crabbox and windows-app-mcp skills,.github/proof-pools.json,InstallerIssAssertionTests).-RuntimeIdentifiernow works with or without-NoBuild.build.ps1's WinUI step (-c <cfg> -r <rid> [-p:DevBuild=true]), so both scripts share obj/bin state.$buildArgscall; theapp-identity.txtcheck remains the behavioral guard.winnode.exe/OpenClaw.Cli.exeare no longer rebuilt by the run script; use.\build.ps1when they must be current.Required proof pools
none: developer launch script and docs only; no product, tray UX, node, MCP, or installer behavior changes.
Validation
.\build.ps1: passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj: 4222 passed, 35 skipped.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 3857 passed, 2 failed. Both failures areNativeSpeechStackRuntimeTests(localmsvcp140.dll14.29 below the 14.38 onnxruntime floor; VS "C++ Redistributable Update" component missing on this host). Environmental, unrelated to this change.InstallerIssAssertionTests: 20/20 passed..\scripts\validate-proof-pools.ps1and.\scripts\validate-agent-skills.ps1: passed.Real behavior proof
No-op timings (x64, nothing changed):
.\build.ps1(old run path).\run-app-local.ps1 -Isolated-NoBuild -Isolated -DryRunprintedBranch: tmp-run-check;-AllowNonMainfails withA parameter cannot be found that matches parameter name 'AllowNonMain'.Building OpenClaw Tray: dotnet build ...line, no prerequisite/docs/CLI steps,Started OpenClaw Tray (PID: N), process running.-Dev: build line includes-p:DevBuild=true, launch showsIdentity: Dev (opt-in); next normal run showsIdentity: Release (default).-RuntimeIdentifier win-x64 -DryRun: builds and printsSelected runtime: win-x64.locked by: "OpenClaw Companion (PID)", the yellowBuild failed...hint prints, exit code 1, no launch.Not verified / blocked
MarkupCompilePass2(~33 s) reruns every build and rewritesApp.g.cs, forcingCsc. Not addressed here.