Skip to content

fix(a2a): preserve authoritative text replacements - #50

Merged
AgentArcLab merged 1 commit into
mainfrom
fix/a2a-authoritative-text-replacement
Jul 30, 2026
Merged

fix(a2a): preserve authoritative text replacements#50
AgentArcLab merged 1 commit into
mainfrom
fix/a2a-authoritative-text-replacement

Conversation

@AgentArcLab

Copy link
Copy Markdown
Contributor

Summary

  • propagate runner replace=True markers through RunnerRuntimeAdapter and RuntimeEvent
  • emit authoritative A2A artifact snapshots instead of appending replacement text
  • keep terminal trace output aligned with the authoritative final response
  • add direct executor and public HTTP round-trip regression tests

The three distinct Responses terminal event types remain protocol-compatible; this fixes duplicated text inside their accumulated terminal payload. ADK partial chunks remain incremental and are intentionally unchanged.

Validation

  • make public-sync-ksadk-web-static (@kingsoftcloud/ksadk-web@0.3.0)
  • uv build
  • pytest tests/ -q — 134 passed
  • ruff check ksadk/a2a/executor.py ksadk/runtime/runner_adapter.py tests/test_a2a_text_replacement.py
  • focused replacement tests — 2 passed

Original patch author preserved as zoujiawei <zoujiawei@kingsoft.com>.

Propagate runner replace markers through the RuntimeEvent bridge and A2A artifacts, while leaving ADK partial chunks on their documented incremental semantics. Add direct executor and public route regression coverage.
@AgentArcLab
AgentArcLab merged commit 4ea15cf into main Jul 30, 2026
11 checks passed
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