Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(protobuf): serialize interruption frames#4553

Merged
aconchillo merged 1 commit into
pipecat-ai:mainfrom
he-yufeng:fix/protobuf-interruption-frame
May 27, 2026
Merged

fix(protobuf): serialize interruption frames#4553
aconchillo merged 1 commit into
pipecat-ai:mainfrom
he-yufeng:fix/protobuf-interruption-frame

Conversation

@he-yufeng

Copy link
Copy Markdown
Contributor

Summary

  • add InterruptionFrame to the protobuf frame schema
  • map it in ProtobufFrameSerializer for serialization and deserialization
  • add a roundtrip regression test so interruptions survive protobuf transport hops

Fixes #4538.

Tests

  • C:\dev\GITHUB-clean\pipecat\.venv\Scripts\python.exe -m pytest tests\test_protobuf_serializer.py -q
  • C:\dev\GITHUB-clean\pipecat\.venv\Scripts\python.exe -m ruff check src\pipecat\serializers\protobuf.py tests\test_protobuf_serializer.py
  • python -m py_compile src\pipecat\serializers\protobuf.py tests\test_protobuf_serializer.py src\pipecat\frames\protobufs\frames_pb2.py
  • git diff --check

Note

The generated protobuf file was updated from frames.proto; the checked-in gencode still uses protobuf 5.x metadata.

@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/pipecat/frames/protobufs/frames_pb2.py 0.00% 4 Missing ⚠️
Files with missing lines Coverage Δ
src/pipecat/serializers/protobuf.py 78.57% <ø> (ø)
src/pipecat/frames/protobufs/frames_pb2.py 48.00% <0.00%> (-4.18%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@aconchillo aconchillo merged commit aa3f857 into pipecat-ai:main May 27, 2026
6 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.

InterruptionFrame not serializable via protobuf — interruption may not propagate through pipeline

2 participants