Skip to content

fix(pipecat): bound observer frame ID tracking - #821

Merged
Abhijeet Prasad (AbhiPrasad) merged 4 commits into
mainfrom
abhi/sdk-429-bound-pipecat-observer-frame-id-tracking
Sep 29, 2026
Merged

Abhijeet Prasad (AbhiPrasad) merged 4 commits into
mainfrom
abhi/sdk-429-bound-pipecat-observer-frame-id-tracking

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

Summary

  • Use Pipecat 1.12+'s observe_every_push=False to handle a frame only on its first push, avoiding session-long _seen_frame_ids retention.
  • Keep ID-based deduplication for Pipecat 1.3.0 and earlier.
  • Add version-aware coverage for both paths.

Linear: SDK-429

Test plan

  • test_pipecat(latest) — 8 passed
  • test_pipecat(1.3.0) — 8 passed
  • Pre-commit hooks passed

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 28, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T14:59:49.536526Z b70bfc1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 43f1794131

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "Codex (@codex) review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "Codex (@codex) address that feedback".

Comment on lines 123 to +125
async def on_process_frame(self, data: Any) -> None:
if self._uses_native_frame_deduplication:
return

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve terminal-frame delivery at the pipeline sink

With Pipecat 1.12+, observe_every_push=False delivers a frame only on its first push, whose source is not the pipeline sink. The terminal-frame guard at lines 139–140 therefore discards every EndFrame, StopFrame, and CancelFrame, while this early return also disables the per-processor callback that could observe the frame at the sink. Consequently _end_pipeline_span() never records terminal_frame or reason, and the span remains open until generic observer cleanup; keep a sink-visible path for terminal frames while deduplicating the other frame types.

Useful? React with 👍 / 👎.

@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) force-pushed the abhi/sdk-429-bound-pipecat-observer-frame-id-tracking branch from 52e0fc5 to d59bf54 Compare September 29, 2026 14:52
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) merged commit e41959e into main Sep 29, 2026
83 checks passed
@AbhiPrasad
Abhijeet Prasad (AbhiPrasad) deleted the abhi/sdk-429-bound-pipecat-observer-frame-id-tracking branch September 29, 2026 15:07
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