Skip to content

fix(macos): proper provider brand icons + softer contrast in onboarding AI setup - #120907

Merged
steipete merged 9 commits into
mainfrom
steipete/icon-styling-contrast-d03a8d
Aug 9, 2026
Merged

steipete merged 9 commits into
mainfrom
steipete/icon-styling-contrast-d03a8d

Conversation

@steipete

@steipete steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

The macOS onboarding "Connect your AI" page showed broken or clashing provider icons. Nearly every icon URL the gateway sends (plugin manifests and the recommended-installs catalog) points at cdn.simpleicons.org SVGs, which SwiftUI AsyncImage cannot decode — so Ollama, LM Studio, Pi, OpenCode, Gemini, Kimi, and all provider sign-in rows silently fell back to generic SF Symbols. The only two icons that did render (OpenAI/xAI GitHub avatar PNGs) were full-color rasters that clashed with the tinted UI. Cards also used NSColor.controlBackgroundColor, which renders darker than the window background in dark mode and read as murky wells, and each install card printed its full raw URL.

Why This Change Was Made

Requested by @steipete with a screenshot of the icon-less install grid ("use proper icons, make them blend in, improve the contrast and the whole experience").

  • Bundled brand icons (local-first). Nine monochrome template SVGs now ship in ProviderIcons/: Ollama, LM Studio, Pi, OpenCode, Google Gemini, Kimi (Simple Icons, CC0), xAI (LobeHub icons, MIT), plus the existing Claude and OpenAI marks. OnboardingProviderIcon maps ids/brandIds/kinds (claude-code, codex-cli, grok-build, …) to them, cached per resource, and local icons now win over remote URLs so the page renders instantly, offline, and uniformly tinted.
  • SVG-capable remote loader. For providers without a bundled icon (plugin manifests), OnboardingRemoteProviderIcon downloads the icon and decodes it via NSImage(data:) (SVG-capable on macOS 15). Vector payloads are sniffed and rendered as tinted templates so they blend; rasters render as-is. Replaces the silently-failing AsyncImage path.
  • Unified icon wells + softer chrome. Every row/card glyph sits in a consistent 32 pt rounded well tinted with Color.primary; install cards and section containers use a shared translucent surface (primary-derived fill + hairline border) instead of controlBackgroundColor, with a hover state on install cards. Install cards show just the link host (ollama.com) instead of the full URL.
  • RecommendedInstall now decodes the brandId the gateway already sends, and composed auth-choice ids (xai-oauth, anthropic-vertex) resolve via their leading brand token.

No gateway/TS changes: the catalog URLs stay as-is (the web UI renders them fine); this is purely the macOS client's rendering surface.

