Skip to content

fix(ios): open app on Chat by default - #98353

Merged
Solvely-Colin merged 1 commit into
openclaw:mainfrom
BsnizND:codex/ios-chat-first
Jul 1, 2026
Merged

Solvely-Colin merged 1 commit into
openclaw:mainfrom
BsnizND:codex/ios-chat-first

Conversation

@BsnizND

@BsnizND BsnizND commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The iOS app currently opens on the Control tab by default, even though the first-use product moment should lead with the familiar assistant chat surface.

Why This Change Was Made

Opening directly to Chat makes the app feel more like a modern AI assistant while keeping Talk, Control, Agent, and Settings available from the tab bar. Explicit launch overrides still work, destination-only launches now derive the correct initial tab before falling back to Chat, and the iPhone tab bar order now matches the Chat-first product direction.

User Impact

Users land on the Chat tab on a normal app launch instead of the Control hub. On iPhone, the bottom bar now reads Chat, Talk, Control, Agent, Settings so the visual order matches the default selection. Existing screenshot and destination launch flows can still request Control, Settings, Agent, Talk, or nested Control destinations explicitly.

Evidence

  • swiftformat --config config/swiftformat apps/ios/Sources/RootTabs.swift apps/ios/Tests/RootTabsSourceGuardTests.swift
  • git diff --check
  • XcodeBuildMCP test_sim on OpenClaw scheme with -only-testing:OpenClawTests/RootTabsPresentationTests and -only-testing:OpenClawTests/RootTabsSourceGuardTests: 77 passed, 0 failed
  • XcodeBuildMCP build_run_sim on iPhone 17 Pro simulator: build and launch succeeded
  • XcodeBuildMCP runtime proof: no-argument launch reported bottom tabs in order Chat|1, Talk|0, Control|0, Agent|0, Settings|0
  • Previous XcodeBuildMCP runtime proof: after dismissing the gateway setup sheet, the visible root showed the Chat tab selected with the chat composer
  • codex review --base origin/main found a destination-only launch regression; this PR now covers that case by deriving the initial tab from --openclaw-initial-destination before falling back to Chat
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findings

AI Assistance

AI-assisted with Codex. I reviewed the changed code and validation output before opening this PR.

@clawsweeper

clawsweeper Bot commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed June 30, 2026, 11:45 PM ET / 03:45 UTC.

Summary
The PR changes iOS RootTabs so normal launches fall back to Chat, destination-only launches derive their owning tab, and the iPhone tab bar/test guards move to Chat-first order.

PR surface: Other +64. Total +64 across 3 files.

Reproducibility: yes. from source inspection: current main and v2026.6.11 return .control on ordinary iOS launch without --openclaw-initial-tab, while the PR changes that fallback to Chat. I did not run an iOS simulator in this read-only review, but the PR body reports after-fix simulator/runtime proof.

Review metrics: 1 noteworthy metric.

  • Launch default behavior: 1 changed default. Normal iOS launches move from Control to Chat, so maintainers should explicitly approve the user-facing default before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Get explicit iOS/product owner confirmation that Chat should replace Control as the normal iOS launch tab.

Mantis proof suggestion
A short visual launch proof would help maintainers confirm the first visible iOS tab and explicit Control override behavior in a real UI flow. A maintainer can ask Mantis to capture proof by posting this exact PR comment:

@openclaw-mantis visual task: verify an iOS no-argument launch opens Chat after setup dismissal, while explicit Control launch still opens Control.

Risk before merge

  • [P1] Merging this intentionally changes existing iOS users and v2026.6.11 users from a Control-first launch to a Chat-first launch on upgrade.
  • [P1] The open iOS Control redesign issue at [Feature]: Redesign iOS Control tab to a flatter, card-based layout #98283 still frames Control as the default tab, so maintainers should reconcile the iOS UX direction before landing this default change.

Maintainer options:

  1. Confirm Chat-first launch (recommended)
    Have an iOS/product owner explicitly approve Chat as the normal iOS launch tab, then merge if checks and proof remain green.
  2. Keep Control as home
    If Control remains the intended launch surface, leave the .control fallback and close or replace this PR with a narrower approved UX change.
  3. Fold into Control redesign
    Pause this PR and decide the default tab together with the adjacent Control-tab redesign so the iPhone UX has one owner-approved direction.

Next step before merge

  • [P2] The remaining blocker is maintainer/product approval for the iOS default-tab direction, not a mechanical code repair.

Security
Cleared: The diff is limited to Swift iOS tab-selection logic and adjacent tests; it does not touch secrets, dependencies, workflows, packaging, or code-download surfaces.

Review details

Best possible solution:

Have an iOS/product owner confirm Chat-first launch, or fold the default-tab decision into the adjacent Control redesign before merging.

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

Yes from source inspection: current main and v2026.6.11 return .control on ordinary iOS launch without --openclaw-initial-tab, while the PR changes that fallback to Chat. I did not run an iOS simulator in this read-only review, but the PR body reports after-fix simulator/runtime proof.

Is this the best way to solve the issue?

Yes technically, subject to product approval: RootTabs owns initial tab selection, and deriving destination-only launches through SidebarDestination.appTab avoids a second mapping. The unresolved question is whether Chat-first should replace Control-first as the iOS product default.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 21d1e1f0fc9d.

Label changes

Label justifications:

  • P3: This is a small iOS UX/default behavior change with limited blast radius and no reported crash, data loss, message loss, auth, or security failure.
  • merge-risk: 🚨 compatibility: The PR changes the first visible iOS tab for existing released/current users from Control to Chat on normal launch.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix XcodeBuildMCP simulator tests, build/run proof, and runtime output showing no-argument launch selected Chat with the expected tab order.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix XcodeBuildMCP simulator tests, build/run proof, and runtime output showing no-argument launch selected Chat with the expected tab order.
