* @brief Appends streamed thinking text to the live assistant preamble. */
| 354 | * @brief Appends streamed thinking text to the live assistant preamble. |
| 355 | */ |
| 356 | void AI::Conversation::onPartialThinking(const QString& chunk) |
| 357 | { |
| 358 | if (m_cancelled || m_assistantIndex < 0) |
| 359 | return; |
| 360 | |
| 361 | if (m_thinkingIsSynthetic) { |
| 362 | m_assistantThinking.clear(); |
| 363 | m_thinkingIsSynthetic = false; |
| 364 | } |
| 365 | |
| 366 | m_assistantThinking.append(chunk); |
| 367 | m_streamDirty = true; |
| 368 | if (!m_streamFlushTimer->isActive()) |
| 369 | m_streamFlushTimer->start(); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * @brief Stores a completed provider thinking block (text + signature) tagged with the |