Second fix (separate commit): Keychain-unavailable no longer dead-ends AI setup. While reproducing the page in an isolated sandbox, every candidate activation failed with "Secure storage is unavailable, so OpenClaw cannot safely resume this AI setup" — @steipete hit the same detail text and asked for it to just work. Root cause: GatewayActivationBindingKeyStore cannot mint the HMAC binding key without a usable login keychain, and activate()/submitManualKey() refused to run without an activation-owner fingerprint. The fingerprint only protects the crash/relaunch resume receipt, so the fix degrades instead of refusing: with no binding key, setup writes an ownerless pending record (the store's pre-v4 shape, still recognized exactly — never as a wildcard). The full activation-ambiguity window and deadline probing are preserved; the only downgrade is that a relaunch repeats activation instead of trusting the receipt. Restart-reconciliation, which requires fingerprint proof by design, is skipped for ownerless activations.

User Impact

Fresh-Mac onboarding now shows crisp, recognizable, theme-adaptive brand icons for every recommended tool, provider sign-in row, local-model option, and manual key form — instead of a wall of identical blue download arrows — with card contrast that matches modern macOS surfaces.

Evidence

  • swift build green; swift test --filter OnboardingProviderIcon (4 new tests: alias mapping incl. composed ids, bundled-asset decodability, vector/raster sniffing, host display) and swift test --filter OnboardingAISetup (90 tests, incl. the rewritten activation proceeds ownerless when Keychain binding is unavailable boundary test through the mock gateway transport) pass locally on the Xcode 26 toolchain.
  • Codex autoreview (gpt-5.6-sol, high): clean, no actionable findings.
  • Before/after screenshots below from a packaged debug app run against an isolated dev gateway (fresh state dir, port 19899), same window, same flow. The "no usable AI access" grid is the exact state from the original report.

Recommended-installs grid (the reported state), after — every tool shows its real brand mark, tinted to the theme, with host-only links (before: every card showed the same generic blue download arrow, full raw URLs, and two clashing color PNG avatars):

after — recommended installs grid

Detected candidates, before / after:

Before After
before — candidates after — candidates

Provider sign-in + API-key form, before / after (note xAI OAuth resolving its brand mark via the composed choice id, and ChatGPT Login / the manual-form picker showing the OpenAI mark):

Before After
before — providers after — providers

Local model section, after:

after — local model section

@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos size: L maintainer Maintainer-authored PR labels Aug 9, 2026
@steipete
steipete marked this pull request as ready for review August 9, 2026 05:14
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Aug 9, 2026
@clawsweeper

clawsweeper Bot commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 9, 2026, 3:46 AM ET / 07:46 UTC.

ClawSweeper review

What this changes

The PR improves macOS AI-onboarding provider artwork and styling, and allows setup to continue without a login Keychain while changing pending-activation resume handling.

Merge readiness

⛔ Blocked by patch quality or review findings - 9 items remain

Keep open: ownerless concurrent activations can complete or clear each other’s receipt, and one shipped third-party icon lacks its required MIT notice. Likely related people: steipete (high confidence).

Priority: P1
Reviewed head: 17ac263893b2fb90d0f470551372074b1b0c50be

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The packaged-app screenshots are useful UI evidence, but two P1 blockers leave the current patch not ready to merge.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its screenshots directly show the artwork result, but they do not prove the concurrent ownerless-activation boundary.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its screenshots directly show the artwork result, but they do not prove the concurrent ownerless-activation boundary.
Evidence reviewed 7 items Ownerless receipts collide during live activation: The fallback assigns nil when no binding key exists; a delayed setup completion can therefore match a newer ownerless receipt on the same route rather than only its originating attempt.
Nil is exact but not unique ownership: Receipt matching accepts nil as the exact owner value, so two concurrent unbound attempts remain indistinguishable despite the existing lease-replacement invariant.
Regression coverage misses the concurrent ownerless case: The added test verifies that an ownerless completed receipt cannot resume after relaunch, but does not interleave two keychain-unavailable attempts or cover the manual-key path.
Findings 2 actionable findings [P1] Give ownerless activations an attempt-specific lease
[P1] Include the LobeHub MIT notice with the xAI asset
Security Needs attention Third-party icon lacks distributed MIT notice: The app packages the xAI SVG, but repository notices do not include its LobeHub source or MIT permission text, leaving the distributed third-party asset without auditable licensing provenance.

How this fits together

macOS onboarding receives provider metadata and activation results from the Gateway, renders setup choices, and persists a pending activation for a safe connection handoff. The new artwork layer displays local or remote provider icons, while activation state decides whether a setup result may complete.

flowchart LR
  A[Gateway provider metadata] --> B[macOS onboarding]
  B --> C[Provider artwork selection]
  C --> D[Visible AI setup choices]
  B --> E[Activation request]
  E --> F[Pending activation receipt]
  F --> G[Connection handoff or fresh setup]
Loading

Before merge

  • Give ownerless activations an attempt-specific lease (P1) - A nil binding owner is currently the whole identity for an unbound attempt. If attempt B replaces attempt A on the same route while both lack Keychain access, A’s delayed success can complete or clear B’s record and hand off the wrong connection. Keep restart resumption disabled, but persist a distinct nonsecret attempt ID for live matching and cover candidate and manual-key overlaps.
  • Include the LobeHub MIT notice with the xAI asset (P1) - This added SVG is identified as a LobeHub MIT asset, but its exact provenance and MIT permission notice are absent from the packaged ProviderIcons notices. Add them before distributing the resource, or replace the asset with one whose provenance is already covered.
  • Resolve security concern: Third-party icon lacks distributed MIT notice - The app packages the xAI SVG, but repository notices do not include its LobeHub source or MIT permission text, leaving the distributed third-party asset without auditable licensing provenance.
  • Resolve merge risk (P2) - Without a unique nonsecret live-attempt identity, the Keychain-unavailable fallback can associate a delayed activation response with a newer setup attempt and mutate the wrong Gateway connection state.
  • Resolve merge risk (P1) - The LobeHub xAI artwork is packaged into the app without the required MIT provenance and notice.
  • Complete next step (P2) - Both merge blockers have a narrow, source-proven repair path on the existing PR branch.
  • Improve patch quality - Add a unique unbound attempt identity and concurrent candidate/manual activation regressions.
  • Improve patch quality - Add LobeHub’s exact source attribution and MIT notice, or replace the asset.
  • Improve patch quality - Re-run the focused macOS onboarding suites on the repaired head.

Findings

  • [P1] Give ownerless activations an attempt-specific lease — apps/macos/Sources/OpenClaw/OnboardingAISetup.swift:877-891
  • [P1] Include the LobeHub MIT notice with the xAI asset — apps/macos/Sources/OpenClaw/Resources/ProviderIcons/ProviderIcon-xai.svg:1
  • [medium] Third-party icon lacks distributed MIT notice — apps/macos/Sources/OpenClaw/Resources/ProviderIcons/ProviderIcon-xai.svg:1
Agent review details

Security

Needs attention: The new packaged LobeHub MIT asset lacks the required provenance and license notice.

PR surface

Other +278. Total +278 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 15 519 241 +278
Total 15 519 241 +278

Review metrics

Metric Value Why it matters
Production versus test delta production +414/-228, tests +105/-13 The production growth adds a visual artwork path and an activation-state fallback, so the ownerless-state boundary needs stronger regression coverage before merge.

Stored data model

Persistent data-model change detected: vector/embedding metadata: apps/macos/Tests/OpenClawIPCTests/OnboardingAISetupTests.swift, vector/embedding metadata: apps/macos/Tests/OpenClawIPCTests/OnboardingProviderIconTests.swift. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Repair receipt identity and asset notice (recommended)
    Preserve a per-attempt unbound lease for live activation races, test both candidate and manual-key paths, and add LobeHub’s exact MIT provenance before merging.

Technical review

Best possible solution:

Keep resume trust unbound when Keychain access fails, but retain a distinct per-attempt receipt identifier for live completion and clearing; add candidate and manual-key overlap regressions, then record the xAI asset’s exact LobeHub provenance and MIT notice before merge.

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

Yes, from source: start two Keychain-unavailable activations for the same route, allow the later one to replace the pending record, then deliver the earlier response. The current nil owner matches the later record; a focused concurrent harness regression should establish it directly.

Is this the best way to solve the issue?

No: blocking relaunch from an ownerless receipt is necessary but does not preserve live-attempt identity. A separate unbound per-attempt ID retains race safety without making the receipt resumable after restart.

Full review comments:

  • [P1] Give ownerless activations an attempt-specific lease — apps/macos/Sources/OpenClaw/OnboardingAISetup.swift:877-891
    A nil binding owner is currently the whole identity for an unbound attempt. If attempt B replaces attempt A on the same route while both lack Keychain access, A’s delayed success can complete or clear B’s record and hand off the wrong connection. Keep restart resumption disabled, but persist a distinct nonsecret attempt ID for live matching and cover candidate and manual-key overlaps.
    Confidence: 0.96
  • [P1] Include the LobeHub MIT notice with the xAI asset — apps/macos/Sources/OpenClaw/Resources/ProviderIcons/ProviderIcon-xai.svg:1
    This added SVG is identified as a LobeHub MIT asset, but its exact provenance and MIT permission notice are absent from the packaged ProviderIcons notices. Add them before distributing the resource, or replace the asset with one whose provenance is already covered.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.95

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 499d81cdbdad.

Labels

Label changes:

  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This maintainer-authored PR is exempt from the external-contributor proof gate; its screenshots directly show the artwork result, but they do not prove the concurrent ownerless-activation boundary.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🐚 platinum hermit and patch quality is 🧂 unranked krab.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P1: A stale setup response can attach to a newer AI activation attempt during first-run macOS onboarding.
  • merge-risk: 🚨 session-state: The branch changes persisted pending-activation ownership and can mis-associate concurrent setup state.
  • merge-risk: 🚨 security-boundary: The fallback removes Keychain-backed binding during live activation, so identity must remain isolated without granting an unbound receipt authority over another attempt.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🐚 platinum hermit and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its screenshots directly show the artwork result, but they do not prove the concurrent ownerless-activation boundary.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. This maintainer-authored PR is exempt from the external-contributor proof gate; its screenshots directly show the artwork result, but they do not prove the concurrent ownerless-activation boundary.

Evidence

Security concerns:

  • [medium] Third-party icon lacks distributed MIT notice — apps/macos/Sources/OpenClaw/Resources/ProviderIcons/ProviderIcon-xai.svg:1
    The app packages the xAI SVG, but repository notices do not include its LobeHub source or MIT permission text, leaving the distributed third-party asset without auditable licensing provenance.
    Confidence: 0.99

Acceptance criteria:

  • [P1] swift test --filter OnboardingAISetup.
  • [P1] swift test --filter OnboardingProviderIcon.
  • [P1] git diff --check.

What I checked:

Likely related people:

  • steipete: Introduced the recent macOS onboarding lifecycle and existing ProviderIcons attribution, and authored this PR’s follow-up fixes. (role: recent onboarding lifecycle contributor; confidence: high; commits: 7b076155d09f, 17ac263893b2; files: apps/macos/Sources/OpenClaw/OnboardingAISetup.swift, apps/macos/Sources/OpenClaw/Resources/ProviderIcons/ATTRIBUTION.md)

Rating scale

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

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-08-09T06:44:03.912Z sha eb0dd06 :: needs changes before merge. :: [P1] Do not make ownerless receipts resumable | [P2] Pass canonical brand IDs to provider artwork | [P2] Recognize comment-prefixed SVG artwork

@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

All three ClawSweeper findings are addressed in 586c0fc:

  • [P1] Ownerless receipts are no longer resumable. Enforcement sits at the reconciliation trust boundary (verifyPendingConfiguredInference, .completed case): a restored receipt with no activation owner never authorizes a handoff — the model clears it and returns .freshSetupAllowed, so setup repeats a fresh activation. This covers both the same-session lease-change path (which funnels into the same verification) and relaunch. Creation-side blocking was tried first but rejected: existing suites legitimately model ownerless receipts for unrelated invariants, and the store's exact-match ownerMatches semantics stay untouched. New boundary test: ownerless completed receipt never authorizes a relaunch handoff (live verify succeeds, handoff still refused, marker cleared).
  • [P2] Canonical brandId flows everywhere. DetectedCandidate, CandidatePresentation, AuthOption, and ManualProvider now decode the gateway's brandId, and every artwork call site passes [brandId, id/kind].
  • [P2] Comment-prefixed SVGs sniff as vectors. The sniffer scans the bounded XML prolog (declarations, comments, doctype) for the <svg> root. The regression fixture uses the bundled Ollama asset, which leads with a license comment.

Proof: swift test --filter OnboardingAISetup (91 tests) and --filter OnboardingProviderIcon (4 tests) green on Xcode 26; repo-config SwiftLint clean; Codex autoreview (gpt-5.6-sol, high) clean on the delta.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 9, 2026
@steipete steipete self-assigned this Aug 9, 2026
@steipete
steipete force-pushed the steipete/icon-styling-contrast-d03a8d branch from 17ac263 to 89db17a Compare August 9, 2026 07:58
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 9, 2026
@steipete

steipete commented Aug 9, 2026

Copy link
Copy Markdown
Contributor Author

Both P1 findings from the updated review are addressed in b58e585471c:

  • [P1] Attempt-specific leases for unbound activations. Keychain-unavailable attempts no longer share nil as their identity: each mints an ActivationOwner.unbound() — a random per-attempt lease id with a sentinel fingerprint. Live store matching is attempt-exact (a stale attempt can neither complete nor clear a newer attempt's record, covering candidate and manual-key overlaps via their shared store path), restart reconciliation's fingerprint guard rejects the sentinel, and relaunch verification refuses unbound receipts before any handoff. Tests: unbound activation leases stay attempt-specific (cross-attempt complete/clear refused) and unbound completed receipt never authorizes a relaunch handoff (live verify succeeds, handoff still refused); the legacy nil-owner refusal test remains.
  • [P1] LobeHub MIT notice. ProviderIcons/NOTICE.md now ships inside the bundled directory (SwiftPM resource copy + app packaging both include it): full MIT license text and LobeHub provenance for the xAI mark, plus CC0 attribution for the Simple Icons set.

Also in this push: the check-plugin-sdk-api-baseline failure was latent main breakage — #120975 changed the generator to hash private types without regenerating the manifest, and its own PR run had that lane gated off. Regenerated via pnpm plugin-sdk:api:gen (no SDK surface change in this branch), per the land-onto-red-main policy.

Proof: 93+4 focused tests green, repo-config SwiftLint clean, Codex autoreview (gpt-5.6-sol, high) clean on the full branch diff (0.94).

A missing/locked login keychain made GatewayActivationBindingKeyStore
unable to mint the activation binding key, and onboarding refused every
candidate and manual-key activation with 'Secure storage is unavailable'.
The fingerprint only protects the crash/relaunch resume receipt, so
degrade instead of refusing: write an ownerless pending record (still
matched exactly, never as a wildcard), keep the full activation-ambiguity
window, and skip only restart reconciliation, which needs fingerprint
proof by design. A relaunch then repeats activation rather than trusting
the receipt.

Reported by Peter Steinberger.
Nearly every provider icon URL the gateway sends is a simpleicons.org
SVG, which AsyncImage cannot decode, so the Connect your AI page fell
back to generic symbols for every tool and provider; the two GitHub
avatar PNGs that did render clashed as full-color rasters.

Bundle nine monochrome template marks (Simple Icons CC0; xAI from
LobeHub icons, MIT) and resolve them local-first by brand id/kind,
including composed choice ids like xai-oauth. Remote icons now load via
NSImage(data:), which decodes SVG, with vector payloads tinted as
templates so plugin-supplied icons blend too. Every glyph sits in a
uniform rounded well; install cards show host-only links, hover states,
and a softer translucent surface shared by all setup sections instead
of controlBackgroundColor.

Requested by Peter Steinberger.
…anges

- Refuse relaunch handoff from ownerless (keychain-unavailable) completed
  receipts at the reconciliation trust boundary; such receipts can belong
  to replaced credentials, so setup repeats a fresh activation instead.
- Decode and pass the canonical brandId the gateway sends for candidates,
  auth options, and manual providers so bundled marks resolve for opaque
  choice ids.
- Scan the bounded XML prolog (comments, declarations, doctype) when
  sniffing remote SVG payloads; comment-prefixed vectors now tint as
  templates.
…bound leases

A nil owner made concurrent unbound attempts indistinguishable: a stale
attempt's delayed response could complete or clear a newer attempt's
record. Unbound attempts now mint a random per-attempt lease id with a
sentinel fingerprint — live matching stays attempt-exact, restart
reconciliation's fingerprint guard rejects them, and relaunch
verification refuses unbound receipts before any handoff.
Simple Icons (CC0) attribution and the LobeHub Icons MIT license text
for the xAI mark now travel inside the bundled ProviderIcons directory.
#120975 changed the baseline generator to hash private types but landed
without regenerating the manifest; the check-plugin-sdk-api-baseline
lane was gated off on that PR and first failed here. Regenerated via
pnpm plugin-sdk:api:gen with no SDK surface change in this branch.
@steipete
steipete force-pushed the steipete/icon-styling-contrast-d03a8d branch from b58e585 to e8ea990 Compare August 9, 2026 08:33
@steipete
steipete merged commit 00854a7 into main Aug 9, 2026
93 checks passed
@steipete
steipete deleted the steipete/icon-styling-contrast-d03a8d branch August 9, 2026 08:49
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
…ng AI setup (openclaw#120907)

* fix(macos): let AI setup proceed when the login keychain is unavailable

A missing/locked login keychain made GatewayActivationBindingKeyStore
unable to mint the activation binding key, and onboarding refused every
candidate and manual-key activation with 'Secure storage is unavailable'.
The fingerprint only protects the crash/relaunch resume receipt, so
degrade instead of refusing: write an ownerless pending record (still
matched exactly, never as a wildcard), keep the full activation-ambiguity
window, and skip only restart reconciliation, which needs fingerprint
proof by design. A relaunch then repeats activation rather than trusting
the receipt.

Reported by Peter Steinberger.

* fix(macos): render proper provider brand icons in onboarding AI setup

Nearly every provider icon URL the gateway sends is a simpleicons.org
SVG, which AsyncImage cannot decode, so the Connect your AI page fell
back to generic symbols for every tool and provider; the two GitHub
avatar PNGs that did render clashed as full-color rasters.

Bundle nine monochrome template marks (Simple Icons CC0; xAI from
LobeHub icons, MIT) and resolve them local-first by brand id/kind,
including composed choice ids like xai-oauth. Remote icons now load via
NSImage(data:), which decodes SVG, with vector payloads tinted as
templates so plugin-supplied icons blend too. Every glyph sits in a
uniform rounded well; install cards show host-only links, hover states,
and a softer translucent surface shared by all setup sections instead
of controlBackgroundColor.

Requested by Peter Steinberger.

* fix(macos): use failable UTF-8 decode in icon vector sniffing (swiftlint)

* fix(macos): address ClawSweeper review of onboarding icon/keychain changes

- Refuse relaunch handoff from ownerless (keychain-unavailable) completed
  receipts at the reconciliation trust boundary; such receipts can belong
  to replaced credentials, so setup repeats a fresh activation instead.
- Decode and pass the canonical brandId the gateway sends for candidates,
  auth options, and manual providers so bundled marks resolve for opaque
  choice ids.
- Scan the bounded XML prolog (comments, declarations, doctype) when
  sniffing remote SVG payloads; comment-prefixed vectors now tint as
  templates.

* refactor(macos): move setup error enum to support file (swiftlint file length)

* chore(i18n): refresh native source inventory

* fix(macos): give keychain-unavailable activations attempt-specific unbound leases

A nil owner made concurrent unbound attempts indistinguishable: a stale
attempt's delayed response could complete or clear a newer attempt's
record. Unbound attempts now mint a random per-attempt lease id with a
sentinel fingerprint — live matching stays attempt-exact, restart
reconciliation's fingerprint guard rejects them, and relaunch
verification refuses unbound receipts before any handoff.

* chore(macos): ship third-party artwork notices with provider icons

Simple Icons (CC0) attribution and the LobeHub Icons MIT license text
for the xAI mark now travel inside the bundled ProviderIcons directory.

* fix(ci): refresh plugin-sdk API manifest for private-type hashing

openclaw#120975 changed the baseline generator to hash private types but landed
without regenerating the manifest; the check-plugin-sdk-api-baseline
lane was gated off on that PR and first failed here. Regenerated via
pnpm plugin-sdk:api:gen with no SDK surface change in this branch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: L status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant