Repository navigation
fix(update): suppress ordinary extended-stable notices - #1299
shanselman wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 743435ea-9eaa-409a-9d6c-64abdf3f8c61
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 7:44 AM ET / 11:44 UTC. ClawSweeper reviewWhat this changesThe PR delays automatic Windows companion update checks until an authenticated Gateway reports its channel, suppressing ordinary releases for extended-stable while keeping security and uncertain updates visible. Merge readiness⛔ Blocked before merge - 3 items remain Keep open. This collaborator-owned PR is not on current main and currently has merge conflicts plus a failed test check; source review found no discrete introduced correctness defect. Priority: P2 Review scores
Verification
How this fits togetherThe tray app connects through the Gateway connection manager, then checks GitHub releases to offer companion updates. This change uses the authenticated Gateway channel as an additional input to the update-prompt decision. flowchart LR
A[Tray startup] --> B[Gateway connection manager]
B --> C[Authenticated update channel]
A --> D[Release metadata]
C --> E[Update decision]
D --> E
E --> F[Prompt or skipped status]
Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase the focused channel-aware update path onto current main, resolve conflicts without restoring parallel Gateway-client ownership, then validate the required build and shared/tray suites. Do we have a high-confidence way to reproduce the issue? Yes, source and supplied loopback-Gateway evidence establish the update.status and suppression path, although the declared WinUI screenshot remains explicitly blocked. Is this the best way to solve the issue? Yes, subject to rebase validation: the change keeps the connection manager as the sole operator-client owner and fails safe when channel or release metadata is unavailable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 35cb92dcf28d. LabelsLabel 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)
|
|
Maintainer decision: approve channel-aligned companion update notices for an authenticated Gateway reporting |
|
Closing #1299 (fix(update): suppress ordinary extended-stable notices) as superseded by the current-main release policy, with no replacement code needed. The reported behavior can still occur, but it is now intentional rather than a supported bug:
The stale head Disposition: no current-main code, protocol, App.xaml.cs, localization, or test changes. The old suppression design is closed as policy-superseded. |
Supersedes #1141.
What Problem This Solves
Fixes an issue where Windows companion users following a Gateway's
extended-stablechannel would still receive ordinary companion update prompts before that Gateway channel was ready to advance.Why This Change Was Made
This is a clean current-main replacement for #1141. It keeps
GatewayConnectionManager.OperatorClientas the sole authenticated operator-client owner, consumes Core's optionalupdate.status.effectiveChannelcontract, and suppresses only a trusted ordinary Windows release after complete release-lineage inspection. It does not add a parallel Gateway client or restore stale App-owned connection fields.Pinned invariant:
extended-stablesuppresses only an ordinary update after trusted Windows release metadata is available. Missing, unauthorized, malformed, error, security, CVE, GHSA, and incomplete-history states remain visible and fail safe.effectiveChannel=extended-stable+ trusted complete ordinary release metadataeffectiveChanneloperator.adminscopesecurity,CVE-, orGHSA-in any eligible newer releaseOwnership remains unchanged:
GatewayConnectionManagerowns operator/node connection state,UpdateCoordinatorreads its currentOperatorClient, andAppremains the composition root.User Impact
Extended-stable users no longer see ordinary Windows companion update prompts ahead of their Gateway channel. Security-sensitive and uncertain updates remain visible.
Evidence
{"type":"req",...,"method":"update.status","params":{}}; Gateway errors propagated for caller fail-safe handling.GatewayConnectionManagerpath to a controlled loopback Gateway and completedhello-okwith grantedoperator.admin, operator.pairingscopes.Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: the Command Center update state gains a localized visibleSkippedresult for extended-stable suppression.Validation
.\build.ps1: passed; Shared, CLI, WinNode CLI, SetupEngine, and WinUI built successfully; documentation gates passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,875 passed, 32 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,841 passed, 0 failed.dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --no-build: 1,025 passed, 0 failed. The prebuilt suite bounded an unrelated MSBuild/GitVersion hang seen when rebuilding this project concurrently.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --no-build --filter "FullyQualifiedName~GatewayProtocolLiveRoundTripTests": 4 passed, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --no-build --filter "FullyQualifiedName~UpdateCheckPipelineTests|FullyQualifiedName~AppRefactorContractTests": 107 passed, 0 failed.python .agents\skills\autoreview\scripts\autoreview --mode local --stream-engine-output: clean, no accepted/actionable findings.Real Behavior Proof
127.0.0.1:18799.0f4dd6cb22a3911c73e0f2e84916b9e7da974601.0.6.10, launched the task-built unpackaged app against the controlled Gateway, and ran real WebSocketupdate.statusround-trip tests.hello-ok, and grantedoperator.admin, operator.pairing; focused wire proof recorded anupdate.statusrequest and parsedeffectiveChannel=extended-stablewhile preserving Gateway errors.N/A.SkippedCommand Center state was not captured. Thewindows-winui-interactivepool remains declared for that visible proof. Gateway/protocol and policy behavior are verified.Security Impact
NoNoYesNoNoYes, explain the risk and mitigation: the existing authenticated operator client now callsupdate.status. The call requires an already-grantedoperator.adminscope; missing scope and all errors fail safe by leaving updates visible. No user content or credentials are added to telemetry or logs.Compatibility and Migration
YesNoNoeffectiveChannelretain the existing visible update behavior.Review Conversations