graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
gui: remove the 'Working/Worked for Ns' work-row header entirely
Rach Pradhan5f4b12f64c7d
diff --git a/gui/src/components/chat/ChatWorkRow.tsx b/gui/src/components/chat/ChatWorkRow.tsxindex 4fe00817..93fc566d 100644--- a/gui/src/components/chat/ChatWorkRow.tsx+++ b/gui/src/components/chat/ChatWorkRow.tsx@@ -1,106 +1,23 @@-import { useEffect, useRef, useState } from "react";-import { ChevronDown, ChevronRight } from "lucide-react";-import { CHAT_MUTED_TEXT_CLASS } from "./constants/chatStyles";-import { useRunningNow } from "./hooks/useRunningNow";import { ChatActivityRow } from "./ChatActivityRow";-import { ChatStatusLabel } from "./ChatStatusLabel";-import { getWorkHeaderLabelText } from "./utils/workHeaderLabel";-import type {- ChatWorkRowProps,- WorkHeaderLabelProps,-} from "./types/chatComponents";+import type { ChatWorkRowProps } from "./types/chatComponents";-function WorkHeaderLabel({- failedStepCount,- isRunning,- requestTiming,-}: WorkHeaderLabelProps) {- const now = useRunningNow(isRunning);- const label = getWorkHeaderLabelText({- failedStepCount,- isRunning,- requestTiming,- nowMs: now,- });-- return (- <span className="inline-flex min-w-0 items-center gap-1.5">- {isRunning ? (- <span className="shimmer shimmer-invert shimmer-repeat-delay-0">- {label}- </span>- ) : (- <ChatStatusLabel text={label} />- )}- </span>- );-}--export function ChatWorkRow({- item,- requestTiming,- workspacePath,-}: ChatWorkRowProps) {- const [open, setOpen] = useState(item.isRunning || item.hasError);- const previousRunningRef = useRef(item.isRunning);-- // Drive open state from running→idle transitions WITHOUT remounting. Stable- // keys (here and in chatThreadList) preserve the user's manual expands across- // completion. On a clean finish we leave the group open so the results the- // user was watching don't collapse out from under them; errors force-open.- // Past (already-idle) turns mount collapsed via the initial state above.- useEffect(() => {- const wasRunning = previousRunningRef.current;- previousRunningRef.current = item.isRunning;- if (wasRunning && !item.isRunning && item.hasError) {- setOpen(true);- }- }, [item.isRunning, item.hasError]);-- const canExpand = item.activities.length > 0;-- const header = (- <>- <WorkHeaderLabel- failedStepCount={item.failedStepCount}- isRunning={item.isRunning}- requestTiming={requestTiming}- />- {!item.isRunning && canExpand ? (- open ? (- <ChevronDown className="size-4 text-current" />- ) : (- <ChevronRight className="size-4 text-current" />- )- ) : null}- </>- );+// The per-turn work timeline. No "Working/Worked for Ns" header at all — while+// the turn is starting with nothing to show yet, a calm "Thinking" shimmer;+// otherwise just the activity rows themselves.+export function ChatWorkRow({ item, workspacePath }: ChatWorkRowProps) {+ const hasActivities = item.activities.length > 0;return (<div className="grid min-w-0 gap-1">- {item.isRunning ? (- canExpand ? null : (- <span- className={`shimmer shimmer-invert shimmer-repeat-delay-0 ${CHAT_MUTED_TEXT_CLASS}`}- >- Thinking- </span>- )- ) : canExpand ? (- <button- type="button"- onClick={() => setOpen((current) => !current)}- className={`inline-flex min-w-0 items-center justify-between gap-2 border-b border-border pb-1 text-left ${CHAT_MUTED_TEXT_CLASS}`}+ {item.isRunning && !hasActivities ? (+ <span+ className={`shimmer shimmer-invert shimmer-repeat-delay-0 ${CHAT_MUTED_TEXT_CLASS}`}>- {header}- </button>- ) : (- <div className={`inline-flex min-w-0 items-center justify-between gap-2 ${CHAT_MUTED_TEXT_CLASS}`}>- {header}- </div>- )}- {canExpand && (item.isRunning || open) ? (+ Thinking+ </span>+ ) : null}+ {hasActivities ? (<div className="grid min-w-0 gap-1">{item.activities.map((activityItem) => (<ChatActivityRow