New posts: look closer only at those that concern me, one at a time #260

Merged
littlefox merged 3 commits from issue-240-new-posts into main 2026-10-22 01:53:58 +00:00
Owner

Closes #240

  • A new text's stat (it comes with the message) decides first: only texts to me or to a channel I'm an active member of, and not pictures, are looked at for mentions and notifications.
  • They are looked at one at a time, in order, by one task, instead of all at once in a burst.
  • The event log names people from Kom's cache (renames drop it), not one get-uconf-stat per login, logout and new text.
  • The perf spec gets a burst of 20 new posts (10 pictures) from another session, written over Protocol A.

Measured with tools/perf.sh, before (main) and after:

before after
20 new posts (10 pictures): server calls 97 19 (−80 %)
main-thread busy 0.22 s 0.05 s

Verified: notifications, mentions, messages, side-column, presence and inbox specs on three profiles, 33 passed; lint three ways.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #240 - A new text's stat (it comes with the message) decides first: only texts to me or to a channel I'm an active member of, and not pictures, are looked at for mentions and notifications. - They are looked at one at a time, in order, by one task, instead of all at once in a burst. - The event log names people from `Kom`'s cache (renames drop it), not one `get-uconf-stat` per login, logout and new text. - The perf spec gets a burst of 20 new posts (10 pictures) from another session, written over Protocol A. Measured with `tools/perf.sh`, before (main) and after: | | before | after | |---|---|---| | 20 new posts (10 pictures): server calls | 97 | 19 (−80 %) | | main-thread busy | 0.22 s | 0.05 s | Verified: notifications, mentions, messages, side-column, presence and inbox specs on three profiles, 33 passed; lint three ways. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Every new text in every channel I'm in was fetched in full as it was
written (body, pictures, a stat per link), whatever the notification
settings, to look for mentions; and all at once in a burst. Now its stat,
which comes with the message, decides first: only texts to me or to a
channel I'm an active member of, and not pictures, are looked at, one at
a time in order. The event log names people from Kom's cache instead of
one call per login, logout and new text.

The perf spec gets a burst of 20 new posts (10 pictures) from another
session, written over Protocol A.

Closes #240

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-240-new-posts
All checks were successful
ci / check (push) Successful in 9m19s
ci / e2e (push) Successful in 29m46s
ci / desktop (push) Successful in 15m43s
3a473e4a86
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.