graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
fix(gui): remove empty-chat starter prompts
Rach Pradhanff3f574beb99
diff --git a/apps/native/app/motion.css b/apps/native/app/motion.cssindex a3fa07c1..5a8c9724 100644--- a/apps/native/app/motion.css+++ b/apps/native/app/motion.css@@ -22,7 +22,6 @@}.home-reveal-title { animation-delay: 35ms; }.home-reveal-composer { animation-delay: 65ms; }-.home-reveal-suggestions { animation-delay: 95ms; }.motion-surface {/* Placement and visibility are immediate, including under reduced motion. */diff --git a/apps/native/components/site/ChatEmpty.tsx b/apps/native/components/site/ChatEmpty.tsxindex 7f5c60b5..810f162f 100644--- a/apps/native/components/site/ChatEmpty.tsx+++ b/apps/native/components/site/ChatEmpty.tsx@@ -1,9 +1,8 @@"use client";-import { useState } from "react";import PromptBar, { type PromptModel } from "@/components/primitives/PromptBar";import type { AcpCommand } from "@/lib/acp";-import { STARTER_PROMPTS, type Health } from "@/lib/acp-client";+import type { Health } from "@/lib/acp-client";import { basename } from "@/lib/workspaces";function greeting(): string {@@ -43,9 +42,6 @@ export default function EmptyState({onProjects?: () => void;}) {const where = cwd ?? health?.cwd;- const [offset, setOffset] = useState(0);- const shown = [0, 1, 2].map((i) => STARTER_PROMPTS[(offset + i) % STARTER_PROMPTS.length]);- const shuffle = () => setOffset((current) => (current + 3) % STARTER_PROMPTS.length);return (<div className={`mx-auto flex min-h-full w-full min-w-0 max-w-[720px] flex-col justify-center px-4 ${compact ? "py-2" : "py-10 sm:px-8"}`}>@@ -90,35 +86,6 @@ export default function EmptyState({</p>)}</div>-- {!compact && <div className="home-reveal home-reveal-suggestions mt-6 flex flex-col">- {shown.map((item) => (- <button- key={item.id}- type="button"- onClick={() => onSend(item.prompt)}- className="-mx-2 flex items-center gap-3 rounded-control px-2 py-2.5 text-left text-[14px] text-ink transition-colors duration-150 hover:bg-hover"- >- <span className="text-ink-3">- <svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round" aria-hidden>- <path d="M8 6l-5 6 5 6M16 6l5 6-5 6" />- </svg>- </span>- <span className="min-w-0 truncate">{item.label}</span>- </button>- ))}- <div className="mt-1 flex flex-wrap items-center gap-x-5 gap-y-1 pl-0.5 text-[13px] text-ink-3">- <span className="flex items-center gap-2 py-1" title={where}>- <span className={`size-1.5 rounded-full ${health?.ok ? "bg-green" : "bg-orange"}`} />- {health?.ok- ? `Connected · ${where ? (where.split("/").pop() || where) : "over ACP"}`- : "Waiting for graff acp"}- </span>- <button type="button" onClick={shuffle} className="flex items-center gap-2 py-1 transition-colors duration-150 hover:text-ink">- Shuffle suggestions- </button>- </div>- </div>}</div>);}diff --git a/apps/native/lib/acp-client.ts b/apps/native/lib/acp-client.tsindex 71a935c4..82901f99 100644--- a/apps/native/lib/acp-client.ts+++ b/apps/native/lib/acp-client.ts@@ -162,13 +162,6 @@ export function disposePage(page: string): void {}).catch(() => {});}-export const STARTER_PROMPTS = [- { id: "files", label: "What files are here?", prompt: "What files are in this workspace? Be brief." },- { id: "readme", label: "Summarize README.md", prompt: "Read README.md and summarize it in a short paragraph." },- { id: "review", label: "Review the last commit", prompt: "Review HEAD against the previous commit. Stay read-only." },- { id: "todos", label: "What's on the checklist?", prompt: "Read the current todo list and tell me what's open." },-] as const;-export type ModelChoice = {key: string;name: string;diff --git a/apps/native/lib/graff-client.ts b/apps/native/lib/graff-client.tsindex 2205b677..4d1e6ed7 100644--- a/apps/native/lib/graff-client.ts+++ b/apps/native/lib/graff-client.ts@@ -141,13 +141,6 @@ export async function closeSession(sessionId: string): Promise<void> {);}-export const STARTER_PROMPTS = [- { id: "files", label: "What files are here?", prompt: "What files are in this workspace? Be brief." },- { id: "readme", label: "Summarize README.md", prompt: "Read README.md and summarize it in a short paragraph." },- { id: "review", label: "Review the last commit", prompt: "Review HEAD against the previous commit. Stay read-only." },- { id: "todos", label: "What's on the checklist?", prompt: "Read the current todo list and tell me what's open." },-] as const;-export const MODELS = [{ key: "gpt-5.5", name: "GPT-5.5", tag: "OpenAI" },{ key: "claude-opus-4-8", name: "Opus 4.8", tag: "Anthropic" },