Problem
generate_copilot_params validates the model name with chars().all(...), but chars().all() returns true for an empty iterator. EngineConfig::Simple("") would produce --model (trailing space, no value).
Low-severity since a blank model string is unlikely in practice, but the empty check was missing.
Fix Applied
Added model.is_empty() guard before the character validation.
Fixed in #175.
Related
Problem
generate_copilot_paramsvalidates the model name withchars().all(...), butchars().all()returnstruefor an empty iterator.EngineConfig::Simple("")would produce--model(trailing space, no value).Low-severity since a blank model string is unlikely in practice, but the empty check was missing.
Fix Applied
Added
model.is_empty()guard before the character validation.Fixed in #175.
Related