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
{{ message }}
Repository navigation
Commit 4d9c36e
Browse filesBrowse the repository at this point in the historyBrowse files
authored
feat(agents) use a TanStack DB union query for the timeline (#4347)
## Summary
- Adds `createEntityTimelineQuery`, a multi-source TanStack DB timeline
query for agent streams.
- Migrates the agents UI timeline to consume the query directly, with
live child collections for run items so streamed text updates through
DB's fine-grained reactivity instead of rematerializing the whole chat
timeline.
- Adds stable timeline ordering for streamed and optimistic rows,
improves pending queued-message placement, and keeps the chat pinned to
the bottom during streaming.
- Adds a patch changeset for `@electric-ax/agents-runtime` and
`@electric-ax/agents-server-ui`.
## Dependencies
This PR depends on TanStack DB support from:
- TanStack/db#1536
- TanStack/db#1537
## Test plan
- `pnpm --filter @electric-ax/agents-runtime typecheck`
- `pnpm --filter @electric-ax/agents-runtime build`
- `pnpm --filter @electric-ax/agents-server-ui typecheck`
- Manual browser smoke testing of sending messages and streamed agent
responses in the agents UI
Made with [Cursor](https://cursor.com)
---------
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Kyle Mathews <mathews.kyle@gmail.com>
Add a fine-grained reactive entity timeline query and migrate the agents UI to use it. Timeline rows are maintained by TanStack DB using multi-source queries and live child collections, so streamed agent responses update incrementally without rematerializing the whole chat timeline. Update the mobile app to consume the row-based timeline shape and pin React to the React Native renderer version. Keep the conformance property-test model aligned with generated entity type names.
0 commit comments