tweak: ensure run command doesn't send request if no prompt present (#2332)

This commit is contained in:
Aiden Cline
2025-08-30 10:39:28 -05:00
committed by GitHub
parent 924e84b0de
commit 3625766ad4

View File

@@ -64,6 +64,11 @@ export const RunCommand = cmd({
if (!process.stdin.isTTY) message += "\n" + (await Bun.stdin.text())
if (message.trim().length === 0) {
UI.error("Message cannot be empty")
return
}
await bootstrap({ cwd: process.cwd() }, async () => {
const session = await (async () => {
if (args.continue) {