mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
tweak: ensure run command doesn't send request if no prompt present (#2332)
This commit is contained in:
parent
924e84b0de
commit
3625766ad4
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue