Skip to content

ref(chat): Remove unused conversation working stats - #1323

Merged
dcramer merged 4 commits into
mainfrom
ref/thread-scratch-drop-rebuildable-stats
Aug 8, 2026
Merged

dcramer merged 4 commits into
mainfrom
ref/thread-scratch-drop-rebuildable-stats

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Remove dead conversation working stats and the Redis backfill marker from thread scratch after the TTL unification in #1320.

Hard cutover

ConversationStats and ConversationBackfillState are gone. Redis conversation scratch now keeps only schemaVersion, processing, and vision. Reads ignore any leftover legacy keys instead of dual-reading them.

Local authority

Token estimates are computed live where compaction and telemetry need them. Slack backfill is guarded by SQL message/compaction history, and the backfill source is only a local span attribute for the current turn.

Cleanup

Lifecycle callbacks and fixture boilerplate that only refreshed the dead stats bag are removed. Net result is a large deletion with no product behavior change beyond empty-thread backfill being able to retry when SQL still has no history.

Refs #1267

Requested by David Cramer.

--

View Junior Session [Sentry]

Stop mirroring backfill markers and token/count stats into thread-state.
SQL hydrate rebuilds both, so Redis keeps only processing control and the
vision cache until those have a durable home.

Refs #1267

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview Aug 8, 2026 5:26pm

Request Review

@dcramer
dcramer marked this pull request as ready for review August 8, 2026 16:45
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 8, 2026
The suite is under the limit after removing unused conversation stats fixtures.
@sentry-junior sentry-junior Bot changed the title ref(chat): Drop rebuildable conversation stats from Redis scratch ref(chat): Remove unused conversation working stats Aug 8, 2026
@dcramer
dcramer merged commit f446e6f into main Aug 8, 2026
41 of 42 checks passed
@dcramer
dcramer deleted the ref/thread-scratch-drop-rebuildable-stats branch August 8, 2026 17:56

This branch was successfully deployed

1 active deployment
Preview – junior-docs — e46738fd Deployed Aug 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant