refactor(tray): add guardrails and remove duplicate App code#875
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 27, 2026, 5:18 AM ET / 09:18 UTC. Summary Reproducibility: yes. for the source cleanup: current main still has duplicate WSL keepalive helpers in App.xaml.cs while startup already uses WslGatewayKeepAliveService. This is a source-level cleanup reproduction, not a runtime bug reproduction. Review metrics: 2 noteworthy metrics.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. 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 detailsBest possible solution: Merge after redacted current-head real behavior proof is attached for the setup script and keepalive startup seam, while keeping the broader App/ConnectionPage decomposition tracker open. Do we have a high-confidence way to reproduce the issue? Yes for the source cleanup: current main still has duplicate WSL keepalive helpers in App.xaml.cs while startup already uses WslGatewayKeepAliveService. This is a source-level cleanup reproduction, not a runtime bug reproduction. Is this the best way to solve the issue? Yes for the code shape: deleting the unused App copy and protecting the ownership boundary with a contract test is the narrowest maintainable cleanup. Merge readiness still depends on real behavior proof from a real setup. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1fb28ee19072. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat 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
|
Move WSL keepalive ownership fully to WslGatewayKeepAliveService by deleting the stale App helper cluster and adding source contract coverage for the ownership boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add a winget-backed setup script for local developers and agents, document it in repo guidance, and tighten Windows SDK detection in the build prerequisite check. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
e443ea5 to
7fe6e71
Compare
Summary
AGENTS.mdguardrails for App/ConnectionPage god-file refactors so future agent work names ownership boundaries and invariants.App.xaml.cs; startup still composesWslGatewayKeepAliveService.scripts/setup-dev.ps1so developers and agents can install/verify local Windows prerequisites with winget, trust the checkout for GitVersion, and optionally run full validation.build.ps1Windows SDK version detection when only one SDK is installed.Refs #554.
Validation
./scripts/setup-dev.ps1 -CheckOnlypassed../build.ps1passed.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restorepassed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restorepassed.Live gateway smoke was not run because the gateway is not available on this machine.