Skip to content

feat: fill a missing Gateway owner name and photo from the Windows account - #2022

Merged
bkudiess merged 30 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-windows-profile-setup
Nov 6, 2026
Merged

bkudiess merged 30 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-windows-profile-setup

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #2013 (feat: show the Gateway profile name and photo in Companion)

What Problem This Solves

A Companion-managed Gateway can have no owner name or photo even when the current Windows account has both, including on updated installations that never run setup again.

User Impact

Companion automatically fills missing canonical-owner fields on eligible managed WSL/native Gateways, once per Gateway per app run. A value present at the per-field re-read is kept. This is best effort, not an atomic compare-and-set against concurrent edits.

Privacy and behavior: the name and photo are persisted on the Gateway and visible to all its users. macOS serves the host photo dynamically instead; Windows persistence is a deliberate, approved difference. There is no in-app prompt, Skip, opt-out or Windows profile editor. A deliberately cleared field can be refilled after Companion restarts. Manual editing remains in Gateway settings. The new userAccountInformation capability requires a newly signed package; actual Windows first-use consent behavior remains unverified.

The Workspace footer now shows a named shared owner as Name · Shared owner, matching the web Control UI. The collapsed sidebar rail uses compact padding to leave room for the owner photo; current rendered-pixel proof is still outstanding.

Why This Change Was Made

An app-lifetime coordinator observes the owner profile that Workspace already loads, covering both fresh and updated installations without a setup-only dialog.

  • Eligibility requires a managed WSL distro or native package and no SSH tunnel; it is never inferred from loopback, IsLocal, or credential type.
  • Connection-owned Gateway ID, registry selection, connected client and the same record's eligibility must agree before account acquisition and through subsequent reads/writes. Detected switches stop subsequent writes, not fields already saved.
  • users.self is re-read before each write. Uncertain post-send outcomes are not retried; confirmed fields remain preserved. Lost connection or changed context can release an attempt for a later observation, which reads fresh state first. No atomic no-overwrite guarantee is claimed.
  • The provider uses only User.GetDefault, never enumeration. Runtime API presence gates the read (build 20348 or later, while older app-supported builds fail closed). Non-interactive, session 0, impersonated and Administrator contexts fail closed. Name length is bounded at 256 with no control characters. Photos are requested at 208 px, accepted as PNG/JPEG up to 1024 px and 2 MiB, and capped at 512 KiB for upload. An accepted small PNG/JPEG is uploaded unchanged, including embedded metadata. Only larger photos are decoded/re-encoded as JPEG scaled to at most 208 px. Account data is not logged; outcome categories are.

Ownership: ProfileAutoFillCoordinator owns process-lifetime attempt memory/single-flight; ProfileCompletionService owns account acquisition and Gateway writes; WorkspaceWindow reports observations and refreshes the existing footer. App lazily composes the coordinator. The architecture ledger closes window-owned attempts and the removed dialog/menu/Skip responsibilities.

Footer label and rail (added at cfe34103). macOS shows the shared gateway-owner profile as Shared owner alone. The web Control UI presence label shows Name · Shared owner. Windows now follows the web on any Gateway. WorkspaceIdentitySource.FooterLabel uses only the saved trimmed display name, never the email or profile id, and keeps the shared marker because anyone using the shared Gateway credential appears as this profile. Unlike the web, it does not fall back to a verified GitHub login. The format string is localized in all six locales. In the 40 DIP rail, the owner button kept its 8 DIP padding, leaving 22 DIP inside the button borders for a 24 DIP avatar. The rail now uses 4 DIP padding and expanded mode restores 8 DIP.

Evidence

Ready for maintainer review, not merge approval. Current head 3d949306 integrates main at 4ea07e85. Current-head CI, attempt 1, passed including the final CI Gate; all required checks are green and GitHub reports a clean, mergeable PR. ClawSweeper's completed current-head review found no actionable defects: patch quality is platinum (4/6), overall/proof remain gold (3/6). Its rank-up request for actual Windows account/consent and mounted-footer evidence is optional, not a merge blocker.

The full local Debug ARM64 build and all 5239 Tray tests passed. The separate local Shared run has 4948 passed, 1 failed and 26 skipped: an unchanged symlink test is blocked by missing Windows privilege. Successful hosted CI does not erase that local failure or establish the custom/native proof below.

The following real-Gateway and upgrade results are historical proof from 25fbbc1a, not new merged-head runs. They use synthetic account input with the unmodified production completion service and authenticated Gateway client. The Windows account provider and mounted WinUI were not exercised.

Executed proof Result and boundary
Allowed writes, read-only denial, token revocation during paused preparation 21 passing checks, including pairing setup. Both synthetic fields saved; actual read-only requests returned FORBIDDEN; fields remained empty after read-only attempts and after revocation.
Non-owner writes and built-in owner invariants 10 passing checks. A real authenticated non-owner with a reduced-scope/no-admin connection could not write either owner field (FORBIDDEN). Service skipped account input. Actual owner users.merge/users.setRole requests were rejected. These are immutable-owner rejection cases, not an executed reassignment race.
First and final Gateway restarts 4 checks each, including pairing. Final read-back followed all non-owner/invariant attempts and required the original name and byte-for-byte original PNG through production HTTP.
Signed same-identity .803 -> .804 MSIX upgrade 17 pre-upgrade and 21 post-upgrade assertions passed using actual, hash-verified product persistence DLLs. Preserved synthetic settings, Gateway registry/credentials, device identity and preferences. Normal upgrade without uninstall/reset/downgrade. Migration-test signatures, not Store delivery.

Isolation limitation: all six final guest stages passed, but the host wrapper failed its metadata guard. Six host metadata entries changed while another session relaunched its real-profile Companion; attribution is unconfirmed. This is not an overall isolation pass. Every task-owned Sandbox process was removed and the other Companion was untouched. The separate signed-upgrade run had zero host metadata differences and was disposed.

The diff against the live base is 23 files, +2085/-18: 731 production lines (including six one-line locale resources), 1339 test/test-wiring lines and 15 ledger/doc lines. The Sandbox Gateway and signed-upgrade proof above ran at 25fbbc1a, before the footer commits. Those commits change only footer presentation, rail padding and their tests/ledger, not the completion service, account provider, coordinator, Gateway calls, capability or persistence. Earlier stack layers already landed as squash commits; their original commits remain in this branch's history. The Files changed view is the feature delta.

