Skip to content

[help wanted] Cmd/Ctrl+K Quick Switcher — fuzzy search across sessions #11

Description

@GoDiao

Background

We just landed sessionsById for O(1) lookups, but there is still no UI for fuzzy-finding a session by title or recent message content. fuse.js is already a dependency.

Quick-switchers are the kind of feature that users immediately notice — a great PR to be proud of.

Tasks

  • Register a global shortcut Cmd/Ctrl + K to open a centered command palette
  • Index every session by title + last assistant message using fuse.js
  • Render top 10 matches with keyboard navigation (↑ ↓ Enter Esc)
  • On Enter, switch to the matching session
  • (Bonus) Recent sessions on top when query is empty
  • Respect i18n for the placeholder copy

Files

  • desktop/src/components/ (new CommandPalette/ folder)
  • desktop/src/stores/sessionStore*
  • desktop/src/hooks/ (global shortcut hook)

Difficulty / Estimate

⭐⭐ — half a day for a clean implementation.

Mentor

Maintainer can review UX details (animation, focus trap, scroll into view).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions