@@ -1,8 +1,8 @@
1-import * as c from "yoctocolors";
21 import type { AgentReporter } from "../agent/reporter.ts";
32 import type { SessionRunner } from "../agent/session-runner.ts";
43
54 import { getContextWindow } from "../llm-api/providers.ts";
5+import { buildSessionExitMessage } from "../session/resume-command.ts";
66 import { runShellCommand, type ShellOutput } from "../tools/shell.ts";
77 import { handleCommand } from "./commands.ts";
88 import { resolveFileRefs } from "./file-refs.ts";
@@ -75,7 +75,7 @@ export async function runInputLoop(opts: InputLoopOptions): Promise<void> {
7575
7676 switch (input.type) {
7777 case "eof":
78- reporter.writeText(c.dim("Goodbye."));
78+ reporter.writeText(buildSessionExitMessage(runner.session.id));
7979 return;
8080
8181 case "interrupt":
@@ -84,7 +84,7 @@ export async function runInputLoop(opts: InputLoopOptions): Promise<void> {
8484 case "command": {
8585 const result = await handleCommand(input.command, input.args, cmdCtx);
8686 if (result.type === "exit") {
87- reporter.writeText(c.dim("Goodbye."));
87+ reporter.writeText(buildSessionExitMessage(runner.session.id));
8888 return;
8989 }
9090 if (result.type === "inject-user-message") {