Repository navigation
feat(android): group sidebar sessions - #128092
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 10:08 AM ET / 14:08 UTC. ClawSweeper reviewWhat this changesThe PR groups Android navigation-drawer sessions into pinned, custom, and ungrouped sections and adds Show more/Show less beyond the compact eight-session view. Merge readinessThis remains a useful, coherent feature PR: it reuses the Android Threads grouping policy and has strong physical-device proof. Keep it open for maintainer product confirmation and final current-main merge validation. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe Android navigation drawer receives active sessions from the app view model and lets users switch chats. This change converts its recent-session list into grouped visible rows while preserving selection, search, and archived-session filtering. flowchart LR
A[Active session store] --> B[Sidebar session filtering]
B --> C[Grouped session presentation]
C --> D{Compact or expanded}
D --> E[Android navigation drawer]
E --> F[Select active session]
Decision needed
Why: This is a user-facing Android navigation feature, and the linked request remains explicitly marked as needing product review even though the implementation is technically coherent. Before merge
Agent review detailsSecurityNone. PR surfaceOther +101. Total +101 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the grouped compact drawer after confirming the Android product direction and validating the current-main merge result; keep Do we have a high-confidence way to reproduce the issue? Not applicable: this PR implements a requested Android navigation capability rather than reporting an uncertain runtime failure. Is this the best way to solve the issue? Yes, technically: it reuses the established Android Threads grouping owner and keeps sidebar-only empty-group suppression local; product acceptance remains a maintainer choice. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a77fbdef3306. LabelsLabel 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)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* fix(android): group drawer sessions * fix(android): isolate generated locale files * fix(android): hide empty sidebar groups --------- Co-authored-by: IWhatsskill <[email protected]>
* fix(android): group drawer sessions * fix(android): isolate generated locale files * fix(android): hide empty sidebar groups --------- Co-authored-by: IWhatsskill <[email protected]>
[AI-assisted]
What Problem This Solves
Closes #125059.
The Android navigation drawer presented active sessions as one flat recent list capped at eight entries, even when those sessions were already pinned or assigned to custom groups.
Current behavior
The Threads surface already understood Pinned, custom, and Ungrouped sections, but the drawer discarded that organization and gave users no way to reveal sessions beyond its initial limit.
Why This Change Was Made
The drawer now reuses the canonical session-grouping logic and the existing custom-group mapping instead of maintaining a second flat presentation path.
Root Cause
SidebarContent built its own filtered and truncated session list before rendering rows, so group metadata never reached the drawer and entries beyond the fixed limit were unreachable there.
Implementation
The default drawer remains compact at eight active sessions. Show more expands the grouped result, Show less restores the compact state, and search continues to operate across the full matching set. Empty stored groups are omitted instead of rendering heading-only sections.
User Impact
Android users get the same Pinned, custom-group, and Ungrouped organization in the drawer while retaining a compact default view. Additional sessions remain reachable on demand, and search, selection, archived-session filtering, and empty-group handling keep the drawer focused on active sessions.
Evidence
Exact-head evidence for
85c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47covers the grouped Android drawer behavior, the empty-group repair, focused tests, lint, and the Play release build.Inspect exact-head proof ledger
Provenance
2f3f540045863dab7709958319bb27dcef471f6285c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47Direct behavior
Automated verification
Focused regression
cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.SidebarShellLogicTest— [TEST] the focused unit test task passed at the proof head after the empty-group repair. Proves the default limit, grouping order, archive exclusion, expansion, collapse, and omission of empty stored groups. Preserves the canonical session-grouping contract shared with the Threads surface.Android lint
cd apps/android && ./gradlew :app:ktlintCheck— [LINT] the Android Kotlin lint task passed at the proof head. Proves the changed Kotlin source and test files satisfy the repository lint rules. Preserves the existing Android formatting and style contract.Release build
cd apps/android && ORG_GRADLE_PROJECT_openclawBuildCommit=85c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47 ORG_GRADLE_PROJECT_openclawBuildTimestamp=2026-08-23T12:36:45.000Z ./gradlew :app:assemblePlayRelease --rerun-tasks— [BUILD] the Play release APK assembled successfully with 95 actionable tasks executed. Proves the exact proof head produces the scoped Android release artifact with the expected embedded commit. Preserves the existing Play release build variant and approved release signer.Preserved boundaries
Proof gap
No stronger claim beyond the scoped Android drawer grouping, expansion, search, selection, archive-filtering, and empty-group behavior is made.
Artifacts
Before and after
Additional after states
Before interaction
openclaw-android-sidebar-grouping-before.mp4
After interaction
openclaw-android-sidebar-grouping-after.mp4