fix(app): news digests come the day they are turned on, and nothing is posted when the state cannot be saved
Turning a daily target on only marks its current items as seen, so that day's digest still goes out at its hour. Each round saves its state before posting and posts nothing when the save fails, so the same items are not posted again every minute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -207,10 +207,12 @@ channel, titles and links only (no LLM, nothing Jarvis writes about them).
|
||||
announced) and `collect.digestHour` (0-23, default 9, local time). Nothing is announced with
|
||||
`features.collect` off.
|
||||
- While the services run, every minute: a target whose notifications just began only marks what it
|
||||
has as seen (nothing old is announced); a `now` target posts what is new since its last post; a
|
||||
`daily` target posts once a day in the digest hour what came since its last digest (nothing when
|
||||
nothing came). The state is `config/collect-notify.json` (per target the newest item announced and
|
||||
the day of its last digest).
|
||||
has as seen (nothing old is announced; its first digest still comes that day); a `now` target
|
||||
posts what is new since its last post; a `daily` target posts once a day in the digest hour what
|
||||
came since its last digest (nothing when nothing came). The state is `config/collect-notify.json`
|
||||
(per target the newest item announced and the day of its last digest), saved before anything is
|
||||
posted: a round whose state cannot be saved posts nothing (else it would post the same items every
|
||||
minute) and the next round tries again.
|
||||
- A post is `수집 소식: <target> 새 글 N건` (`수집 소식 하루 요약: ...` for the digest), then at most 10
|
||||
items as `- <title> <link>` (titles at most 200 characters; the link in `<>` so Discord shows no
|
||||
preview), then `외 N건`. Posts ping nobody. Each is recorded in the activity (`collect.notify`,
|
||||
|
||||
Reference in New Issue
Block a user