Skip to content

feat(android): pin gateway-backed session search in the sidebar - #124338

Merged
steipete merged 7 commits into
openclaw:mainfrom
IWhatsskill:feat/android-chat-session-picker
Aug 17, 2026
Merged

steipete merged 7 commits into
openclaw:mainfrom
IWhatsskill:feat/android-chat-session-picker

Conversation

@IWhatsskill

@IWhatsskill IWhatsskill commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

[AI-assisted]

What Problem This Solves

Android already had four session-switching surfaces (sidebar drawer, compact chips row, Threads screen, command palette), and the original shape of this PR added a fifth — an in-chat bottom-sheet picker. Meanwhile the sidebar, the natural in-context switcher, hid its search behind a toggle that scrolled away with the drawer content and only filtered the locally cached session list.

Why This Change Was Made

Maintainer review redirected the PR at the sidebar: the drawer is where operators already switch sessions, so it should own in-context search. This rework keeps the contributor's core extraction — the Sessions screen's debounced gateway-backed search (rememberSessionBrowserSearchState / resolveSessionBrowserEntries) became a shared owner — and points it at the sidebar instead of a new sheet:

  • The sidebar header and search field are pinned above the scrolling sections, so search never scrolls away and is always visible (no toggle).
  • Sidebar queries run the shared debounced gateway search with offline fallback; matching threads (with loading and no-match states) replace the section list while a query is active.
  • The bottom-sheet picker is removed; the chips row's "All" button navigates straight back to the Threads screen.
  • sidebarRecentSessions drops its local query filter — the shared search owner covers lookup, recents stay a pure pinned-first recency list.

Follow-ups filed from the same review: #125059 (sidebar grouping/show-more), #125060 (single-button agent picker).

User Impact

Search is visible the moment the drawer opens, finds sessions beyond the cached recents via the gateway, and switching stays a two-tap drawer flow. A search in progress shows a loading state instead of a premature "no matches", and "All" reaches the full Threads screen in one tap again.

Evidence

Focused session tests (SessionsScreenSearchTest, SessionFiltersTest, SidebarShellLogicTest, ChatControllerSessionSearchTest), Android ktlint, and native i18n verify pass on the exact head. Codex autoreview: clean, no findings. Live-verified on a physical Pixel 10a against a production gateway (2026.8.1) over LAN: pinned search, debounced gateway results, loading and no-match states, tap-to-switch, and All→Threads navigation, recorded below.

Production LOC vs the pre-rework PR: net −308 (sheet removed, shared search reused; sidebar consumes the existing owner).

Before (toggle search scrolls away; local filter; bottom-sheet picker)

pr124338-before.mp4

After (pinned gateway-backed sidebar search; All → Threads)

pr124338-after.mp4

@clawsweeper

clawsweeper Bot commented Aug 16, 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 16, 2026 02:01
@IWhatsskill
IWhatsskill marked this pull request as draft August 16, 2026 02:21
@IWhatsskill
IWhatsskill marked this pull request as ready for review August 16, 2026 02:22
@IWhatsskill IWhatsskill changed the title fix: find older Android chat sessions when switching improve: add searchable Android chat session picker Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 17, 2026, 1:25 AM ET / 05:25 UTC.

ClawSweeper review

What this changes

The PR moves Android session search from a local, toggleable sidebar filter to a pinned sidebar field backed by the shared debounced gateway session browser.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 3 items remain

Keep open: the current head cleanly reuses the canonical Android session-search policy, but its real-device evidence covers the superseded bottom-sheet design rather than the pinned sidebar now on the branch.