The current full Tray run includes 360 passing profile/coordinator, identity and navigation cases. The earlier 107 focused tests cover payloads, partial fields, context/eligibility fences, cancellation/uncertain outcomes, process-lifetime attempts, pending-context handoff and replacement-client refresh. The parameterless pending-request drain test pins plain transport cancellation. Workspace hook assertions were historically mutation-checked; ledger consistency ran in Shared. These are static/component evidence, separate from the real Gateway results above.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • windows-winui-interactive: Windows account/OS-consent behavior and mounted owner footer, including the named shared-owner label and rail avatar padding. Declared, not run.
  • windows-wsl-gateway-e2e: managed WSL integration remains unverified; supplemental native Windows Sandbox RPC proof does not complete this pool.
  • windows-clean-installer-upgrade: signed increasing-version upgrade and production-loader compatibility passed. Full install/repair/uninstall, Store delivery and packaged UI obligations are not claimed complete.

Validation

Current merged head

HEAD 3d949306e8d4e514e62806eafc69d556eaae7772, tree d22fbbe71f8a907c641bd4016f9d1cad32faf928, comparison base 4ea07e858b819c3df5d6b61fbef52596ed58b27b. Source remained committed and unchanged during local validation. The only textual merge conflict was WorkspaceWindow.OnClosed; both main's search flyout/controller cleanup and this PR's profile event unsubscribe are preserved after IsClosed = true.

Test processes cleared inherited OPENCLAW_* overrides, set OPENCLAW_REPO_ROOT, and used isolated tray data/AppData/local-AppData directories. Test projects were built first to prevent a fresh-worktree --no-restore no-op. Actual TRX execution counters were read. In the commands below, $logs is the task's session-artifact directory outside the repository; it is a local output location, not a public proof link.

Exact command at 3d949306 Result
.\build.ps1 Passed, Debug, win-arm64; all five product projects built. Its documentation gate passed for 72 Markdown files.
dotnet build .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --nologo -v quiet Passed.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared-merge.trx' --results-directory "$logs\test-results" Failed: 4948 passed, 1 failed, 26 skipped; 4975 total, 4949 executed.
dotnet build .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --nologo -v quiet Passed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=tray-merge.trx' --results-directory "$logs\test-results" Passed: 5239/5239, no skipped cases; includes 360 profile/coordinator, identity and navigation cases.
git diff --check Passed; source worktree clean.

Local Shared blocker: MxcFolderAdmissionTests.OwnedJunctionAndSymbolicLinkAreRejectedWithoutFollowingTheirChildren(symbolic: True) failed because Windows refused Directory.CreateSymbolicLink with "A required privilege is not held by the client." This test and the MXC production directory are unchanged against merged main. No assertion was weakened, no skip added and no machine policy changed. This is not a passing full Shared suite. No current-head app, shared Gateway, package install or WSL runtime was launched during the merge task.

Merged-head evidence and review request. Current CI, run 42163030619, attempt 1, passed at head 3d949306, including Core/CLI, Tray/setup/integration, UI/functional/accessibility, all three WSL E2E lanes, x64 release smoke, both MSIX architectures, the Store bundle and final CI Gate. C# and Actions security checks also passed. Release/publication jobs were skipped as expected for this PR. No rerun or previous-head result is substituted for this run. Current local Connection, CLI/MCP, Release, UI/accessibility, E2E and MXC runtime suites were not run; hosted results are separate from local execution and do not complete custom Windows provider/consent or pixel proof.

Historical validation and supplemental proof before the main merge

Previous head cfe34103a245a90a90afc92afe7e6fe39e1fd646, tree a77e645cf9701d09e8461d73442e55940c837ae0, added the footer label (de00f235) and rail padding (cfe34103) commits to 25fbbc1a. Its comparison base was 4aee38a1bfaa2f7d241130a3548d94f0547a3c9c. Validation ran on the uncommitted working tree, which was then committed unchanged (every edit predates the run). Tray tests used an isolated tray data directory. CI for cfe34103 subsequently completed successfully; it is not current-head CI.

Exact command at cfe34103 content Result
.\build.ps1 First attempt failed: CS0009, src\OpenClaw.Chat\obj\Debug\net10.0\ref\OpenClaw.Chat.dll had no managed metadata (stale intermediate retained). After rebuilding OpenClaw.Chat, the rerun passed, Debug
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore Passed: 4928 executed; 25 gated cases not executed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore Passed: 5178/5178, including the new label theory, shared-owner name and rail padding tests
RailOwner_UsesCompactPaddingAndRestoresExpandedPadding alone, before the padding edit Failed 1/1 as expected
.\scripts\validate-docs.ps1 Passed: 72 Markdown files
git diff --check Passed

Not rerun at cfe34103: Connection tests and validate-agent-skills.ps1 (no connection or skill changes), and the fixture UI test whose expectation changed (OwnerFooterRendersNamedSharedOwnerForGatewayOwnerProfile).

Earlier head, used for the managed closeout and all supplemental proof below: clean HEAD 25fbbc1a5fa1ebc59a0d20e90ff1410d18f45950, tree 3084ddd2f01df17d27d118bac8f236782f2086ef, comparison base 4aee38a1bfaa2f7d241130a3548d94f0547a3c9c (0 behind). Repository source was unchanged throughout supplemental proof. Managed closeout below is that earlier Debug run, not a rerun. Its process-only wrapper cleared inherited OPENCLAW_*, set isolated tray roots and OPENCLAW_REPO_ROOT, and left OPENCLAW_STATE_DIR/legacy OPENCLAW_TRAY_LOCAL_DATA_DIR unset. TRX counters were checked for actual execution and failures.

Exact command Result
.\build.ps1 Passed, Debug
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore Passed: 4928 executed; 25 gated cases not executed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore Passed: 5169/5169
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore Passed: 1746 executed; 1 gated case not executed
.\scripts\validate-docs.ps1 Passed
.\scripts\validate-agent-skills.ps1 Passed
git diff --check Passed
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter "FullyQualifiedName~ProfileCompletionTests|FullyQualifiedName~ProfileAutoFillCoordinatorTests|FullyQualifiedName~ArchitectureLedgerConsistencyTests" Passed: 107/107; ledger tests live in Shared and ran in its full pass

