Skip to content

feat: show the Gateway profile name and photo in Companion - #2013

Merged
bkudiess merged 10 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-gateway-profile-display
Nov 5, 2026
Merged

bkudiess merged 10 commits into
openclaw:mainfrom
bkudiess:bkudiess-split-gateway-profile-display

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Companion needs to show the authenticated Gateway profile photo alongside its name in Chat and Settings.

User Impact

User impact: users see their Gateway profile name and photo in the shared Chat and Settings footer. A missing photo retains initials; a missing profile retains Owner. Shared Gateway owners show Shared owner.

No Windows-account lookup, profile write, completion dialog, migration, profile-setup action, or new node/MCP capability is included. The existing external Dashboard action and its authentication launcher are unchanged.

Why This Change Was Made

The existing identity source owns read-only profile state and invalidation. Ordinary presence events coalesce and reuse settled avatar outcomes; explicit profile changes supersede pending work and fence stale results. Optional avatar errors do not erase a valid name.

Avatar requests use the current authenticated media lease, fixed Gateway host, header authentication, no redirects, a 1 MB limit, a raster-only MIME allowlist, and one configurable headers/body deadline. The synthetic Gateway fixture now serves that same route rather than rejecting it as a WebSocket upgrade.

Every valid profile ID is eligible for the Gateway avatar route, including GitHub-only profiles without email or upload metadata. The Gateway owns photo-source resolution. The latest-main merge keeps the shared footer introduced by main; the window owns decode/cache and applies the same bitmap when Settings is created later.

Evidence

Draft PR. Current-head build and managed suites passed, plus 3/3 owner-footer native cases and 2/2 Light/Dark workspace cases. Inspectable current-head native captures show the Gateway-served photo in Chat and later-created Settings, including a profile without email or upload metadata, plus Shared owner.

Executed production authorization traces: 20/20 passed cover allowed readers, denied scopes, and revocation during pending uploaded/GitHub image preparation. This is the unchanged upstream production handler/authorization/pairing-store integration harness, not a live installed Gateway or real account.

Chat: Gateway photo for a profile without email or upload metadata

Settings: the same cached Gateway photo after creating the Settings footer

The solid green photo is the fixture's deterministic PNG, not a real person's image. The test asserts its known RGB inside the native owner button.

The original ClawSweeper review covered 0fb8b3f3, not the current candidate. Its supported-profile defect was fixed in de4f13ee: all valid profile IDs now request the bounded Gateway route. The no-email/no-upload fixture case exercises that input through the real client and native rendering. Low-value helper-shape tests identified by the review were removed; behavioral logging and lifecycle coverage remain.

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: native footer name/photo, shared-owner label, Settings footer bitmap reuse, and identity selection. Focused synthetic-fixture proof is reported below; complete pool acceptance and live installed Gateway profile proof are not claimed.

Validation

Candidate: 62be3e88ac5403b84738c2ee1790ca860ca77a35, tree 16c88e8733e9801a3fbfadb4d919f35cf8423225, including main 47961738c9a93d6e13e443baa5b01811e6612441.

Final-tree closeout passed. Logs and fresh TRX: rating-validation-final. The process-only wrapper clears inherited OPENCLAW_*, sets three isolated roots and the worktree repository root, and leaves the legacy local-data alias unset. HEAD/tree and clean status were unchanged before and after; normal AppData and LocalAppData metadata manifests were unchanged.