Priority: P3
Reviewed head: e72910ca52da61a3ae60c899d056b8a59ba21314

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is coherent and uses the existing owner, but current-head real behavior proof remains a merge gate.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The embedded physical-device recordings are useful for the earlier picker, but they do not show after-fix behavior for the current pinned sidebar; add a redacted current-head recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: The embedded physical-device recordings are useful for the earlier picker, but they do not show after-fix behavior for the current pinned sidebar; add a redacted current-head recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Current-main baseline: Current main has only the sidebar’s local cached-row filter; it does not pass a view model into the sidebar or invoke the gateway-backed search flow.
Shared owner boundary: The branch extracts one composable search-state owner and has both the Sessions screen and sidebar consume its normalized query, loading state, and result entries.
Caller and result path: ShellScreen is the sole sidebar caller and supplies MainViewModel; the sidebar selects gateway-backed matches through the existing chat-session switch callback.
Findings None None.
Security None None.

How this fits together

Android’s sidebar receives the active session list and user query from the shell. The shared session-browser state asks the gateway for matches, falls back to cached active sessions offline, and returns selectable sessions to the chat shell.

flowchart LR
  A[Android sidebar] --> B[Search query]
  B --> C[Shared session browser]
  C --> D[Gateway session search]
  D --> E[Offline cached-session fallback]
  E --> F[Filtered session results]
  F --> G[Chat session switch]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The embedded physical-device recordings are useful for the earlier picker, but they do not show after-fix behavior for the current pinned sidebar; add a redacted current-head recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The supplied physical-device recording demonstrates the superseded bottom-sheet picker, not the current pinned-sidebar search; merging would lack after-fix proof for the user-visible flow.
  • Complete next step (P2) - No repair job is appropriate: the remaining merge blocker is contributor-owned, current-head real-device proof rather than a concrete code defect.
Agent review details

Security

None.

PR surface

Other +26. Total +26 across 5 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 5 247 221 +26
Total 5 247 221 +26

Review metrics

Metric Value Why it matters
Production versus test delta production +53/-45; tests +0/-35; generated i18n inventory +8 The feature adds a shared gateway-search owner and sidebar integration while deleting the replaced local-filter tests.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the shared search owner and add a redacted current-head Android recording that shows entering a sidebar query, its loading/result state, and switching to a matched session.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the shared search owner and add a redacted current-head Android recording that shows entering a sidebar query, its loading/result state, and switching to a matched session.

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

Not applicable as a feature request; the current-head device-validation path is clear, but the submitted recording predates the pinned-sidebar implementation.

Is this the best way to solve the issue?