The Shared gated cases are 17 device-identity integration, 7 MXC integration and 1 hardware-probe case; none is claimed proved. Full-product Release, SetupEngine, UI/accessibility/E2E/MXC suites were not run. CLI/MCP tests were not run because those surfaces did not change. A harness Release build is not full-product Release validation.

Supplemental commands use session-only artifacts. Guest commands ran inside disposable Windows Sandbox unless marked host:

Exact command Result
dotnet build ProfileGatewayProof.csproj -c Release --no-restore --nologo -v quiet -p:UseSharedCompilation=false -p:BuildProjectReferences=false -m:1 -nr:false (host artifact directory) Passed; original failed fixture builds retained
dotnet ProfileGatewayProof.dll preflight 4 constructor cases passed, no account/network access
node C:\GatewayPayload\openclaw.mjs gateway run --port 42961 --bind loopback Real Gateway started with disposable guest state
dotnet C:\ProofHarness\ProfileGatewayProof.dll prove 21 checks passed
dotnet C:\ProofHarness\ProfileGatewayProof.dll verify-persisted (first and final restarts) 4 checks passed on each invocation
dotnet C:\ProofHarness\ProfileGatewayProof.dll prepare-nonowner Two real pending requests; provisioning only
node C:\GatewayPayload\openclaw.mjs devices approve <exact-request-id> --json (once per request, Gateway stopped, implicit configured loopback target) Both official approvals exited 0; IDs/credential-bearing output withheld. Subsequent non-owner connections authenticated after restart with no automatic pairing permitted
dotnet C:\ProofHarness\ProfileGatewayProof.dll prove-nonowner 10 checks passed
powershell.exe -NoProfile -File .\Test-GuestPairingArray.ps1; powershell.exe -NoProfile -File .\Test-GuestProcessExit.ps1 (host artifact directory) Actual guest assignments/functions: 4 parsing and 2 exit-status cases passed on PS5.1; also passed on PS7.6.9, no account/network access
.\Run-GatewaySandbox.ps1 -OutputName output-11 (host artifact directory) Guest: six stages passed. Host wrapper: FAILED metadata-isolation guard; six changed entries, attribution unconfirmed; zero owned Sandbox processes remained
Add-AppxPackage -Path C:\ReleasePackage\OpenClaw-MigrationTest-x64.msix .803 installed, signature validated
& "C:\UpgradeProofRuntime\seed\ProductLoaderProof.exe" "seed" "C:\Program Files\WindowsApps\OpenClawFoundation.OpenClaw_2026.9.803.0_x64__rfcbke2p71se2" "C:\Users\WDAGUtilityAccount\AppData\Roaming\OpenClawTray" "C:\ProofOutput\release-loader-resume.json" 17 assertions, exit 0; recorded process arguments
Add-AppxPackage -Path C:\HeadPackage\OpenClaw-MigrationTest-x64.msix Normal same-identity .804 upgrade, no uninstall/reset/downgrade
& "C:\UpgradeProofRuntime\verify\ProductLoaderProof.exe" "verify" "C:\Program Files\WindowsApps\OpenClawFoundation.OpenClaw_2026.9.804.0_x64__rfcbke2p71se2" "C:\Users\WDAGUtilityAccount\AppData\Roaming\OpenClawTray" "C:\ProofOutput\upgraded-loader.json" 21 assertions, exit 0, same synthetic guest profile

Real Behavior Proof

  • Environment tested: disposable x64 Windows Sandbox, network/clipboard disabled, only proof inputs and dedicated output mapped. Gateway 2026.10.10, exact source 7dc3350cb9f08fcf9a0af5c4845a20d5b2f1a8be, Node 24.22.1. That source commit is newer than the bot-cited b8952d4, despite version spelling. No host account provider or shared Gateway was used.
  • PR head or commit tested: Sandbox and upgrade proof used clean 25fbbc1a5fa1ebc59a0d20e90ff1410d18f45950, tree 3084ddd2f01df17d27d118bac8f236782f2086ef, before the footer commits and main merge; it does not cover current head 3d949306. Harness links unmodified ProfileCompletionService.cs/AccountIdentity.cs and uses production OpenClawGatewayClient. Account input and selected service context are synthetic, not the app's registry/connection factory. Upgrade CI tested merge d9cadf876e52c44e5219d96dc99d9f5123ff439e has the identical tree.
  • Exact steps or command run: commands above. Non-owner provisioning uses the official CLI's supported offline local-administrator fallback, not direct pairing-store edits, injected tokens/roles or disabled checks. Real trusted-proxy authentication follows restart. This does not establish online pairing authority for that principal. The writer is a reduced-scope connection, not a claim that its token intrinsically lacks every higher scope.
  • Evidence after fix: copied contracts below. Fixture corrections included Interactive rather than CLI identity, nonempty base credential, exact proxy origin, supported offline pairing, PS5.1 JSON-array handling and retained process handle for exit status. Original failures are retained; production/Gateway authorization code and denial assertions were not weakened.
  • Observed result: all six final guest stages passed, with 21 main, 2 pending-request, 10 non-owner/invariant and two 4-check restart phases. An additional payload-hash check passed. The host isolation guard FAILED and remained explicit; cleanup was verified.
  • Footer label observation: a developer-authorized, non-isolated Debug launch with the label change (before the padding change) was connected to the developer's installed Gateway. Its accessibility tree was read without input. WorkspaceOwner showed <saved displayName> · Shared owner with help text Connected. The private name is redacted and no screenshot is published. Pixel layout was not assessed, and this does not show how the name was acquired.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes for linked CI/source URLs below. Copied results are inline, not inaccessible local links. No screenshots or mounted UI claim.
  • Not verified or blocked: real Windows name/photo acquisition and OS consent; rendered rail avatar after the padding fix (source-contract test only) and the updated fixture UI test; mounted Workspace/footer and complete managed-context integration; actual owner reassignment during preparation; ARM64, Store delivery, full packaged activation, native MSIX Gateway integration and WSL E2E. The named native patch was removed after a missing marked dependency in its shadow runtime; the intact payload was used without alteration. Gateway logged a portable fs-safe fallback, not successful native-addon loading. MCP/winnode were not exercised. Host metadata-isolation failure remains unattributed. An earlier Shared MXC scratch-cleanup failure and a zero-filled Shared reference DLL remain unexplained; later passes do not establish unrelatedness.
