Reject whitespace-only provider turns

Co-authored-by: codex <[email protected]>
This commit is contained in:
Julius Marmingeandcodex committed 2026-06-20 20:22:16 -07:00
1 parent 2c81a9bfc4
commit 2e124c92af
1 file changed
+1 -1
+1 -1
View File
@@ -764,7 +764,7 @@ export const make = Effect.fn("ProviderService.make")(function* (options?: Provi
...parsed,
attachments: parsed.attachments ?? [],
};
if (!input.input && input.attachments.length === 0) {
if (!input.input?.trim() && input.attachments.length === 0) {
return yield* new ProviderValidationError({
operation: "ProviderService.sendTurn",
issue: "Either input text or at least one attachment is required",