Skip to content

fix(ag-ui): resolve build errors for ACTIVITY_SNAPSHOT/DELTA events#1

Closed
corners99 wants to merge 1 commit intomainfrom
claude/fix-build-errors-1137-xMtGJ
Closed

fix(ag-ui): resolve build errors for ACTIVITY_SNAPSHOT/DELTA events#1
corners99 wants to merge 1 commit intomainfrom
claude/fix-build-errors-1137-xMtGJ

Conversation

@corners99
Copy link
Copy Markdown
Owner

Summary

  • Fixes build errors from PR feat(ag-ui): add ACTIVITY_SNAPSHOT and ACTIVITY_DELTA event support VoltAgent/voltagent#1137 by defining ActivitySnapshotEvent and ActivityDeltaEvent types locally, since @ag-ui/core v0.0.37 does not export these types or include ACTIVITY_SNAPSHOT/ACTIVITY_DELTA in its EventType enum
  • Adds handlers for activity-snapshot and activity-delta stream part types in the stream converter
  • Extracts activity events from tool results containing { activityType, content } or { activityType, patch } objects
  • Preserves activityType when round-tripping activity messages through VoltAgent message conversion

Test plan

  • pnpm build:all passes successfully (all 28 projects)
  • Biome lint passes on changed file
  • Verify activity snapshot events are emitted when tool results contain { activityType, content } objects
  • Verify activity delta events are emitted when tool results contain { activityType, patch } objects
  • Verify explicit activity-snapshot and activity-delta stream parts are converted correctly

https://claude.ai/code/session_01EdPoo8p31C68M2kJmayj9J

Define activity event types locally (not yet in @ag-ui/core v0.0.37)
to fix build errors from the original PR. Adds handlers for
activity-snapshot/activity-delta stream parts, extracts activity
events from tool results, and preserves activityType in message
round-tripping.

https://claude.ai/code/session_01EdPoo8p31C68M2kJmayj9J
@corners99 corners99 closed this Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants