Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Remove duplicate workspace chrome from the home view

justrachbc348022e2d8
diff --git a/apps/native/components/site/ChatEmpty.tsx b/apps/native/components/site/ChatEmpty.tsx
index d0241ae7..0a1f8667 100644
--- a/apps/native/components/site/ChatEmpty.tsx
+++ b/apps/native/components/site/ChatEmpty.tsx
@@ -3,7 +3,6 @@
import PromptBar, { type PromptModel } from "@/components/primitives/PromptBar";
import type { AcpCommand } from "@/lib/acp";
import type { Health } from "@/lib/acp-client";
-import { basename } from "@/lib/workspaces";
function greeting(): string {
const hour = new Date().getHours();
@@ -22,7 +21,7 @@ export default function EmptyState({
history,
cwd,
commands, compact = false,
- onOpenProject, onContinue, onReview, onProjects,
+ onOpenProject,
}: {
onSend: (text: string) => void; onSetting?: (text: string) => Promise<void>;
health: Health | null;
@@ -54,15 +53,8 @@ export default function EmptyState({
</span>
</h1>}
- {!compact && onOpenProject && <div className="mt-5 rounded-control border border-line bg-surface px-3 py-3" data-project-context>
- <div className="flex items-center justify-between gap-2"><span className="truncate text-sm font-medium text-ink">{where ? basename(where) : "Choose a project folder"}</span><button type="button" onClick={onOpenProject} className="shrink-0 rounded-control px-2 py-1 text-xs text-ink-2 hover:bg-hover">Change folder…</button></div>
- {where && <p className="mt-1 break-all font-mono text-xs text-ink-3">{where}</p>}
- <div className="mt-2 flex flex-wrap gap-3 text-xs text-ink-2">
- {onProjects && <button type="button" onClick={onProjects} className="rounded py-1 hover:text-ink">All projects</button>}
- {onContinue && <button type="button" onClick={onContinue} className="rounded py-1 hover:text-ink">Continue conversation</button>}
- {onReview && <button type="button" onClick={onReview} className="rounded py-1 hover:text-ink">Review changes</button>}
- </div>
- </div>}
+ {!compact && !where && onOpenProject && <button type="button" onClick={onOpenProject}
+ className="mt-5 self-start rounded-control px-3 py-2 text-sm text-ink-2 hover:bg-hover">Choose a project folder…</button>}
<div className={`relative ${compact ? "" : "home-reveal home-reveal-composer mt-7"}`}>
<PromptBar
diff --git a/apps/native/components/site/HarnessChrome.tsx b/apps/native/components/site/HarnessChrome.tsx
index 24c1219d..61080664 100644
--- a/apps/native/components/site/HarnessChrome.tsx
+++ b/apps/native/components/site/HarnessChrome.tsx
@@ -89,10 +89,10 @@ export default function HarnessChrome({chats, activeId, busyIds, focusChat, clos
</div>
<div className={`${reviewStyles.actions} flex min-h-10 shrink-0 items-center gap-2 border-t border-line px-3 py-1`}>
<button type="button" aria-pressed={filesOpen} onClick={onFiles} title={`${chatCwd ?? "Workspace"}\nShow this chat's files`}
- className="max-w-48 truncate rounded-md px-2 py-1 text-xs font-medium text-ink-2 hover:bg-hover">{workspaceName}</button>
+ className="max-w-48 truncate lg:hidden rounded-md px-2 py-1 text-xs font-medium text-ink-2 hover:bg-hover">{workspaceName}</button>
<button type="button" onClick={openChanges} aria-label="Review workspace changes" className="rounded-md px-2 py-1 text-xs text-ink-2 hover:bg-hover">Changes</button>
{(taskCount > 0 || tasksOpen) && onTasks && <button type="button" aria-label="Show tasks" aria-pressed={tasksOpen} onClick={onTasks} className="rounded-md px-2 py-1 text-xs text-ink-2 hover:bg-hover">Tasks{taskCount ? ` (${taskCount})` : ""}</button>}
- <ActionMenu label="Workspace tools" text="Workspace tools" wide className="ml-auto shrink-0">
+ <ActionMenu label="Workspace tools" text="Tools" wide className="ml-auto shrink-0">
<p className="px-3 py-2 text-[11px] font-medium text-ink-3">Tools for this workspace</p>
<button type="button" aria-label="Files" aria-pressed={filesOpen} onClick={onFiles}><span>Files<span className="mt-1 block text-ink-3">Explore the current project folder</span></span></button>
<button type="button" aria-label="Browser" aria-pressed={browserOpen} onClick={onBrowser}><span>Browser{pinCount > 0 ? ` (${pinCount} pins)` : ""}<span className="mt-1 block text-ink-3">Keep a web page beside your conversation</span></span></button>
diff --git a/docs/adr/0081-desktop-split-focus-and-layout.md b/docs/adr/0081-desktop-split-focus-and-layout.md
index 09cdcc59..ba5843e5 100644
--- a/docs/adr/0081-desktop-split-focus-and-layout.md
+++ b/docs/adr/0081-desktop-split-focus-and-layout.md
@@ -21,7 +21,9 @@ the whole group. The split toggle returns group members to individual tabs.
Pane content responds to its own container width: narrow splits reduce
transcript padding and user-message indentation even on a wide desktop.
-Short panes also reduce spacing and omit the optional home project card; input,
+The sidebar is the workspace selector; only windows without the sidebar repeat
+it in the toolbar. Home does not repeat the selected folder in a context card.
+Short panes also reduce spacing; input,
errors and saved-session ownership controls stay available. App Settings lives
in the sidebar footer (toolbar on small windows); Workspace tools groups file,
browser and terminal access, while More holds conversation actions.