Thread index: counts, latest, participants, forks and months per thread #272

Merged
littlefox merged 2 commits from issue-243-thread-index into main 2026-10-22 08:23:52 +00:00
Owner

Closes #243

Kom::thread_info(t): per thread, replies, the last text and when, the newest three texts, participants, forks and texts per month. The thread is walked once (stats only, 16 at a time), the result is kept per root (500 threads), and new-text messages keep it current, so asking again costs no calls. thread_root remembers the roots it finds.

Subject splits and grouping a channel into threads are left to #242 (commented there).

Verified: unit test for the counting, devserver test thread_index (built from a seeded thread, then a new reply updates it with no extra calls), clippy three ways.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #243 `Kom::thread_info(t)`: per thread, replies, the last text and when, the newest three texts, participants, forks and texts per month. The thread is walked once (stats only, 16 at a time), the result is kept per root (500 threads), and new-text messages keep it current, so asking again costs no calls. `thread_root` remembers the roots it finds. Subject splits and grouping a channel into threads are left to #242 (commented there). Verified: unit test for the counting, devserver test `thread_index` (built from a seeded thread, then a new reply updates it with no extra calls), clippy three ways. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Groundwork for #242: Kom::thread_info walks a thread once (stats only,
16 at a time), keeps what a list of threads and a big thread's chat need
(replies, last activity, newest texts, participants, forks, texts per
month) per root, and keeps it current from new-text messages, so asking
again costs nothing. thread_root remembers the roots it finds, so a long
chain is walked up once.

Subject splits and grouping a channel into threads are left to #242.

Closes #243

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Merge remote-tracking branch 'origin/main' into issue-243-thread-index
All checks were successful
ci / check (push) Successful in 9m4s
ci / desktop (push) Successful in 14m50s
ci / e2e (push) Successful in 31m3s
dfc05367bf
# Conflicts:
#	crates/kom-client/src/kom.rs
#	docs/DESIGN.md
littlefox referenced this pull request from a commit 2026-10-22 14:11:06 +00:00
Sign in to join this conversation.
No description provided.