Commit b28dc21
committed
Fix newline handling for tool decision messages
Ensure tool decision messages (allowed/denied) are properly isolated with
newlines before and after the content. The fix adds a trailing newline to
the content when missing, in addition to the existing logic that prepends
a newline if the output doesn't already end with one. This guarantees these
messages appear on their own lines in the chat window.
* Plugin/ai/ChatAIWindow.cpp
**Generated by CodeLite**
Signed-off-by: Eran Ifrah <eran@codelite.org>1 parent c594538 commit b28dc21
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
452 | 453 | | |
453 | | - | |
454 | 454 | | |
455 | 455 | | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
456 | 460 | | |
457 | 461 | | |
458 | 462 | | |
| |||
0 commit comments