You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cli): validate whitespace-only prompts before quote-wrapping
Fixes bounty issue #1497
When a user provides a whitespace-only prompt like `cortex run " "`, the
message was wrapped in quotes before validation, causing the validation check
to pass because the trimmed string contained quote characters. This allowed
whitespace-only prompts to be sent to the engine, causing hangs or empty streams.
The fix validates the original message content before quote-wrapping is applied,
properly catching whitespace-only prompts and returning a validation error.
0 commit comments