Skip to content

feat(acp-core): add SessionInfoUpdate to the SessionUpdate union - #18

Open
ohulett-hub wants to merge 3 commits into
agentclientprotocol:mainfrom
atlassian-forks:feat/session-info-update
Open

ohulett-hub wants to merge 3 commits into
agentclientprotocol:mainfrom
atlassian-forks:feat/session-info-update

Conversation

@ohulett-hub

Copy link
Copy Markdown

Problem

session_info_update is a stable ACP v1 SessionUpdate variant (per the protocol schema), but acp-java-sdk's SessionUpdate union does not model it.
Agents/clients that send or receive this notification fail with InvalidTypeIdException instead of handling it as a normal typed update.

This PR

  • Adds SessionInfoUpdate (optional title, updatedAt, _meta) as a registered SessionUpdate subtype, matching the protocol schema.
  • Preserves the existing WRITE_ONLY discriminator convention so each subtype still serializes its sessionUpdate key exactly once.
  • Restores/keeps the existing generic UserMessageChunk notification-handling test alongside new coverage for the raw session_info_update payload.

Validation

./mvnw clean verify passes across all reactor modules (unit + integration).

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.

1 participant