Copied production-path contracts and artifact correspondence

Selected executed contracts from final output-11, all passed: true:

read-only scope was granted
read-only client does not acquire account input
real Gateway rejects read-only users.setDisplayName with FORBIDDEN
real Gateway rejects read-only users.setAvatar with FORBIDDEN
read-only attempts leave persisted owner fields unchanged
Gateway acknowledged token revocation during preparation
revoked pending fill reports no changed or uncertain result
revocation final persisted fields remain empty
selected Gateway context change during preparation leaves persisted fields empty
production service receives success for both real Gateway writes
subsequent Gateway read returns exact name and stored avatar
authenticated production HTTP client retrieves persisted avatar
pre-existing complete identity is preserved without acquiring account input
second attempt leaves the exact stored name and image unchanged
trusted synthetic proxy identity resolves to a real non-owner profile
non-owner writer has no admin scope
production service does not acquire identity for a non-owner
real Gateway rejects non-owner users.setDisplayName with FORBIDDEN
real Gateway rejects non-owner users.setAvatar with FORBIDDEN
real Gateway refuses built-in owner reassignment through users.merge
real Gateway refuses built-in owner reassignment through users.setRole
denied non-owner and reassignment attempts preserve stored owner fields
name and avatar survive a real Gateway restart
restarted Gateway serves the exact synthetic uploaded image

The raw labels saying "reassignment attempts" mean rejected built-in owner merge/role operations, not a successful reassignment race. Empty fields after revocation prove observed persisted effects, not zero wire transmissions or arbitrary revocation timings. The denied avatar request used a different valid PNG. Final HTTP bytes equalled the original synthetic image: SHA256 F43181712589AF203C16C71711CB7CF63273CA57B0D197A2B5FAF55092E53158.

  • Gateway payload CI, attempt 1 success; exact Gateway source. Inventory 44,571 files, aggregate SHA256 cbbea58b02bce43427f294f256b96302e1481dc76ca6f8ced52332a8693b3222.
  • Harness source SHA256 4572BF6C8B2825F333AECD86A66ED4E1D540830756BFA0CEEE44A76BEE2E5CF4; harness DLL 4266C75DFE3028E7C7089779ED82ED10E437669847490952D6E06BA9B8DBE178; guest script B5EEAC438030889F9BC10C9BE6F79ACD8C4ED1FDED40FDF60631FC708FFA4742. All nine frozen source/script/production-DLL hashes matched before and after the final run.
  • Previous-release CI, attempt 2 success, source 2ba89f377ce8ce3f5ddfc452e4d509329f109114; .803 package SHA256 fd2b5fcb534c4986107a27cade3e3515751b15c8d5bbd7ff7543d37ac4f2c598.
  • Previous-head CI, attempt 1 success, workflow head 25fbbc1a5fa1ebc59a0d20e90ff1410d18f45950; identical-tree tested merge d9cadf876e52c44e5219d96dc99d9f5123ff439e; .804 package SHA256 23eb8a387930ea418993db8823827e6a2b061bfdb2c542723328731222be193b.
  • Both package signatures validated with trust added only inside Sandbox. Same identity/publisher, increasing version, migration-test signatures. Older actual assemblies report 2026.9.8-alpha.2+...2ba89f... despite the release tag; no binary was relabeled. Loaders used hash-identical copies of registered package DLLs, not alternate persistence implementations. Upgrade proves Companion persistence compatibility, not Gateway owner-photo preservation across an app upgrade. The separate Gateway run proves its own restart/image preservation.

Security Impact

  • New permissions or capabilities? (Yes/No): Yes, userAccountInformation.
  • Secrets or tokens handling changed? (Yes/No): No.
  • New or changed network calls? (Yes/No): Yes, users.self, users.setDisplayName, users.setAvatar over the existing authenticated operator connection, no new endpoint.
  • Command or tool execution surface changed? (Yes/No): No.
  • Data access scope changed? (Yes/No): Yes, current Windows name/photo persisted on the managed Gateway and shared with its users.
  • If any answer is Yes, explain the risk and mitigation: automatic personal-data sharing, no in-app opt-out. Managed-only eligibility, canonical owner/write authority, coherent context fences, current user only, fail-closed execution context, bounded image/name, per-field pre-write reads, no uncertain-write retry, no account data logging. Small accepted PNG/JPEG bytes are unchanged and may retain metadata; only oversized photos are re-encoded. No atomic no-overwrite guarantee.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes for existing persistence schema and Gateway contracts, with the intentional automatic-sharing behavior stated above. Signed upgrade exercised actual product loaders. Existing values seen at pre-write re-read are preserved; concurrent writes are not atomic.
  • Config or environment changes? (Yes/No): No. Timeouts are fixed constants. Package gains the capability above.
  • Migration needed? (Yes/No): No.
  • If yes, list the exact upgrade steps: N/A; capability takes effect with a newly signed package.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

The completed ClawSweeper review, revision 3, covers merged head 3d949306 and the footer commits. It reports no actionable findings and is ready for maintainer review. Patch quality is platinum (4/6); overall/proof remain gold (3/6). Its optional rank-up asks for redacted actual Windows account/consent and mounted-footer evidence, including the collapsed avatar. It also suggests replacing the literal padding assertion with mounted rendering coverage; no existing regression was removed without that replacement. The settled review request completed after the earlier request was superseded by metadata edits. The photo metadata disclosure is corrected. No merge approval is inferred from the rating or successful CI.

Local Hanselman review (Opus 5.5 and Astra) accepted 3cc1177e9225f8b605590743135fc9caf040353a; one optional LOW about throwing outcome/event reporters suppressing a retry remains unchanged and fails closed. Later main merges had an independent integration review; its LOW about overly broad hook-text matching was fixed and mutation-checked in 25fbbc1. These are static source reviews, not runtime proof.

