Repository navigation
custom(google-send-again-memory-30d): Send again for forgotten Google runs, 30-day memory history for Google bots - #6
Merged
Conversation
…alendar run whose event was forgotten, and a Google bot's memory history keeps 30 days Send again replays what the run's card kept. Once run history dropped the event (account disconnected, or the event is over 30 days old) it now refuses with a plain sentence, before the run's one Send again is spent. A bot with Google on and an account open to it keeps 30 days of memory history rows; other bots keep 90. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nished Google run whose sender, place or link went at a disconnect, and finds the run across all automations (review round 1) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Old-G
force-pushed
the
Old-G/google-send-again-memory-30d
branch
from
November 25, 2026 09:35
445e483 to
dcaf443
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #4 (D3a + D5).
What
googleAccountsabsent = all accounts, or non-empty) keeps 30 days of memory history rows instead of 90, on read, on the background sweep and in listed unwritten rows. Other bots keep 90.Known limits
Performance
One extra in-memory lookup of the run in automation run history per Send again click, and one bot-list lookup per memory history read. No new timers, no extra disk reads.
Testing
bot-run-google-forgotten.test.ts: realforgetAutomationRunGoogleEvents+sendRunAgain: fresh Gmail run is sent; after disconnect or past 30 days (swept or not) it is refused without claim or send; Slack runs unchanged. Fails with the check removed.bot-memory-history.test.ts: a Google bot's rows go after 30 days on disk, another bot keeps them. Fails with the 30-day branch removed.Risk
Low. Two guarded additions behind custom-build markers; the default
usesGooglekeeps upstream behavior.How to revert
git revert <merge commit>— no data migration; history rows already pruned past 30 days are not restored.