Skip to content

fix(gsheets-logger): park undelivered rows across a spreadsheet rotation - #97

Merged
rmyndharis merged 2 commits into
mainfrom
fix/gsheets-rotation-and-sender-keys
Aug 12, 2026
Merged

fix(gsheets-logger): park undelivered rows across a spreadsheet rotation#97
rmyndharis merged 2 commits into
mainfrom
fix/gsheets-rotation-and-sender-keys

Conversation

@rmyndharis

Copy link
Copy Markdown
Owner

onConfigChange drains the buffer before swapping the client so rows land in the spreadsheet they were captured for. But flush() swallows its own failure, so a drain that could not reach Sheets leaves every row in place — and the next flush sends message content captured under one spreadsheet and credential to whichever target the operator just rotated to.

Rows still queued after the drain are now moved to their own storage key and reported once. They are kept rather than discarded, and they never cross the boundary the rotation just drew.

Also clarifies voice-transcription's chatDelivery: reply. The description said the transcript is "visible to them"; in a group that is every member, which is worth knowing before switching it on. Behaviour is unchanged and it still defaults to off.

Verification

  • 585 tests pass, catalog up to date. The rotation fix is test-first: the test drives a failing drain and asserts the rows are parked, the operator is told, and the live buffer is left empty.

…the new sheet

onConfigChange drains the buffer before swapping the client, so rows land in the spreadsheet they were
captured for. But flush() swallows its own failure, so a drain that could not reach Sheets leaves every
row in place — and the next flush sends message content captured under one spreadsheet and credential
to whichever target the operator just rotated to.

Rows still queued after the drain are moved to their own storage key and reported once. They are kept,
not discarded, and they never cross the boundary the rotation just drew.
`reply` quote-replies to the sender, which the description said was "visible to them". In a group that
is every member: the transcript of a voice note read out to the whole chat. The option still defaults
to off and its behaviour is unchanged — the config description and the README table now state the
consequence where an operator reads it, before switching it on.
@rmyndharis
rmyndharis merged commit 70bb7cf into main Aug 12, 2026
1 check passed
@rmyndharis
rmyndharis deleted the fix/gsheets-rotation-and-sender-keys branch August 12, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant