Repository navigation
fix(ios): refine Chat Actions and header controls - #132045
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
2fe3578 to
86e904e
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 9:38 PM ET / August 29, 2026, 01:38 UTC. ClawSweeper reviewWhat this changesThe branch replaces the iOS Chat Actions menu and header styling, adds model-provider presentation, and makes fixture-backed new-session creation accept the selected agent. Merge readinessKeep this maintainer-authored PR open for explicit iOS scope approval. The repaired fixture route now supplies and validates agent choices, and no introduced correctness defect was established; however, the reviewed snapshot has no independently visible owner decision approving removal of the former Chat Actions routes, and current main could not be read locally. Priority: P2 Review scores
Verification
How this fits togetherThe iOS chat header opens actions backed by the shared chat view model, which calls either the Gateway transport or a local fixture transport. The changed menu updates session/model choices and feeds the resulting session state back into the visible chat screen. flowchart LR
A[iOS chat header] --> B[Chat Actions popover]
B --> C[Shared chat view model]
C --> D{Active transport}
D --> E[Gateway session API]
D --> F[Local fixture sessions]
E --> G[Updated chat state]
F --> G
G --> B
Decision needed
Why: The source establishes alternate routes and a coherent fixture repair, but the supplied discussion snapshot does not independently record an owner decision that the changed navigation is the intended product experience. Before merge
Agent review detailsSecurityNone. PR surfaceDocs 0, Other +886. Total +886 across 32 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land only after the iOS owner explicitly accepts the consolidated navigation and bundled provider-mark provenance, retaining the fixture contract repair and its focused coverage. Do we have a high-confidence way to reproduce the issue? Not applicable as a defect report: this is a UI/product PR. The fixture path is source-testable and covered by focused tests, while the linked simulator screenshots could not be retrieved in this environment. Is this the best way to solve the issue? Unclear: the fixture repair follows the shared new-session contract, but only an iOS owner can determine whether removing the direct action routes is the best product outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against bd9eeaebf083. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
9371527 to
2371540
Compare
2371540 to
a349ee2
Compare
a349ee2 to
15a757b
Compare
15a757b to
42dbd1e
Compare
|
@clawsweeper re-review The P1 fixture-contract finding is repaired at |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer decision for the current head: accept the consolidated iOS routes as the intended experience. |
|
Landing drift check: canonical |
|
Merged via squash.
|
What problem this solves
On iPhone, Chat Actions mixed unrelated alignment, casing, model-selection, and session-control patterns. Provider models were ungrouped, the configured default could appear unresolved, selected models used a leading check, compact controls did not fit the menu cleanly, and the two header glyphs carried redundant grey outer circles.
What changed
The direct
New Chatand sessionDashboardmenu entries remain intentionally retired by the accepted product scope.New session options…is the creation surface and is now exercised through enabled Create and a session switch.Upstream
d325929cbf8subsequently replaced the earlier sidebar implementation. This PR keeps that newer canonical selector and validates its complete three-agent inventory, selection behavior, navigation, and gateway/settings footer instead of restoring the superseded sidebar patch.Root cause and review resolution
The native Chat header and menu had accumulated presentation policy across a stock
Menu, per-row labels, and separate session/model controls. That made alignment, provider identity, inherited values, selection state, and hit targets inconsistent. The patch moves the presentation contract into the native Chat Actions owner while leaving gateway model/session state in the shared view model.ClawSweeper also found that the retained new-session sheet required a catalog and agent-aware creation, while the local fixture transport inherited protocol defaults that supplied neither. Adding only
listAgents()would still fail because advanced creation rejected any selected agent. The repair therefore implements the full contract atLocalFixtureChatTransport, makes the default agent an explicit fixture fact, deletes the redundant Apple Review forwarding wrapper, and covers both fixtures plus negative controls and the enabled Create UI flow.All actionable rank-up moves from the review at
a349ee287dac06967fa91f8f6dd5188f6fca543eare addressed. Restoring the removed direct actions is skipped because it would reopen accepted product scope and mask the fixture-owner defect.The dirty source snapshot was frozen before isolation and applied once to a clean worktree. Frozen patch SHA-256:
b384e8dd9befe6a096deaba65fcce97860b1961d5486a24f64f7f3905bc05089.Evidence
Both sides use the same synthetic fixture, framing, named simulator, and observation point:
openai/gpt-5.6-sol, OpenAI and Anthropic models, inherited Thinking/Fast/Tool details, and Molty/Research/Automation agents.OpenClaw iOS Menu Proof 20260828, iPhone 17 Pro Max, iOS 27.0 (24A5423a), UDID19108FCD-E835-4126-8632-86EFF3D4804A.a82235132964e61fbe8e694aa11707e2d2eb0fad.b48872124be8f6caa88511bb3ae2be83c41eaf19.42dbd1e9e9c71abb159a0d3390986f154868ea76.Before: affected base
a82235132964e61fbe8e694aa11707e2d2eb0fadHeader controls with grey outer chrome:
Chat Actions before the refinement:
The base app embedded the complete affected-base SHA and passed code-sign verification. Its executable SHA-256 was
15434aab747ff231e4339bf686582442530e2532a2a19d30551f168c74613be2. The red harness captured both screenshots and failed on the unmodified sidebar control's30.01-point height versus the 44-point contract.Screenshot SHA-256:
169eec5468813d7965170cb71b7548bd7869115ac5e4afe4da38ccefb03e3a78622d3d07a1a53f0d433b751bae9032f277915876a5f3d6ef63fc7ebd311a7808After: proposed head
42dbd1e9e9c71abb159a0d3390986f154868ea76Background-free 44×44-point header controls with unchanged avatar/status styling:
Provider branding, drawers, resolved default, and trailing model check:
Four-notch Thinking control, Fast mode, reset affordances, and Tool details:
Screenshot SHA-256:
c63fc11591356f3b06becdae7525cc8d98e0317f653163c0a19610727d92cd192fa2f2d054fa907c2e02f594c456e17f400f446163f43a4a3aa3fd5447c057e8fec38275b1280ecc2db6bb3f11cb925d5e8e9dd602942372879e8d249cd8af97The screenshots were captured on
15a757b7d860fb5d3aaa95164ee158a08bc1e5bf; every later rebase changed only the upstream parent. A path comparison proves the complete authored iOS/shared/localization tree at proposed head42dbd1e9e9c71abb159a0d3390986f154868ea76is byte-identical. No intervening canonical commit touches those paths or any fixture, build, or proof assumption.The passing run exercised both provider drawers, non-default selection, restoration of the configured default, all four Thinking stops, Fast mode on/reset, Tool details, persistence after reopen, action order/case, the sidebar inventory, both header actions, and every relevant 44-point target. It also selected Research in New session options, verified Create enabled, created/switched the session, and verified the sheet dismissed.
The exact pre-final-parent simulator build at
c4427bf92559530e9334844b60618ce00dfc2169embeds its full SHA, version2026.8.1build84259, and passes ad-hoc code-sign verification. Its authored iOS tree is byte-identical to proposed head. Hostedios-buildsupplies exact-public-head build proof. The available wildcard physical-device profile cannot sign this app's App Groups, HealthKit, and Push entitlements; an earlier physical-iPhone check of the frozen UI confirmed both background-free header controls still open their expected UI and preserve avatar/status styling.Validation
ChatModelMenuPresentationTests,LocalFixtureChatTransportTests,OpenClawTypographyTests, andRootTabsSidebarRegressionTests.PATH="$PWD/.build/swift-tools:$PATH" ./scripts/format-swift.sh ios: 0/366 files require formatting.pnpm native:i18n:baseline: 4,311 entries, unchanged.15a757b7d860fb5d3aaa95164ee158a08bc1e5bf; proposed head has the byte-identical affected tree. One simulator-busy launch was retried before testing and passed.Unrelated local setup observations: the globally installed SwiftLint
0.65.1did not match the repository-pinned0.65.0; rerunning with.build/swift-toolspassed.native:i18n:checkreports pending locale translations, while the required source baseline is clean and the repository leaves translated/generated locale refresh to automation.Change metrics
+818/-460(net+358).+449/-79(net+370).+185/-27(net+158).+1/-1.The corrective review delta is production
-60with tests+56. The remaining positive production delta establishes one coherent native popover and provider presentation while deleting the obsolete Dashboard screen, unused transport surface, and the redundant Apple Review wrapper.Dependency contract check
Codex model configuration/runtime and event contracts were inspected directly at openai_models.rs, session/mod.rs, and protocol.rs.