@@ -1,4 +1,3 @@
1-import * as c from "yoctocolors";
21 import type {
32 AgentReporter,
43 StatusBarData,
@@ -6,6 +5,7 @@ import type {
65 } from "../agent/reporter.ts";
76 import type { TurnEvent } from "../llm-api/types.ts";
87 import {
8+ G,
99 renderError,
1010 renderHook,
1111 renderInfo,
@@ -20,10 +20,12 @@ export class CliReporter implements AgentReporter {
2020 private spinner = new Spinner();
2121
2222 info(msg: string): void {
23+ this.spinner.stop();
2324 renderInfo(msg);
2425 }
2526
2627 error(msg: string | Error, hint?: string): void {
28+ this.spinner.stop();
2729 if (typeof msg === "string") {
2830 renderError(msg, hint);
2931 } else {
@@ -32,10 +34,12 @@ export class CliReporter implements AgentReporter {
3234 }
3335
3436 warn(msg: string): void {
35- writeln(`! ${c.yellow(msg)}`);
37+ this.spinner.stop();
38+ writeln(`${G.warn} ${msg}`);
3639 }
3740
3841 writeText(text: string): void {
42+ this.spinner.stop();
3943 writeln(text);
4044 }
4145