Skip to content

fix(macos): put the legacy credential prepare arguments one per line - #208590

Merged
obviyus merged 1 commit into
mainfrom
fix/macos-credential-startup-lint
Nov 29, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/macos-credential-startup-lint

Conversation

@obviyus

@obviyus obviyus commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Problem

macos-swift (tests) is red on scheduled main (run 46300823025) in the Swift lint step:

apps/macos/Sources/OpenClaw/ClientCredentialStartup.swift:19:37: error: Arguments should be either on the same line, or one per line (multiline_arguments)

#208315 added a self.prepare(...) call with two arguments on one line and the third on the next. That is lint formatting only; the behavior is correct.

Fix

Put the three arguments one per line. No behavior change.

Evidence

  • ./scripts/lint-swift.sh macos with GITHUB_ACTIONS=true (the CI limit mode), SwiftLint 0.65.1: main fails with exit 2 and the error above; with this change it passes (exit 0, only the existing advisory file_length warning on OnboardingAISetup.swift).

Merge danger

Two-way door: whitespace-only Swift change, a revert fully undoes it. Blast radius: one call site.

#208315 left three arguments on two lines, which SwiftLint's multiline_arguments rule rejects in the macOS Swift lint job.
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR places each legacy credential preparation argument on its own line.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A minimal maintenance repair supported by the exact diff, enabled lint rule, and reported focused validation.
Proof confidence 🐚 platinum hermit (4/6) No user-visible behavior changes; the supplied validation is a reported before/after SwiftLint run, and no target code was executed during review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: The macOS Swift lint check rejects the legacy credential preparation call.
Reason: The maintainer-authored change restores the existing lint contract without altering product behavior.

Merge readiness

✅ Ready for maintainer review

This PR is a minimal, correct repair for an enabled SwiftLint rule violation that remains on current main; no actionable defects were found.

Reviewed head: e29bc5082022ecdffe32ecb673058bbe7d9a7b66

Before merge

None.

Findings

None.

Agent review details

How this fits together

Mac app startup passes identity and configuration paths to the bundled credential preparation owner; this change affects only the Swift source layout.

flowchart LR
  A[Mac app startup] --> B[Credential admission]
  B --> C[Legacy identity preparation]
  C --> D[Bundled Doctor]
  D --> B
Loading

Technical review

Best possible solution:

Land the focused argument-layout correction while preserving the existing credential recovery implementation.

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

Current main contains the mixed argument layout prohibited by its enabled multiline_arguments rule, matching the diagnostic and before/after lint results reported in the PR.

Is this the best way to solve the issue?

Splitting the existing arguments is the smallest complete fix and requires no runtime, test, or configuration changes.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Legacy credential preparation call keeps the original intent (6499816: Recover credentials from the separate legacy Mac identity directory through the matching bundled Doctor while preserving native custody and startup ordering.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Raw commit 5f40d22 adds apps/macos/Sources/OpenClaw/ClientCredentialStartup.swift:5 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5f40d22a366d; files: apps/macos/Sources/OpenClaw/ClientCredentialStartup.swift)

PR surface

Source +1. Total +1 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 2 1 +1
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 2 1 +1

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.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed November 29, 2026, 3:52 PM ET / 20:52 UTC.

@obviyus
obviyus merged commit f656aca into main Nov 29, 2026
84 checks passed
@obviyus
obviyus deleted the fix/macos-credential-startup-lint branch November 29, 2026 21:10
@obviyus

obviyus commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as f656aca. It clears the scheduled macOS Swift lint red (multiline_arguments in ClientCredentialStartup.swift, from #208315). lint-swift.sh macos fails on the base and passes with the change; format-swift.sh macos passes. macOS jobs do not run on ordinary PRs, so these were run on a Mac.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
…penclaw#208590)

## Problem

`macos-swift (tests)` is red on scheduled main (run 46300823025) in the Swift lint step:

```
apps/macos/Sources/OpenClaw/ClientCredentialStartup.swift:19:37: error: Arguments should be either on the same line, or one per line (multiline_arguments)
```

openclaw#208315 added a `self.prepare(...)` call with two arguments on one line and the third on the next. That is lint formatting only; the behavior is correct.

## Fix

Put the three arguments one per line. No behavior change.

## Evidence

- `./scripts/lint-swift.sh macos` with `GITHUB_ACTIONS=true` (the CI limit mode), SwiftLint 0.65.1: main fails with exit 2 and the error above; with this change it passes (exit 0, only the existing advisory `file_length` warning on `OnboardingAISetup.swift`).

## Merge danger

Two-way door: whitespace-only Swift change, a revert fully undoes it. Blast radius: one call site.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: macos App: macos P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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