TGViewer
Telegram github commits and releases Telegram github commits and releases @tgappsupdates · 4.52K subscribers
Post #20553 96
UnigramDev/Unigram/logger-ring-buffer • 271c644 • 1 files, +36/-13
Keep the log tail in a ring buffer

Three things were wrong with the window that ships in every crash report.

It was a List trimmed with RemoveAt(0), so once full every log call copied all
retained entries down one slot. Logging happens on hot paths; this is now an
overwrite of one slot.

Dump stored its "Bump" marker as an entry, so taking a dump evicted a real line
and a second dump left the first marker behind. It is appended to the output
instead, and Dump no longer mutates anything.

The size was an inline 50, which is under a second of ordinary logging. It is
now a named constant at 200.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

#unigram
More from @tgappsupdates
  1. Oct 15, 2026morethanwords/tweb/master • 1b86ca8 • 2 files, +23/-13 Caption field: the AI button sits o…
  2. Oct 15, 2026morethanwords/tweb/master • 7a1c7e2 • 1 files, +11/-2 Retry a language pack update that fa…
  3. Oct 15, 2026TGX-Android/Telegram-X/main • b960f4c • 1 files, +3/-2 Fix displaying call notification in…
  4. Oct 15, 2026TGX-Android/Telegram-X/main • d9d5897 • 1 files, +3/-2 Fix displaying call notifiaction in…
  5. Oct 15, 2026telegramdesktop/tdesktop/dev • 75c0e28 • 2 files, +77/-185 Share the rich editor inline-fi…
  6. Oct 15, 2026telegramdesktop/tdesktop/dev • 5d5900c • 6 files, +1105/-17 [ai] Add a queued-start harnes…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →