Skip to content

Search sessions on Home #929

Closed
Closed

Description

@ivanfenenko

People with many sessions can find one by typing part of its title, instead of scrolling the Home list.

Split out of #869 (keyboard and mouse support), which lists ⌘F / Ctrl+F "search sessions" as an app shortcut. Neither app has a session search today, so the shortcut has nothing to open.

Acceptance

  • Home has a session search on iOS and Android, following the design-system component-first workflow.
  • It filters the sessions Home shows by title, within the current project scope.
  • With a hardware keyboard, ⌘F on iPad and Ctrl+F on Android open and focus it. The shortcut is listed in the iPad menu bar and hold-⌘ overlay, and in the Android Keyboard Shortcuts Helper, with the same gating as the other Keyboard and mouse support #869 app shortcuts.
  • Esc clears and closes the search, following the Keyboard and mouse support #869 Esc order.

Open questions

  • Local filtering of loaded sessions, or a server-side search (check what v1 and v2 offer)?
  • Should it include archived sessions?

Activity

  1. added
    enhancement
    ios
    android
    on Nov 1, 2026
  2. added 4 commits that reference this issue on Nov 2, 2026
  3. ivanfenenko commented on Nov 3, 2026

    @ivanfenenko
    CollaboratorAuthor

    Settled design

    Settled with the Home ⋯ menu prototype (shared with #833). One design for both apps.

    Entry points

    • Home's top-bar ⋯ menu gets Search sessions as its first entry (the menu itself lands separately; search is wired into it once it is on main).
    • ⌘F on iPad, Ctrl+F on Android open search and focus the field. Listed with the other app shortcuts (iPad menu bar and hold-⌘ overlay, Android Keyboard Shortcuts Helper) and gated the same way.

    Screen

    • Search covers Home's pane, field focused with the keyboard up. A back button sits left of the field; the placeholder names the scope ("Search in All projects").
    • A scope chip under the field starts at Home's current project scope (a worktree scope searches its project) and opens a menu of All projects plus each project, so the scope changes without leaving search.
    • Before typing: only a short hint ("Matches session titles in ."). No recent searches.
    • Results: an "N results" header, then Home's normal session row (either row style) with the matched part of the title highlighted. A spinner shows in the field while a server request runs. Tapping a result opens the session; Back returns to search with query and scope kept. On split layouts the session opens beside search.
    • No match: "No sessions match “q”" in , with a Search all projects button only when another project has a match.
    • Esc clears the query first, then closes search (Keyboard and mouse support #869 Esc order).

    Open questions, answered

    • Server or local search? Both. v2 GET /api/session takes search (title, case-insensitive LIKE), and v1 GET /session takes search and roots (opencode 1.x since Feb 2026). Results from Home's loaded rows show on every keystroke; the server search runs 250 ms after the last keystroke (at once on a scope change), one request per listed path in scope, and also finds sessions Home has not loaded. The reply is filtered locally again (roots, not archived, title match), so an older v1 server that ignores search still gives correct results. Home's copy of a session wins over the server's, since it carries live status. If the server request fails, the local results stay.
    • Archived sessions? Not in this change. An "Include archived" chip (hidden on servers without archive support, archived matches in their own section) follows once archived listing lands with Restore archived sessions and remove worktrees #833.
  4. added 8 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    androidenhancementios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions