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 4633e7e2bb
commit 81ecb86a40
3 changed files with 7 additions and 7 deletions
+1 -1
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()