Skip to content

fix: collapse stray space run in round-cap stop message - #177

Merged
setoelkahfi merged 1 commit into
developmentfrom
fix/tool-round-cap-message-spacing
Oct 7, 2026
Merged

setoelkahfi merged 1 commit into
developmentfrom
fix/tool-round-cap-message-spacing

Conversation

@setoelkahfi

Copy link
Copy Markdown
Collaborator

Problem

round_cap_stop_message wrapped its format! string across two source lines, and the second line's indent became part of the literal -- the user saw a run of spaces mid-sentence:

... this turn used all 24 of its tool rounds,           so the task may not be finished. ...

Fix

Use a Rust line continuation (\) so the wrap costs one normal space. This is the same pattern the sibling round_cap_note just below it already uses, so the two are now consistent. The message text is unchanged apart from the stray space run.

Verification

  • cargo fmt -- --check pass
  • cargo clippy --tests -- -D warnings pass
  • cargo test --locked pass (411 unit tests + integration suites)

Ticket

https://project.sigit.si/projects/1/items/4

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>

@sigit-code-review sigit-code-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes stray spaces in the round_cap_stop_message string by replacing a multi-line string literal with a line continuation to avoid unintended indentation spaces. This aligns the style with the sibling round_cap_note function and removes the run of spaces mid-sentence in the output message.


Automated review by siGit Code Review · commit 1494915 · see the review dashboard

@setoelkahfi setoelkahfi self-assigned this Oct 6, 2026
@setoelkahfi
setoelkahfi requested a review from paydii October 6, 2026 22:12
@setoelkahfi
setoelkahfi merged commit 45767ab into development Oct 7, 2026
9 checks passed
@setoelkahfi
setoelkahfi deleted the fix/tool-round-cap-message-spacing branch October 7, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants