Skip to content

Emit b4.step as an ACTIVITY_SNAPSHOT profile so steps survive MESSAGES_SNAPSHOT #929

Open

Description

@blove

Why

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions