Repository navigation
feat(mobile): rename, delete, and create session groups on iOS and Android - #101234
Conversation
…S and Android Group section headers on the iOS Command Center sessions screen and the Android sessions screen gain Rename/New/Delete group actions. Bulk ops enumerate every member (active + archived, explicit high list limit since the gateway caps an absent limit at 100 rows) and patch category per session; delete keeps sessions and moves them to Ungrouped. Known custom groups persist client-side (iOS UserDefaults, Android SharedPreferences) so empty groups stay visible as move targets.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aec7555275
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if let firstError { | ||
| throw firstError |
There was a problem hiding this comment.
Keep refreshing after partial group patch failures
When a rename/delete reaches at least one member but any single patchSession call fails, this throw makes performMutation skip refreshSessions() and instead set loadErrorText, so the sessions screen can stay stale (or show the error row) even though the earlier member patches already changed server state. Since this bulk path is explicitly best-effort, refresh the list before surfacing the first member error so the UI reflects the successful patches.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 6, 2026, 8:08 PM ET / 00:08 UTC. Summary PR surface: Other +796. Total +796 across 13 files. Reproducibility: yes. source-reproducible for the review finding: on the PR head, iOS throws after a partial member-patch failure, while performMutation refreshes only on success. I did not run a simulator/device reproduction in this read-only review. Review metrics: 1 noteworthy metric.
Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land mobile parity only after iOS refreshes following partial fan-out failures and the contributor adds redacted simulator or device proof of the group menu/dialog flow; keep the no-new-gateway-RPC shape if maintainers accept the web-parity direction. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible for the review finding: on the PR head, iOS throws after a partial member-patch failure, while performMutation refreshes only on success. I did not run a simulator/device reproduction in this read-only review. Is this the best way to solve the issue? No, not as submitted: the owner boundary is reasonable and mirrors the merged web implementation without a gateway protocol change, but iOS needs to refresh after partial best-effort failures and the PR needs real mobile behavior proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2b3a985b116e. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Other +796. Total +796 across 13 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
|
|
Merged via squash.
|
…droid (openclaw#101234) * feat(mobile): rename, delete, and create sidebar session groups on iOS and Android Group section headers on the iOS Command Center sessions screen and the Android sessions screen gain Rename/New/Delete group actions. Bulk ops enumerate every member (active + archived, explicit high list limit since the gateway caps an absent limit at 100 rows) and patch category per session; delete keeps sessions and moves them to Ungrouped. Known custom groups persist client-side (iOS UserDefaults, Android SharedPreferences) so empty groups stay visible as move targets. * chore(i18n): refresh native string inventory after rebase onto main
Closes #101231
Related: #101117
What Problem This Solves
iOS and Android gained session grouping in #100814, but groups there are write-once: no rename, no delete, and a group only exists while a session carries its category. The web sidebar got full group management in #101117; mobile users were left re-assigning member sessions one by one to reorganize.
Why This Change Was Made
Both platforms mirror the web semantics. Category section headers gain group actions — a context menu on the iOS Command Center sessions screen ("Rename Group…", "New Group…", "Delete Group…") and a long-press menu on the Android sessions screen. Rename and delete enumerate every member with two
sessions.listcalls (active + archived) using an explicit high limit (the gateway caps an absentlimitat 100 rows — the same cap the web implementation had to page past), then patchcategoryper member best-effort so one failure cannot strand the rest; archived members are included so restores land in the renamed group. Delete keeps sessions and moves them back to Ungrouped. Known custom group names persist client-side (iOSUserDefaultskeyopenclaw:sessions:custom-groups, matching the web localStorage key; Android SharedPreferencessessions.customGroups), so header-created empty groups render as sections and stay usable as move targets. iOS bulk-op enumeration/merge lives in pureCommandSessionGrouping.members; Android's lives inChatController, keeping the controller gateway-only.Non-goals: no group-by on/off toggle on mobile (the mobile screens keep their existing filter/sort controls), and no gateway/protocol changes.
User Impact
Mobile session groups become maintainable in place: rename a group once instead of per session, delete a group without losing its sessions, and create an empty group before filling it. Group names created or renamed on any platform are the same server-side
categoryvalues, so web and mobile stay consistent.Evidence
pnpm android:test(:app:testPlayDebugUnitTest) green locally including new tests — known-groups empty-section merge andChatControllerbulk-op tests asserting per-member patch payloads (archived-only member included),category:nullon delete, best-effort continuation past a failing patch, and the explicitlimit:10000enumeration.pnpm android:lint(ktlint) green.pnpm ios:buildgreen (full app typecheck). Focused simulator tests green forCommandSessionGroupingTests(known-groups sections, member merge/dedupe) andSessionGroupStoreTests(normalize/rename/remove/UserDefaults round-trip). The unrelatedOpenClawTypographyTestsfailure reproduces on currentmain(offenders introduced by feat(ios): record and send voice notes from the chat composer #100946/feat(ios): tap-to-expand link previews in chat transcript #101198 inapps/sharedchat files this PR does not touch) and is tracked separately.pnpm native:i18n:checkclean after inventory sync (strings follow the existing plain-literal style of these surfaces).