Evidence reviewed

PR surface:

Other +64. Total +64 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 80 16 +64
Total 3 80 16 +64

What I checked:

  • Root policy read and applied: Root AGENTS.md was read fully; its review policy treats config/default/fallback behavior changes as compatibility-sensitive and requires whole-surface PR review. (AGENTS.md:13, 21d1e1f0fc9d)
  • No scoped iOS AGENTS.md: No apps-scoped AGENTS.md was present, so only the root policy applied to apps/ios review.
  • Current main launches on Control: On current main, RootTabs.initialTab returns .control when --openclaw-initial-tab is absent, missing, or unknown. (apps/ios/Sources/RootTabs.swift:49, 21d1e1f0fc9d)
  • Current main orders Control first: Current main's iPhone TabView places RootTabsPhoneControlHub before ChatProTab, matching the existing Control-first surface. (apps/ios/Sources/RootTabs.swift:140, 21d1e1f0fc9d)
  • PR diff changes the default and tab order: The PR changes the fallback path to Chat, adds destination-derived fallback behavior, and moves Chat/Talk before Control in phoneTabContent. (apps/ios/Sources/RootTabs.swift:49, cad1d6040186)
  • Adjacent open product direction: The open Control redesign issue describes the Control tab as the default tab and asks for visual redesign without changing navigation targets, so the two iOS UX directions should be reconciled by maintainers.

Likely related people:

  • Solvely-Colin: Authored the merged iPad/iPhone control-surface PR that added RootTabsPhoneControlHub/RootTabsNavigation and authored recent adjacent RootTabs navigation work. (role: feature owner and recent area contributor; confidence: high; commits: bf89552e6783, 54b09580f61b; files: apps/ios/Sources/RootTabs.swift, apps/ios/Sources/RootTabsNavigation.swift, apps/ios/Sources/Design/RootTabsPhoneControlHub.swift)
  • joshavant: Has recent merged iOS RootTabs-adjacent work and the current main HEAD merge history includes recent app fixes in this area. (role: recent adjacent contributor; confidence: medium; commits: 8bddafba658c, 0bd2aa8ee057; files: apps/ios/Sources/RootTabs.swift, apps/ios/Tests/RootTabsSourceGuardTests.swift)
  • mbelinky: CONTRIBUTING.md lists this handle for the iOS app, making it a strong routing candidate for an iOS launch-default decision. (role: listed iOS app owner; confidence: high; files: CONTRIBUTING.md, apps/ios)
  • ngutman: CONTRIBUTING.md lists this handle for the iOS app and macOS app, making it a strong routing candidate for mobile app UX direction. (role: listed iOS app owner; confidence: high; files: CONTRIBUTING.md, apps/ios)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@Solvely-Colin
Solvely-Colin marked this pull request as ready for review July 1, 2026 03:10
Copilot AI review requested due to automatic review settings July 1, 2026 03:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the iOS app’s default launch behavior so a normal launch lands on the Chat tab, while still honoring explicit --openclaw-initial-tab overrides and deriving the initial tab from --openclaw-initial-destination when provided.

Changes:

  • Default initial tab fallback changed from Control to Chat.
  • Destination-only launches now derive the initial tab via SidebarDestination.appTab before falling back to Chat.
  • Added focused presentation tests covering default, destination-derived, and explicit-tab launch behavior.

Best-fix verdict: best (centralizes launch-tab derivation in one place and matches the existing SidebarDestination.appTab routing used elsewhere).
Alternatives considered: deriving the initial tab later in view lifecycle (more state churn / harder to keep consistent with sidebar destination), or hardcoding special-case destination mappings (duplicates SidebarDestination.appTab logic).
Code read: apps/ios/Sources/RootTabs.swift, apps/ios/Sources/RootTabsNavigation.swift, apps/ios/Tests/RootTabsPresentationTests.swift.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/ios/Sources/RootTabs.swift Switches the default launch tab to Chat and adds destination-derived fallback behavior.
apps/ios/Tests/RootTabsPresentationTests.swift Adds test coverage for the new default + override precedence rules.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Jul 1, 2026
}
}

private static func fallbackInitialTab(arguments: [String]) -> AppTab {
self.requestedInitialSidebarDestination(arguments: arguments)?.appTab ?? .chat

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Chat is now the owned default landing tab, can you also swap the iPhone tab order in phoneTabContent so ChatProTab appears before RootTabsPhoneControlHub? Keeping Control first in the bottom bar makes the default selection feel visually out of sync with the new Chat-first product direction.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scope creep! ;) yeah this is a good idea one sec. thanks for reviewing!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking Chat | Talk | Control | Agent | Settings

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking Chat | Talk | Control | Agent | Settings

Send it

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clanker is clanking please stand by

@BsnizND
BsnizND force-pushed the codex/ios-chat-first branch from 8ceda0a to cad1d60 Compare July 1, 2026 03:35
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jul 1, 2026
@Solvely-Colin
Solvely-Colin merged commit 63dc920 into openclaw:main Jul 1, 2026
60 of 62 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 1, 2026
chenyangjun-xy pushed a commit to chenyangjun-xy/openclaw that referenced this pull request Jul 1, 2026
Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Jul 8, 2026
Co-authored-by: BSnizND <[email protected]>
(cherry picked from commit 63dc920)
Rorqualx pushed a commit to Rorqualx/cortex that referenced this pull request Jul 15, 2026
Co-authored-by: BSnizND <[email protected]>
(cherry picked from commit 63dc920)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

4 participants