Yes. Sharing the Sessions screen’s gateway-backed owner avoids a second search policy while preserving ChatController’s offline fallback and session-safety checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a useful Android navigation enhancement, but existing users retain the full Sessions screen and no current failure is established.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The embedded physical-device recordings are useful for the earlier picker, but they do not show after-fix behavior for the current pinned sidebar; add a redacted current-head recording before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 🎥 video: Contributor real behavior proof includes video or recording evidence. The embedded physical-device recordings are useful for the earlier picker, but they do not show after-fix behavior for the current pinned sidebar; add a redacted current-head recording before merge.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the branch refactor that moved search into the pinned sidebar and the current-head formatting follow-up. (role: current feature-shape author; confidence: high; commits: 490fbfcf76cc, e72910ca52da; files: apps/android/app/src/main/java/ai/openclaw/app/ui/SidebarContent.kt, apps/android/app/src/main/java/ai/openclaw/app/ui/SessionsScreen.kt)
  • IWhatsskill: Authored the branch’s initial session-picker, search-policy, and loading-state work that the later sidebar refactor retains. (role: initial shared-search contributor; confidence: medium; commits: 4fd6720fbd06, 26f87a5575a5; files: apps/android/app/src/main/java/ai/openclaw/app/ui/SessionsScreen.kt, 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.

  • Record the current exact head on a physical Android device, showing a sidebar query, pending or settled results, and selecting a match; redact private session data before posting.

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 (7 earlier review cycles)
  • reviewed 2026-08-16T02:28:52.566Z sha 25f25d2e126b78eddce6ccc90029589282671d87 :: found issues before merge. :: [P1] Reuse the existing Android session browser | [P2] Encode the metadata separator as UTF-8
  • reviewed 2026-08-16T02:34:26.233Z sha 25f25d2e126b78eddce6ccc90029589282671d87 :: found issues before merge. :: [P1] Reuse the existing Android session browser | [P2] Encode the metadata separator correctly
  • reviewed 2026-08-16T03:47:49.080Z sha 85527b44b261866a33e8714932937a14ff25065c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T11:45:25.347Z sha 85527b44b261866a33e8714932937a14ff25065c :: needs changes before merge. :: [P2] Render a loading state while session search is pending
  • reviewed 2026-08-16T13:09:58.525Z sha 30bd45d06f47f24cd11fee8d6d003a817054da0d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-16T17:07:47.950Z sha 3b4bb7bac5f55b6655b6a994e641263bf4ce572f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T05:11:08.775Z sha 490fbfc :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. 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: 🦪 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. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 16, 2026
@IWhatsskill IWhatsskill changed the title improve: add searchable Android chat session picker feat(android): add searchable session picker to chat Aug 16, 2026
@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 16, 2026
@clawsweeper clawsweeper Bot added 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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 16, 2026
IWhatsskill and others added 5 commits August 16, 2026 22:01
… sidebar

The sidebar header and search field no longer scroll away: they sit above
the scrolling sections, and the search field is always visible instead of
hidden behind a toggle. Queries now run through the shared session-browser
search state (debounced gateway search with offline fallback) instead of a
local filter over cached rows, and matching threads replace the section
list while a query is active.

The in-chat bottom-sheet picker is removed: the compact switcher's All
button navigates straight to the Sessions screen again, and the sidebar
owns in-context session search. The shared rememberSessionBrowserSearchState
extraction from the Sessions screen is kept and gains the sidebar as its
second consumer.
@steipete
steipete force-pushed the feat/android-chat-session-picker branch from 3b4bb7b to 490fbfc Compare August 17, 2026 05:02
@steipete steipete changed the title feat(android): add searchable session picker to chat feat(android): pin gateway-backed session search in the sidebar Aug 17, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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. and removed 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 17, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 17, 2026
@steipete
steipete merged commit 657b6e8 into openclaw:main Aug 17, 2026
119 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 18, 2026
…claw#124338)

* fix-android-chat-session-picker

* fix-search-all-android-sessions

* fix-native-i18n-inventory

* fix-android-share-session-browser-policy

* fix(android): show loading during session search

* refactor(android): move gateway-backed session search into the pinned sidebar

The sidebar header and search field no longer scroll away: they sit above
the scrolling sections, and the search field is always visible instead of
hidden behind a toggle. Queries now run through the shared session-browser
search state (debounced gateway search with offline fallback) instead of a
local filter over cached rows, and matching threads replace the section
list while a query is active.

The in-chat bottom-sheet picker is removed: the compact switcher's All
button navigates straight to the Sessions screen again, and the sidebar
owns in-context session search. The shared rememberSessionBrowserSearchState
extraction from the Sessions screen is kept and gains the sidebar as its
second consumer.

* style(android): fix sidebar import ordering for ktlint

---------

Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
threely-lab pushed a commit to threely-lab/openclaw that referenced this pull request Aug 28, 2026
…claw#124338)

* fix-android-chat-session-picker

* fix-search-all-android-sessions

* fix-native-i18n-inventory

* fix-android-share-session-browser-policy

* fix(android): show loading during session search

* refactor(android): move gateway-backed session search into the pinned sidebar

The sidebar header and search field no longer scroll away: they sit above
the scrolling sections, and the search field is always visible instead of
hidden behind a toggle. Queries now run through the shared session-browser
search state (debounced gateway search with offline fallback) instead of a
local filter over cached rows, and matching threads replace the section
list while a query is active.

The in-chat bottom-sheet picker is removed: the compact switcher's All
button navigates straight to the Sessions screen again, and the sidebar
owns in-context session search. The shared rememberSessionBrowserSearchState
extraction from the Sessions screen is kept and gains the sidebar as its
second consumer.

* style(android): fix sidebar import ordering for ktlint

---------

Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: Peter Steinberger <[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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 🎥 video Contributor real behavior proof includes video or recording evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants