You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An edit overwrites the cached message's text and raw_json, so the earlier version is gone from the cache. Messages are kept forever, but their earlier wording isn't: an agent can't answer "what did they write first?".
Proposed: before an edit replaces a message, keep the previous text, edit_date (or date) and fetched_at in a message_edits table, one row per earlier version. tg messages get --edits shows them; tg sql can query them. Only text versions are kept, not every raw_json, to bound the size; measure it on the #80 benchmark.
Done when e2e tests edit a made-up message twice and read both earlier versions, and the docs describe the table and its size cost. Related: #80.
Activity