Skip to content

feat(android): group sidebar sessions - #128092

Merged
roboclaw-bot merged 3 commits into
openclaw:mainfrom
IWhatsskill:feat/android-sidebar-grouping
Aug 24, 2026
Merged

roboclaw-bot merged 3 commits into
openclaw:mainfrom
IWhatsskill:feat/android-sidebar-grouping

Conversation

@IWhatsskill

@IWhatsskill IWhatsskill commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

[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 85c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47 covers the grouped Android drawer behavior, the empty-group repair, focused tests, lint, and the Play release build.

Inspect exact-head proof ledger

Provenance

  • Base: 2f3f540045863dab7709958319bb27dcef471f62
  • Proof head: 85c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47
  • Build binding: the Before Play release APK embeds the base SHA and the After Play release APK embeds the proof-head SHA

Direct behavior

  • Android drawer interaction (physical Android phone; Before base and After Play release builds) — The supplied Before and After evidence records the flat drawer before the change and the grouped compact and expanded states after the change. The default view stays bounded while the remaining grouped sessions are reachable on demand. This proves the scoped drawer grouping and expansion behavior while preserving the compact default presentation.

Automated verification

Focused regression

cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.SidebarShellLogicTest
  • 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
  • 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
  • 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

  • Search still evaluates the full active-session set instead of the compact default slice.
  • Selecting a row still routes through the existing session-selection callback.
  • Archived sessions remain excluded from the active drawer groups.
  • No Gateway, transport, Wear OS, or persistence schema behavior changes.

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

BeforeAfter
OpenClaw Android flat recent-session drawer before the change OpenClaw Android grouped session drawer after the change

Additional after states

OpenClaw Android grouped session drawer after the change, second state OpenClaw Android grouped session drawer after the change, third state

Before interaction

openclaw-android-sidebar-grouping-before.mp4

After interaction

openclaw-android-sidebar-grouping-after.mp4

@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@IWhatsskill
IWhatsskill marked this pull request as ready for review August 23, 2026 03:26
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 10:08 AM ET / 14:08 UTC.

ClawSweeper review

What this changes

The 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 readiness

⚠️ Ready for maintainer review - 3 items remain

This 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
Reviewed head: 85c7c3bd94dc40ad966c0ee3fe2b7afd0e301f47
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation is coherent and well-proven; only product confirmation and routine current-main merge validation remain.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (recording): The PR body supplies exact-head physical-Android before/after evidence and release-build-backed interaction proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (recording): The PR body supplies exact-head physical-Android before/after evidence and release-build-backed interaction proof.
Evidence reviewed 6 items Current-main baseline: Current main still uses the flat recent-session helper with an eight-item limit, so the requested drawer grouping is not already implemented.
Canonical grouping owner: The existing Android Threads surface owns pinned/category/ungrouped ordering; the sidebar calls that shared policy and removes only empty sections, which is the correct display-specific adaptation.
PR presentation path: The branch filters archived sessions, applies the compact limit before grouping, exposes expansion only above eight sessions, and renders the grouped rows through the existing selection callback.
Findings None None.
Security None None.

Live Verification

Command: cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.SidebarShellLogicTest

Result: FAIL (partial) — step 2 expect_output BUILD SUCCESSFUL: expected terminal output was not visible within 30 seconds: "BUILD SUCCESSFUL"

cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.SidebarShellLogicTest
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128092-VJ3T7a/target$ cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.Sideba
rShellLogicTest
Fetching distribution.
Downloading https://services.gradle.org/distributions/gradle-9.6.1-bin.zip
cd apps/android && ./gradlew :app:testPlayDebugUnitTest --tests ai.openclaw.app.ui.SidebarShellLogicTest
.............10%.............20%..............30%.............40%..............50%.............60%.............70%..............80%.............90%.............
.100%

Welcome to Gradle 9.6.1!

Here are the highlights of this release:
 - Improved Configuration Cache hit rates
 - Additional CLI rendering options
 - Important project hierarchy lookup deprecations

For more details see https://docs.gradle.org/9.6.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)
│···············│ 0% CONFIGURING [22s]
› root project › Resolve dependencies of detachedConfiguration1 › com.android.application.gradle.plugin-9.3.1.pom






























Assertions:

  • FAIL expect_output: BUILD SUCCESSFUL

How this fits together

The 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]
Loading

Decision needed

Question Recommendation
Should Android adopt grouped, expandable drawer sessions as the default navigation presentation instead of the existing flat recent-eight list? Adopt grouped compact drawer: Accept the shared grouping policy with the eight-session compact default and on-demand expansion after merge validation.

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

  • Resolve merge risk (P1) - The branch is behind current main. GitHub reports it mergeable, but the final merge result should retain the generated Android localization entries and receive exact-head Android validation before landing.
  • Complete next step (P2) - A maintainer should confirm the user-facing Android navigation direction, then validate the clean current-main merge; there is no concrete automated repair to dispatch.
Agent review details

Security

None.

PR surface

Other +101. Total +101 across 3 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 3 119 18 +101
Total 3 119 18 +101

Review metrics

Metric Value Why it matters
Production versus test delta production +44, generated localization +22, tests +35 The production growth implements the requested grouped/expandable Android drawer; localization metadata and focused behavior coverage are separately classified.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #125059
Summary: This PR is a candidate implementation of the linked Android sidebar grouping request.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Adopt the grouped compact drawer after confirming the Android product direction and validating the current-main merge result; keep groupSessionEntries as the single grouping-policy owner.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Adopt the grouped compact drawer after confirming the Android product direction and validating the current-main merge result; keep groupSessionEntries as the single grouping-policy owner.

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.

Labels

Label justifications:

  • P2: This is a bounded Android navigation improvement for operators with more than eight active sessions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (recording): The PR body supplies exact-head physical-Android before/after evidence and release-build-backed interaction proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies exact-head physical-Android before/after evidence and release-build-backed interaction proof.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The PR body supplies exact-head physical-Android before/after evidence and release-build-backed interaction proof.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Current-main blame attributes the existing sidebar recent-session baseline to this commit. (role: recent area contributor; confidence: medium; commits: bfad1bf45413; files: apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarContent.kt)
  • WhatsSkiLL: Path history shows prior merged Android sidebar search work in the same presentation surface. (role: prior sidebar feature contributor; confidence: medium; commits: 657b6e8f49a7; files: apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarContent.kt)

Rank-up moves

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

  • Refresh the clean merge result against current main and inspect the final Android localization metadata before landing.

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 (4 earlier review cycles)
  • reviewed 2026-08-23T03:33:33.801Z sha 7d7eb65 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T04:39:39.943Z sha 063d8dc :: found issues before merge. :: [P2] Do not render stored empty groups in the drawer
  • reviewed 2026-08-23T05:11:43.679Z sha 85c7c3b :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-23T13:25:12.720Z sha 85c7c3b :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 23, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 23, 2026
@IWhatsskill

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 23, 2026
@roboclaw-bot
roboclaw-bot merged commit fb576e3 into openclaw:main Aug 24, 2026
330 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
* fix(android): group drawer sessions

* fix(android): isolate generated locale files

* fix(android): hide empty sidebar groups

---------

Co-authored-by: IWhatsskill <[email protected]>
threely-lab pushed a commit to threely-lab/openclaw that referenced this pull request Aug 28, 2026
* fix(android): group drawer sessions

* fix(android): isolate generated locale files

* fix(android): hide empty sidebar groups

---------

Co-authored-by: IWhatsskill <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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.

[Feature]: Android sidebar session grouping and show-more

2 participants