fix: enforce field requirement for cli cmds (#1796)

This commit is contained in:
Aiden Cline
2025-08-10 21:17:12 -05:00
committed by GitHub
parent 55c294c013
commit 409a6f93b2
3 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ const AgentCreateCommand = cmd({
const query = await prompts.text({
message: "Description",
placeholder: "What should this agent do?",
validate: (x) => x && (x.length > 0 ? undefined : "Required"),
validate: (x) => (x && x.length > 0 ? undefined : "Required"),
})
if (prompts.isCancel(query)) throw new UI.CancelledError()