Skip to content

fix(bcs): extend provider SSE idle timeout#323

Open
vzvince wants to merge 4 commits into
inclusionAI:devfrom
vzvince:codex/provider-sse-idle-15m
Open

fix(bcs): extend provider SSE idle timeout#323
vzvince wants to merge 4 commits into
inclusionAI:devfrom
vzvince:codex/provider-sse-idle-15m

Conversation

@vzvince

@vzvince vzvince commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Increase the application-level Provider SSE idle timeout from 2 minutes to 15 minutes.
  • Keep the Provider response-header phase bounded at 125 seconds while removing the reqwest body read timeout from established SSE streams.
  • Add timeout policy diagnostics and unit coverage for the new SSE timeout behavior.

Why

Long-running Provider operations can legitimately produce no response-body data for more than two minutes. The previous application idle timeout and reqwest read timeout could close those healthy SSE streams before the Provider emitted its next event or heartbeat.

Separating response-header timeout handling from response-body liveness allows established SSE streams to remain idle for up to 15 minutes without allowing the initial Provider request to wait indefinitely for headers.

User impact

Provider SSE runs can now tolerate longer silent processing periods. Any SSE body chunk, including a standard SSE comment heartbeat, continues to reset the application idle timer.

Testing

  • cargo test -p bcs-provider-http
  • cargo check -p bcs-provider-http

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@vzvince
vzvince force-pushed the codex/provider-sse-idle-15m branch from cef0d75 to acdc6e3 Compare July 22, 2026 07:52
@vzvince
vzvince marked this pull request as ready for review July 22, 2026 08:24
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@carolynli

Copy link
Copy Markdown
Collaborator

@codex please review this pr.

@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: acdc6e3695

ℹ️ 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 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 address that feedback".

Comment thread src/bcs/crates/adapters/http/bcs-provider-http/src/lib.rs
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.

3 participants