Python
Retire the check-count badge and its polling
Devika Verma82aca54fc63e
diff --git a/surfaces/gui/src/App.tsx b/surfaces/gui/src/App.tsxindex 86760677..46304fca 100644--- a/surfaces/gui/src/App.tsx+++ b/surfaces/gui/src/App.tsx@@ -22,7 +22,6 @@ import {getSettings,getPersonas,getInbox,- getReviewerStats,getUnattended,PERSONAS_CHANGED,resolveInboxItem,@@ -386,7 +385,6 @@ export function App() {// A pending composer prefill (text + attachments) pushed from the session start panel.// Auto-Approve metering (§1.7): live reviewer counts for the composer badge. Polled with// the session inbox; null until the first fetch (badge hidden).- const [reviewerStats, setReviewerStats] = useState<import("./api").ReviewerStats | null>(null);const [composerPrefill, setComposerPrefill] = useState<{ text: string; attachments?: Attachment[]; nonce: number }>();// Persona metadata drives workspace behavior by FAMILY, not by hardcoded id (so a DevOps/SecOps@@ -1063,7 +1061,6 @@ export function App() {const load = () => {getInbox(sessionId, "pending").then(setSessionInbox).catch(() => setSessionInbox([]));getUnattended(sessionId).then(markUnattended).catch(() => markUnattended(false));- getReviewerStats(sessionId).then(setReviewerStats).catch(() => setReviewerStats(null));};load();const t = setInterval(load, 4000);@@ -2045,7 +2042,6 @@ export function App() {sessionId={sessionId}workspace={workspace || ""}unattended={unattended}- reviewerStats={reviewerStats?.live ?? null}onUnattendedChange={agent !== "chat" ? toggleUnattended : undefined}prefill={composerPrefill}resetKey={sessionId}diff --git a/surfaces/gui/src/components/Composer.tsx b/surfaces/gui/src/components/Composer.tsxindex 64c9f398..85374f15 100644--- a/surfaces/gui/src/components/Composer.tsx+++ b/surfaces/gui/src/components/Composer.tsx@@ -109,7 +109,6 @@ interface Props {onUnattendedChange?: (on: boolean) => void;// Auto-Approve metering (§1.7): the "Auto-Approve · N checks" badge + mode-menu summary.// Absent/zero hides both; only the LIVE bucket surfaces here (shadow is a Settings concern).- reviewerStats?: { checks: number; allow: number; deny: number; unsure: number; tokens_in: number; tokens_out: number; cache_read?: number; cache_write?: number } | null;approvalSlot?: ReactNode;// Push text + attachments into the composer (e.g. a start-panel task card). The `nonce` makes// repeated identical prefills re-apply; the user can still edit before sending.@@ -623,7 +622,6 @@ export function Composer(props: Props) {) : props.workspace !== undefined ? (<ModeMenumode={props.mode}- reviewerStats={props.reviewerStats}onModeChange={props.onModeChange}unattended={props.unattended}onUnattendedChange={props.onUnattendedChange}@@ -876,13 +874,11 @@ function ModeMenu({onModeChange,unattended,onUnattendedChange,- reviewerStats,}: {mode: string;onModeChange: (mode: string) => void;unattended?: boolean;onUnattendedChange?: (on: boolean) => void;- reviewerStats?: { checks: number; allow: number; deny: number; unsure: number; tokens_in: number; tokens_out: number; cache_read?: number; cache_write?: number } | null;}) {const [open, setOpen] = useState(false);// The Auto-Approve entry is gated on the server flag. Fetch once on first open; a session@@ -916,11 +912,6 @@ function ModeMenu({}>{current?.label || mode}- {mode === "auto-approve" && !!reviewerStats?.checks && (- <span className="text-faint" data-testid="reviewer-badge">- · {reviewerStats.checks} {reviewerStats.checks === 1 ? "check" : "checks"}- </span>- )}<Icon name="chevronDown" size={11} className="text-faint" /></button>{open && (