Skip to content

fix(ios): page session rosters and restore approval guidance - #112004

Merged
steipete merged 3 commits into
mainfrom
claude/ios-sidebar-followups
Aug 26, 2026
Merged

steipete merged 3 commits into
mainfrom
claude/ios-sidebar-followups

Conversation

@steipete

@steipete steipete commented Jul 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

iOS could not load large session rosters and approval-remediation navigation could dead-end. The old branch also risked mixing Gateways and discarding successfully fetched pages.

Repair

Bind every paginated request to the exact physical authenticated Gateway route, load all pages without an arbitrary cap, preserve partial results safely, expose incomplete counts honestly, and restore direct approvals navigation.

Verification

Real iPhone 17 / iOS 27 Simulator: three failures reproduced before repair; 90 Swift and SwiftUI behavior tests passed afterward. Independent review passed.

@steipete
steipete marked this pull request as ready for review July 21, 2026 01:44
@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 21, 2026
@steipete steipete self-assigned this Jul 21, 2026
@clawsweeper

clawsweeper Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 26, 2026, 1:17 AM ET / 05:17 UTC.

ClawSweeper review

What this changes

The PR pages iOS session rosters, labels incomplete dashboard totals, and restores approval-guidance navigation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the prior P2 remains on the current head. The shared loader now paginates Command Center’s explicitly 200-row recent-session requests, expanding them to up to 50 Gateway calls and 10,000 rows; likely related person: steipete (high confidence).

Priority: P2
Reviewed head: 0836dd84edbf3b099c2f3dd82a5573ed65b8bf71

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The branch has focused collector coverage, but the unresolved shared-caller regression blocks a higher rating.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the stated simulator run is supplemental evidence.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the stated simulator run is supplemental evidence.
Evidence reviewed 7 items Current main behavior: Current main makes one transport list request at the caller-provided limit; it has no page collector or completion metadata.
Unconditional pagination: Every remote roster request enters the collector, which forwards the caller limit with successive offsets on the pinned Gateway route.
Bounded but expanded request path: The collector permits 50 pages and 10,000 sessions, so a paginated response expands a nominally bounded caller.
Findings 1 actionable finding [P2] Keep Command Center roster refresh single-page
Security None None.

Live Verification

Command: xcodebuild -project apps/ios/OpenClaw.xcodeproj -scheme OpenClaw -configuration Debug -destination "platform=iOS Simulator,name=iPhone 17" -only-testing:OpenClawTests/RootTabsPresentationTests test

Result: FAIL (failed) — execution before step 1 run: terminal command failed with exit status 127: "xcodebuild -project apps/ios/OpenClaw.xcodeproj -scheme OpenClaw -configuration Debug -destination \"platform=iOS Simulator,name=iPhone 17\" -only-testing:OpenClawTests/RootTabsPresentationTests test"

terminal command failed with exit status 127: "xcodebuild -project apps/ios/OpenClaw.xcodeproj -scheme OpenClaw -configuration Debug -destination \"platform=iOS Simulator,name=iPhone 17\" -only-testing:OpenClawTests/RootTabsPresentationTests test"

Captured output:
‹private command›: line 1: xcodebuild: command not found


















































Assertions:

  • FAIL expect_output: TEST SUCCEEDED

How this fits together

The iOS client loads session rows from the authenticated Gateway for both the sidebar and Command Center. Those rows drive session lists, dashboard counts, token summaries, and recovery navigation.

flowchart LR
  A[Authenticated Gateway] --> B[Session list request]
  B --> C[Shared roster collector]
  C --> D[Sidebar roster]
  C --> E[Command Center recent sessions]
  C --> F[Dashboard counts and tokens]
  G[Approval guidance] --> H[Notifications recovery route]
Loading

Before merge

  • Keep Command Center roster refresh single-page (P2) - The shared collector now follows hasMore for every remote caller, but Command Center still passes its explicitly recent 200-row limit at both call sites. A large roster therefore turns a normal dashboard or archived-session refresh into up to 50 sequential requests and 10,000 rows. Make full pagination an explicit sidebar-only mode and cover the two capped callers.
  • Resolve merge risk (P1) - Merging makes Command Center’s 200-row recent and archived session refreshes perform up to 50 sequential Gateway requests and process up to 10,000 rows when hasMore is true.
  • Resolve merge risk (P1) - The bug-fix branch adds production +167/-18 lines; the added route-pinning and incomplete-result behavior may justify the growth, but the paging policy should be absorbed as an explicit owner-level mode rather than silently applied to all callers.
  • Complete next step (P2) - The concrete blocker is on a protected maintainer PR and should be resolved on this branch before merge.

Findings

  • [P2] Keep Command Center roster refresh single-page — apps/ios/Sources/RootSidebarModel.swift:120-130
Agent review details

Security

None.

PR surface

Other +290. Total +290 across 7 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 7 309 19 +290
Total 7 309 19 +290

Review metrics

