Skip to content

fix(ios): restore approval settings navigation and remove duplicate shell state - #130651

Merged
steipete merged 2 commits into
mainfrom
codex/architecture-cleanup-ios-shell
Aug 27, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/architecture-cleanup-ios-shell

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where opening Notifications from Overview → Approvals produced a blank warning screen, while the same destination worked through Settings. The iOS app also retained obsolete standalone navigation and session-roster paths even though the root sidebar already owned those responsibilities.

Related: #112004.

Why This Change Was Made

Settings registered its typed navigation destinations only in the list branch, leaving the direct Approvals entry outside that registration. The existing destination registration now belongs to common Settings content, preserving the same root-owned path and approval-prompt suppression.

The cleanup removes unused leaf navigation stacks, standalone modes, local roster loading/state and the composite Agents home path. RootTabs and RootSidebar remain the canonical navigation/session owners. This does not introduce another coordinator, change stored state, alter approval authorization, or add public configuration.

Production LOC: +114/-709, net -595. Existing native tests: +152/-180, net -28; new isolated Gateway fixture: +262 test-support lines; retired tooling assertions: -8; total tests/support +226. Tooling: -9; generated localization inventory: -6; changelog: +1.

User Impact

Notifications opens correctly from both approval entry points, Back returns to the original Approvals screen, and the root continues to own session and navigation state. Reviewing an approval still suppresses the duplicate prompt while navigating into Notifications. No real command is approved or executed by the proof fixture.

Evidence

Current candidate: cc378b8e8654c8a6e692be86aee757a77ca29d54, based on 2ab77cdbeb0d8c262700941cc0e3282e8fd3b7d9. A changelog-only conflict was resolved without changing any of the 15 app/test/fixture files from the independently reviewed original candidate 69130159295ba439f7a2bc3bb61a0c977fe54dc4. The final commit only repairs four inventory/tooling files exposed by hosted CI; the app, native tests and Gateway fixture remain byte-identical to the executed 59785aa build.

The before-image is the untouched baseline 86e208310ff2f7a66e4f0c5968e74b319234f6aa; the after-image is the executed candidate 59785aa007d6e7170f2c674c252b20a2a0d17dc4, whose app/native-test/fixture files are unchanged in the current head. They show the actual isolated iPhone Simulator UI, not a mock screenshot.

Before: direct approval route After: Notifications renders
Baseline opens a blank warning screen Rebased candidate opens Notifications with the native switch and Back navigation
  • Untouched baseline: direct Overview approval route reproduced the blank screen; Settings-origin route passed. The corrected candidate passed six initial phone cases plus two strengthened real-UI cases covering a visible approval prompt, Review, Notifications, suppression and Back. A task-owned loopback Gateway supplied synthetic state.
  • 411 native owner/render/navigation/typography tests passed, zero failures or skips, across 11 suites. This execution used the original baseline-based candidate, not the subsequently rebased whole app. Four root/sidebar iPad screens were also compared before/after with full native captures.
  • A typography test initially failed because /tmp and /private/tmp spellings broke its existing exact-path allowlist. The test now canonicalizes both path operands; the original assertions, allowlist and negative control remain intact. The failed 410/411 result is preserved separately from the passing rerun.
  • Changed-file checks and fresh full-bundle P1 review passed. The refreshed branch also passed a new isolated P1 review; independent review verified the exact source/test/fixture bindings.
  • Exact rebased-app integration at 59785aa: both strengthened phone flows passed, zero failures/skips, in 97.874 seconds. The built app reports that full commit. Real connection traces cover the current split-role Gateway handshake and the optional preference request returning an explicit unsupported-method response before normal agent/approval hydration. Both entry paths exercise visible prompt → Review → Notifications without the duplicate overlay → Back. Independent source and native-evidence review passed.
  • Hosted CI found three cleanup omissions: the native translation inventory and source assertions still named deleted UI helpers, and the manual Gateway fixture needed its executable entrypoint registered. The canonical inventory generator removed six dead-only strings without changing retained IDs; only retired-helper assertions were deleted, and the fixture is an analyzed entrypoint, not ignored. Native localization verification, 45 focused tooling tests, both Knip scans and fresh full-patch P1 review passed. The hosted iOS build at 59785aa passed. Local full TypeScript checks encounter a stale linked UI dependency; the new clean-install CI run is the authoritative type gate.

Landed: e907f412ca8cc9f05a7ac2412956b8eaf6a63d5d. Exact-head CI passed, including Debug/Release builds, lifecycle and Watch simulator tests, and both iPhone/iPad screenshot jobs. Native preparation/merge completed and fresh merged-state/main-ancestry checks passed. The earlier 411-test and iPad results retain their original source bindings. The failed first CI run remains recorded separately from the successful repaired run.

