Repository navigation
fix(ios): open app on Chat by default - #98353
Conversation
|
Codex review: needs maintainer review before merge. Reviewed June 30, 2026, 11:45 PM ET / 03:45 UTC. Summary 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.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest 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 changesLabel justifications:
Evidence reviewedPR surface: Other +64. Total +64 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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
|
There was a problem hiding this comment.
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.appTabbefore 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. |
| } | ||
| } | ||
|
|
||
| private static func fallbackInitialTab(arguments: [String]) -> AppTab { | ||
| self.requestedInitialSidebarDestination(arguments: arguments)?.appTab ?? .chat |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Scope creep! ;) yeah this is a good idea one sec. thanks for reviewing!
There was a problem hiding this comment.
Thinking Chat | Talk | Control | Agent | Settings
There was a problem hiding this comment.
Thinking Chat | Talk | Control | Agent | Settings
Send it
There was a problem hiding this comment.
Clanker is clanking please stand by
8ceda0a to
cad1d60
Compare
Co-authored-by: BSnizND <[email protected]>
Co-authored-by: BSnizND <[email protected]>
Co-authored-by: BSnizND <[email protected]> (cherry picked from commit 63dc920)
Co-authored-by: BSnizND <[email protected]> (cherry picked from commit 63dc920)
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.swiftgit diff --checktest_simonOpenClawscheme with-only-testing:OpenClawTests/RootTabsPresentationTestsand-only-testing:OpenClawTests/RootTabsSourceGuardTests: 77 passed, 0 failedbuild_run_simon iPhone 17 Pro simulator: build and launch succeededChat|1,Talk|0,Control|0,Agent|0,Settings|0codex review --base origin/mainfound a destination-only launch regression; this PR now covers that case by deriving the initial tab from--openclaw-initial-destinationbefore falling back to Chat.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main: clean, no accepted/actionable findingsAI Assistance
AI-assisted with Codex. I reviewed the changed code and validation output before opening this PR.