Exact command Result
pwsh -NoProfile -ExecutionPolicy Bypass -File .\build.ps1 Passed, 265s
dotnet test tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --blame-hang --blame-hang-timeout 300s --blame-hang-dump-type none --results-directory <logdir>\results-shared --logger "trx;LogFileName=shared.trx" --verbosity minimal Passed: 4943 executed, 8 gated cases not executed; OPENCLAW_RUN_INTEGRATION=1 for this step only
dotnet test tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --blame-hang --blame-hang-timeout 300s --blame-hang-dump-type none --results-directory <logdir>\results-tray --logger "trx;LogFileName=tray.trx" --verbosity minimal Passed: 5055/5055
dotnet test tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --blame-hang --blame-hang-timeout 300s --blame-hang-dump-type none --results-directory <logdir>\results-connection --logger "trx;LogFileName=connection.trx" --verbosity minimal Passed: 1746 executed, 1 gated case not executed
dotnet test tests\OpenClaw.WinNode.Cli.Tests\OpenClaw.WinNode.Cli.Tests.csproj --blame-hang --blame-hang-timeout 300s --blame-hang-dump-type none --results-directory <logdir>\results-winnode --logger "trx;LogFileName=winnode.trx" --verbosity minimal Passed: 129/129
pwsh -NoProfile -ExecutionPolicy Bypass -File .\scripts\validate-docs.ps1 Passed: 71 Markdown files, 7 proof pools and documentation-flow regression
git diff --check origin/main..HEAD Passed
node scripts\run-vitest.mjs run --config test\vitest\vitest.gateway.config.ts src\gateway\user-profiles-http.auth.test.ts --reporter=verbose Separate unchanged upstream 064b2915 checkout: 20/20 passed, 234.93s
dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-build --no-restore --filter "FullyQualifiedName~GatewayFixtureUiTests.OwnerFooter" Passed: 3/3, screenshot/pixel assertions enabled
dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-build --no-restore --filter "FullyQualifiedName~WorkspaceWindowProofTests.AgentSelector_UsesConfiguredIdentityPictureNameAndId" Passed: 2/2, Light and Dark

<logdir> is the absolute session files\rating-validation-final directory. Tests ran with restoration enabled rather than --no-restore; fresh TRX reports confirm nonzero execution. Gated cases are not claimed as native acceptance.

The merge candidate 7db93ca6 also passed the full closeout. The final candidate adds only a native fixture regression for a Settings footer created after the photo is loaded; the full closeout above was rerun rather than inheriting those counts.

  • Native commands and current-head results are recorded below.

Real Behavior Proof

  • Environment tested: Windows x64, unpackaged Debug WinUI, synthetic loopback Gateway, three isolated tray roots. Real AppData/LocalAppData metadata manifests unchanged; no run-owned tray processes remained.
  • PR head or commit tested: 62be3e88ac5403b84738c2ee1790ca860ca77a35, tree 16c88e8733e9801a3fbfadb4d919f35cf8423225.
  • Exact steps or command run: the two UI commands in Validation, after dotnet restore tests\OpenClaw.Tray.UITests -r win-x64 and dotnet build tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --no-restore -nologo -v:minimal; isolated wrapper with screenshot opt-ins, clean HEAD/tree pins and a 20-second desktop-idle gate.
  • Evidence after fix: native photo and Shared owner captures. Chat PNG SHA256 E6792BC67F95F0C3C86DD6042A3C4DD9F855341073C3247AA57897A8720404D0; Settings PNG SHA256 F3C930ECBD5AF49CB9B37C3C4C80818CFEE3DCE4827DA10CD4B9C8806735E5F5. Loaded app DLL SHA256 5F1AF321BC3B857DD155BCF80785BDFB3E35D98A0BC89950D9E5DC624D145744.
  • Observed result: 3/3 owner-footer cases and 2/2 Light/Dark workspace cases passed with no selected skips. The no-email/no-upload case paints the served photo in Chat and the later-created Settings footer. The shared-owner case displays Shared owner. Complete owned-window frames were inspected; real AppData manifests were unchanged and no owned processes remained.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. Exact published evidence comment contains all three canonical asset URLs; Chat and Settings are embedded above.
  • Not verified or blocked: live installed Gateway accounts/pairing, OS accounts, profile writes, Dashboard navigation, full Debug/Release hosted fixture suite, complete custom proof-pool acceptance, ARM64 and packaging. Synthetic fixture rendering does not prove production Gateway grant enforcement; the separate upstream production authorization harness is reported independently.

