Comparing agentclientprotocol:main...luoyu3rd:main · agentclientprotocol/java-sdk · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: agentclientprotocol/java-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: luoyu3rd/java-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 5 files changed
  • 1 contributor

Commits on Mar 31, 2026

  1. fix: resolve duplicate JSON fields in SessionUpdate and ContentBlock …

    …serialization
    
    When using @JsonTypeInfo with visible=true, Jackson was outputting duplicate
    fields for the type identifier property (sessionUpdate and type). This caused
    JSON-RPC parsing failures in Zed editor with error:
    "duplicate field `sessionUpdate` at line 1 column 115"
    
    The fix uses JsonTypeInfo.As.EXISTING_PROPERTY with visible=true, which tells
    Jackson to use the existing record field as the type identifier instead of
    adding a separate one during serialization.
    
    Changes:
    - AcpSchema.java: Update @JsonTypeInfo annotations for SessionUpdate and
      ContentBlock interfaces to use EXISTING_PROPERTY include mode
    - Test files: Fix incorrect sessionUpdate values ("agentMessage" ->
      "agent_message_chunk", "userMessage" -> "user_message_chunk") that were
      previously masked by the serialization bug
    wangyulong authored and luoyu3rd committed Mar 31, 2026
    Configuration menu
    Copy the full SHA
    08e499f View commit details
    Browse the repository at this point in the history
Loading