Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(search): mobile search page + /search route + inbox entry
cyhc9eb99f12505
diff --git a/ui/src/App.tsx b/ui/src/App.tsxindex 3488d9399..3165890c1 100644--- a/ui/src/App.tsx+++ b/ui/src/App.tsx@@ -3,6 +3,7 @@ import { Wizard } from './components/Wizard';import { AppShell } from './components/AppShell';import { Workbench } from './components/Workbench';import { InboxPage } from './components/workbench/InboxPage';+import { SearchPage } from './components/workbench/SearchPage';import { AgentsPage } from './components/workbench/AgentsPage';import { SkillsPage } from './components/workbench/SkillsPage';import { HarnessPage } from './components/workbench/HarnessPage';@@ -259,6 +260,7 @@ function AppRoutes() {module screens land in later commits. */}<Route path="/" element={<Workbench />} /><Route path="/inbox" element={<InboxPage />} />+ <Route path="/search" element={<SearchPage />} /><Route path="/agents" element={<AgentsPage />} /><Route path="/skills" element={<SkillsPage />} /><Route path="/harness" element={<HarnessPage />} />diff --git a/ui/src/components/AppShell.tsx b/ui/src/components/AppShell.tsxindex 11307817f..2df6426a6 100644--- a/ui/src/components/AppShell.tsx+++ b/ui/src/components/AppShell.tsx@@ -217,10 +217,14 @@ export const AppShell: React.FC = () => {{ to: '/more', label: t('nav.more'), icon: Menu, match: (p) => p.startsWith('/more') },];- // Chat is a full-screen detail (own composer); the wizard owns the whole- // viewport. Hide the bottom tab bar on both.+ // Chat is a full-screen detail (own composer) and Search is a full-screen+ // focused surface (own header + back button); the wizard owns the whole+ // viewport. These mobile surfaces render their own top chrome, so the shell's+ // mobile brand header AND the bottom tab bar are hidden on them.const isChat = location.pathname.startsWith('/chat/');- const showBottomNav = !isChat && location.pathname !== '/setup';+ const isSearch = location.pathname === '/search';+ const isFullScreenMobile = isChat || isSearch;+ const showBottomNav = !isFullScreenMobile && location.pathname !== '/setup';return (// Mobile: a LOCKED, full-viewport flex column (overflow-hidden) so the@@ -329,9 +333,10 @@ export const AppShell: React.FC = () => {</div></aside>- {/* Chat is a fixed full-screen surface with its own header bar, so the- brand header is hidden there (otherwise it would sit behind the chat). */}- {!isChat && (+ {/* Chat and Search are fixed full-screen surfaces with their own header+ bars, so the brand header is hidden there (otherwise it would sit+ behind them). */}+ {!isFullScreenMobile && (<header className="sticky top-0 z-40 flex h-[calc(4rem+env(safe-area-inset-top))] shrink-0 items-center justify-between gap-2 border-b border-border bg-background/92 px-4 pt-[env(safe-area-inset-top)] backdrop-blur md:hidden"><div className="flex min-w-0 items-center gap-2"><imgdiff --git a/ui/src/components/workbench/InboxPage.tsx b/ui/src/components/workbench/InboxPage.tsxindex d8b184a5e..a8d9001a7 100644--- a/ui/src/components/workbench/InboxPage.tsx+++ b/ui/src/components/workbench/InboxPage.tsx@@ -1,7 +1,7 @@import { useMemo, useState } from 'react';import { useTranslation } from 'react-i18next';import { useNavigate } from 'react-router-dom';-import { ArrowRight, CheckCheck, Filter, Inbox, Loader2, MessageSquareReply, RefreshCw } from 'lucide-react';+import { ArrowRight, CheckCheck, Filter, Inbox, Loader2, MessageSquareReply, RefreshCw, Search } from 'lucide-react';import clsx from 'clsx';import { useWorkbenchInbox } from '../../context/WorkbenchInboxContext';@@ -96,6 +96,22 @@ export const InboxPage: React.FC = () => {</div></div>+ {/* Mobile search entry — a full-width field-style button that opens the+ full-screen search page (design.pen S5H9R "M · Inbox · Search entry";+ SearchField). Mobile-only: desktop searches via the sidebar field + ⌘K+ (md:hidden). */}+ <button+ type="button"+ onClick={() => navigate('/search')}+ className="flex w-full items-center gap-2.5 rounded-xl border border-border-strong bg-foreground/[0.04] px-3.5 py-2.5 text-left transition hover:bg-foreground/[0.06] md:hidden"+ >+ <Search className="size-4 shrink-0 text-muted" />+ <span className="flex-1 truncate text-[14px] text-muted">+ {t('workbench.search.entry')}+ </span>+ <span className="shrink-0 text-[11px] text-muted">{t('workbench.search.scopeAll')}</span>+ </button>+{/* Toolbar */}<div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:gap-2"><div className="inline-flex w-full items-center gap-1 rounded-lg border border-border-strong bg-surface-2 p-0.5 sm:w-auto">diff --git a/ui/src/components/workbench/SearchPage.tsx b/ui/src/components/workbench/SearchPage.tsxnew file mode 100644index 000000000..b45bf48a0--- /dev/null+++ b/ui/src/components/workbench/SearchPage.tsx@@ -0,0 +1,130 @@+import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';+import { useLocation, useNavigate } from 'react-router-dom';+import { ChevronLeft, Loader2, Search, X } from 'lucide-react';++import { useMessageSearch } from '../../lib/useMessageSearch';+import { SearchResultGroup } from './search/SearchResultGroup';++// Mobile full-screen message-content search (design.pen K7Bytg "M · Search+// results"). A focused surface with its OWN header (back chevron + an active+// search field with mint glyph + clear ✕) over the grouped results — reached+// from the Inbox search field (InboxPage) / the bottom-nav is hidden on+// /search (AppShell). Results are SERVER-driven via useMessageSearch, the same+// hook the desktop ⌘K palette uses; selecting a hit routes to+// /chat/<session>?msg=<message> (the ?msg contract consumed by ChatPage P5).+// Touch surface — no keyboard arrow navigation (that is palette-only).+export const SearchPage: React.FC = () => {+ const { t } = useTranslation();+ const navigate = useNavigate();+ const location = useLocation();+ const [query, setQuery] = useState('');+ const { results, loading } = useMessageSearch(query);+ const inputRef = useRef<HTMLInputElement | null>(null);++ // Autofocus the field on mount so typing flows straight in (the search page+ // exists only to search). iOS sometimes needs the focus deferred a tick past+ // the route transition for the soft keyboard to come up.+ useEffect(() => {+ const id = window.setTimeout(() => inputRef.current?.focus(), 0);+ return () => window.clearTimeout(id);+ }, []);++ // Back returns to where the user came from (usually the inbox field); a deep+ // link / refresh has nothing to pop, so fall back to /inbox. Mirrors+ // ChatPage's goBack.+ const goBack = () => {+ if (location.key !== 'default') navigate(-1);+ else navigate('/inbox');+ };++ // The clear ✕ empties a non-empty query (keeping focus to keep typing); on an+ // already-empty field it doubles as a back affordance.+ const onClear = () => {+ if (query) {+ setQuery('');+ inputRef.current?.focus();+ } else {+ goBack();+ }+ };++ const trimmed = query.trim();+ const sessions = results?.sessions ?? [];+ const hasResults = sessions.length > 0;+ const showHint = trimmed.length === 0;+ const showEmpty = trimmed.length > 0 && !loading && results !== null && !hasResults;++ return (+ // Full-screen focused surface (like ChatPage): fixed over the shell, its own+ // header is the top of the screen, and it scrolls internally. Desktop never+ // routes here (sidebar field + ⌘K own search), but keep it sane if hit.+ <div className="fixed inset-0 z-40 flex flex-col bg-background pt-[env(safe-area-inset-top)] md:absolute">+ {/* Header — back chevron + active search field (design.pen P6Nsz/KmsNV). */}+ <header className="flex shrink-0 items-center gap-2.5 border-b border-border bg-background/92 px-4 py-3 backdrop-blur">+ <button+ type="button"+ onClick={goBack}+ aria-label={t('common.back')}+ className="flex size-9 shrink-0 items-center justify-center rounded-lg border border-border-strong bg-foreground/[0.04] text-foreground transition hover:bg-foreground/[0.08]"+ >+ <ChevronLeft className="size-5" />+ </button>+ <div className="flex min-w-0 flex-1 items-center gap-2.5 rounded-xl border border-border-strong bg-foreground/[0.04] px-3 py-2.5">+ <Search className="size-4 shrink-0 text-mint" />+ <input+ ref={inputRef}+ value={query}+ onChange={(e) => setQuery(e.target.value)}+ placeholder={t('workbench.search.placeholder')}+ aria-label={t('workbench.search.placeholder')}+ className="min-w-0 flex-1 bg-transparent text-[15px] text-foreground outline-none placeholder:text-muted"+ spellCheck={false}+ autoComplete="off"+ autoCorrect="off"+ enterKeyHint="search"+ />+ {loading && <Loader2 className="size-4 shrink-0 animate-spin text-muted" />}+ <button+ type="button"+ onClick={onClear}+ aria-label={t('common.clear')}+ className="flex size-5 shrink-0 items-center justify-center rounded-md text-muted transition hover:text-foreground"+ >+ <X className="size-4" />+ </button>+ </div>+ </header>++ {/* Body — own scroll surface. Empty-query hint / no-results / grouped+ results, mirroring the desktop palette's states. */}+ <div className="min-h-0 flex-1 overflow-y-auto px-4 pb-[calc(1.5rem+env(safe-area-inset-bottom))] pt-3">+ {showHint && (+ <div className="px-2.5 py-12 text-center text-[13px] text-muted">+ {t('workbench.search.hint')}+ </div>+ )}+ {showEmpty && (+ <div className="px-2.5 py-12 text-center text-[13px] text-muted">+ {t('workbench.search.empty')}+ </div>+ )}+ {hasResults && (+ <div className="flex flex-col gap-1.5">+ {sessions.map((session) => (+ <SearchResultGroup+ key={session.session_id}+ session={session}+ onSelect={(match) =>+ navigate(+ `/chat/${encodeURIComponent(session.session_id)}?msg=${encodeURIComponent(match.id)}`,+ )+ }+ />+ ))}+ </div>+ )}+ </div>+ </div>+ );+};diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.jsonindex e6ffcb4c5..664e34f42 100644--- a/ui/src/i18n/en.json+++ b/ui/src/i18n/en.json@@ -15,6 +15,7 @@"edit": "Edit","configure": "Configure","cancel": "Cancel",+ "clear": "Clear","loading": "Loading...","saving": "Saving...","saved": "Saved",@@ -639,7 +640,8 @@"kbdNavigate": "Navigate","kbdOpen": "Open","kbdClose": "Close",- "footerNote": "Searching message content · all sessions"+ "footerNote": "Searching message content · all sessions",+ "scopeAll": "all sessions"},"inbox": {"eyebrow": "Inbox",diff --git a/ui/src/i18n/zh.json b/ui/src/i18n/zh.jsonindex 07c73f194..87440cfb2 100644--- a/ui/src/i18n/zh.json+++ b/ui/src/i18n/zh.json@@ -15,6 +15,7 @@"edit": "编辑","configure": "配置","cancel": "取消",+ "clear": "清除","loading": "加载中...","saving": "保存中...","saved": "已保存",@@ -639,7 +640,8 @@"kbdNavigate": "切换","kbdOpen": "打开","kbdClose": "关闭",- "footerNote": "搜索消息内容 · 全部会话"+ "footerNote": "搜索消息内容 · 全部会话",+ "scopeAll": "全部会话"},"inbox": {"eyebrow": "收件箱",