Skip to content

fix(app-server): preserve transcript delivery under backpressure - #648

Closed
GraciousGazelles wants to merge 1 commit into
mainfrom
fix/app-server-transcript-delivery
Closed

GraciousGazelles wants to merge 1 commit into
mainfrom
fix/app-server-transcript-delivery

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • Keep authoritative transcript deltas and completed items deliverable when the bounded in-process consumer queue is saturated.
  • Align in-process notification delivery with the client facade delivery tier.

Validation

  • Candidate is the reviewed successor commit e69c0d7c038861e7ea5c061b869a136e425021dc.
  • Base verified as 11b8560012a7c1373d088f3626f8d68e34802922 (origin/main) before publication.
  • No additional tests or reruns performed in this promotion step.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@GraciousGazelles
GraciousGazelles marked this pull request as ready for review August 20, 2026 18:43
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 20, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Aug 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 20, 2026
@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

/gemini review

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the server_notification_requires_delivery function in in_process.rs to include additional ServerNotification variants, ensuring they are not lost when the consumer queue is saturated. The reviewer suggests also including ThreadRealtimeTranscriptDelta and ThreadRealtimeTranscriptDone to preserve realtime transcript deltas and completions under backpressure.

Comment on lines 111 to 121
matches!(
notification,
ServerNotification::TurnCompleted(_)
| ServerNotification::ThreadSettingsUpdated(_)
| ServerNotification::ItemCompleted(_)
| ServerNotification::ExternalAgentConfigImportCompleted(_)
| ServerNotification::AgentMessageDelta(_)
| ServerNotification::PlanDelta(_)
| ServerNotification::ReasoningSummaryTextDelta(_)
| ServerNotification::ReasoningTextDelta(_)
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The in-process runtime's delivery tier should also preserve realtime transcript deltas and completions under backpressure. Please include ThreadRealtimeTranscriptDelta and ThreadRealtimeTranscriptDone in the matches block to ensure they are not dropped when the bounded consumer queue is saturated.

    matches!(\n        notification,\n        ServerNotification::TurnCompleted(_)\n            | ServerNotification::ThreadSettingsUpdated(_)\n            | ServerNotification::ItemCompleted(_)\n            | ServerNotification::ExternalAgentConfigImportCompleted(_)\n            | ServerNotification::AgentMessageDelta(_)\n            | ServerNotification::PlanDelta(_)\n            | ServerNotification::ReasoningSummaryTextDelta(_)\n            | ServerNotification::ReasoningTextDelta(_)\n            | ServerNotification::ThreadRealtimeTranscriptDelta(_)\n            | ServerNotification::ThreadRealtimeTranscriptDone(_)\n    )

@GraciousGazelles

Copy link
Copy Markdown
Collaborator Author

Superseded by #807, merged as f55db2f. The complete additive delivery-classifier change from this PR is retained in that successor, which also includes realtime transcript delta/done handling and matching client coverage. Closing this duplicate without deleting its branch or history. Separate remote-client backpressure work in #806 remains open and is not superseded by this closure.

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