fix: collapse stray space run in round-cap stop message (#177)
The wrapped string literal in `round_cap_stop_message` carried its source indent into the message, so the user saw a gap mid-sentence. A Rust line continuation emits a single space instead, matching `round_cap_note`. Co-authored-by: siGit Code v1.6.2-acp <noreply@sigit.si>
Seto Elkahfi committed
Oct 7, 2026 at 21:29 UTC
45767abd4af03c22b62eeff7fd9e32c036f44567
1 file changed
+2
-1
src/main.rs
+2
-1
@@ -308,7 +308,8 @@ fn stop_reason_for(round_cap_reached: bool, finish: backend::FinishReason) -> St
308
/// when nothing follows it (issue #120).
309
fn round_cap_stop_message(max_tool_rounds: usize) -> String {
310
format!(
311
- "I stopped here because this turn used all {max_tool_rounds} of its tool rounds, so the task may not be finished. Reply \"continue\" to pick it back up."
311
+ "I stopped here because this turn used all {max_tool_rounds} of its tool rounds, \
312
+ so the task may not be finished. Reply \"continue\" to pick it back up."
313
)
314
}
315