mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(site/src/pages/AgentsPage): simplify goal banner and pause copy
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user