@@ -8,7 +8,7 @@ import { handleCommand } from "./commands.ts";
88 import { resolveFileRefs } from "./file-refs.ts";
99 import { createGitBranchCache } from "./git-branch-cache.ts";
1010 import { type InputResult, readline } from "./input.ts";
11-import { tildePath } from "./output.ts";
11+import { renderUserMessage, tildePath } from "./output.ts";
1212 import { buildStatusBarSignature } from "./status-bar.ts";
1313
1414 import type { CommandContext } from "./types.ts";
@@ -80,6 +80,7 @@ export async function runInputLoop(opts: InputLoopOptions): Promise<void> {
8080 return;
8181 }
8282 if (result.type === "inject-user-message") {
83+ renderUserMessage(result.text);
8384 const { text: resolvedText, images: refImages } =
8485 await resolveFileRefs(result.text, cwd);
8586 try {
@@ -102,6 +103,7 @@ export async function runInputLoop(opts: InputLoopOptions): Promise<void> {
102103 }
103104
104105 case "submit": {
106+ renderUserMessage(input.text);
105107 const { text: resolvedText, images: refImages } = await resolveFileRefs(
106108 input.text,
107109 cwd,