Security Impact

  • New permissions or capabilities? (Yes/No): No.
  • Secrets or tokens handling changed? (Yes/No): Yes, existing media authentication is reused for the new avatar read; no token is placed in its URL.
  • New or changed network calls? (Yes/No): Yes, authenticated users.self and same-Gateway avatar HTTP reads.
  • Command or tool execution surface changed? (Yes/No): No.
  • Data access scope changed? (Yes/No): Yes, read-only authenticated Gateway profile display.
  • If any answer is Yes, explain the risk and mitigation: fixed lease host, no redirects, bounded raster payload and deadline, generation fences, and category/type-only diagnostics. The existing external Dashboard launcher remains unchanged.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes. Unsupported/missing profiles retain Owner and missing avatars retain initials; the default avatar interface implementation returns Unsupported.
  • Config or environment changes? (Yes/No): Yes. Optional positive millisecond overrides: OPENCLAW_USER_AVATAR_TIMEOUT_MS (15000 default) and OPENCLAW_USER_SELF_TIMEOUT_MS (12000 response wait after send).
  • Migration needed? (Yes/No): No.
  • If yes, list the exact upgrade steps: N/A.

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.

ClawSweeper's P2 supported-profile finding is fixed in de4f13ee, with a no-email/no-upload client regression and native fixture coverage. Its proof request is addressed above, without treating fixture token matching as production authorization.

An independent rubber-duck review inspected merge 7db93ca6 against both parents and found no production bugs in the shared-footer integration, stale-decode fence, image clearing, or later-created Settings footer initialization. Its native-proof suggestion is covered by the final Settings-footer regression. Its suggestion to restore the removed helper-shape tests was declined: those tests pin helper wording/predicates, while behavioral logging and lifecycle tests remain.

Historical local Hanselman review used claude-opus-5.5 and gpt-6-astra on 0fb8b3f3; both final delta reviews accepted the bounded journal wait with no new findings. That earlier verdict is not a new dual-model review of the merge. The merge review and all source reviews are static evidence, not native runtime or authorization proof.

bkudiess and others added 6 commits November 4, 2026 10:50
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, ordinary refreshes that coalesce and keep an unchanged avatar, 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]>
Follow-up to the Gateway profile display, from the dual-model review of that commit.

- Remember every settled avatar outcome per profile id and revision, so an absent, unauthorized or failed avatar is neither refetched nor re-reported on each presence refresh. A cancelled attempt is never remembered.
- Treat any unexpected avatar exception as an optional-picture failure that keeps the profile, instead of clearing the name or faulting the refresh.
- Settle a failed users.self read instead of retrying on a queued ordinary refresh, so the failure is classified, reported and ends loading.
- Let an explicit invalidation abandon a stalled users.self read, fence its result and observe its late fault.
- Name the users.self deadline and allow OPENCLAW_USER_SELF_TIMEOUT_MS to override it.
- Refuse the "." and ".." profile ids and ids or revisions over 512 characters before any avatar request.
- Use the Traditional Chinese term for a personal profile in zh-tw.
- Document the unnamed state, the Dashboard action and the refresh semantics, and record the generic Owner label as a closed responsibility with a guard test.

Co-authored-by: Copilot App <[email protected]>
An explicit profile invalidation owes one avatar refetch even when the
profile id and revision are unchanged. That debt was cleared before the
avatar attempt ran, so a cancelled attempt kept the old image but lost the
refetch, and the next ordinary refresh did not retry. The debt now stays
owed until an attempt resolves, matching the documented rule that an
unresolved attempt is retried.

Tests:
- Add a regression for an unresolved explicit refetch: the image is kept,
  the next ordinary refresh retries once, and the debt is then consumed.
- Make the superseded-read GC test prove the abandoned request task was
  actually collected (weak reference) and drop its sleep-based polling in
  favor of a bounded number of collection passes.

Docs and comments:
- ARCHITECTURE: the avatar request has one end-to-end deadline, while the
  users.self read waits for its response only after the request is sent;
  document that a failed users.self read forgets the remembered avatar
  outcome and that an unresolved attempt is retried by the next refresh.
