allow search in provider select

This commit is contained in:
Dax Raad
2025-08-01 14:01:40 -04:00
parent 50e4b3e6a7
commit e74b4d098b
5 changed files with 14 additions and 13 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.length > 0 ? undefined : "Required"),
validate: (x) => x && (x.length > 0 ? undefined : "Required"),
})
if (prompts.isCancel(query)) throw new UI.CancelledError()