Repository navigation
fix(app-server): preserve transcript delivery under backpressure - #648
GraciousGazelles wants to merge 1 commit into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
/gemini review |
There was a problem hiding this comment.
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.
| matches!( | ||
| notification, | ||
| ServerNotification::TurnCompleted(_) | ||
| | ServerNotification::ThreadSettingsUpdated(_) | ||
| | ServerNotification::ItemCompleted(_) | ||
| | ServerNotification::ExternalAgentConfigImportCompleted(_) | ||
| | ServerNotification::AgentMessageDelta(_) | ||
| | ServerNotification::PlanDelta(_) | ||
| | ServerNotification::ReasoningSummaryTextDelta(_) | ||
| | ServerNotification::ReasoningTextDelta(_) | ||
| ) |
There was a problem hiding this comment.
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 )|
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. |
Summary
Validation
e69c0d7c038861e7ea5c061b869a136e425021dc.11b8560012a7c1373d088f3626f8d68e34802922(origin/main) before publication.