@@ -300,13 +300,18 @@ function handleCache(ctx: CommandContext, args: string): void {
300300 }
301301
302302 async function handleUndo(ctx: CommandContext): Promise<void> {
303- const ok = await ctx.undoLastTurn();
304- if (ok) {
305- writeln(
306- `${PREFIX.success} ${c.dim("last turn undone — history and files restored")}`,
307- );
308- } else {
309- writeln(`${PREFIX.info} ${c.dim("nothing to undo")}`);
303+ ctx.startSpinner("restoring snapshot");
304+ try {
305+ const ok = await ctx.undoLastTurn();
306+ if (ok) {
307+ writeln(
308+ `${PREFIX.success} ${c.dim("last turn undone — history and files restored")}`,
309+ );
310+ } else {
311+ writeln(`${PREFIX.info} ${c.dim("nothing to undo")}`);
312+ }
313+ } finally {
314+ ctx.stopSpinner();
310315 }
311316 }
312317
@@ -555,6 +560,11 @@ function handleHelp(
555560 ["/undo", "remove the last turn from conversation history"],
556561 ["/reasoning [on|off]", "toggle display of model reasoning output"],
557562 ["/context [prune|cap]", "configure context pruning and tool-result caps"],
563+ [
564+ "/cache [on|off|openai|gemini]",
565+ "configure provider prompt-caching settings",
566+ ],
567+
558568 ["/agent [name]", "set or clear active primary agent"],
559569 ["/mcp list", "list MCP servers"],
560570 ["/mcp add <n> <t> [u]", "add an MCP server"],