Skip to content

refactor(native): deslop native state and lifecycle - #163372

Merged
steipete merged 1 commit into
mainfrom
deslop/l300-dead-code-native-followup-20261002
Oct 2, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/l300-dead-code-native-followup-20261002

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Native state and lifecycle code carried forwarding methods and result distinctions that none of its callers needed.

User Impact

No behavior or rendered UI change is intended. Pairing verification, Gateway authority, APNs cleanup, session selection, and speech cancellation keep their existing checks and outcomes.

Why This Change Was Made

  • Android pairing verification returns the only fact its caller consumes: whether the acknowledged mutation is verified by the canonical device lists. The existing action still owns success text. Reuse the strict JSON-string parser and selected approval row; remove equivalent role branches and catches.
  • iOS callers read the canonical main session key directly. Remove an unused route argument, an always-true push-handler result, the pre-iOS-15 availability guard below the iOS-18 deployment floor, and a test-only cancel overload. Reuse existing speech interruption and active-output helpers.
  • macOS route checks retain endpoint and generation checks without two forwarding layers. Test callers use existing actor-isolated properties and the real config transformation. Remove redundant actor hops, a file-existence precheck, and an unused activation result.
  • Shared chat keeps lifecycle merge acceptance as a Boolean, removes an unreachable model-choice comparison, and inlines single-use settings helpers while retaining order and tail identity checks.

Measured production diff: 93 added, 223 removed; 130 net lines removed. This independent follow-up does not duplicate the changes in #163339. Existing behavioral assertions remain; removed assertions only repeated retired aliases or constant return values.

Evidence

  • Independent Codex review: scoped-clean through P2, no actionable findings.
  • AWS Crabbox verified hashes for all 19 changed files plus dependency and cycle-check inputs. pnpm install --frozen-lockfile passed; check-madge-import-cycles.ts reported 0 cycles and check-import-cycles.ts reported 0 runtime value cycles. Remote command phase: 77.6s, including installation and both checks.
  • SwiftFormat passed for all 17 touched Swift files with no further changes; git diff --check passed.
  • Exact-head CI run 36980588195 passed, including iOS simulator tests, macOS native/package tests, all Android variants and lint. Both app Periphery scans and the shared intersection passed. Merged as 6cc8e7fa0fa1ed63634e4808a19bbe885a266a04. AWS focused Android pairing and approval suites passed: 36 tests, 0 failures, using the exact CI JDK archive and pinned Android SDK. Gradle wall time was 194.67s including compilation; the changed pairing test class took 0.012s. Android lintPlayDebug and ktlintCheck also passed in 128.66s, with no UnusedResources/UnusedIds entries in the generated report. Apple broker preflight remains unavailable, so no local native build/test was attempted.
  • No new tests or timers were added. Existing pairing assertions and native owner tests were adapted to the surviving interfaces. Focused Android command cost is reported above; hosted native checks passed; their whole-job timings are not attributed to individual assertions. Cycle timing is not native-test evidence.
  • Coverage remains partial: mobile, macOS, and shared Swift inventories record files individually, distinguishing full reads, partial reads, and deferred files. The suspected Android session-group Gateway-switch race is being investigated separately and is not claimed fixed here.

@clawsweeper

clawsweeper Bot commented Oct 2, 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. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios app: macos App: macos size: L labels Oct 2, 2026
@steipete
steipete enabled auto-merge (squash) October 2, 2026 07:53
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:05 AM ET / 08:05 UTC (Revision 2).

ClawSweeper review

What this changes

The PR removes redundant native state and lifecycle wrappers across Android, iOS, macOS, and shared chat while adapting existing tests to the surviving interfaces.

Merge readiness

✅ Ready for maintainer review

Keep open: this is useful, distinct native cleanup that current main has not absorbed. The pinned diff introduces no concrete blocking defect, and the author has verified repository admin permission.

Priority: P3
Reviewed head: fece23682ee83cf1a36692aee6df0438643ed261

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful cleanup with equivalent inspected behavior and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. The inspected pairing, route, push-cleanup, speech, and chat changes preserve existing behavior without materially changing authority; reported tests are supplemental validation. No stored-data format or migration contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. The inspected pairing, route, push-cleanup, speech, and chat changes preserve existing behavior without materially changing authority; reported tests are supplemental validation. No stored-data format or migration contract changes.
Evidence reviewed 10 items Pinned introduction: Reviewed the merge-base-to-head production and test hunks. Raw head parentage matches the supplied introduction boundary; endpoint drift was not attributed to this PR.
Route checks remain equivalent: The inlined macOS predicate retains the current endpoint comparison, route generation comparison, and configured endpoint comparison. The remaining configured-connection caller supplies the existing shutdown generation.
Pairing acknowledgement preserved: Boolean verification preserves the former success conditions, including mutation acknowledgement and canonical pending/paired lists. Cancellation still propagates, and publication remains Gateway-scope fenced.
Findings None None.
Security None None.

How this fits together

OpenClaw’s native apps consume Gateway responses, notifications, and user actions to manage pairing, sessions, speech, and local process state. Shared chat code projects Gateway lifecycle events into native conversation state.

