ta
TanStack
GitHub
ai
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
ai
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
compaction
a183deaf feat(ai-persistence): stamp stable ids on persisted messages The chat engine ids assistant messages but leaves incoming user messages, engine-created tool messages, and compaction-injected messages without one. `withPersistence` now fills in an id for any message that lacks one, in place, before each `saveThread`. The same message keeps its id across a run's saves and, when the server owns the thread, across the next turn's reload. This lets a row-keyed persistence adapter reconcile by id (SELECT id, version then delete/insert/update) instead of rewriting the whole transcript. Order and version (content hash) stay the adapter's to own; see the new "Storing messages per row" section in the store reference. - ensureMessageIds() at all four save points (start, streaming snapshot, interrupt boundary, finish) plus the pending-turn seam. - Tests: every persisted message has an id, and earlier ids stay stable across a continuation turn. - Existing verbatim-transcript assertions relaxed to tolerate the added id. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Jack Herri...
J
Succeeded
compaction
a183deaf Merge eb89d094777a44c9a93685e7ba4710b58d69f366 into 4e9c5d2887dc9a3d64fce6ed424aa68f451e20f6
by Jack Herri...
J
Succeeded
compaction
deea5e30 docs: document compaction + persistence interaction and test the seam Server-side `withPersistence` and `withCompaction` share the run's message array. Compaction rewrites it in `onConfig`, and `withPersistence.onFinish` saves that array with a full-overwrite `saveThread`, so the stored thread becomes the compacted one. This was undocumented and untested. - Add a "Compaction and persistence" section to the compaction guide, plus a callout on the chat-persistence page, with the ways to keep a full transcript. - Add a with-persistence unit test that drops a message in `onConfig` and asserts the saved thread is the compacted set. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Jack Herri...
J
Succeeded
compaction
deea5e30 Merge 058921e523d728d72b8c11d4cb545717686c6b03 into 4e9c5d2887dc9a3d64fce6ed424aa68f451e20f6
by Jack Herri...
J
Succeeded
compaction
af0e15be feat(ai-compaction): add composeStrategies combinator composeStrategies runs strategies in order and escalates: it stops once the transcript is back under maxTokens. Lets you clear old tool output first and fall back to evicting old messages only when that isn't enough. Docs, README, and unit tests included. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Jack Herri...
J
Succeeded
compaction
af0e15be Merge 4dea0fbf6b9de9ddb71a962f1a483e50d159a91b into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Succeeded
compaction
f19cc85a Merge f9d6e1e66d4fb98673137c01fa1463e381f7a49c into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Succeeded
compaction
f19cc85a ci: apply automated fixes
by autofix-ci...
a
Succeeded
compaction
c884ddff Merge 3f77a40cf89af16631bbe4a03142a5c432f94a7b into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Succeeded
compaction
fb8db144 docs: add compaction guide Document @tanstack/ai-compaction under Advanced > Middleware: the problem it solves, evict vs summarize wiring, the options table, and what it keeps safe. Add the nav entry and cross-link from the Middleware guide. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Jack Herri...
J
Succeeded
compaction
fb8db144 Merge 948b23172b30d3bccff7721624643dbe7aafc097 into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Succeeded
compaction
83c206a8 Merge 941d5d8ef8cc9c7967567362277d1123106e2ba5 into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Succeeded
compaction
83c206a8 ci: apply automated fixes
by autofix-ci...
a
Succeeded
compaction
776df61a feat(ai-compaction): add context-window compaction middleware Add @tanstack/ai-compaction — withCompaction() rewrites messages via the chat() onConfig hook before each model call: keeps the recent tail verbatim, replaces the older head with a summary (when a summarize callback is given) or an eviction marker, and preserves tool-call/result pairing. Includes a panel demo (/compaction) and an e2e wire test. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
by Jack Herri...
J
Succeeded
compaction
776df61a Merge cd413c4a96bcb24d2d0c4e51ee7caf9decfaeb17 into c7c3f9508c024a4ecb3ff2c75f4c54054a66e429
by Jack Herri...
J
Previous
Next