Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: announce the quality verdict once

ogsamrat4657fc214ff0
diff --git a/apps/app/src/react-app/domains/quality/good-session.tsx b/apps/app/src/react-app/domains/quality/good-session.tsx
index c86492a3..18e7cbcb 100644
--- a/apps/app/src/react-app/domains/quality/good-session.tsx
+++ b/apps/app/src/react-app/domains/quality/good-session.tsx
@@ -262,10 +262,10 @@ function useGoodSession(
}
/** "Good session ★", "Checking session quality…" (muted) or why not, with the rewards guide. */
-export function GoodSessionLine({ result }: { result: OmniRushGoodSession | null }) {
+export function GoodSessionLine({ result, announce = true }: { result: OmniRushGoodSession | null; announce?: boolean }) {
const copy = goodSessionCopy(result);
return (
- <p role="status" data-testid="good-session-confirmed" data-state={copy.state} className="text-[11px] leading-4">
+ <p role={announce ? "status" : undefined} data-testid="good-session-confirmed" data-state={copy.state} className="text-[11px] leading-4">
{copy.state === "good" ? (
<span className="font-medium text-foreground">{copy.text}</span>
) : copy.state === "pending" ? (
@@ -591,7 +591,8 @@ export function GoodSessionChecklistBar(props: GoodSessionChecklistBarProps) {
) : null}
{checklist.reasons.map((reason) => <p key={reason} className="text-amber-11">{reason}</p>)}
{checklist.delivery ? <p data-testid="good-session-delivery">{checklist.delivery}</p> : null}
- {showVerdict ? <GoodSessionLine result={goodSession} /> : null}
+ {/* The chip's own status already announces it. */}
+ {showVerdict ? <GoodSessionLine result={goodSession} announce={false} /> : null}
</div>
) : null}
<Popover>