fix(cli): affiche les progress reçus après Final sans rouvrir le tour — #216

This commit is contained in:
2026-08-15 18:58:08 +02:00
parent a3699933e9
commit 3582b252bb
2 changed files with 18 additions and 5 deletions

View File

@ -1598,7 +1598,7 @@ describe("CustomAgentChatView", () => {
expect(screen.getByText("Progress").parentElement?.textContent).toContain("Terminé");
});
it("does not append late progress chunks after the final answer", async () => {
it("renders late progress chunks after the final answer without reopening the turn", async () => {
let emitChunk: ((chunk: unknown) => void) | null = null;
const agent = {
launchAgentChat: vi.fn(),
@ -1672,7 +1672,10 @@ describe("CustomAgentChatView", () => {
});
});
expect(screen.queryByText("idea_ticket_read")).toBeNull();
expect(screen.getByText("done")).toBeTruthy();
expect(screen.getByText("idea_ticket_read")).toBeTruthy();
expect(screen.getByRole("button", { name: "Envoyer" })).toBeTruthy();
expect(screen.queryByRole("button", { name: "Stop" })).toBeNull();
});
it("shows slash-command suggestions from the gateway, filters by prefix, and inserts the selected command", async () => {