Skip to content

improve(dev): build only the tray graph in run-app-local.ps1 - #1586

Merged
RomneyDa merged 1 commit into
mainfrom
improve/fast-run-app-local
Oct 16, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
improve/fast-run-app-local

Conversation

@larroy

@larroy larroy commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

run-app-local.ps1 no longer delegates to build.ps1. It runs one streamed, incremental dotnet build of 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.ps1 stays the closeout gate.

  • Removed -AllowNonMain and 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).
  • RID is resolved before the build, so -RuntimeIdentifier now works with or without -NoBuild.
  • Build args mirror build.ps1's WinUI step (-c <cfg> -r <rid> [-p:DevBuild=true]), so both scripts share obj/bin state.
  • Dropped source-text assertions that pinned the old $buildArgs call; the app-identity.txt check remains the behavioral guard.
  • winnode.exe / OpenClaw.Cli.exe are no longer rebuilt by the run script; use .\build.ps1 when 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 are NativeSpeechStackRuntimeTests (local msvcp140.dll 14.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.ps1 and .\scripts\validate-agent-skills.ps1: passed.

Real behavior proof

No-op timings (x64, nothing changed):

Path Time
.\build.ps1 (old run path) 91.9 s
new .\run-app-local.ps1 -Isolated 58.4 s, 53.9 s
  • Throwaway branch: -NoBuild -Isolated -DryRun printed Branch: tmp-run-check; -AllowNonMain fails with A parameter cannot be found that matches parameter name 'AllowNonMain'.
  • Normal run: single 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 shows Identity: Dev (opt-in); next normal run shows Identity: Release (default).
  • -RuntimeIdentifier win-x64 -DryRun: builds and prints Selected runtime: win-x64.
  • Locked output (tray running): MSBuild reports locked by: "OpenClaw Companion (PID)", the yellow Build failed... hint prints, exit code 1, no launch.

Not verified / blocked

  • ARM64 run path not exercised (x64 host).
  • Remaining no-op cost is the WinUI XAML pipeline: MarkupCompilePass2 (~33 s) reruns every build and rewrites App.g.cs, forcing Csc. Not addressed here.

@clawsweeper

clawsweeper Bot commented Oct 1, 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 P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Codex review: needs changes before merge. Reviewed October 2, 2026, 7:51 PM ET / 23:51 UTC (Revision 2).

ClawSweeper review

What this changes

The 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
Reviewed head: fe6d3ac70e1b03bcfb0acff41805f54da17bcb2c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, maintainable patch with relevant real launcher evidence; required local validation still needs successful closeout.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body reports real x64 runs through run-app-local.ps1’s changed build-and-launch path, showing faster launches, identity switching, explicit runtime selection, and stopping after build failure. ARM64 execution is disclosed as unverified; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body reports real x64 runs through run-app-local.ps1’s changed build-and-launch path, showing faster launches, identity switching, explicit runtime selection, and stopping after build failure. ARM64 execution is disclosed as unverified; no stored-data contract changes.
Evidence reviewed 6 items Pinned introduced change: The six-file introduced delta replaces full-build delegation with a tray-project build and updates callers; it contains no dependency, installer, credential, or persisted-format changes.
Current main still needs this improvement: The original main blob delegates to build.ps1, restricts non-main branches, and rejects an explicit runtime unless NoBuild is supplied. No verified merged replacement was identified; release-fix attribution is not applicable.
Build and identity invariants preserved: The new build arguments match the existing WinUI build step. The project owns transitive dependencies and identity-marker generation, and the launcher still rejects mismatched identities before launch.
Findings None None.
Security None None.

How this fits together

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

Before merge

  • Complete next step (P2) - On a Windows host with the supported VC++ runtime, rerun ./build.ps1 and both required shared and tray test suites at the current head, then report passing results.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Reported incremental launch time 91.9 s before; 53.9–58.4 s after The reported x64 runs show a concrete reduction in developer launch latency.

Technical review

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

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a focused developer-loop improvement without an established urgent product regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body reports real x64 runs through run-app-local.ps1’s changed build-and-launch path, showing faster launches, identity switching, explicit runtime selection, and stopping after build failure. ARM64 execution is disclosed as unverified; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports real x64 runs through run-app-local.ps1’s changed build-and-launch path, showing faster launches, identity switching, explicit runtime selection, and stopping after build failure. ARM64 execution is disclosed as unverified; no stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The six-file introduced delta replaces full-build delegation with a tray-project build and updates callers; it contains no dependency, installer, credential, or persisted-format changes. (run-app-local.ps1:154, fe6d3ac70e1b)
  • Current main still needs this improvement: The original main blob delegates to build.ps1, restricts non-main branches, and rejects an explicit runtime unless NoBuild is supplied. No verified merged replacement was identified; release-fix attribution is not applicable. (run-app-local.ps1:140, f879af8a5661)
  • Build and identity invariants preserved: The new build arguments match the existing WinUI build step. The project owns transitive dependencies and identity-marker generation, and the launcher still rejects mismatched identities before launch. (run-app-local.ps1:187, fe6d3ac70e1b)
  • Real launcher evidence: The captured PR body reports x64 launcher timings of 58.4 and 53.9 seconds versus 91.9 seconds for the old path, successful process launch, dev-to-release identity switching, explicit runtime selection, and a locked-output failure that exits without launching. ARM64 execution is explicitly unverified. The live body matched the supplied snapshot. (fe6d3ac70e1b)
  • Prior validation follow-up remains unresolved: The prior review requested successful full build, shared tests, and tray tests after resolving the VC++ prerequisite. The current body still reports 3857 passing and two failing tray tests, with msvcp140.dll 14.29 below the required 14.38 floor. Current tests explicitly enforce that floor. No builds or tests were executed during this read-only review. (tests/OpenClaw.Tray.Tests/NativeSpeechStackRuntimeTests.cs:22, fe6d3ac70e1b)
  • Launcher history and routing: Available main file history and GitHub commit records connect shanselman with launcher argument forwarding and proof-pool contracts, and karkarl with runtime architecture selection. Local blame and the earlier-head comparison failed because required history objects could not be retrieved; no source-line introduction or unchanged-earlier-head claim is made. (run-app-local.ps1, f879af8a5661)

Likely related people:

  • shanselman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • karkarl: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve the validation host’s VC++ runtime prerequisite and report successful current-head full build, shared tests, and tray tests.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-01T23:08:00.251Z sha c6721d2 :: needs changes before merge. :: none

@larroy
larroy requested review from karkarl and shanselman October 1, 2026 23:19
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.
@larroy
larroy force-pushed the improve/fast-run-app-local branch from c6721d2 to fe6d3ac Compare October 2, 2026 23:47
@karkarl

karkarl commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Scoped maintainer triage verdict

TAKE_AFTER_CHECKS. Take confidence: 85%. Recommendation confidence: 93%.

Reviewed head: fe6d3ac70e1b03bcfb0acff41805f54da17bcb2c. Live state refreshed October 5, 2026 (UTC): open, non-draft, merge state CLEAN, CI Gate SUCCESS. A clean merge state is not proof of validation against the eventual landing base.

Basis and remaining gates

No 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 confidence

larroy + 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 .\build.ps1, dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore and dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore, with real restore/build first on a fresh worktree. Add the touched-owner suites. UI means windows-winui-interactive with isolated data and visible changed-state proof; other hardware/installer/Gateway pools must match the affected behavior. Recheck the actual landing base, required CI and final review; rerun affected proof if integration changes the 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.

@karkarl

karkarl commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

Global triage: HOLD_FOR_AUTHOR. Take confidence 20%; recommendation confidence 98%; effort medium; risk high.

Reviewed exact head fe6d3ac70e1b. GitHub currently reports CLEAN with 24 passing, 0 failing, and 0 pending checks. proof label is sufficient. Durable automated signal: Codex review: needs changes before merge..

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.

@RomneyDa
RomneyDa merged commit 9ac0169 into main Oct 16, 2026
24 checks passed
@RomneyDa
RomneyDa deleted the improve/fast-run-app-local branch October 16, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants