feat(core,webapp): version 2 transcript snapshot and a dual-version dashboard reader - #4892
feat(core,webapp): version 2 transcript snapshot and a dual-version dashboard reader#4892ericallam wants to merge 1 commit into
Conversation
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughAdds version 2 transcript snapshot types, validation, and parsing. Version 1 snapshots are upgraded in memory and invalid inputs return Merge Risk: 🟡 Moderate · up to Transcript snapshots now support both persisted versions, but a replayed message can retain its earlier arrival timestamp after snapshot replacement and display out of order. Update timestamps when applying snapshot messages before merging. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description clearly explains the snapshot format changes, dual-version reader, dashboard impact, and deploy-order requirement. It does not follow the repository template because it omits the issue reference, checklist, Testing, Changelog, and Screenshots sections. ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
035e432 to
d7b18a9
Compare
@trigger.dev/build
trigger.dev
@trigger.dev/core
@trigger.dev/python
@trigger.dev/react-hooks
@trigger.dev/redis-worker
@trigger.dev/rsc
@trigger.dev/schema-to-json
@trigger.dev/sdk
commit: |
…ashboard reader
Adds TranscriptSnapshotV2 (entries of {id, final, message} plus an opaque state record) and parseTranscriptSnapshot(), which reads a version 1 or version 2 blob into the version 2 shape. The Sessions dashboard seeds its transcript through that reader, so it keeps rendering history once the SDK starts writing version 2. The SDK still writes version 1 in this change.
d7b18a9 to
d37c018
Compare
Summary
Adds version 2 of the persisted
chat.agentsnapshot and a reader for both versions, and moves the dashboard's Sessions view onto that reader.Version 2 stores each message as
{ id, final, message }and adds astateslot for what the runtime cannot rebuild from the messages (a compaction summary, for example).parseTranscriptSnapshot()in@trigger.dev/corereads a version 1 or version 2 blob into the version 2 shape, so the SDK and the webapp share one reader. Nothing writes version 2 yet; the SDK still writes version 1 in this change.The dashboard part matters for the deploy order: the webapp must be able to read version 2 before an SDK that writes it is released, or the Sessions view stops showing history for sessions on the new SDK.