Proof limits: supported Xcode iOS Simulator signing on disposable task devices, not physical-device or APNs delivery proof. The fixture uses synthetic approvals and does not execute commands. Bootstrap credential handoff, reconnect recovery, preference-change events and tool-activity rendering are not claimed by these two flows. All owned simulators and Gateway processes were stopped after the current-head run.

Named follow-ups remain separate: session-roster/cache completeness and silent Overview mutation-RPC failures need their own reproductions and owner decisions; this PR does not claim to repair them.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete steipete self-assigned this Aug 27, 2026
@steipete
steipete marked this pull request as ready for review August 27, 2026 03:31
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 26, 2026, 11:37 PM ET / August 27, 2026, 03:37 UTC.

ClawSweeper review

What this changes

This PR moves iOS Settings destination registration into shared content, removes duplicate nested shell state, and adds simulator coverage for Approvals-to-Notifications navigation.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for maintainer handling: current main still registers Settings destinations only on the list branch, while this PR makes the root-owned navigation path available to direct Approvals routes. No blocking code defect was found, but the PR itself records that its two strengthened iPhone cases still need an exact-head rerun after the rebase.

Priority: P2
Reviewed head: 59785aa007d6e7170f2c674c252b20a2a0d17dc4

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The ownership correction is source-supported and focused, but exact-head native behavior and required merge gates remain to be demonstrated.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.
Evidence reviewed 6 items Current-main gap: Current main selects a direct Settings destination before reaching the list whose navigation destination registration is attached, leaving the direct Approvals route without that registration.
Candidate repair: The PR registers SettingsRoute destinations on shared Settings content, so both direct and list routes participate in RootTabs' navigation stack.
Root-owned caller and callee: RootTabs opens Approvals from Overview, pushes Settings routes on its sole sidebar path, and retains matching approval-prompt suppression for Notifications.
Findings 1 actionable finding [P3] Remove the release-owned changelog entry
Security None None.

Live Verification

Command: node scripts/test-ios-shell-gateway.mjs

Result: FAIL (failed) — step 1 run node scripts/test-ios-shell-gateway.mjs & pid=$!; sleep 1; kill "$pid"; wait "$pid" || true: previous terminal command was still running after 30 seconds: "node scripts/test-ios-shell-gateway.mjs"

Synthetic Gateway listening on loopback:19876

Assertions:

  • FAIL expect_output: Synthetic Gateway listening on loopback:19876

How this fits together

The iOS root shell owns sidebar selection and the navigation stack, while Settings renders the selected route. An approval action can ask that root shell to push Notifications while preserving the approval prompt-suppression state and Back path.

flowchart LR
  A[Overview approval] --> B[Root navigation shell]
  B --> C[Approvals route]
  C --> D[Settings destination registration]
  D --> E[Notifications screen]
  B --> F[Prompt suppression state]
  E --> G[Back to approvals]
Loading

Before merge

  • Remove the release-owned changelog entry (P3) - Normal PRs must keep release-note context in the PR body or squash message rather than edit the release-owned changelog. Remove this entry to avoid conflicting with release generation.
  • Resolve merge risk (P1) - The exact rebased head has not yet rerun the two native approval-to-Notifications paths; merging first could leave an iOS navigation dead-end despite the earlier frozen-baseline proof.
  • Complete next step (P2) - A protected maintainer PR needs its stated exact-head native rerun and required merge gates; the only code change requested by review is the routine release-owned changelog removal.

Findings

  • [P3] Remove the release-owned changelog entry — CHANGELOG.md:76
Agent review details

Security

None.

PR surface

Docs +1, Other -361. Total -360 across 16 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 15 528 889 -361
Total 16 529 889 -360

Review metrics

Metric Value Why it matters
Production versus test delta production -595; existing tests -28; test support +262 The shell cleanup is materially net-negative in production while adding a focused loopback-Gateway UI proof fixture.

Merge-risk options

Maintainer options:

  1. Re-run the exact-head iOS routes (recommended)
    Run the two approval-origin simulator cases against the rebased app and require the native merge gates before landing.

Technical review

Best possible solution:

Keep the single RootTabs navigation owner, remove the release-owned changelog edit, and merge only after the exact-head simulator paths and required native gates pass.

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

Yes, at source level: current main's direct-route branch bypasses the only SettingsRoute destination registration, and the added UI cases exercise both direct origins. The supplied native baseline proof is positive, but this reviewer did not receive an exact-head rerun artifact.

Is this the best way to solve the issue?

Yes, with one release-process correction: shared Settings-content registration is the narrow canonical repair because RootTabs already owns the path; restoring a nested Settings stack would recreate duplicate navigation ownership.

