@@ -45,6 +45,8 @@ export interface CommandContext {
4545 activeAgent: string | null;
4646 setActiveAgent: (name: string | null, systemPrompt?: string) => void;
4747
48+ startSpinner: (label?: string) => void;
49+ stopSpinner: () => void;
4850 cwd: string;
4951 }
5052
@@ -366,7 +368,9 @@ async function handleCustomCommand(
366368 }
367369
368370 try {
371+ ctx.startSpinner("subagent");
369372 const output = await ctx.runSubagent(prompt, cmd.agent, cmd.model);
373+ ctx.stopSpinner();
370374 assertSubagentMerged(output);
371375
372376 write(renderMarkdown(output.result));
@@ -377,6 +381,7 @@ async function handleCustomCommand(
377381 text: `/${cmd.name} output:\n\n${output.result}\n\n<system-message>Summarize the findings above to the user.</system-message>`,
378382 };
379383 } catch (e) {
384+ ctx.stopSpinner();
380385 writeln(`${PREFIX.error} /${cmd.name} failed: ${String(e)}`);
381386 return { type: "handled" };
382387 }