Repository navigation
chore(desktop): remove the retired onboarding wizard views - #12652
Merged
Merged
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 37 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Git-on-my-level
force-pushed
the
chore/remove-legacy-onboarding-views
branch
from
September 3, 2026 17:16
afd7ea3 to
b5b366b
Compare
The live first-run path is SBOnboardingView. These SwiftUI step views have been unmounted since the Second Brain redesign; keep the shared persistence helper and GIF view that still have live callers. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]>
…DefaultsKey Pinned SwiftLint rejects inline forKey: string literals. The two keys were already being cleared; this just names them in DefaultsKey so the gate stays green without a baseline bump or disable. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]>
- ViewExporter: standaloneViewCount 17 -> 14 to match the registry after dropping 12-onboarding; runBatch iterates 0..<count so stale indices spawned failing unknown-14/15/16 exports - AnimatedGIFView: reload the GIF in updateNSView via a coordinator when gifName changes, so a reused representable never shows a stale image - OnboardingChatPersistence: route the remaining keys through DefaultsKey (compile-checked, omi_inline_userdefaults_key gate) and drop the four members whose only caller was the retired wizard view (save/loadExplorationState, isExplorationCompleted, isToolCompleted); clear() still wipes every legacy key from disk Verified: xcrun swiftc -parse clean on all changed files; registry/count asserted equal (14); removed members have zero repo-wide references.
Git-on-my-level
force-pushed
the
chore/remove-legacy-onboarding-views
branch
from
September 3, 2026 21:51
b5b366b to
9a16cca
Compare
Member
Author
|
Addressed all four Cubic review threads in 9a16cca (rebased onto current
Verification: full app target compiled clean as part of the bounded pre-push gate (which also ran flow-lint, swift-format, SwiftLint baseline, changelog, and diff-hygiene checks); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The macOS desktop still shipped ~7,200 lines of retired step-wizard onboarding (
OnboardingViewand its step views). Nothing live mounts that wizard:DesktopHomeViewpresentsSBOnboardingView, and we are keeping that flow (including the three-doors demo). This PR deletes the unmounted SwiftUI views and their dedicated tests.Two types lived in those files but still have live callers, so they were extracted rather than deleted:
OnboardingChatPersistence— used bySBOnboardingModel,OnboardingPagedIntroCoordinator,OnboardingRerunPolicy,AuthService,AppState, andChatToolExecutorto persist mid-onboarding state across restarts and sign-out.AnimatedGIFView— used byPermissionsPageandBrowserExtensionSetup.The screenshot-export harness no longer constructs
OnboardingView. Comments inChatToolExecutorandFloatingControlBarWindowno longer name the deleted chat view. Tests that inspected the deleted files were trimmed;ShortcutSettingsTestsnow persist presets through the liveSBOnboardingModel.pickShortcutAPI.Failure class
Failure-Class: none
Product invariants affected
scripts/pr-preflight --suggestreported none; the full--pr-body-filerun required INV-CHAT-1 becauseChatToolExecutor.swiftandFloatingControlBarWindow.swiftmatch that glob.Path-glob check of the files this PR touches:
desktop/macos/Desktop/Sources/**. Its PR rule opts out of naming; the brand ratchet still applies. This change only deletes UI and extracts existing chrome — it does not add purple.ChatToolExecutor.swiftandFloatingControlBarWindow.swift. Both edits are comments only. The live onboarding entry point (DesktopHomeView→SBOnboardingView) and the chat write path are unchanged.Every deletion is a file whose SwiftUI type had no live mount. Shared helpers that still have live referents were kept (
OnboardingFlow,OnboardingPromptSuggestions/PostOnboardingPromptSuggestions,OnboardingAnswerWriteGate,OnboardingImportEvidenceService,OnboardingMemoryLogImportService,OnboardingWebResearchService,OnboardingPagedIntroCoordinator,OnboardingGlassChrome,PermissionDragGuidance,OnboardingRerunPolicy).Verification
scripts/pr-preflight --pr-body-file PR-BODY.md— passed, 22 checks (same manifest the pre-push hook runs). First pass faileddesktop-swiftlintonomi_inline_userdefaults_keyin the extractedOnboardingChatPersistence.clear()(inline"onboardingACPSessionId"/"onboardingChatMessages"). Fixed by adding those keys toDefaultsKeyand callingremoveObject(forKey: .…). Did not touch the SwiftLint baseline and did not addswiftlint:disable.cd desktop/macos && xcrun swift build -c debug --package-path Desktop— passed (after extracting the two live types that first failed to compile).python3 desktop/macos/scripts/check_desktop_test_quality.py— passed; ratchetedSOURCE_INSPECTION_SITE_BASELINE147 → 146.python3 desktop/macos/scripts/desktop-flow-lint.py—desktop-flow-lint OK (74 flows, 188 registered actions).desktop/macos/scripts/swift-format-wrapper.sh linton every changed Swift file — clean.xcrun swift test --package-path Desktop --filter 'OnboardingFlowTests|GoalGenerationServiceTests|AgentVMWarmupAdoptionTests|ShortcutSettingsTests|OnboardingPermissionToolTests|OnboardingPersistenceClearingTests|OnboardingGlassChromeTests|OnboardingRerunPolicyTests'— 78 tests, 0 failures.xcrun swift test --package-path Desktop(unfiltered) — compiled and ran hundreds of suites with 0 XCTest failures, then thexctestprocess aborted with signal 6 duringFloatingBarUsageLimiterTests(not touched by this PR).desktop/macos/scripts/swift-test-suites.sh— 745 suites in isolation. One failure:HubEscalationTests.testPublicWebPromptIsSpeakableAndExcludesPrivateToolContext(XCTAssertTrueatHubEscalationTests.swift:87).origin/main15eca77b622ee5ed84d3542a46a4027993f69896(fix(desktop): PTT on a second display responds to the first press (#12646)). Identical failure:XCTAssertTrueatHubEscalationTests.swift:87intestPublicWebPromptIsSpeakableAndExcludesPrivateToolContext. This branch did not cause it.origin/mainSHA ranFloatingBarUsageLimiterTeststo completion — 18 tests, 0 failures, no signal-6 abort. The abort was only seen in an unfiltered full-package run on this branch; this PR does not touch limiter sources. Cheap check does not reproduce it onorigin/main.desktop/macos/scripts/run-swift-ci.sh --select-toolchain— failed:Xcode 16.4is not installed at/Applications/Xcode_16.4.app. Localswift buildtherefore cannot see the strict-concurrency errors CI rejects.Line-count exceptions
None. New code went into new files (
OnboardingChatPersistence.swift,AnimatedGIFView.swift).Line delta vs this branch's merge-base (
git diff --stat 8cf10a60f131...HEAD): 37 files, 127 insertions, 7573 deletions.git diff --stat origin/mainas requested: 52 files, 182 insertions, 8796 deletions. That mix is not this PR: COMMON.md forbade rebasing, and this worktree is now 2 commits ahead / 4 behindorigin/main.🤖 Generated with Claude Code