- Reword the avatar identifier guard comment so it no longer claims
  Uri.EscapeDataString throws for oversized input.

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

Round-3 review of a7e514d0 found two low-severity gaps.

The superseded-read GC test stopped as soon as a collection cleared the weak
reference to the abandoned task. A collection that another test triggers can
clear that reference and run only some finalizers, so the abandoned task's
holder could still be queued when the assertion ran and a regression could
pass. Drain the finalizer queue unconditionally after the loop, before
asserting that no late SupersededReadFault was reported.

The ReadSelfAsync summary said the client's own deadline still frees an
abandoned read. That deadline starts only after the request is sent, so the
comment contradicted the corrected architecture ledger. State only what the
code guarantees: the read is abandoned, not cancelled, and its eventual fault
is observed.

No behavior change.

Co-authored-by: Copilot App <[email protected]>
The Companion window now fetches the signed-in owner's photo with an
authenticated HTTP GET to /api/users/<id>/avatar. The Gateway fixture only
accepted WebSocket upgrades, so it rejected that request as INVALID_UPGRADE,
closed the socket without a response and recorded an unexpected request.
Every fixture-driven UI test asserts that no unexpected request happened at
teardown, so each of them would fail as soon as the Workspace window opened
against a profile that has an email address.

Teach FixtureGatewayServer the one avatar route:

- GET /api/users/<id>/avatar over HTTP/1.1 only. The query is ignored and
  never recorded, ids containing a slash are rejected, and anything else still
  falls through to the upgrade check and is still recorded as INVALID_UPGRADE.
- The bearer is judged before the profile and must match the shared token or
  the issued device token (SHA-256, fixed-time compare), mirroring the
  product's shared-token-first interactive credential order.
- The owner profile id gets an 8x8 PNG. A wrong credential (401) or an
  unknown profile (404) returns an empty body and is recorded as an
  unexpected request, so a regression still fails the teardown assertion.
- Only the label http:users.avatar and the outcome are retained, never
  headers, tokens or profile ids.

Add 16 protocol tests (nine mutations of the route were each killed by the
predicted tests), extend the owner footer UI test to wait for the served
photo and, in screenshot runs, to count photo-coloured pixels inside the
footer button, and document the route.

Co-authored-by: Copilot App <[email protected]>
Wait for the server journal to settle before asserting the outcome, since the HTTP client may finish reading first.

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

clawsweeper Bot commented Nov 4, 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: 🚨 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. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR displays the authenticated Gateway profile name and photo in Companion’s shared Chat and Settings footer.

Example: The Gateway returns profile fixture-owner, named Fixture Owner, without email or upload metadata.

  • Before: The footer displays the name with initials.
  • After: Chat and subsequently opened Settings display Fixture Owner with the Gateway-served photo.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, behaviorally proven feature with no blocking defect; one redundant helper test keeps the patch below A.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected current-head Windows x64 native captures show the Gateway-served photo in Chat and later-created Settings, including a profile without email or upload metadata, plus Shared owner; separate executed production-handler traces cover allowed, denied, and revoked pending reads, without claiming live installed-account proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Companion identifies the connected Gateway profile by text but does not display its photo consistently across Chat and Settings.
Reason: The collaborator-authored direction is approved under the review rules, and the feature provides a recognizable account identity without profile writes or a parallel account system.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored feature remains absent from main, and the current candidate resolves the earlier profile eligibility defect with no blocking correctness finding.

Priority: P2
Reviewed head: 62be3e88ac5403b84738c2ee1790ca860ca77a35

Before merge

None.

Findings

None.

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/WorkspaceIdentitySourceTests.cs: Remove EveryValidProfileRequestsItsAvatar: it only checks parsed helper fields and never requests an avatar; NameOnlyProfileStillShowsTheGatewayResolvedAvatar and the native no-email case protect the actual behavior.
Agent review details

How this fits together

The connection-scoped identity source reads users.self and authenticated avatar bytes; WorkspaceWindow decodes the image and applies it to the shared native footer controls.

