fix(site/src/pages/AgentsPage): simplify goal banner and pause copy

This commit is contained in:
Michael Suchacz
2026-05-29 22:52:23 +00:00
parent 30929fe99c
commit 20eb3f6aa3
3 changed files with 5 additions and 4 deletions
+1 -3
View File
@@ -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.");
},
});
};
@@ -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 }));
@@ -78,7 +78,7 @@ export const ChatGoalBanner: FC<ChatGoalBannerProps> = ({
</Badge>
</div>
<p className="whitespace-pre-wrap break-words text-content-secondary">
{goal.objective.trim() || "No objective provided."}
{goal.objective}
</p>
{goal.completion_summary ? (
<p className="whitespace-pre-wrap break-words text-xs text-content-secondary">