Independent proof review used the available code-review role (no rubber-duck role advertised). It accepted the corrected fixture, final non-owner/restart contracts, nine matching hashes, actual-function PowerShell regressions and detailed evidence wording. It explicitly retained the failed host isolation check and did not grant merge approval. This is a bounded proof review, not a new full production-code review.

The footer commits de00f235 and cfe34103 were not covered by those historical full-feature reviews. At merged head 3d949306, an independent rubber-duck role reviewed the combined merge, both parents, lifecycle callers and proof plan and found no actionable P0-P3 integration defect. Model identity is unverified. It confirmed that preserving both teardown paths is the smallest complete resolution. This is a bounded integration review, not a new full-feature source review. The required shared autoreview installation was absent, so no successful shared-helper review is claimed. The completed ClawSweeper review above covers the current full PR; native proof limits remain explicit.

bkudiess and others added 25 commits October 27, 2026 11:41
Add ApplyProfileIsolation so the fixture child gets run-owned DATA, APPDATA, LOCALAPPDATA and legacy LOCAL_DATA roots, with pure regression tests.

Co-authored-by: Copilot App <[email protected]>
…on identity

The tray opts in to gateway-client/ui through GatewayClientFactory so the Gateway
treats its long-lived connection as interactive. CLI, setup, and validator clients
keep cli/cli. The signed device payload and serialized client use one identity.
Disconnect presence beacons no longer count as active or claim a live node.

Co-authored-by: Copilot App <[email protected]>
Extract HubWindow into SettingsShellView hosted by WorkspaceWindow with one
canonical navigation history, retained chat, deferred navigation and
request-slot fences, and retargeted callers, tests and ledger.

Co-authored-by: Copilot App <[email protected]>
…une render is pending

A pruned Settings fallback moves the logical destination before it renders. A
repeat request for that destination bypassed modal deferral and rendered under
the open dialog. Navigation now waits whenever an intent or pruned render is pending.

Co-authored-by: Copilot App <[email protected]>
…tive setup under dialogs

The required prune render is stored separately from the replaceable deferred
intent, nothing drains while another dialog is open (the drain re-arms on it),
and native Settings requests are never accepted under an open dialog.

Co-authored-by: Copilot App <[email protected]>
…dExecutor

Adds the sidebar search button and native flyout in WorkspaceWindow, backed by the same HubCommandCatalog as Settings. A shared HubCommandExecutor runs Navigate, OpenDashboard and ToggleSetting for both surfaces and reports SettingsSaved only after a successful toggle persist. Ctrl+E/Ctrl+K open the visible surface's search without changing page or draft.

Co-authored-by: Copilot App <[email protected]>
Adds a native Pages shortcut section with a customize flyout over 15 native
destinations. Pins are stored locally per Gateway in immutable, deep-copied
settings snapshots (no sync, no SettingsSaved reload) and route through the
canonical Settings route, using Chat's currently selected agent at invoke.

Co-authored-by: Copilot App <[email protected]>
Unchanged pins keep their sidebar row so keyboard focus and the focus captured
before entering Settings survive unrelated saves and status changes. A removed
focused row falls back to the Customize pages button.

Co-authored-by: Copilot App <[email protected]>
The framework can move focus synchronously when a focused pin row is removed, so
focus ownership (including descendants) is read before reconciliation. Fallback
is the Customize pages button, then the Home row when the pane hides it.

Co-authored-by: Copilot App <[email protected]>
…ates

Read-only Gateway identity display: bounded GatewayRequestErrors codes, WorkspaceIdentitySource
loading/unnamed/unavailable states, authenticated avatar transport with an end-to-end deadline
(OPENCLAW_USER_AVATAR_TIMEOUT_MS) and supersession by profile invalidation, native PersonPicture
decode fence, localized copy, and an external Dashboard profile action. No profile writes or OS
account reads.

Co-authored-by: Copilot App <[email protected]>
…ed avatar

Ordinary presence refreshes no longer cancel an in-flight avatar attempt or
restart its deadline; only explicit invalidation or a connection change
supersedes it. An unchanged profile id and revision keeps the current image
without refetching, and a known profile never re-enters loading.

Co-authored-by: Copilot App <[email protected]>
…er preparation

Distinguish Gateway connection loss from caller cancellation at read and write
boundaries, keep a saved name when a later step loses the connection, and avoid
stacking the profile dialog on a modal opened during preparation.

Co-authored-by: Copilot App <[email protected]>
…etup

The automatic Windows-account-prefilled profile offer was gated on the
post-setup restart, so users who only updated the app never saw it. Any
start now qualifies for an eligible managed Gateway whose canonical owner
is blank, once per Gateway and process, until the user saves or skips.
An in-progress setup window defers the offer without consuming it; the
post-setup restart handoff remains exempt. Explicit confirmation before
any Gateway write is unchanged.

Co-authored-by: Copilot App <[email protected]>
…ut a prompt

Mac parity: the macOS Gateway fills a blank owner name from its host account on
owner connect and serves the host photo while no avatar is uploaded, without
asking. A WSL or native Windows Gateway cannot read the Windows account, so the
workspace now fills each blank field itself, once per Gateway and process on any
start including after an update. It never overwrites, re-reads before each write,
reads nothing from Windows without write scope, and does not retry uncertain
writes in the same process. The owner-menu review dialog stays as the manual path
and its Skip still stops the automatic fill.

Co-authored-by: Copilot App <[email protected]>
Keep silent missing-field fill and the existing Gateway profile settings as the
only paths. Remove the separate editor, Skip store, manual retry switches and
unused dialog resources in all six locales. Retain the prepared-context fence,
per-field rereads and transport uncertainty classification.

Co-authored-by: Copilot App <[email protected]>
Keep one fill owner and per-Gateway attempts across Workspace reopen. Drain only newly observed contexts, preserve uncertain-write suppression, and reject mismatched connection and registry destinations. Respect emails in the final name recheck and cover the lifecycle and context boundaries with pure regressions.

Co-authored-by: Copilot App <[email protected]>
…ments

Preserve the original failure and attempted Gateway while handing a still-current differing context to its own guarded error boundary. Refresh same-Gateway replacement observers after Saved or Uncertain results without retrying writes. Cover delayed RPC failures, stale pending contexts, single flight and read-only refresh fences.

