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): compact 8-session sidebar pages + scrollable project list (#424)

Call White8d8f122bfe90
diff --git a/ui/src/components/AppShell.tsx b/ui/src/components/AppShell.tsx
index 988d0df6e..74df51aa1 100644
--- a/ui/src/components/AppShell.tsx
+++ b/ui/src/components/AppShell.tsx
@@ -219,7 +219,7 @@ export const AppShell: React.FC = () => {
<aside className="fixed inset-y-0 left-0 z-30 hidden w-[240px] flex-col border-r border-border bg-surface md:flex">
<div className="flex h-full flex-col justify-between gap-6 px-4 py-5">
{/* Top: Brand + Workspace label + Nav list */}
- <div className="flex flex-col gap-6">
+ <div className="flex min-h-0 flex-1 flex-col gap-6">
<div className="flex items-center gap-2.5 px-1 py-2">
<img
src={logoImg}
diff --git a/ui/src/components/workbench/WorkbenchSidebar.tsx b/ui/src/components/workbench/WorkbenchSidebar.tsx
index 40d5e4198..1581a284b 100644
--- a/ui/src/components/workbench/WorkbenchSidebar.tsx
+++ b/ui/src/components/workbench/WorkbenchSidebar.tsx
@@ -630,8 +630,11 @@ export const WorkbenchSidebar: React.FC = () => {
return totalUnread > 99 ? '99+' : String(totalUnread);
}, [totalUnread]);
+ // Fill the sidebar column and cap its height so the project list (and only the
+ // project list) scrolls; Inbox + Capabilities stay pinned. The Inbox hover
+ // popover stays OUT of any overflow box below, so it is never clipped.
return (
- <div className="flex flex-col gap-4">
+ <div className="flex min-h-0 flex-1 flex-col gap-4">
{/* Inbox entry — hover opens the floating popover. */}
<div
className="relative"
@@ -709,7 +712,7 @@ export const WorkbenchSidebar: React.FC = () => {
{/* Projects section — design.pen b8wX2. Header row carries the
"Projects" label on the left (matching the Capabilities label
style) and the 22x22 add button on the right. */}
- <div className="flex flex-col gap-1.5">
+ <div className="flex min-h-0 flex-1 flex-col gap-1.5">
<div className="flex items-center justify-between px-1">
<span className="font-mono text-[10px] font-bold uppercase tracking-[0.18em] text-muted">
{t('workbench.projectsLabel')}
@@ -728,7 +731,7 @@ export const WorkbenchSidebar: React.FC = () => {
</Button>
</div>
- <div className="flex flex-col gap-0.5">
+ <div className="flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto pr-0.5">
{projects === null && !projectsError && (
<div className="flex items-center gap-2 rounded-md border border-dashed border-border px-3 py-3 text-[11px] text-muted">
<Loader2 className="size-3 animate-spin" />
diff --git a/ui/src/context/WorkbenchProjectsContext.tsx b/ui/src/context/WorkbenchProjectsContext.tsx
index a8d333f61..a70bbcf2c 100644
--- a/ui/src/context/WorkbenchProjectsContext.tsx
+++ b/ui/src/context/WorkbenchProjectsContext.tsx
@@ -7,10 +7,11 @@ import type { ProjectDefaultAgent, WorkbenchProject, WorkbenchSession, Workbench
// How many sessions to load per page under a project. The server clamps the
// /api/sessions limit (to 200) and returns a cursor (next_before_id); both the
// desktop sidebar and the mobile Projects page append the next page via a
-// "Load more" control rather than loading every session up front. 20 is a
-// middle ground between the desktop sidebar's old 10 (compact rail) and the
-// mobile page's old 50 (full-screen list) now that one provider serves both.
-const SESSIONS_PAGE_SIZE = 20;
+// "Load more" control rather than loading every session up front. Kept small (8)
+// to keep the compact desktop sidebar rail short — long histories stay one click
+// away behind "Load more". Both surfaces share a single per-project cache, so the
+// page size has to be one shared value (it can't differ per surface).
+const SESSIONS_PAGE_SIZE = 8;
export interface ProjectSessionsState {
/** null = not loaded yet. [] = loaded-but-empty (or a first-page failure, with `error`). */