Changesets · Branches · Tags · Compare
| Changeset | 855b7eb1d8320ffaf67b6bad2fb7aa649be08427c6b8f9cb291bd836b91cf279 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-09-12 21:05 -06:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-12 21:05 -06:00 |
| Parents | 10c7e079de88, 626d9a0b7a02 |
1 file changed
modified gui/src/redux/slices/sessionSlice.ts +2 −2
| @@ -545,7 +545,7 @@ | ||
| 545 | 545 | |
| 546 | 546 | // OpenAI-compatible models in agent mode sometimes send |
| 547 | 547 | // all of their data in one message, so we handle that case early. |
| 548 | - if (messageContent) { | |
| 548 | + if (messageContent && message.role !== "tool") { | |
| 549 | 549 | const thinkMatches = messageContent.match( |
| 550 | 550 | /<think>([\s\S]*)<\/think>([\s\S]*)/, |
| 551 | 551 | ); |
| @@ -605,7 +605,7 @@ | ||
| 605 | 605 | |
| 606 | 606 | // Add to the existing message |
| 607 | 607 | if (messageContent) { |
| 608 | - if (messageContent.includes("<think>")) { | |
| 608 | + if (messageContent.includes("<think>") && message.role !== "tool") { | |
| 609 | 609 | lastItem.reasoning = { |
| 610 | 610 | startAt: Date.now(), |
| 611 | 611 | active: true, |