Full review comments:

  • [P3] Remove the release-owned changelog entry — CHANGELOG.md:76
    Normal PRs must keep release-note context in the PR body or squash message rather than edit the release-owned changelog. Remove this entry to avoid conflicting with release generation.
    Confidence: 0.99

Overall correctness: patch is correct
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0924fd9a0c40.

Labels

Label changes:

  • add P2: This repairs a user-visible iOS navigation failure with limited surface area.
  • add merge-risk: 🚨 availability: The pending exact-head native rerun is needed to show that the repaired route remains reachable after shared connection changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.

Label justifications:

  • P2: This repairs a user-visible iOS navigation failure with limited surface area.
  • merge-risk: 🚨 availability: The pending exact-head native rerun is needed to show that the repaired route remains reachable after shared connection changes.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Not applicable to this MEMBER PR; prior native screenshots are supplied, while the PR correctly records that the exact-head two-route simulator rerun remains pending.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the related merged iOS approval-navigation repair and the current root-navigation cleanup. (role: prior merged repair author and recent iOS navigation contributor; confidence: high; commits: 160e2baf495b, 59785aa007d6; files: apps/ios/Sources/Design/SettingsProTab.swift, apps/ios/Sources/RootTabs.swift)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Remove the release-owned CHANGELOG.md entry.
  • Attach the exact-head result for both approval origins, with redacted simulator output or screenshots.
  • Wait for the required native checks to complete successfully.

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.

@steipete

Copy link
Copy Markdown
Contributor Author

The requested native integration refresh is complete: both strengthened approval-origin flows passed on the rebased app (59785aa007d6e7170f2c674c252b20a2a0d17dc4), 2/2 with zero failures/skips in 97.874s. They exercise the initial approval dialog, Review, Notifications without the active overlay, its native switch, and Back. The PR now includes the actual before/after screenshots. All app, native-test and fixture bytes are unchanged in current head cc378b8e8654c8a6e692be86aee757a77ca29d54; the later four-file repair only updates canonical i18n inventory, registers the manual fixture as an analyzed Knip entrypoint, and removes checks for deleted helpers.

The three previously failing bookkeeping jobs now pass on the current CI run. Its native iOS build is still running; landing will wait for the full required result. Fresh complete-patch P1 and independent exact-commit review are clean.

Rank-up disposition: the one-line changelog entry is deliberately retained under the maintainer's explicit instruction to include user-visible fixes when landing. The native proof request is fulfilled; the remaining native CI gate is being watched. The bot's separate fixture-start harness timeout remains a failed harness attempt, not a native UI result. Our isolated simulator proof includes actual navigation, Gateway traces and fixture shutdown, not merely a listening banner.

Scope remains precise: the earlier 411 tests and full iPad before/after comparison ran on the original baseline-based candidate; the two phone flows are the rebased-app integration refresh. No physical-device, APNs or real command-execution proof is claimed.

@steipete
steipete merged commit e907f41 into main Aug 27, 2026
122 checks passed
@steipete
steipete deleted the codex/architecture-cleanup-ios-shell branch August 27, 2026 04:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 27, 2026
…-retirement-v13

* origin/main: (243 commits)
  fix: preserve Gateway error reasons in text logs (#130645)
  refactor(video): deduplicate generation contracts (#130635)
  fix(agents): preserve direct-message sender identity (#124548)
  fix(agents): preserve silent reply after settled tools (#130675)
  fix(talk): preserve replacement speech when an old utterance is canceled (#130687)
  fix(browser): preserve literal names and formatter-owned snapshot refs (#130599)
  fix(auth): reset only the profile replaced by a successful login (#124014)
  fix: bind session creation to admitted Gateway (#130686)
  refactor(qa-lab): reuse model reference splitter (#130317)
  docs(gateway): clarify independent HTTP endpoint switches (#130690)
  fix(ui): Control UI smooth scrolling ignores the reduced-motion preference (#130428)
  refactor(lmstudio): remove unreachable catalog merge (#130689)
  fix(crabbox): restore cloud machine CPU and RAM (#130684)
  fix(secrets): compare proxy bearer tokens directly (#127054)
  fix(matrix): show recovery key availability in text status (#128051)
  fix(ios): restore approval settings navigation and remove duplicate shell state (#130651)
  refactor(agents): use fixed tool-loop defaults directly (#130681)
  refactor(qa-lab): share process tree metric reader (#130419)
  refactor(models): simplify prepared owner access (#130683)
  fix(parallels): main install and update smoke cannot complete (#130658)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…hell state (openclaw#130651)

* fix(ios): unify root navigation and restore approval settings routes

* fix(ios): align shell cleanup inventories and test entrypoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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