Co-authored-by: Copilot App <[email protected]>
Main already carries layers L1-L6 of this stack as squash merges (openclaw#1906, openclaw#1909, openclaw#1911, openclaw#1916, openclaw#1940, openclaw#2013), so a textual merge of those files only conflicts with itself. Take main's landed content for all of them and keep only the L7 delta (silent Windows-account profile fill for eligible managed Gateways).

Resolution against main's landed design:
- WorkspaceWindow.UpdateOwnerIdentity keeps main's shared-owner label and shared footers. The L7 trigger fires once a profile has been read (DisplayName is not null) because main's WorkspaceIdentitySource has no HasProfile, IsLoading or IsUnnamedProfile.
- Main removed the owner-menu 'Set up profile' item and the unnamed-owner strings, so the window source-shape test keeps only the negative completion-UI assertions (renamed Window_DoesNotHostProfileCompletionUi) and the ledger guard follows the rename.

Net change against origin/main e4a92c8: 12 files, +1952 lines, all L7.

Co-authored-by: Copilot App <[email protected]>
The source-contract test matched the trigger, refresh and unsubscribe text anywhere in WorkspaceWindow.xaml.cs, so it would still pass if a hook moved outside its guard or lifetime method. Assert each hook inside UpdateOwnerIdentity, OnProfileAutoFilled and OnClosed instead. Verified by mutating a scratch copy of the window source: moving the trigger out of its guard, dropping the invalidating refresh and moving the unsubscribe each fail the test.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 5, 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 P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Nov 5, 2026
@clawsweeper clawsweeper Bot added the status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. label Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

Automatically fill missing managed-Gateway owner fields from the Windows account and show a saved shared-owner name in the footer.

Example: Ada Lovelace connects to a Companion-managed Gateway whose owner has no name or photo.

  • Before: The owner fields remain empty and the footer shows Shared owner.
  • After: Available Windows account fields are saved, and the footer shows Ada Lovelace · Shared owner.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful and source-correct, with reusable production authorization evidence and signed upgrade coverage, but limited native end-to-end confidence.
Proof confidence 🦐 gold shrimp (3/6) Sufficient (live_output): For this maintainer-authored PR, the applicable authority evidence is sufficient: historical Sandbox output exercises the unchanged production completion service and real Gateway with synthetic account input, allowed writes, read-only/non-owner denial, revocation during preparation, and persisted restart read-back. The supplied signed upgrade separately preserves existing Companion settings, credentials and identity. This does not establish real Windows provider/consent behavior, mounted managed-context integration, or current footer pixels; the inspected screenshots belong to the earlier display PR. The failed historical host-isolation guard remains a failed guard, not an overall isolation pass.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Managed Gateways can retain blank owner fields despite an available Windows name and photo.
Reason: The existing profile/footer owner authored this direction and explicitly recorded its privacy and persistence tradeoffs.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR adds useful behavior absent from main, and no actionable introduced correctness defect was found in the profile changes or merge resolution.

Priority: P2
Reviewed head: 3d949306e8d4e514e62806eafc69d556eaae7772

Before merge

None.

Findings

None.

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/Presentation/WorkspaceNavigationTests.cs: RailOwner_UsesCompactPaddingAndRestoresExpandedPadding repeats the exact assignment and cannot detect clipping; remove this literal assertion in favor of mounted rendering coverage.
  • Missing end-to-end proof: Actual Windows acquisition and consent, integrated managed-Gateway completion, and current named-owner and rail-avatar rendering remain unverified.
Agent review details

How this fits together

Workspace profile observations trigger an app-lifetime coordinator, which checks the selected managed Gateway and authenticated owner before acquiring Windows account data and writing through existing Gateway APIs.

flowchart LR
  A[Workspace profile observation] --> B[App lifetime coordinator]
  B --> C[Managed Gateway context check]
  C --> D[Profile completion service]
  E[Windows account provider] --> D
  D --> F[Authenticated Gateway profile APIs]
  F --> G[Existing identity source and footer]
Loading

Technical review

Best possible solution:

Keep the focused app-lifetime coordinator and existing Gateway profile APIs, preserving populated fields and the shared-owner marker.

Do we have a high-confidence way to reproduce the issue?

Source confirms main displays Gateway identity but lacks this Windows-account completion path; this is an authorized feature addition rather than a reproduced contract violation.

Is this the best way to solve the issue?

The separation is justified: the provider owns Windows access, the service owns Gateway mutations, and the coordinator owns process-lifetime attempts while the existing identity source remains display-only.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4ea07e858b81.

Provenance checked

  • Shared-owner footer label changes intended behavior with a stated reason (d972860: The earlier profile-display change intentionally followed macOS by labeling shared credentials as Shared owner; this PR explains following the web Control UI's named shared-owner presentation while retaining the marker.)
  • Collapsed owner-button padding changes intended behavior with a stated reason (3f6765e: The shared footer established expanded and compact layouts; this PR narrowly adjusts compact padding to accommodate the existing 24 DIP avatar within its 40 DIP button.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned change and current-main comparison: The pinned introduction comparison contains 82 files, including merged search work; the independently verified remaining difference against fetched main is 23 files, +2085/-18. (3d949306e8d4)
  • Managed destination and owner boundaries: Context capture requires matching connection and registry identities plus a managed record; the service checks canonical ownership and write scope before account acquisition, then rereads each field before writing. (src/OpenClaw.Tray.WinUI/Services/ProfileCompletionService.cs:30, 3d949306e8d4)
  • Reusable authorization evidence: The full PR body records production-service calls against a real isolated Gateway, including allowed writes, read-only and non-owner rejection, revocation during preparation, and persisted read-back after restart; all four profile implementation files are unchanged from the exercised 25fbbc1 head. (src/OpenClaw.Tray.WinUI/Services/ProfileCompletionService.cs:152, 3d949306e8d4)
  • Accepted privacy and compatibility tradeoffs: The collaborator-authored body explicitly accepts automatic shared persistence, refill after restart, unchanged metadata in accepted small images, and best-effort preservation rather than atomic conditional writes; these settled choices require no renewed product approval. (src/OpenClaw.Tray.WinUI/Services/WindowsAccountIdentityProvider.cs:94, 3d949306e8d4)
  • Current merge validation and teardown: The maintainer reports a passing ARM64 build and 5239 Tray tests, with one Shared test blocked by Windows symlink privilege; source preserves search disposal and profile unsubscription before identity teardown, and current-head CI still has checks in progress. (src/OpenClaw.Tray.WinUI/Windows/WorkspaceWindow.xaml.cs:1399, 3d949306e8d4)
  • Historical media boundary: Both prepared screenshots were inspected: they show the earlier read-only profile display from feat: show the Gateway profile name and photo in Companion #2013, rather than Windows acquisition, the new named shared-owner label, or collapsed-rail padding. (d97286061d0a)

Likely related people:

  • Barbara Kudiess: Raw commit d972860 adds src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs:42 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d97286061d0a; files: src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs)
  • Karen: Raw commit 3a58bf3 adds src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs:17 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 3a58bf34902f; files: src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Remaining feature delta against fetched main Production +731/-4; tests and wiring +1339/-9; documentation +15/-5 Most growth protects distinct context, permission, lifecycle and uncertain-write boundaries; the merged search changes are excluded from this measurement.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves owner identity presentation without repairing a blocked core workflow.
  • merge-risk: 🚨 compatibility: Existing installations gain automatic field filling and deliberately cleared fields can refill after restart; the maintainer-authored direction explicitly accepts this behavior.
  • merge-risk: 🚨 security-boundary: Windows account data crosses into shared Gateway persistence through a new package capability; the stated privacy tradeoff is accepted and supplied final-effect authorization evidence covers unauthorized Gateway writers.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rank-up moves

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

  • Capture redacted current-head Windows account/consent and mounted footer evidence, including the collapsed avatar.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-05T20:21:26.163Z sha 25fbbc1 :: needs real behavior proof before merge. :: [P3] Correct the unconditional photo re-encoding claim
  • reviewed 2026-11-06T00:53:51.387Z sha 25fbbc1 :: needs maintainer review before merge. :: none

Reviewed November 5, 2026, 11:46 PM ET / November 6, 2026, 04:46 UTC (Revision 3).

@bkudiess

bkudiess commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 6, 2026
bkudiess and others added 5 commits November 5, 2026 19:53
Match the web Control UI presence label: the gateway-owner profile shows
"Name · Shared owner" when it has a saved display name and Shared owner
otherwise. The label never uses the owner's email or profile id. Other
profiles keep the macOS name, email, id order.

Co-authored-by: Copilot App <[email protected]>
The 40 DIP rail owner button kept its 8 DIP padding, leaving 22 DIP for
the 24 DIP avatar inside the button borders. Use 4 DIP padding in the
rail and restore 8 DIP when expanded.

Co-authored-by: Copilot App <[email protected]>
openclaw#2016)

* feat: find conversations and settings through shared navigation search

Keep the existing search icons and shortcuts, unify native results, and add bounded Gateway catalog and message reads without executing actions.

Co-authored-by: Copilot App <[email protected]>

* test: keep native search and history proof aligned with shared controls

Target the shared search TextBox itself, inject Alt+Right as a native chord, and scroll the expanded list through its viewport while retaining full-description assertions.

Co-authored-by: Copilot App <[email protected]>

* fix: reveal new search results when expanding the list

Move focus off the disappearing More button, avoid restoring an obsolete viewport during expansion, and reveal the new native row after grouped layout settles. Keep metadata focus and scroll preservation separate. Strengthen native proof to require the actual focus handoff without test-driven scrolling.

Co-authored-by: Copilot App <[email protected]>

* fix: preserve the native result view when expanding search groups

Append new rows to observable groups rather than resetting the grouped ItemsSource. Retain the scroll anchor and refresh shifted automation indices, with native coverage for expansion in multiple groups.

Co-authored-by: Copilot App <[email protected]>

* test: prove search and Dashboard routes against the released CI Gateway

Reuse the disposable setup/connect fixture for exact transcript and metadata matches, a restricted-scope denial and authenticated headless browser routes. No local Gateway registration or new CI provider is introduced; retain bounded diagnostics and owned resource cleanup.

Co-authored-by: Copilot App <[email protected]>

* test: observe browser authentication through the released Gateway wire

The real 2026.11.1 Gateway passed metadata, transcript and denial assertions, but its Solid browser no longer exposes the old Lit runtime fields. Require an actual same-origin hello-ok frame and visible semantic page headings instead of private framework state; retain route and screenshot checks.

Co-authored-by: Copilot App <[email protected]>

* test: bind browser pairing proof to its actual handshake request

Approve only the request reported on the owned browser socket, reconcile a request resolved concurrently without claiming success, and require a live authenticated socket before accepting rendered routes.

Co-authored-by: Copilot App <[email protected]>

* test: capture the settled Dashboard page rather than its initial shell

The real search, denied read and browser route test passed, but the root capture could precede its default-route redirect. Require meaningful routed content and wait for compositor frames before taking screenshots.

Co-authored-by: Copilot App <[email protected]>

* test: require actually visible Dashboard content before capture

Exclude hidden, transparent and off-viewport retained route elements. Accept a visible routed heading or composer field, while still requiring exact Skills heading/path and a live authenticated Gateway socket.

Co-authored-by: Copilot App <[email protected]>

* test: exclude inactive or occluded retained Dashboard content from proof

Check both viewport axes, inactive ancestors and hit-testing so retained route DOM cannot satisfy the rendered-page assertion while only shell chrome is visible.

Co-authored-by: Copilot App <[email protected]>

* test: attach proof to an explicitly owned browser target

Use the debugger endpoint published by the owned process and create a dedicated target through CDP rather than relying on a page-list HTTP endpoint or a single startup tab. Verified endpoint, target attachment, evaluation and capture with a local headless smoke test; all smoke profiles cleaned.

Co-authored-by: Copilot App <[email protected]>

* test: keep browser profile storage out of Gateway proof artifacts

The existing recursive log collector must not admit Edge profile JSON or LevelDB logs. Exclude the owned profile subtree and protect credential/file admission with nine fixture-free cases; retain ordinary diagnostic reports and explicit screenshots.

Co-authored-by: Copilot App <[email protected]>

* test: bind artifact exclusion to the browser profile owner

Use one profile-prefix contract for allocation and artifact admission so renaming the owned browser directory cannot silently admit its storage.

Co-authored-by: Copilot App <[email protected]>

* fix: remove the search footer and status messages

Keep conditional More and Retry beside the query input. Preserve accessible status with explicit notifications and protect the footer-free native layout.

Co-authored-by: Copilot App <[email protected]>

* fix: keep search navigation usable through cancelled and changing results

Dismiss cancelled Config detail overlays, return focus when selected search results disappear, and use the separately verified Skills route on Gateway 2026.11.1 without enabling unverified routes. Add real control/native keyboard regressions and preserve the footer-free layout.

Co-authored-by: Copilot App <[email protected]>

* fix: preserve search focus across immediate surface changes

Coordinate the existing flyout close owners before reopening on another surface. Fence deferred destination reveal against a newer search generation while preserving ordinary Settings target focus.

Co-authored-by: Copilot App <[email protected]>

* docs: align navigation search layout contract

Describe header actions and nonvisual UI Automation status after footer removal.

Co-authored-by: Copilot App <[email protected]>

* test: wait for fixture profile sharing locks during cleanup

Bound only Windows sharing/lock waits, retain explicit deadline failures and allow cleanup recovery after release. Cover transient and persistent held log handles.

Co-authored-by: Copilot App <[email protected]>

---------

Co-authored-by: Copilot App <[email protected]>
Preserve unified-search cleanup and profile auto-fill unsubscription when Workspace closes.

Co-authored-by: Copilot App <[email protected]>
@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 6, 2026
@bkudiess

bkudiess commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Please review merged head 3d949306e8d4e514e62806eafc69d556eaae7772, including the two footer commits that were not covered by the previous bot review.

Merge and current evidence

Integrated main at 4ea07e858b819c3df5d6b61fbef52596ed58b27b with the previous PR head cfe34103a245a90a90afc92afe7e6fe39e1fd646. The only textual conflict was Workspace's OnClosed. The resolution keeps both main's WorkspaceSearchFlyout.Hide() / _search.Dispose() and this PR's _profileAutoFill.ProfileChanged -= OnProfileAutoFilled, after IsClosed = true and before identity teardown. Profile acquisition and Gateway write logic are unchanged. The feature delta against this main remains 23 files, +2085/-18.

Fresh local validation ran on that committed merged head in the task-owned Windows ARM64 worktree. Test processes cleared inherited OPENCLAW_* overrides, set OPENCLAW_REPO_ROOT, and used isolated tray data/AppData/local-AppData directories. Test projects were built first to prevent a fresh-worktree --no-restore no-op. Actual TRX execution counters were read.

Exact command Current merged-head result
.\build.ps1 Passed, Debug, win-arm64; all five product projects built. Its documentation gate passed for 72 Markdown files.
dotnet build .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --nologo -v quiet Passed.
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger "trx;LogFileName=shared-merge.trx" --results-directory <session-artifact-test-results> Failed: 4948 passed, 1 failed, 26 skipped (4975 total, 4949 executed).
dotnet build .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --nologo -v quiet Passed.
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger "trx;LogFileName=tray-merge.trx" --results-directory <session-artifact-test-results> Passed: 5239/5239, no skipped cases. Includes profile, coordinator, identity/footer and merged search contracts.
git diff --check Passed; source worktree clean.

The Shared failure is MxcFolderAdmissionTests.OwnedJunctionAndSymbolicLinkAreRejectedWithoutFollowingTheirChildren(symbolic: True): Windows refused Directory.CreateSymbolicLink with "A required privilege is not held by the client." This test and the MXC production directory have no changes against the merged main. This is a local privilege blocker, not a passing full Shared suite. No assertion was weakened, no skip added, and no machine policy changed.

An independent rubber-duck role reviewed the combined merge, both parents, lifecycle callers and proof plan. It found no actionable P0-P3 integration defect and confirmed that keeping both teardown paths is the smallest complete resolution. Model identity is unverified. This bounded integration review is not a new full-feature source review. The required shared autoreview installation was absent, so no successful shared-helper review is claimed.

Evidence boundaries

The PR body's cfe34103 and 25fbbc1a commands/results remain historical, not current merged-head executions. Its prior ClawSweeper review covered 25fbbc1a, not this head.

Historical synthetic-account production-service / real-Gateway authorization, persistence and restart evidence, and the separate signed upgrade evidence retain their previously stated scope. They do not prove current mounted-app behavior. The historical host metadata-isolation guard failure remains a failure.

Not verified / blocked: real Windows account acquisition and first-use OS consent; current rendered rail avatar and updated fixture UI test; integrated managed-WSL/native-Gateway completion. No app, shared Gateway, package install or WSL runtime was launched or changed during this merge task. Those proof gaps have not been relabeled as passes. Fresh CI for the pushed merge is pending.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 6, 2026
@bkudiess
bkudiess marked this pull request as ready for review November 6, 2026 04:35
@bkudiess

bkudiess commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

The ready-for-review transition and description refresh are now complete for unchanged head 3d94930. The previous request acknowledged completion only as a superseded stale result, while the published review still covers 25fbbc1. Please review the settled current PR and its explicitly bounded merged-head evidence. No additional source or metadata edits are planned while this review runs.

@clawsweeper

clawsweeper Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@bkudiess

bkudiess commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator Author

The maintainer confirmed manual testing of the previously discussed native Windows account/consent, managed-Gateway integration, and footer/avatar scenarios: "i tested all of that so we are good". This is maintainer attestation; no additional captured artifacts or binary-provenance record was supplied.

Merging at the maintainer's explicit request. Head 3d94930 has passing required CI and a current-head ClawSweeper review with no actionable findings. Historical proof boundaries and the separate local symlink-privilege failure remain disclosed.

@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 6, 2026
@bkudiess
bkudiess merged commit 122bda7 into openclaw:main Nov 6, 2026
32 checks passed
@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 compatibility 🚨 Merging this PR could break existing users, config, migrations, defaults, or upgrades. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant