Skip to content

Open-source SEO, GEO, and marketing skills for AI agents.

fix(chat): simplify writing status

Yuting Zhong82a79b7d7ddc
diff --git a/notfair/CHANGELOG.md b/notfair/CHANGELOG.md
index e469b24d..ca4bf9a0 100644
--- a/notfair/CHANGELOG.md
+++ b/notfair/CHANGELOG.md
@@ -1,5 +1,9 @@
# NotFair
+## 0.9.18 — 2026-07-22
+
+**Streaming replies now stay visually quiet.** While the agent writes, chat shows only the animated **Writing the response** label—without a spinner, goal name, timer, tool subtitle, or activity history—so the status no longer competes with the response itself.
+
## 0.9.17 — 2026-07-22
**Completed goals now get the celebration they deserve.** Achievements stay visible in the sidebar with a sparkling **Completed** badge until you open the congratulations experience, where you can set a more ambitious next milestone or archive the goal without losing its chat, checks, metrics, or evidence.
diff --git a/notfair/package.json b/notfair/package.json
index 631794c1..52921ee6 100644
--- a/notfair/package.json
+++ b/notfair/package.json
@@ -1,6 +1,6 @@
{
"name": "notfair",
- "version": "0.9.17",
+ "version": "0.9.18",
"description": "Goal-driven, loop-powered marketing agents that crush your business goals 24/7 — on your own machine. Say 'cut CAC to $30' and a dedicated agent turns it into a server-verified metric, then moves the number check after check while you sleep. Rides your existing Claude Code or Codex login.",
"license": "MIT",
"bin": {
diff --git a/notfair/src/components/live-transcript.test.tsx b/notfair/src/components/live-transcript.test.tsx
index 4c320db4..020a8e8c 100644
--- a/notfair/src/components/live-transcript.test.tsx
+++ b/notfair/src/components/live-transcript.test.tsx
@@ -42,12 +42,13 @@ describe("LiveTranscript streaming layout", () => {
.closest("li");
const statusItem = screen
.getByRole("status", {
- name: "Growth goal Writing the response",
+ name: "Writing the response",
})
.closest("li");
expect(answerItem?.nextElementSibling).toBe(statusItem);
expect(statusItem).toHaveAttribute("data-live-working-status");
expect(statusItem).toHaveClass("!mt-2");
+ expect(statusItem).not.toHaveTextContent("Growth goal");
});
});
diff --git a/notfair/src/components/working-indicator.test.tsx b/notfair/src/components/working-indicator.test.tsx
index 83edcbc9..1d49dc84 100644
--- a/notfair/src/components/working-indicator.test.tsx
+++ b/notfair/src/components/working-indicator.test.tsx
@@ -5,6 +5,37 @@ import { render, screen } from "@testing-library/react";
import { WorkingIndicator } from "@/components/working-indicator";
describe("WorkingIndicator completed state", () => {
+ it("shows only animated text while writing the response", () => {
+ const { container } = render(
+ <WorkingIndicator
+ agentDisplayName="Google Ads errors <2%"
+ headline="Writing the response"
+ subtitle="Ran query ✓"
+ phases={[
+ {
+ id: "query",
+ label: "Ran query",
+ state: "done",
+ },
+ ]}
+ elapsedMs={30_000}
+ mood="writing"
+ />,
+ );
+
+ const status = screen.getByRole("status", {
+ name: "Writing the response",
+ });
+ expect(status).toHaveTextContent(/^Writing the response$/);
+ expect(status.querySelector(".ns-shimmer-text")).toBeInTheDocument();
+ expect(status.querySelector("svg")).toBeNull();
+ expect(status.querySelector("ol")).toBeNull();
+ expect(screen.queryByText("Google Ads errors <2%")).toBeNull();
+ expect(screen.queryByText("Ran query ✓")).toBeNull();
+ expect(screen.queryByText("0:30")).toBeNull();
+ expect(container.querySelector(".animate-spin")).toBeNull();
+ });
+
it("renders a completed turn without live motion or an increasing timer", () => {
const { container } = render(
<WorkingIndicator
diff --git a/notfair/src/components/working-indicator.tsx b/notfair/src/components/working-indicator.tsx
index 6b715121..5e995623 100644
--- a/notfair/src/components/working-indicator.tsx
+++ b/notfair/src/components/working-indicator.tsx
@@ -33,6 +33,20 @@ export function WorkingIndicator({
elapsedMs: number | null;
mood: WorkingMood;
}) {
+ if (mood === "writing") {
+ return (
+ <div
+ role="status"
+ aria-live="polite"
+ aria-label={headline}
+ data-run-state="running"
+ className="py-1.5 text-xs"
+ >
+ <span className="ns-shimmer-text font-medium">{headline}</span>
+ </div>
+ );
+ }
+
const ended = mood === "ended";
const visiblePhases = phases.slice(-3);