Skip to content

armgit / avibe

Public Imported from GitHub
0

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.

fix(workbench): hide session pin shortcut on mobile (#1004)

Call White726fda518237
diff --git a/ui/src/components/workbench/ProjectsPage.tsx b/ui/src/components/workbench/ProjectsPage.tsx
index b0c84a717..a280d01e9 100644
--- a/ui/src/components/workbench/ProjectsPage.tsx
+++ b/ui/src/components/workbench/ProjectsPage.tsx
@@ -24,7 +24,6 @@ import clsx from 'clsx';
import { useWorkbenchInbox } from '../../context/WorkbenchInboxContext';
import { useWorkbenchProjectsTree } from '../../context/WorkbenchProjectsContext';
-import { SessionPinAction } from './SessionPinAction';
import type { ProjectSessionsState } from '../../context/WorkbenchProjectsContext';
import type { WorkbenchProject, WorkbenchSession } from '../../context/ApiContext';
import { formatRelativeTime } from '../../lib/relativeTime';
@@ -254,7 +253,6 @@ const MobileSessionRow: React.FC<{
const [menuOpen, setMenuOpen] = useState(false);
const [archiveOpen, setArchiveOpen] = useState(false);
const [renaming, setRenaming] = useState(false);
- const [pinning, setPinning] = useState(false);
const [draft, setDraft] = useState(session.title ?? '');
const inputRef = useRef<HTMLInputElement | null>(null);
const handledRef = useRef(false);
@@ -286,14 +284,12 @@ const MobileSessionRow: React.FC<{
const togglePinned = async () => {
if (pinningRef.current) return;
pinningRef.current = true;
- setPinning(true);
try {
await setSessionPinned(projectId, session.id, !session.pinned);
} catch {
// apiFetch already surfaced the error toast.
} finally {
pinningRef.current = false;
- setPinning(false);
}
};
@@ -338,13 +334,6 @@ const MobileSessionRow: React.FC<{
</span>
)}
</button>
- <SessionPinAction
- pinned={session.pinned}
- pending={pinning}
- pinLabel={t('workbench.sessionPin')}
- unpinLabel={t('workbench.sessionUnpin')}
- onToggle={() => void togglePinned()}
- />
<Popover open={menuOpen} onOpenChange={setMenuOpen}>
<PopoverTrigger asChild>
<Button