flowchart TD
  A[User actions and notifications] --> B[Native app state owners]
  C[Gateway responses and events] --> B
  B --> D[Route and lifecycle checks]
  D --> E[Pairing and session state]
  D --> F[Speech and process cleanup]
  E --> G[Native chat presentation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests -5, Other -131. Total -136 across 19 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 10 -5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 18 232 363 -131
Total 19 237 373 -136

Review metrics

None.

Technical review

Best possible solution:

Keep native decisions in their existing owners and remove forwarding layers while preserving observable outcomes and lifecycle guards.

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

Not applicable: this PR proposes behavior-preserving cleanup rather than a reported defect; source inspection found no concrete introduced failure.

Is this the best way to solve the issue?

Yes: the inspected changes remove redundant distinctions and forwarding methods while preserving their callers’ existing conditions and effects.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is internal cleanup with no intended user-visible behavior change or demonstrated urgent regression.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. The inspected pairing, route, push-cleanup, speech, and chat changes preserve existing behavior without materially changing authority; reported tests are supplemental validation. No stored-data format or migration contract changes.

Label justifications:

  • P3: This is internal cleanup with no intended user-visible behavior change or demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified repository-admin author is exempt from ordinary external-contributor proof. The inspected pairing, route, push-cleanup, speech, and chat changes preserve existing behavior without materially changing authority; reported tests are supplemental validation. No stored-data format or migration contract changes.

Evidence

What I checked:

  • Pinned introduction: Reviewed the merge-base-to-head production and test hunks. Raw head parentage matches the supplied introduction boundary; endpoint drift was not attributed to this PR. (fece23682ee8)
  • Route checks remain equivalent: The inlined macOS predicate retains the current endpoint comparison, route generation comparison, and configured endpoint comparison. The remaining configured-connection caller supplies the existing shutdown generation. (apps/macos/Sources/OpenClaw/GatewayConnection.swift:948, fece23682ee8)
  • Pairing acknowledgement preserved: Boolean verification preserves the former success conditions, including mutation acknowledgement and canonical pending/paired lists. Cancellation still propagates, and publication remains Gateway-scope fenced. (apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt:8048, fece23682ee8)
  • Speech cleanup equivalence: The reused output-active predicate is exactly the previous speaking-or-incremental condition. Speech generation still advances before admission, and player, recognition, synthesizer, and incremental cleanup retain their order. (apps/ios/Sources/Voice/TalkModeManager.swift:3311, fece23682ee8)
  • Current main retains the removed alias: Fetched main still exposes defaultChatSessionKey as a direct forwarding property to mainSessionKey. This supports the cleanup’s continuing relevance rather than an implemented-on-main closure. (apps/ios/Sources/Model/NodeAppModel.swift:3296, dbb580aed3e7)
  • Existing test contracts retained: Pairing expectations change from outcome cases to equivalent Boolean assertions; macOS setters become direct assignments to already-accessible actor-isolated fields. iOS removes constant-return and alias assertions while retaining cleanup, routing, and owner-state expectations. The captured body reports 36 focused Android tests passing and explicitly distinguishes pending Apple validation from completed checks; no tests were executed during this review. (apps/android/app/src/test/java/ai/openclaw/app/GatewayDevicePairingTest.kt:79, fece23682ee8)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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-10-02T07:53:44.871Z sha fece236 :: needs maintainer review before merge. :: none

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Cumulative discovery coverage for the native sweep. Unread and partial entries remain unverified; no exhaustive clean claim is made.

mobile production source inventory (over 200 lines)

Android native sweep coverage

NOT YET READ means not fully read; declaration/references inspection is not full coverage.

  • 10078 apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt — READ: Complete 10078-line owner read. Follow-up removes redundant pairing outcome hierarchy, role predicate wrapper, repeated approval ID decoding/lookup and duplicate catch; preserves lifecycle, authority and July+ compatibility.
  • 9293 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatController.kt — READ: Complete 9293-line owner read. Explicit July1 metadata/truncation compatibility and Oct18 plan-stream sunset retained. Found session-group route capture candidate pending remote regression; no code changes.
  • 4907 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatScreen.kt — NOT YET READ
  • 3546 apps/android/app/src/main/java/ai/openclaw/app/ui/OnboardingFlow.kt — NOT YET READ
  • 3380 apps/android/app/src/main/java/ai/openclaw/app/ui/SettingsScreens.kt — NOT YET READ
  • 3354 apps/android/app/src/main/java/ai/openclaw/app/voice/TalkModeManager.kt — NOT YET READ
  • 2771 apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewaySession.kt — NOT YET READ
  • 2396 apps/android/wear/src/main/java/ai/openclaw/wear/WearScreens.kt — NOT YET READ
  • 2180 apps/android/app/src/main/java/ai/openclaw/app/MainViewModel.kt — READ: Removed internal sendChatForOwnerAwaitAcceptance pass-through and routed its two callers to the same NodeRuntime owner.
  • 2146 apps/android/wear/src/main/java/ai/openclaw/wear/WearViewModel.kt — NOT YET READ
  • 1611 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatCommandOutbox.kt — NOT YET READ
  • 1597 apps/android/app/src/main/java/ai/openclaw/app/ui/ShellScreen.kt — NOT YET READ
  • 1542 apps/android/app/src/main/java/ai/openclaw/app/ui/SessionsScreen.kt — NOT YET READ
  • 1399 apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarContent.kt — NOT YET READ
  • 1182 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatMarkdown.kt — NOT YET READ
  • 1145 apps/android/app/src/main/java/ai/openclaw/app/SecurePrefs.kt — NOT YET READ
  • 1145 apps/android/app/src/main/java/ai/openclaw/app/AndroidScreenshotFixture.kt — NOT YET READ
  • 1031 apps/android/app/src/thirdParty/java/ai/openclaw/app/node/SmsManager.kt — NOT YET READ
  • 963 apps/android/app/src/main/java/ai/openclaw/app/wear/WearRealtimeTalkController.kt — NOT YET READ
  • 911 apps/android/app/src/main/java/ai/openclaw/app/voice/MicCaptureManager.kt — NOT YET READ
  • 842 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/SessionDiffSheet.kt — NOT YET READ
  • 835 apps/android/wear/src/main/java/ai/openclaw/wear/WearGatewayRepository.kt — NOT YET READ
  • 798 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatMediaPlayer.kt — NOT YET READ
  • 775 apps/android/app/src/main/java/ai/openclaw/app/chat/ClientDatabases.kt — NOT YET READ
  • 761 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatMessageViews.kt — NOT YET READ
  • 760 apps/android/app/src/main/java/ai/openclaw/app/ui/SkillsSettingsScreen.kt — NOT YET READ
  • 717 apps/android/app/src/main/java/ai/openclaw/app/wear/WearProxyController.kt — NOT YET READ
  • 708 apps/android/wear/src/main/java/ai/openclaw/wear/MainActivity.kt — NOT YET READ
  • 708 apps/android/app/src/main/java/ai/openclaw/app/ui/design/ClawComponents.kt — NOT YET READ
  • 700 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatTimeline.kt — READ: Transcript/tool ownership and readAnchorIndex remain used by saved reader state and layout proof; no sound bounded removal.
  • 685 apps/android/app/src/main/java/ai/openclaw/app/CronJobManagement.kt — NOT YET READ
  • 679 apps/android/app/src/main/java/ai/openclaw/app/ui/CronJobManagementPanel.kt — NOT YET READ
  • 673 apps/android/app/src/main/java/ai/openclaw/app/ConversationNotifications.kt — NOT YET READ
  • 663 apps/android/app/src/main/java/ai/openclaw/app/ui/SkillWorkshopSettingsScreen.kt — NOT YET READ
  • 635 apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarComponents.kt — NOT YET READ
  • 633 apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayDiscovery.kt — NOT YET READ
  • 617 apps/android/wear/src/main/java/ai/openclaw/wear/WearTalkAvatar.kt — NOT YET READ
  • 614 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatModels.kt — NOT YET READ
  • 612 apps/android/app/src/main/java/ai/openclaw/app/wear/WearProxyBridge.kt — NOT YET READ
  • 612 apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayTls.kt — NOT YET READ
  • 610 apps/android/wear/src/main/java/ai/openclaw/wear/WearRealtimeTalkClient.kt — NOT YET READ
  • 604 apps/android/app/src/main/java/ai/openclaw/app/GatewayExecApprovals.kt — NOT YET READ
  • 592 apps/android/app/src/main/java/ai/openclaw/app/ui/NodesDevicesSettingsScreen.kt — NOT YET READ
  • 591 apps/android/wear/src/main/java/ai/openclaw/wear/WearProxyClient.kt — NOT YET READ
  • 587 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatInlineWidgetView.kt — NOT YET READ
  • 578 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatTranscriptCache.kt — NOT YET READ
  • 568 apps/android/app/src/main/java/ai/openclaw/app/ui/ControlUiWebView.kt — NOT YET READ
  • 566 apps/android/app/src/main/java/ai/openclaw/app/wear/WearRealtimeChannelRegistry.kt — NOT YET READ
  • 554 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatDictation.kt — NOT YET READ
  • 544 apps/android/app/src/main/java/ai/openclaw/app/voice/RealtimeAgentCoordinator.kt — NOT YET READ
  • 534 apps/android/wear/src/main/java/ai/openclaw/wear/WearVoiceControls.kt — NOT YET READ
  • 534 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatComposer.kt — NOT YET READ
  • 534 apps/android/app/src/main/java/ai/openclaw/app/ui/GatewayConfigResolver.kt — NOT YET READ
  • 534 apps/android/app/src/main/java/ai/openclaw/app/node/CameraCaptureManager.kt — NOT YET READ
  • 533 apps/android/app/src/main/java/ai/openclaw/app/voice/VoiceWakeManager.kt — NOT YET READ
  • 515 apps/android/app/src/main/java/ai/openclaw/app/node/DeviceNotificationListenerService.kt — NOT YET READ
  • 509 apps/android/app/src/main/java/ai/openclaw/app/ui/design/MascotAnimator.kt — NOT YET READ
  • 500 apps/android/app/src/thirdParty/java/ai/openclaw/app/accessibility/AccessibilityDevActivity.kt — NOT YET READ
  • 500 apps/android/app/src/main/java/ai/openclaw/app/voice/AndroidAudioInputSession.kt — NOT YET READ
  • 497 apps/android/app/src/main/java/ai/openclaw/app/ui/FoldAwareDropdownMenu.kt — NOT YET READ
  • 496 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatCodeHighlight.kt — NOT YET READ
  • 485 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatWorkingIndicator.kt — NOT YET READ
  • 485 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatRichBlockRenderer.kt — NOT YET READ
  • 476 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatReaderScrollController.kt — READ: placementRevision participates in data-class equality consumed by snapshotFlow; ReadAnchor remains restorable July+ saved state.
  • 468 apps/android/app/src/main/java/ai/openclaw/app/PermissionRequester.kt — NOT YET READ
  • 461 apps/android/app/src/main/java/ai/openclaw/app/node/DeviceHandler.kt — NOT YET READ
  • 457 apps/android/app/src/thirdParty/java/ai/openclaw/app/accessibility/AccessibilityActionExecutor.kt — NOT YET READ
  • 451 apps/android/app/src/main/java/ai/openclaw/app/ui/WorkspaceFilesScreen.kt — NOT YET READ
  • 451 apps/android/app/src/main/java/ai/openclaw/app/systemagent/SystemAgentChatController.kt — NOT YET READ
  • 436 apps/android/app/src/main/java/ai/openclaw/app/ui/ProvidersModelsScreen.kt — NOT YET READ
  • 419 apps/android/app/src/main/java/ai/openclaw/app/ui/design/ClawTheme.kt — READ: Removed unused md/xl/xxl spacing members; retained all used palette, typography and geometry contracts.
  • 414 apps/android/app/src/main/java/ai/openclaw/app/ui/design/OpenClawMascot.kt — NOT YET READ
  • 412 apps/android/app/src/main/java/ai/openclaw/app/NodeForegroundService.kt — NOT YET READ
  • 404 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatCameraActivity.kt — NOT YET READ
  • 397 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatComposerStateStore.kt — NOT YET READ
  • 395 apps/android/app/src/main/java/ai/openclaw/app/ui/image/SafeRemoteImage.kt — NOT YET READ
  • 387 apps/android/app/src/main/java/ai/openclaw/app/node/ContactsHandler.kt — READ: Contact data source owns real Android permissions/provider behavior; serialization and query seams remain used.
  • 382 apps/android/app/src/main/java/ai/openclaw/app/voice/RealtimePlayout.kt — NOT YET READ
  • 382 apps/android/app/src/main/java/ai/openclaw/app/SessionCatalog.kt — NOT YET READ
  • 381 apps/android/wear-shared/src/main/java/ai/openclaw/wear/shared/WearProtocol.kt — NOT YET READ
  • 378 apps/android/app/src/main/java/ai/openclaw/app/MainActivity.kt — NOT YET READ
  • 376 apps/android/app/src/main/java/ai/openclaw/app/ui/SystemAgentSettingsScreen.kt — NOT YET READ
  • 362 apps/android/app/src/main/java/ai/openclaw/app/ui/CommandPalette.kt — NOT YET READ
  • 355 apps/android/app/src/main/java/ai/openclaw/app/i18n/NativeStrings.kt — NOT YET READ
  • 354 apps/android/app/src/main/java/ai/openclaw/app/ProviderAuthController.kt — NOT YET READ
  • 349 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatWorkedSummary.kt — NOT YET READ
  • 337 apps/android/app/src/main/java/ai/openclaw/app/CronJobDetail.kt — NOT YET READ
  • 333 apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarGatewayControl.kt — NOT YET READ
  • 333 apps/android/app/src/main/java/ai/openclaw/app/node/CalendarHandler.kt — NOT YET READ
  • 318 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatImageCodec.kt — NOT YET READ
  • 317 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatQuestionCard.kt — NOT YET READ
  • 311 apps/android/app/src/main/java/ai/openclaw/app/ui/GatewayAdditionDialog.kt — NOT YET READ
  • 309 apps/android/app/src/main/java/ai/openclaw/app/chat/VoiceNoteRecorderController.kt — NOT YET READ
  • 306 apps/android/app/src/main/java/ai/openclaw/app/node/MotionHandler.kt — NOT YET READ
  • 301 apps/android/app/src/main/java/ai/openclaw/app/GatewayNodeApproval.kt — NOT YET READ
  • 283 apps/android/wear/src/main/java/ai/openclaw/wear/WearReplyNotifier.kt — NOT YET READ
  • 283 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatSwarmProgress.kt — NOT YET READ
  • 273 apps/android/app/src/main/java/ai/openclaw/app/GatewayTalkSetupReadiness.kt — NOT YET READ
  • 269 apps/android/app/src/thirdParty/java/ai/openclaw/app/accessibility/AccessibilitySnapshotter.kt — NOT YET READ
  • 268 apps/android/app/src/main/java/ai/openclaw/app/voice/TalkAudioPlayer.kt — NOT YET READ
  • 268 apps/android/app/src/main/java/ai/openclaw/app/ui/design/TalkWaveform.kt — NOT YET READ
  • 265 apps/android/app/src/main/java/ai/openclaw/app/node/PhotosHandler.kt — NOT YET READ
  • 264 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatReaderAnchors.kt — NOT YET READ
  • 262 apps/android/app/src/main/java/ai/openclaw/app/SkillManagement.kt — NOT YET READ
  • 258 apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewayRegistry.kt — NOT YET READ
  • 257 apps/android/app/src/main/java/ai/openclaw/app/ui/HealthLogsSettingsScreen.kt — NOT YET READ
  • 255 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatLinkPreview.kt — NOT YET READ
  • 248 apps/android/app/src/main/java/ai/openclaw/app/ui/FoldAwareSheet.kt — NOT YET READ
  • 247 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatMessageActions.kt — NOT YET READ
  • 245 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatTurnRecap.kt — NOT YET READ
  • 243 apps/android/app/src/main/java/ai/openclaw/app/ui/AboutBuildIdentity.kt — NOT YET READ
  • 242 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatAttachmentMenu.kt — NOT YET READ
  • 241 apps/android/app/src/main/java/ai/openclaw/app/ui/design/ClawIcons.kt — READ: Every image vector is used by SettingsRoute, sidebar or CommandPalette; no dead icons.
  • 241 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatWidgetExport.kt — NOT YET READ
  • 239 apps/android/app/src/main/java/ai/openclaw/app/gateway/CloudflareAccessClient.kt — READ: Test-only runtime island belongs to recently staged Sep25 Cloudflare Access capability; retirement intent unproven.
  • 233 apps/android/app/src/main/java/ai/openclaw/app/AssistantLaunch.kt — NOT YET READ
  • 231 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatComposerPopover.kt — NOT YET READ
  • 229 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/PendingAttachment.kt — NOT YET READ
  • 228 apps/android/app/src/main/java/ai/openclaw/app/gateway/CloudflareAccessSessionStore.kt — READ: Test-only runtime island belongs to recently staged Sep25 Cloudflare Access capability; retirement intent unproven.
  • 228 apps/android/app/src/main/java/ai/openclaw/app/chat/ChatReactions.kt — NOT YET READ
  • 226 apps/android/app/src/main/java/ai/openclaw/app/ui/ProviderSignInDialog.kt — NOT YET READ
  • 218 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatImageViewer.kt — NOT YET READ
  • 214 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatSourcePreviews.kt — NOT YET READ
  • 211 apps/android/app/src/main/java/ai/openclaw/app/gateway/DeviceIdentityStore.kt — READ: July18 secure-store migration covers July+ shapes and retains pairing; crypto signature/identity behavior remains active.
  • 208 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/VoiceNoteComposer.kt — NOT YET READ
  • 206 apps/android/app/src/main/java/ai/openclaw/app/ui/chat/ChatMermaidBlock.kt — NOT YET READ
  • 201 apps/android/app/src/thirdParty/java/ai/openclaw/app/node/CallLogHandler.kt — NOT YET READ

Bounded source reconnaissance

Whole-file coverage remains partial. Production Kotlin declaration/reference inventory started with NodeRuntime (10078 lines), ChatController (9293), ChatScreen (4907) and the dense app runtime/UI trees. MainViewModel was read completely after its forwarding API was identified. GatewaySession and SecurePrefs were partially read around aplead dead seams; they remain marked NOT YET READ.

Preserved deliberate non-callsite contracts: networkMonitor starts monitoring in its initializer; Compose previews have tool discovery; Room database/entities and Serializable payload fields are generated contracts; Cloudflare native instrumentation is an active staged-capability gate. GatewayStoreMigration was introduced July6 and DeviceIdentity secure migration July18, so deleting either would exceed the July2026+ upgrade policy.

Before edits git log --since=12.hours showed no changes to MainViewModel.kt or ClawTheme.kt. Parent checked open l29 overlap; only l297 core helper PR existed. No credentials, resource translations, persisted shapes, protocol or product behavior changed.

Final Android diff: +2/-21 production lines, net -19. No tests changed or added. Remote/hosted native proof is lead-owned and pending.

Follow-up on 88954a4

NodeRuntime and ChatController were read in consecutive bounded chunks with untruncated output. Revalidated selected pairing/approval owner regions and callers on the new base. Twelve-hour file history returned no commits for NodeRuntime.kt and GatewayDevicePairingTest.kt before edits.

Follow-up Android patch: NodeRuntime +11/-55 (net -44 production), GatewayDevicePairingTest +5/-10 (net -5 tests). The five existing canonical mutation-result cases are preserved with Boolean assertions. No new tests, dependencies, persisted formats, protocol or visible UI changes.

Follow-up source-only candidate: session group rename/dissolve enumerate active and archived sessions and patch each member via unbound requestGateway calls; replacing a Gateway between awaited requests can choose a replacement socket. Existing captureRequestLease owns physical connection dispatch. Regression belongs in ChatControllerCommandControlsTest alongside renameSessionGroupPatchesEveryMemberIncludingArchivedOnlyOnes and dissolveSessionGroupClearsCategoriesBestEffort, using CompletableDeferred between enumeration/patches. Not reproduced, not included in the patch.

l300 iOS production Swift coverage

This inventory records first-PR implementation and later read-only discovery while proof runs. Source size ~63.7k lines. Periphery configuration and CI entry point were read, but the available iOS scan artifact failed before producing findings. No local tests/builds/checks were run. READ denotes whole-file inspection; PARTIAL and NOT READ retain the remaining coverage gaps.

Lines File Coverage Result
10229 apps/ios/Sources/Model/NodeAppModel.swift READ Complete owner read in bounded chunks. First PR retires pre-rename retry; follow-up removes session-key passthrough, never-supplied route argument, always-true resolved-push result and iOS15 guard. July v4 approval and Watch migrations retained.
5098 apps/ios/Sources/Voice/TalkModeManager.swift READ Complete owner read in bounded chunks. First PR retires old local Keychain reader; follow-up shares interruption setup and output-active predicate, removes test-only noarg cancellation. NSObject and lifecycle/route guards retained.
1592 apps/ios/Sources/Gateway/GatewayConnectionController.swift PARTIAL Read forget lifecycle and all connect-options call sites affected by retirement; remaining onboarding/reconcile owners not fully read.
1565 apps/ios/WatchApp/Sources/WatchInboxView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
1529 apps/ios/Sources/Onboarding/OnboardingWizardView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
1521 apps/ios/WatchApp/Sources/WatchInboxStore.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
1455 apps/ios/Sources/Voice/TalkRealtimeWebRTCSession.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
1256 apps/ios/Sources/Design/CommandCenterTab.swift PARTIAL Follow-up migrated all eight main-session alias consumers; inspected affected selection, archive, recent-list and session action callers. Remaining rendered owner not fully read.
1209 apps/ios/Sources/Gateway/GatewaySettingsStore.swift READ Removed pre-July Talk credential reader and pre-rename client override storage; retained July credential/registry migrations and owner isolation.
1173 apps/ios/Sources/RootTabs.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
1019 apps/ios/Sources/Design/SettingsProTabSections.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
966 apps/ios/Sources/Design/SettingsProTabActions.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
926 apps/ios/Sources/RootSidebar.swift PARTIAL Follow-up migrated all three main-session alias consumers; inspected main/selected key and visible-section routing. Remaining rendered owner not fully read.
920 apps/ios/WatchApp/Sources/WatchInboxMessages.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
846 apps/ios/Sources/Chat/AppleReviewDemoChatTransport.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
826 apps/ios/WatchApp/Sources/WatchDirectNode.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
787 apps/ios/Sources/OpenClawApp.swift PARTIAL Follow-up simplified resolved-push replay and APNs callback after removing constant Bool return; inspected both delivery callers. Remaining app lifecycle owner not fully read.
772 apps/ios/WatchApp/Sources/WatchConnectivityReceiver.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
727 apps/ios/Sources/Design/ChatProTab.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
720 apps/ios/WatchApp/Sources/WatchRealtimeTransport.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
706 apps/ios/Sources/Chat/IOSGatewayChatTransport.swift READ Removed two fork forwarding overloads and static capability duplicate in favor of shared owner; route fencing and iOS agent inference retained.
683 apps/ios/Sources/Design/ChatModelControlsMenu.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
661 apps/ios/Sources/Camera/CameraController.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
648 apps/ios/Sources/RootSidebarModel.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
621 apps/ios/Sources/Web/AuthenticatedControlUIWebView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
620 apps/ios/WatchApp/Sources/WatchRealtimeCallController.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
600 apps/ios/Sources/LiveActivity/LiveActivityManager.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
564 apps/ios/Sources/Voice/VoiceWakeManager.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
535 apps/ios/Sources/Design/OpenClawProComponents.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
534 apps/ios/Sources/Screen/ScreenRecordService.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
521 apps/ios/Sources/Gateway/GatewayQuickSetupSheet.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
470 apps/ios/Sources/Push/PushRelayClient.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
469 apps/ios/Sources/Design/CommandCenterSupport.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
467 apps/ios/Sources/Design/OpenClawBrand.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
466 apps/ios/Sources/Onboarding/OnboardingWizardSteps.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
434 apps/ios/Sources/Settings/DeviceSettings/IOSDeviceSettingsBridge.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
427 apps/ios/Sources/Gateway/GatewayConnectionController+ManualAuth.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
427 apps/ios/Sources/Design/OpenClawTypography.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
416 apps/ios/Sources/Model/WatchReplyCoordinator.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
397 apps/ios/Sources/Gateway/ExecApprovalPromptDialog.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
386 apps/ios/WatchApp/Sources/WatchRealtimeAudioIO.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
386 apps/ios/Sources/Chat/IOSGatewayChatTransport+ComposerCapabilities.swift READ Retained route-scoped capability reads, typed payload decoding, permissions, and send settlement; no sound removal found.
374 apps/ios/Sources/Services/WatchMessagingPayloadCodec.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
366 apps/ios/Sources/Design/AgentWorkspaceFilesScreen.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
352 apps/ios/ShareExtension/ShareViewController.swift READ Removed pre-rename client retry and flattened its one-call connect wrapper; UIKit entry points retained.
346 apps/ios/Sources/Design/SettingsProTabSupport.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
326 apps/ios/Sources/Services/WatchConnectivityTransport.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
320 apps/ios/ShareExtension/ShareComposeView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
317 apps/ios/Sources/RootTabsNavigation.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
310 apps/ios/WatchApp/Sources/WatchInboxChatDelivery.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
308 apps/ios/WatchApp/Sources/OpenClawWatchApp.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
307 apps/ios/Sources/Design/SettingsProTab.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
298 apps/ios/Sources/Voice/TalkModeGatewayConfig.swift READ Retained shipped local ElevenLabs route, Gateway realtime policy and typed config projection; no unused owner found.
284 apps/ios/Sources/Services/WatchMessagingService.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
281 apps/ios/Sources/Gateway/GatewayProblemView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
272 apps/ios/Sources/Onboarding/OnboardingWizardConnectionSections.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
265 apps/ios/Sources/Gateway/GatewayConnectionController+Capabilities.swift READ Removed automatic pre-rename override lookup and now-unused stableID argument; manual explicit client ID remains.
259 apps/ios/Sources/Onboarding/QRScannerView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
255 apps/ios/ActivityWidget/OpenClawLiveActivity.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
254 apps/ios/Sources/Push/ExecApprovalNotificationBridge.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
241 apps/ios/Sources/Location/LocationService.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
239 apps/ios/WatchApp/Sources/WatchRealtimeCallView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
237 apps/ios/Sources/Services/WatchSessionActivationGate.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
227 apps/ios/Sources/Settings/WatchMessageJournalView.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
226 apps/ios/Sources/RootSidebarShell.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
226 apps/ios/Sources/RootSidebarGatewayControl.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
218 apps/ios/Sources/Design/AgentProTab+Overview.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
204 apps/ios/Sources/Health/HealthSummaryService.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
202 apps/ios/Sources/Push/PushRegistrationManager.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.
201 apps/ios/Sources/Gateway/CloudflareAccessSessionStore.swift NOT READ Deferred at first-PR freeze; no claim of exhaustive removal coverage.

Read-only follow-up evidence

  • NodeAppModel.sendAgentRequest has one caller and no caller supplies expectedNodeRoute; all requests currently forward nil.
  • handleExecApprovalResolvedRemotePush returns true after every switch branch. APNs callers can await its effects and return newData directly; existing test assertions on cleanup/owner state must remain.
  • defaultChatSessionKey only returns mainSessionKey; its stale comment describes a removed hardcoded ios key.
  • NodeAppModel.handleSystemNotify has an iOS 15 availability check while project.yml requires iOS 18.
  • TalkModeManager.cancelPushToTalk() has only two test-cleanup callers. Production cancellation uses capture ID or the expected transcription mode; both tests start remote PTT.
  • TalkModeManager inherits NSObject but has no selector, ObjC, plist/storyboard/XIB or NSObject-method consumer in the inspected source. Its realtime delegate is a Swift AnyObject protocol; compiler proof is still needed before cutting the ancestry.
  • talk.speechLocale writer retired September 7 in ef26537, so its cleanup is within the supported July-and-later window and remains.
  • No second-patch repository edits were made.

Follow-up implementation

Branch deslop/l300-dead-code-native-followup-20261002, fresh base 88954a49bc720c2409f884c2bc43f5413a408688. All six touched files had no commits in their 12-hour scoped history at edit time. The first PR's retirement edits are separate and were not repeated.

  • Main-session alias removed at all 12 production consumers and three tests; duplicate equality assertion removed, routing and explicit-focus assertions retained.
  • Resolved-push callback returns Void; every branch previously returned true. APNs completion remains newData after handling or queueing. Durable queue, notification removal, relaunch and exact-byte owner assertions remain.
  • Deep-link request route argument removed because its only caller always omitted it; GatewayNodeSession.request defaults the route to nil.
  • iOS15 notification interruption guard removed under the existing iOS18 deployment target. Priority mapping unchanged.
  • Existing speech-interruption helper now owns incremental setup too; diagnostic context preserves both old log texts. stopSpeaking uses the existing output-active predicate after advancing its generation, preserving player-stop order and cleanup.
  • Noarg cancellation overload removed; its two test-cleanup callers now use the existing remote-PTT mode overload matching the captures they start.
  • No new tests, no local checks/tests/builds; lead owns hosted native proof. No visual behavior changes.

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Cumulative discovery coverage for the native sweep. Unread and partial entries remain unverified; no exhaustive clean claim is made.

macos production source inventory (over 200 lines)

l300 macOS coverage

Cumulative reading coverage across the first patch (PR #163339) and follow-up branch. READ means the complete source was inspected; the first patch remains separately reviewed. Sizes below reflect the follow-up checkout. No checks/builds/tests were run locally; touched source files were formatted.

Lines Production file Coverage Outcome
1722 apps/macos/Sources/OpenClaw/GatewayConnection.swift READ follow-up collapsed two route predicate forwarders while retaining both endpoint comparisons and generation validation; all configured-connection callers now require their existing shutdown generation.
1638 apps/macos/Sources/OpenClaw/OnboardingAISetup.swift READ follow-up removed the unused Bool result from private failed-activation settlement. Preserved every lease, receipt and cancellation guard.
1620 apps/macos/Sources/OpenClaw/GatewayProcessManager.swift READ follow-up removed redundant MainActor hops, file existence precheck, and two test-only setters of already-accessible fields. Preserved all lifecycle and test assertions.
1612 apps/macos/Sources/OpenClaw/AppState.swift READ follow-up removed the increment-only generation helper and test-only remote-config projection; tests call the existing owner directly with identical assertions.
1611 apps/macos/Sources/OpenClaw/DashboardManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1555 apps/macos/Sources/OpenClaw/Resources/Localizable.xcstrings NOT READ Generated localization catalog; no user-visible string changes or regeneration required.
1537 apps/macos/Sources/OpenClaw/DashboardWindowController.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1496 apps/macos/Sources/OpenClaw/WebChatSwiftUI.swift READ Moved common fork dispatch/capability to the shared transport owner; inlined one-use speech namespace while preserving captured lease and codec.
1455 apps/macos/Sources/OpenClaw/TalkModeRuntime.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1433 apps/macos/Sources/OpenClaw/NodeMode/MacNodeModeCoordinator.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1426 apps/macos/Sources/OpenClaw/PostUpdate.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1390 apps/macos/Sources/OpenClaw/ApplicationRelocator.swift PARTIAL Read replacement models and supervisor policy/test seam; complete relaunch lifecycle not fully read.
1302 apps/macos/Sources/OpenClaw/QuickChatModel.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1230 apps/macos/Sources/OpenClaw/GatewayEndpointStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1201 apps/macos/Sources/OpenClaw/NodeMode/MacNodeCodexThreadCatalog.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1136 apps/macos/Sources/OpenClaw/NodeMode/MacNodeClaudeSessionCatalog.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
1040 apps/macos/Sources/OpenClaw/NodeMode/MacNodeRuntime.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
968 apps/macos/Sources/OpenClaw/ComputerWindowActionExecutor.swift PARTIAL Read dispatch, window authority and discovery paths; remaining targeting/actions not fully read.
910 apps/macos/Sources/OpenClaw/NodeMode/MacNodeHostWorker.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
892 apps/macos/Sources/OpenClaw/Onboarding.swift PARTIAL Read legacy pending activation record access; full lifecycle not fully read.
891 apps/macos/Sources/OpenClaw/DebugSettings.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
870 apps/macos/Sources/OpenClaw/GatewayLaunchAgentManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
846 apps/macos/Sources/OpenClaw/QuickChatController.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
839 apps/macos/Sources/OpenClaw/OnboardingView+Pages.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
836 apps/macos/Sources/OpenClaw/MacGatewayProfiles.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
832 apps/macos/Sources/OpenClaw/CLIInstaller.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
826 apps/macos/Sources/OpenClaw/OnboardingAISetupView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
805 apps/macos/Sources/OpenClaw/OpenClawConfigFile.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
803 apps/macos/Sources/OpenClaw/ComputerScreenActionExecutor.swift READ Retained: input authority, held-button ownership, display geometry and fake-event seams protect live gestures; no safe removal selected.
794 apps/macos/Sources/OpenClaw/ControlChannel.swift PARTIAL Read all health/heartbeat request and event paths; constructor/reconciliation sections not fully read.
789 apps/macos/Sources/OpenClaw/PortGuardian.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
785 apps/macos/Sources/OpenClaw/VoiceWakeRuntime.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
772 apps/macos/Sources/OpenClaw/OnboardingAISetupSupport.swift PARTIAL Read activation requests and detection reconciliation; remaining provider models not fully read.
764 apps/macos/Sources/OpenClaw/ExecCommandResolution.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
759 apps/macos/Sources/OpenClaw/TalkModeRuntime+Realtime.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
730 apps/macos/Sources/OpenClaw/ExecApprovalsStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
702 apps/macos/Sources/OpenClaw/MacRealtimeTalkAudioCapture.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
700 apps/macos/Sources/OpenClaw/NodeMode/MacNodeCodexThreadCatalogClient.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
681 apps/macos/Sources/OpenClaw/StatusMenuSummaries.swift PARTIAL Read usage state and menu projection owners; refresh internals not fully read.
676 apps/macos/Sources/OpenClaw/WebChatManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
663 apps/macos/Sources/OpenClaw/NodePairingApprovalPrompter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
649 apps/macos/Sources/OpenClawDiscovery/GatewayDiscoveryModel.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
619 apps/macos/Sources/OpenClaw/GatewayProcessManager+Hosting.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
601 apps/macos/Sources/OpenClaw/ComputerActionService.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
597 apps/macos/Sources/OpenClaw/TalkMLXSpeechSynthesizer.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
567 apps/macos/Sources/OpenClaw/ManagedNodeGatewayMigration.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
563 apps/macos/Sources/OpenClaw/StatusMenuRenderer.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
555 apps/macos/Sources/OpenClaw/CuaDriverHostCoordinator.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
540 apps/macos/Sources/OpenClaw/CommandResolver.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
538 apps/macos/Sources/OpenClaw/NativeConversationView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
532 apps/macos/Sources/OpenClaw/ExecApprovalsSocketPathGuard.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
520 apps/macos/Sources/OpenClaw/PairingApprovalPanelView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
516 apps/macos/Sources/OpenClaw/QuickChatWindowPicker.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
516 apps/macos/Sources/OpenClawMacCLI/WizardCommand.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
510 apps/macos/Sources/OpenClaw/HostEnvSecurityPolicy.generated.swift NOT READ Generated source; canonical generator not inspected or changed.
495 apps/macos/Sources/OpenClaw/QuickChatView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
493 apps/macos/Sources/OpenClaw/CameraPTZService.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
489 apps/macos/Sources/OpenClawMacCLI/ConfigureRemoteCommand.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
487 apps/macos/Sources/OpenClaw/PortGuardianRecordStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
484 apps/macos/Sources/OpenClaw/OnboardingView+Layout.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
480 apps/macos/Sources/OpenClaw/ConnectionSettingsView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
478 apps/macos/Sources/OpenClaw/MenuBar.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
478 apps/macos/Sources/OpenClaw/StatusMenuSessions.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
474 apps/macos/Sources/OpenClaw/TailscaleIntegrationSection.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
470 apps/macos/Sources/OpenClaw/CLIInstallPrompter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
468 apps/macos/Sources/OpenClaw/NativeConversationBridge.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
460 apps/macos/Sources/OpenClaw/CloudWorkerHost.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
443 apps/macos/Sources/OpenClaw/DashboardBrowserSessionStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
443 apps/macos/Sources/OpenClaw/SessionMenuPreviewView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
442 apps/macos/Sources/OpenClaw/RemotePortTunnel.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
441 apps/macos/Sources/OpenClaw/ExecApprovalQueueStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
437 apps/macos/Sources/OpenClaw/HealthStore.swift READ Removed CLI-log extraction fallback from WebSocket-only health decoding; retained Codable fields and health admission checks.
431 apps/macos/Sources/OpenClaw/VoicePushToTalk.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
427 apps/macos/Sources/OpenClaw/PostAppUpdateReceipt.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
419 apps/macos/Sources/OpenClaw/QuickChatFocusedTextCapture.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
417 apps/macos/Sources/OpenClaw/StatusMenuController.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
395 apps/macos/Sources/OpenClaw/VoiceWakeTester.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
392 apps/macos/Sources/OpenClaw/ExecApprovalsSocket.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
390 apps/macos/Sources/OpenClaw/CritterStatusLabel+Behavior.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
388 apps/macos/Sources/OpenClaw/PermissionManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
384 apps/macos/Sources/OpenClaw/RemoteTunnelManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
383 apps/macos/Sources/OpenClaw/CloudflareAccessLogin.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
381 apps/macos/Sources/OpenClaw/DashboardNativeBrowserHost.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
377 apps/macos/Sources/OpenClaw/CritterIconRenderer.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
377 apps/macos/Sources/OpenClawCameraPTZNative/OpenClawCameraPTZNative.m NOT READ Not fully inspected in this first bounded PR; no removal claimed.
370 apps/macos/Sources/OpenClaw/DashboardManager+Construction.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
366 apps/macos/Sources/OpenClaw/GatewaysMainMenu.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
365 apps/macos/Sources/OpenClaw/LocalSocketServer.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
361 apps/macos/Sources/OpenClaw/ShellExecutor.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
360 apps/macos/Sources/OpenClaw/CookieSyncManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
359 apps/macos/Sources/OpenClaw/ControlUIDocumentHost+NavigationPolicy.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
342 apps/macos/Sources/OpenClaw/GatewaySettings.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
339 apps/macos/Sources/OpenClaw/GatewayEnvironment.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
338 apps/macos/Sources/OpenClawDiscovery/TailscaleServeGatewayDiscovery.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
333 apps/macos/Sources/OpenClaw/CameraCaptureService.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
329 apps/macos/Sources/OpenClaw/StatusMenuHeaderView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
328 apps/macos/Sources/OpenClaw/BrowserProfileImportModel.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
326 apps/macos/Sources/OpenClaw/AudioInputDeviceObserver.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
325 apps/macos/Sources/OpenClaw/DebugActions.swift READ Retained: menu actions still reference all commands, including heartbeat; selectors were verified.
322 apps/macos/Sources/OpenClawMacCLI/ConnectCommand.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
320 apps/macos/Sources/OpenClaw/PairingApprovalCenter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
318 apps/macos/Sources/OpenClaw/MacDesktopAvailabilityCoordinator.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
316 apps/macos/Sources/OpenClaw/AppLifecycleSupport.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
316 apps/macos/Sources/OpenClaw/ExecApprovalEvaluation.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
309 apps/macos/Sources/OpenClaw/OnboardingView+Monitoring.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
302 apps/macos/Sources/OpenClaw/ExecSystemRunCommandValidator.swift READ Retained: canonical/raw shell display admission and modifier/positional-argument checks protect exec approval semantics.
296 apps/macos/Sources/OpenClaw/DashboardManager+Routes.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
296 apps/macos/Sources/OpenClaw/NodesStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
295 apps/macos/Sources/OpenClaw/NodeMode/MacNodePresenceReporter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
288 apps/macos/Sources/OpenClaw/TailscaleService.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
282 apps/macos/Sources/OpenClaw/GatewayProcessManager+HostingChange.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
279 apps/macos/Sources/OpenClaw/RemoteGatewayProbe.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
278 apps/macos/Sources/OpenClaw/CameraPTZNativeController.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
278 apps/macos/Sources/OpenClaw/DevicePairingApprovalPrompter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
270 apps/macos/Sources/OpenClaw/VoiceWakeOverlayController+Session.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
267 apps/macos/Sources/OpenClaw/ManagedProcess.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
265 apps/macos/Sources/OpenClaw/GatewayProcessManager+Service.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
260 apps/macos/Sources/OpenClaw/NodesMenu.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
257 apps/macos/Sources/OpenClaw/NodeServiceManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
257 apps/macos/Sources/OpenClawDiscovery/WideAreaGatewayDiscovery.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
255 apps/macos/Sources/OpenClaw/DashboardGatewayCatalog.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
253 apps/macos/Sources/OpenClaw/BrowserProfileImportBannerView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
252 apps/macos/Sources/OpenClaw/ChromeExtensionSetup.swift READ Retained: serialized setup mutation authority and public encoded bridge projection; legacy installation is still dispatched by existing device bridge actions.
252 apps/macos/Sources/OpenClaw/ScreenRecordService.swift READ Retained: ScreenCaptureKit delegate callbacks and writer completion/lifecycle contracts are active.
250 apps/macos/Sources/OpenClaw/DashboardWindowController+DeviceSettings.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
249 apps/macos/Sources/OpenClaw/NotificationManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
245 apps/macos/Sources/OpenClaw/ExecApprovals.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
240 apps/macos/Sources/OpenClaw/ConfigStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
235 apps/macos/Sources/OpenClaw/CanvasChromeContainerView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
233 apps/macos/Sources/OpenClaw/GatewayChildSupervisor.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
232 apps/macos/Sources/OpenClaw/CuaDriverHostLifecycle.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
231 apps/macos/Sources/OpenClaw/PrimaryGatewayConnectionEditor.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
230 apps/macos/Sources/OpenClaw/TalkModeController.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
227 apps/macos/Sources/OpenClaw/DashboardFailurePage.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
225 apps/macos/Sources/OpenClaw/MacControlRequestHandler.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
225 apps/macos/Sources/OpenClaw/NodeMode/BundledRuntime+CLI.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
221 apps/macos/Sources/OpenClaw/CloudflareAccessEmbedLogin.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
221 apps/macos/Sources/OpenClaw/StatusMenuDescriptor.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
220 apps/macos/Sources/OpenClaw/ExecApprovalsPromptPresenter.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
220 apps/macos/Sources/OpenClaw/WorkActivityStore.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
217 apps/macos/Sources/OpenClaw/AppLaunchPresentationPolicy.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
217 apps/macos/Sources/OpenClaw/ControlUIDocumentHost.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
216 apps/macos/Sources/OpenClaw/ExecInlineCommandParser.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
216 apps/macos/Sources/OpenClaw/LaunchAgentManager.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
214 apps/macos/Sources/OpenClaw/OnboardingAISetupSheet.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
214 apps/macos/Sources/OpenClaw/Resources/DeviceModels/mac-device-identifiers.json NOT READ Not fully inspected in this first bounded PR; no removal claimed.
213 apps/macos/Sources/OpenClaw/MacControlLiveOwner.swift READ retained CLI status/profile command routing; live connection summaries have no independently reproduced defect.
206 apps/macos/Sources/OpenClaw/Logging/OpenClawLogging.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
205 apps/macos/Sources/OpenClaw/DashboardDeviceSettingsMessageHandler.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
205 apps/macos/Sources/OpenClaw/DeepLinks.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
205 apps/macos/Sources/OpenClaw/ExecApprovalPanelView.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
204 apps/macos/Sources/OpenClaw/GatewayRemoteConfig.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
201 apps/macos/Sources/OpenClaw/NodeMode/BundledRuntime+Seeding.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
201 apps/macos/Sources/OpenClaw/OnboardingProviderArtwork.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
201 apps/macos/Sources/OpenClaw/PeekabooBridgeHostCoordinator.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
201 apps/macos/Sources/OpenClaw/VoiceWakeOverlayTextViews.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.
201 apps/macos/Sources/OpenClawIPC/MacControlProtocol.swift NOT READ Not fully inspected in this first bounded PR; no removal claimed.

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Cumulative discovery coverage for the native sweep. Unread and partial entries remain unverified; no exhaustive clean claim is made.

shared production source inventory (over 200 lines)

Shared chat sweep coverage

Scope: apps/shared/OpenClawKit/Sources/OpenClawChatUI. Sorted current production Swift files over 200 lines. This is an honest partial coverage log for the first PR; REFERENCE-SCANNED is not a full read.

All Swift identifiers in apps/ were cross-referenced for zero-use declaration candidates. The only unique function names found were platform/framework callbacks. Historical macOS Periphery artifact the macOS Periphery artifact from run 36959763404 was reviewed; it is not an iOS intersection and its warnings are not deletion proof.

Lines File Coverage Outcome
1650 ChatViewModel.swift READ Follow-up implemented on fresh 88954a4: consolidated explicit/default assignment, removed unreachable selected-ID comparison, and inlined sole-caller settings begin/tail cleanup helpers without changing order or guards; production net -11 lines.
1596 ChatComposer.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1589 ChatView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1544 ChatTranscriptCache.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1507 ChatViewModel+TransportEvents.swift READ Follow-up implemented: replaced private lifecycle merge enum with success Bool and positive admission predicate. Identity, timestamp, active-run and fallback-refresh behavior preserved; production net -8 lines.
1496 ChatTransport.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1345 ChatMessageViews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1265 ChatViewModel+Outbox.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1206 ChatModels.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1198 ChatMarkdownBlockSegmenter.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1055 ChatViewModel+SessionActions.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
1016 ChatSessions.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
942 ChatQuestionCard.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
896 ChatLinkPreview.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
834 ClientDatabases.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
827 ChatViewModel+HistoryReconciliation.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
824 ChatInlineWidgetView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
806 ChatGatewayRequest.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
778 ChatViewModel+Sending.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
771 OpenClawMascotAnimator.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
735 ChatMarkdownRenderer.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
730 ChatSessionManagementViews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
729 ChatSessionSidebarModel.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
704 OpenClawMascotView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
687 ChatToolDiff.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
618 ChatViewModel+ModelControls.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
610 ChatWindowShell.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
579 TalkWaveformView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
579 ChatSessionSidebar+HoverCard.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
578 ChatWorkingClawView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
552 ChatToolActivityViews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
543 CleanChatComposerControls.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
512 ChatSheets.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
507 Swarm.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
505 ChatViewModel+ComposerCapabilities.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
500 ChatViewModel+SessionKeys.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
498 ChatSessionSidebar+People.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
496 ChatSessionSidebar+Row.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
456 ChatTranscriptCacheContracts.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
450 WatchMessageJournal.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
438 ChatSessionHoverCardFacts.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
433 ChatViewModel+Attachments.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
429 VoiceNoteRecorder.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
429 ChatComposerTextView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
424 ChatViewModel+Thinking.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
409 ChatModelSignIn.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
405 ChatSessionHoverCardProjection.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
397 ChatCodeHighlighter.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
385 ChatComposer+CleanControls.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
382 ChatEffortControl.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
374 ChatSourcePreviews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
371 ChatSessionGroupDefaultsSheet.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
370 ChatMediaAudioAttachment.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
370 ChatInputHistory.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
363 ChatSessionSidebarData.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
356 ChatSessionSidebarData+Queries.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
352 ChatComposer+Capabilities.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
349 ChatGatewayPayloadCodec.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
347 ChatMediaVideoAttachment.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
346 ChatSpeechController.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
345 ChatMermaidRenderer.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
343 ChatInlineMath.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
336 ChatMermaidBlockView.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
329 ChatView+Previews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
329 ChatSessionSidebarPeople.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
326 ChatMarkdownBlockViews.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
322 ChatSessionSidebar+ContextMenu.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
318 ChatSessionSidebarActions.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
307 ChatWorkingProgress.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
303 ChatViewModel+Reactions.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
294 ChatSessionSidebarRowFacts.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
292 ChatMarkdownPreprocessor.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
289 ChatSourceResources.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
288 ChatTheme.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
284 ChatCommandPalette.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
273 ChatSessionSidebar.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
271 ChatViewModel+ProgressCard.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
266 ChatComposerTextViewIOS.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
255 ChatSessionAttention.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
251 ChatComposer+Controls.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
239 ChatWebConversation.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
238 ChatTranscriptRows.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
221 WatchMessageJournal+Storage.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
219 ChatComposerCapabilities.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
218 ChatMessageReactions.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
216 ChatSessionSidebarFilters.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
216 ChatProgressCard.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
213 ChatCompletedWork.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
210 ChatSessionSidebar+Header.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
207 ChatCameraFlipButton.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.
202 ChatSessionSidebarGrouping.swift REFERENCE-SCANNED; NOT FULLY READ Included in app-wide declaration/reference scan; no complete-file review or deletion claim.

Additional complete reads below threshold: ChatModelPickerStore.swift, ChatViewModel+SidebarData.swift, ChatCaptureActivityViews.swift, ChatAttachmentPickerMetadata.swift, ChatPayloadDecoding.swift. Reviewed ChatGatewayTransportTests.swift in full and extended its existing protocol/authority boundary case.

Proof requested from lead: shared Swift ChatGatewayTransportTests, existing iOS IOSGatewayChatTransportTests, exact-head iOS/macOS builds and Periphery. Local action was formatting only; no tests/checks/builds were run on this Mac.

Read-only follow-up discovery: completed full bounded reads of the above largest chat files while the first patch is frozen. No repository changes made. The next concrete modest patch is lifecycle merge-result collapse plus redundant model-selection branches, guarded by existing ChatViewModelTests lifecycle recap/stale-snapshot and model bootstrap/default/provider-qualified cases. Production reduction remains unmeasured until implementation on a fresh branch.

Follow-up implementation frozen on deslop/l300-dead-code-native-followup-20261002, base 88954a4: two production files, 28 additions / 47 deletions, net -19 production LOC; zero test changes. SwiftFormat changed neither file. No local test/check/build run. Existing tests retained: ChatViewModelTests remote lifecycle recap, stale lifecycle snapshot, bootstrap/default/provider-qualified model selection, serialized model mutations and stale-completion ownership; ChatCatalogProjectionTests catalog-to-selection cases. Fresh remote/hosted proof remains lead-owned.

Shared Swift kit coverage

Honest first-PR coverage, excluding the separately logged shared ChatUI subtree. Native build output is excluded. Periphery macOS artifact was inspected as a lead; iOS artifact failed before findings, so no cross-platform unused verdict is claimed.

Lines File Coverage and result
1683 apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayNodeSession.swift READ: live route/lifecycle/receipt ownership; retained explicit shipped refresh overloads and test hooks. Generated invoke schema lacks sessionKey so local payload type remains necessary.
1621 apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayChannel.swift READ: removed test-only forwarding method and narrowed pending request completions to ResponseFrame; retained reconnect/auth generations and cancellation gates.
1571 apps/shared/OpenClawKit/Sources/OpenClawKit/RealtimeTalkRelaySession.swift PARTIAL: read recovery/audio capture/send owners; active Apple audio/provider paths retained.
1052 apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayTLSPinning.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
842 apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayConnectionProblem.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
808 apps/shared/OpenClawKit/Sources/OpenClawNativeState/OpenClawNativeStateSQLite.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
776 apps/shared/OpenClawKit/Sources/OpenClawKit/WatchCommands.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
680 apps/shared/OpenClawKit/Sources/OpenClawKit/DeviceIdentitySQLiteStore.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
613 apps/shared/OpenClawKit/Sources/OpenClawKit/DeepLinks.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
583 apps/shared/OpenClawKit/Sources/OpenClawKit/DeviceSettingsContract.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
523 apps/shared/OpenClawKit/Sources/OpenClawKit/ExecApprovalsSQLiteStore.swift PARTIAL: persistence/projection and retained legacy policy match the current TypeScript owner; no security/storage semantics changed.
518 apps/shared/OpenClawKit/Sources/OpenClawKit/DeviceAuthStore.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
499 apps/shared/OpenClawKit/Sources/OpenClawKit/WatchChatDelivery.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
488 apps/shared/OpenClawKit/Sources/OpenClawKit/DeviceIdentity.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
309 apps/shared/OpenClawMLXTTSProtocol/Sources/OpenClawMLXTTSProtocol/MLXTTSProtocol.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
308 apps/shared/OpenClawKit/Sources/OpenClawKit/ComputerCommands.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
305 apps/shared/OpenClawKit/Sources/OpenClawKit/NativeConversationContract.swift PARTIAL: read envelope validation and message coding; retained wire-byte contract.
300 apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayErrors.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
283 apps/shared/OpenClawKit/Sources/OpenClawKit/WatchChatDeliveryStore.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
252 apps/shared/OpenClawKit/Sources/OpenClawKit/ToolDisplay.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
228 apps/shared/OpenClawKit/Sources/OpenClawKit/RealtimePCMStreamingAudioPlayer.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
213 apps/shared/OpenClawKit/Sources/OpenClawKit/TalkPlaybackLevelMeters.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.
205 apps/shared/OpenClawKit/Sources/OpenClawKit/ShareGatewayRelaySettings.swift NOT FULLY READ: source inventory and reference scan only; deferred beyond first PR.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 2, 2026
@steipete
steipete merged commit 6cc8e7f into main Oct 2, 2026
102 of 104 checks passed
@steipete
steipete deleted the deslop/l300-dead-code-native-followup-20261002 branch October 2, 2026 08:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…claw#163372)

Remove redundant native state/lifecycle forwarding and result distinctions while retaining pairing verification, Gateway authority, APNs cleanup, session selection, and speech cancellation behavior.

Production Swift/Kotlin is reduced by 130 lines. Existing behavioral tests keep their assertions and call the surviving owners directly. No protocol, schema, dependency, or rendered UI changes.
steipete added a commit that referenced this pull request Oct 9, 2026
The cold-start tests introduced in 418f22b (#158954) still referenced setTestingLastFailureReason and the bundlePath argument. Those were intentionally removed by 6cc8e7f (#163372) and 669db5d (#160710). Use the same direct property writes and port-only calls as the sibling tests, preserving all assertions.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
The cold-start tests introduced in bac884e (openclaw#158954) still referenced setTestingLastFailureReason and the bundlePath argument. Those were intentionally removed by 9c6018f (openclaw#163372) and 4e79f38 (openclaw#160710). Use the same direct property writes and port-only calls as the sibling tests, preserving all assertions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios 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: L 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