From 20eb3f6aa327e5dcf4e7566e04bdfe36c9b3f3b6 Mon Sep 17 00:00:00 2001 From: Michael Suchacz <203725896+ibetitsmike@users.noreply.github.com> Date: Fri, 29 May 2026 22:52:23 +0000 Subject: [PATCH] fix(site/src/pages/AgentsPage): simplify goal banner and pause copy --- site/src/pages/AgentsPage/AgentChatPage.tsx | 4 +--- .../pages/AgentsPage/components/ChatGoalBanner.stories.tsx | 3 +++ site/src/pages/AgentsPage/components/ChatGoalBanner.tsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/site/src/pages/AgentsPage/AgentChatPage.tsx b/site/src/pages/AgentsPage/AgentChatPage.tsx index 72db3d8b9e..1361fb2afe 100644 --- a/site/src/pages/AgentsPage/AgentChatPage.tsx +++ b/site/src/pages/AgentsPage/AgentChatPage.tsx @@ -1270,9 +1270,7 @@ const AgentChatPage: FC = () => { toast.info("No current goal."); }, onPausedRunningGoal: () => { - toast.info( - "Goal paused. The current turn may continue. Use Stop for immediate interruption.", - ); + toast.info("Goal paused. Use Stop to halt the current turn."); }, }); }; diff --git a/site/src/pages/AgentsPage/components/ChatGoalBanner.stories.tsx b/site/src/pages/AgentsPage/components/ChatGoalBanner.stories.tsx index dd92515359..31c2bf9dfd 100644 --- a/site/src/pages/AgentsPage/components/ChatGoalBanner.stories.tsx +++ b/site/src/pages/AgentsPage/components/ChatGoalBanner.stories.tsx @@ -34,6 +34,9 @@ export const Active: Story = { const canvas = within(canvasElement); expect(canvas.getByLabelText("Current goal")).toBeVisible(); expect(canvas.getByText("Active")).toBeVisible(); + expect( + canvas.getByText("Ship the frontend goal command UX with tests."), + ).toBeVisible(); await userEvent.click(canvas.getByRole("button", { name: /Pause/i })); await userEvent.click(canvas.getByRole("button", { name: /Complete/i })); diff --git a/site/src/pages/AgentsPage/components/ChatGoalBanner.tsx b/site/src/pages/AgentsPage/components/ChatGoalBanner.tsx index b103cd140e..196c262feb 100644 --- a/site/src/pages/AgentsPage/components/ChatGoalBanner.tsx +++ b/site/src/pages/AgentsPage/components/ChatGoalBanner.tsx @@ -78,7 +78,7 @@ export const ChatGoalBanner: FC = ({

- {goal.objective.trim() || "No objective provided."} + {goal.objective}

{goal.completion_summary ? (