Skip to content
Source
Sign inSign up
TanStack/ai
Open History to see the last commit

activity-middleware-persistence.md

5 lines320 Bytes

Apply ACTIVITY_SNAPSHOT and ACTIVITY_DELTA events that chat middleware adds to ctx.activities, so withPersistence saves them and reconstructChat restores their activity rows. A middleware that passes on an adapter activity event, or an exact copy of it, does not apply it twice.