fix(nextcloud-talk-plugin): chunk long messages for Hermes cron delivery #1

Merged
harald merged 1 commit from hermes/nextcloud-talk-chunking into main 2026-08-02 09:33:17 +02:00 AGit
Contributor

Hermes delivery layer truncates cron output at MAX_PLATFORM_OUTPUT (4000
chars) unless the adapter advertises splits_long_messages=True. Mark the
Nextcloud Talk adapter as such and implement word-boundary chunking in
send() and the standalone path, splitting content over 10000 chars into
multiple Talk messages with unique reference ids (Nextcloud dedupes on
referenceId, so a per-chunk suffix is required to avoid drops).

Verified end-to-end against nc.hoyer.xyz: a 59,582-char payload was
delivered as 6 Talk messages (ids 33286-33291), all under the 10000
limit.

Hermes delivery layer truncates cron output at MAX_PLATFORM_OUTPUT (4000 chars) unless the adapter advertises splits_long_messages=True. Mark the Nextcloud Talk adapter as such and implement word-boundary chunking in send() and the standalone path, splitting content over 10000 chars into multiple Talk messages with unique reference ids (Nextcloud dedupes on referenceId, so a per-chunk suffix is required to avoid drops). Verified end-to-end against nc.hoyer.xyz: a 59,582-char payload was delivered as 6 Talk messages (ids 33286-33291), all under the 10000 limit.
Hermes delivery layer truncates cron output at MAX_PLATFORM_OUTPUT (4000
chars) unless the adapter advertises splits_long_messages=True. Mark the
Nextcloud Talk adapter as such and implement word-boundary chunking in
send() and the standalone path, splitting content over 10000 chars into
multiple Talk messages with unique reference ids (Nextcloud dedupes on
referenceId, so a per-chunk suffix is required to avoid drops).

Verified end-to-end against nc.hoyer.xyz: a 59,582-char payload was
delivered as 6 Talk messages (ids 33286-33291), all under the 10000
limit.
harald merged commit fcf2e57fcd into main 2026-08-02 09:33:17 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
harald/nixcfg!1
No description provided.