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
Emit b4.step as an ACTIVITY_SNAPSHOT profile so steps survive MESSAGES_SNAPSHOT #929
b4.step travels as a CUSTOM event. AG-UI 1.0 says CUSTOM is an extension mechanism and only activity messages (role activity) survive a MESSAGES_SNAPSHOT, so a host that restores from a snapshot (CopilotKit connect, assistant-ui history.load, threadplane persistence) loses every step label, icon and source list. activityType is "an open string… the producer's, not the protocol's", STEP_* carries only a stepName, and assistant-ui ignores STEP_* entirely (research notes, Part 2 §1(iii)).
What
Emit each step as ACTIVITY_SNAPSHOT { activityType: "b4.step", messageId: <per toolCallId>, content: { toolCallId, status, label, icon?, sources? }, replace: true } alongside the CUSTOM event for one release, then retire CUSTOM. The translator's orchestration ledger already routes steps with their call; reduceTurns gains the activity form. CopilotKit and @copilotkit/angular render it through renderActivityMessages / registerRenderActivityMessage without a connector; assistant-ui maps it to agui-activity/b4.step.
Advantage
First documented plain-language tool-progress profile in AG-UI (ChatKit tasks, assistant-ui tasks and AI SDK Elements each invented a private one). Precedes an upstream RFC for a reserved ag-ui/tool-progress profile.
Activity