flowchart LR
  A[Authenticated Gateway] --> B[Operator client]
  B --> C[Workspace identity source]
  C --> D[Window bitmap cache]
  D --> E[Chat footer]
  D --> F[Settings footer]
Loading

Technical review

Best possible solution:

Retain the existing identity source, authenticated media transport, and shared footer ownership, with the Gateway resolving every valid profile’s photo.

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

This is a feature addition; main’s missing avatar path is source-verifiable, and current-head native captures demonstrate the resulting display.

Is this the best way to solve the issue?

The implementation uses the existing connection and presentation owners, preserves initials when photos fail, and leaves photo-source selection with the Gateway.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 47961738c9a9.

Provenance checked

  • Workspace identity lookup and fallback changes intended behavior with a stated reason (3a58bf3: The native workspace change established authenticated users.self display with connection-scoped state; this PR extends that owner and documents its revised fallback and invalidation behavior.)
  • Shared Chat and Settings footer keeps the original intent (3f6765e: One shared footer and one window applicator prevent Chat and Settings from drifting; this PR preserves that placement and supplies the same decoded bitmap to later-created instances.)
  • Gateway request failures keeps the original intent (160b8c8: Gateway speech rejection has a dedicated classification path; the added bounded error metadata preserves that path and the existing InvalidOperationException contract for other requests.)
  • Synthetic Gateway HTTP handling changes intended behavior with a stated reason (3e74082: The fixture rejects unexpected traffic to expose protocol drift; the new avatar route is narrowly recognized while other non-upgrade requests remain rejected and recorded.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

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

Review metrics

Metric Value Why it matters
Production and test growth Production +515/-26 lines; tests and fixtures +1663/-31 lines Most growth covers authenticated transport, cancellation, invalidation, optional failures, and native rendering across both footer instances.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded identity-display improvement with useful visual consistency and no demonstrated urgent workflow failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster 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.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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-04T19:58:10.815Z sha 0fb8b3f :: needs real behavior proof before merge. :: [P2] Allow the Gateway to resolve GitHub-only profile photos
  • reviewed 2026-11-05T00:37:53.270Z sha 62be3e8 :: needs maintainer review before merge. :: none

Reviewed November 4, 2026, 7:42 PM ET / November 5, 2026, 00:42 UTC (Revision 3).

@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 4, 2026
Use Shared owner for the shared Gateway profile and Owner when no profile is known. Resolve every valid profile avatar through the Gateway and remove profile-status and setup-menu states.

Co-authored-by: Copilot App <[email protected]>
@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Nov 4, 2026
bkudiess and others added 3 commits November 4, 2026 15:12
Integrate the shared Chat and Settings footer without restoring inline controls or losing the decoded profile photo. Remove two helper-shape tests called out in review; retain lifecycle, diagnostics-category and native image proof.

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

bkudiess commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Production avatar authorization proof for this PR, executed independently of the synthetic Windows rendering fixture.

Source: openclaw/openclaw@064b29152262fa2ac6db7d3002927fa77a56493c, unchanged detached checkout. Production HTTP authorization tests.

Command: node scripts\run-vitest.mjs run --config test\vitest\vitest.gateway.config.ts src\gateway\user-profiles-http.auth.test.ts --reporter=verbose

Executed result: exit 0, 1 test file passed, 20/20 tests passed, 234.93 seconds including compilation. Process-only isolated state/config roots; no installed Gateway, real account, production credentials, or shared runtime was used.

Required trace Actual exercised boundary and assertion
Allowed reader Real paired device with operator.sessions.read, production HTTP handler and stored uploaded PNG: HTTP 200, image/png, bytes equal the known PNG. The same token is rejected by the generic route.
Read-disallowed reader Real paired device with operator.approvals only: avatar HTTP 401 and no PNG content type, despite an injected x-openclaw-scopes: operator.admin header.
Revoked pending uploaded-image read Pause after stored image bytes load, revoke the real device token, release preparation: HTTP 401, no image MIME, no ETag, response bytes differ from the PNG.
Revoked pending GitHub-image read Pause the synthetic remote image fetch, revoke the real device token, release preparation: HTTP 401, no image MIME, no ETag, response bytes differ from the PNG.
Other cases in the same execution Credential rotation during inspection/saved/host/Gravatar/GitHub preparation; linked-account revocation/alias reassignment; query-only, already-revoked, stale-generation and node-role denial; authenticated HEAD/ETag.

Selected executed test names and runner result (checkmarks normalized to PASS):

PASS lets a session reader load another person's displayed avatar without directory access
PASS withholds uploaded image bytes from a session-only device revoked during preparation
PASS withholds GitHub image bytes from a session-only device revoked during preparation
PASS rejects no-read-scope credentials before returning avatar bytes
PASS rejects revoked credentials before returning avatar bytes
PASS rejects stale-generation credentials before returning avatar bytes
PASS rejects node-role credentials before returning avatar bytes
Test Files  1 passed (1)
Tests       20 passed (20)

The PASS prefix above normalizes the runner's checkmark glyph; test wording is otherwise retained apart from a typographic apostrophe. Full retained local transcript SHA256: 75B34545FD3856599746C9E2DC847E81A9FEA2C12E298C7DFBF54AC24D591B31.

Limits: This is the upstream production handler/authorization/pairing-store integration harness, not a live installed Gateway or real GitHub account. Image preparation and remote fetch are controlled to deterministically pause disclosure; authorization and revocation are not mocked. The Windows fixture separately proves client transport and native rendering, not grants.

@bkudiess

bkudiess commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

Current-head native proof at 62be3e88ac5403b84738c2ee1790ca860ca77a35, tree 16c88e8733e9801a3fbfadb4d919f35cf8423225.

Passed: all three GatewayFixtureUiTests.OwnerFooter* cases, plus both Light/Dark WorkspaceWindowProofTests.AgentSelector_UsesConfiguredIdentityPictureNameAndId cases. No selected tests skipped. Real AppData/LocalAppData metadata manifests unchanged; no owned tray processes remained; unrelated app instances were not stopped.

The attached complete owned-window captures show:

  • Chat displays Fixture Owner, Connected, and the HTTP-served synthetic photo for a profile with no email and no upload metadata.
  • Settings, created after the Chat photo loads, displays the same cached image and name.
  • The gateway-owner profile displays Shared owner rather than a fabricated person's name.

The green disk is the fixture's deterministic PNG, deliberately distinguishable from initials. Native pixel assertions require its known RGB inside the owner's button, not elsewhere in the window. These are synthetic data captures from the real WinUI app, not real user accounts or production Gateway authorization proof. Production authorization proof is separate.

Commands after current-head build:

dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-build --no-restore --filter "FullyQualifiedName~GatewayFixtureUiTests.OwnerFooter"
dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --no-build --no-restore --filter "FullyQualifiedName~WorkspaceWindowProofTests.AgentSelector_UsesConfiguredIdentityPictureNameAndId"

Both used the task-owned isolation/desktop-idle wrapper with screenshot opt-ins. The wrapper pins clean HEAD/tree, records loaded-binary hashes, and hashes all artifacts.

Chat displays the Gateway photo without email or upload metadata

Settings reuses the already-loaded Gateway photo

Shared owner label and Gateway photo

@bkudiess

bkudiess commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

Current head: 62be3e8. Merged main 4796173 and resolved the shared-footer integration. The GitHub-only eligibility defect is fixed: every valid profile ID requests the Gateway avatar route. Current-head build, Shared/Tray/Connection/CLI suites and five native cases passed. The PR body now includes inspectable Chat/Settings/Shared-owner captures and executed upstream production allowed-reader, denied-scope and revoked-pending-read traces (20/20 passed). No live account or installed Gateway proof is claimed.

@clawsweeper

clawsweeper Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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. 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. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. labels Nov 5, 2026
@bkudiess
bkudiess marked this pull request as ready for review November 5, 2026 04:15
@bkudiess
bkudiess merged commit d972860 into openclaw:main Nov 5, 2026
55 of 57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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.

1 participant