Skip to content

Commit c89178f

Browse files
authored
fix: preload error on chat command (#245)
1 parent 0b85800 commit c89178f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cli/commands/ChatCommand.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,8 @@ async function RunChat({
497497
return res;
498498
}
499499

500-
void session.preloadPrompt("");
500+
void session.preloadPrompt("")
501+
.catch(() => void 0); // don't throw an error if preloading fails because a real prompt is sent early
501502

502503
// eslint-disable-next-line no-constant-condition
503504
while (true) {

0 commit comments

Comments
 (0)