Metric Value Why it matters
Production versus test delta production +167/-18, tests +140/-1, generated i18n +2/-0 The shared paging owner adds substantial behavior while focused tests cover collector failure modes but not the two capped callers.

Merge-risk options

Maintainer options:

  1. Separate sidebar paging from recent-session refresh (recommended)
    Make full collection opt-in for the sidebar while keeping Command Center’s two recent-session callers on one bounded Gateway page.

Technical review

Best possible solution:

Make full roster collection an explicit sidebar-owned mode, retain Command Center’s one-page 200-row behavior, and add caller-level regression coverage for both Command Center paths.

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

Yes: source proves that a Gateway response with hasMore=true causes the two Command Center 200-row callers to continue paging through the shared collector.

Is this the best way to solve the issue?

No: full pagination is appropriate only where the sidebar needs a complete roster; applying it implicitly to Command Center’s recent-session paths defeats their declared bound.

Full review comments:

  • [P2] Keep Command Center roster refresh single-page — apps/ios/Sources/RootSidebarModel.swift:120-130
    The shared collector now follows hasMore for every remote caller, but Command Center still passes its explicitly recent 200-row limit at both call sites. A large roster therefore turns a normal dashboard or archived-session refresh into up to 50 sequential requests and 10,000 rows. Make full pagination an explicit sidebar-only mode and cover the two capped callers.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: The regression expands a normal iOS dashboard refresh from its documented 200-row scope to a bounded but potentially large sequential scan.
  • merge-risk: 🚨 availability: A paginated Gateway response can cause each Command Center refresh to issue up to 50 sequential requests.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; the stated simulator run is supplemental evidence.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the current collector and bounded-pagination commit; earlier ownership is unavailable in the shallow local history. (role: current-head area author; confidence: high; commits: 0836dd84edbf; files: apps/ios/Sources/RootSidebarModel.swift, apps/ios/Sources/Design/CommandCenterTab.swift)

Rank-up moves

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

  • Make full paging explicit and preserve one-page Command Center refreshes.
  • Add a regression that verifies both Command Center callers stop after the first hasMore response.

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 (15 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-16T17:57:13.743Z sha 3a8a972 :: found issues before merge. :: [P1] Preserve page one when a transport cannot page
  • reviewed 2026-08-17T10:14:05.640Z sha 3a8a972 :: needs changes before merge. :: [P1] Preserve page one when offset paging is unsupported
  • reviewed 2026-08-18T23:29:32.328Z sha 3a8a972 :: found issues before merge. :: [P1] Preserve page one when offset paging is unsupported
  • reviewed 2026-08-22T14:26:00.726Z sha 3a8a972 :: found issues before merge. :: [P1] Retain page one when offset paging is unsupported
  • reviewed 2026-08-25T22:35:36.732Z sha c469cbb :: needs changes before merge. :: [P2] Bound unstable session-roster pagination
  • reviewed 2026-08-26T02:05:57.040Z sha f22cf6d :: needs changes before merge. :: [P2] Keep non-sidebar roster callers single-page
  • reviewed 2026-08-26T03:15:34.368Z sha b6bc90d0d9295f998cc17bc1f4f21ae03582107c :: found issues before merge. :: [P2] Keep Command Center roster refresh single-page
  • reviewed 2026-08-26T03:35:08.307Z sha c563b5f7b60c8d962a294feed489ac5a2fcbba62 :: needs changes before merge. :: [P2] Keep Command Center roster refresh single-page

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 30, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper-recovery-stuck and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 9, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper-recovery-stuck rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 16, 2026
@steipete
steipete force-pushed the claude/ios-sidebar-followups branch from 3a8a972 to 7ce07c6 Compare August 25, 2026 21:26
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Aug 25, 2026
@steipete steipete changed the title feat(sidebar): Recent naming parity, iOS roster pagination, approvals remediation routing fix(ios): page session rosters and restore approval guidance Aug 25, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 25, 2026
@steipete
steipete force-pushed the claude/ios-sidebar-followups branch 2 times, most recently from b6bc90d to c563b5f Compare August 26, 2026 03:29
@steipete
steipete force-pushed the claude/ios-sidebar-followups branch from c563b5f to 0836dd8 Compare August 26, 2026 05:10
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready exact head 0836dd8: iOS session rosters truncated large result sets and approval navigation could fail; unbounded advancing pagination could also loop forever. Use canonical bounded paginated session collection, preserve partial results and ownership, and repair iOS approval navigation without exhausting the UI. Large real session rosters load completely up to the shared 50-page and 10000-row safety contract, while approval navigation remains correct and endless pagination stops. 389 actual iOS Simulator tests pass; exact full hosted iOS build, real iPhone and iPad screenshots, screenshot evidence, native localization, artifact build and required CI gate all pass; independent fresh full-branch P1 review is clean.

@steipete
steipete merged commit 160e2ba into main Aug 26, 2026
108 checks passed
@steipete
steipete deleted the claude/ios-sidebar-followups branch August 26, 2026 06:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant