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(ui): add New session as the first item in the mobile project menu
cyhf005da7baaa3
diff --git a/ui/src/components/workbench/ProjectsPage.tsx b/ui/src/components/workbench/ProjectsPage.tsxindex ed2ce1646..e0feb0e44 100644--- a/ui/src/components/workbench/ProjectsPage.tsx+++ b/ui/src/components/workbench/ProjectsPage.tsx@@ -12,6 +12,7 @@ import {FolderPlus,Loader2,Pencil,+ Plus,RotateCw,Settings2,} from 'lucide-react';@@ -74,8 +75,11 @@ const MobileProjectRow: React.FC<{onToggle: () => void;}> = ({ project, open, state, onToggle }) => {const { t } = useTranslation();- const { renameProject, archiveProject } = useWorkbenchProjectsTree();+ const navigate = useNavigate();+ const { renameProject, archiveProject, createSessionForProject } = useWorkbenchProjectsTree();const [menuOpen, setMenuOpen] = useState(false);+ // Guards against a double-tap creating two sessions before navigation unmounts.+ const creatingSessionRef = useRef(false);const [renaming, setRenaming] = useState(false);const [draft, setDraft] = useState(project.display_name);const [settingsOpen, setSettingsOpen] = useState(false);@@ -161,6 +165,25 @@ const MobileProjectRow: React.FC<{</Button></PopoverTrigger><PopoverContent align="end" className="w-[200px] p-1">+ {/* New session — first item, mobile only. Desktop surfaces this as+ the per-project "+" button in the sidebar, so it stays out of the+ desktop project menu; here the "+" doesn't fit, so it lives here. */}+ <MenuItem+ icon={Plus}+ onClick={async () => {+ setMenuOpen(false);+ if (creatingSessionRef.current) return;+ creatingSessionRef.current = true;+ try {+ const session = await createSessionForProject(project.id);+ if (session) navigate(`/chat/${encodeURIComponent(session.id)}`);+ } finally {+ creatingSessionRef.current = false;+ }+ }}+ >+ {t('newSession.title')}+ </MenuItem><MenuItemicon={Pencil}onClick={() => {