# ملخص الموضوع يُرسل إلى نموذج اللغة مع رسائل تحتوي على مسافات زائدة داخل الكلمات أو الروابط

**URL:** <https://meta.discourse.org/t/topic-summarization-sends-to-llm-with-messages-with-extra-spaces-inside-words-or-links/411136>\
**Category:** Bug\
**Tags:** ai, ai-summarize\
**Created:** [28 أغسطس 2026، 12:01م UTC](https://meta.discourse.org/t/topic-summarization-sends-to-llm-with-messages-with-extra-spaces-inside-words-or-links/411136 "2026-08-28T12:01:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [23 سبتمبر 2026، 5:10م UTC](https://meta.discourse.org/t/topic-summarization-sends-to-llm-with-messages-with-extra-spaces-inside-words-or-links/411136/4 "2026-09-23T17:10:00Z")

</div>

شكرًا لك على الإبلاغ @lilydjwg 👍

سيتم إصلاحه من خلال

> <https://github.com/discourse/discourse/pull/44047>
>
> Previously, \`FoldContent#truncate\` split every post in half and joined the halve…s back with a space, even when nothing needed truncating. Every post sent to the LLM had a stray space in its middle, breaking words and links (e.g. \`man.arch linux.org\`), which then leaked into summaries. For long posts, the second half kept its first 500 tokens instead of its last ones, so their endings were dropped.
> 
> This change sends posts that fit the 1000-token budget untouched and keeps the first and last 500 tokens of longer ones. It also removes the unused \`delete\_cached\_summaries!\` and stale comments.
> 
> https://meta.discourse.org/t/topic-summarization-sends-to-llm-with-messages-with-extra-spaces-inside-words-or-links/411136

---

_[View the full topic](https://meta.discourse.org/t/topic-summarization-sends-to-llm-with-messages-with-extra-spaces-inside-words-or-links/411136)._
