Skip to content

fix: enforce native stream deadlines - #22

Merged
haolpku merged 1 commit into
OpenDCAI:mainfrom
DevChiniwala:codex/enforce-native-stream-deadlines
Sep 20, 2026
Merged

haolpku merged 1 commit into
OpenDCAI:mainfrom
DevChiniwala:codex/enforce-native-stream-deadlines

Conversation

@DevChiniwala

Copy link
Copy Markdown
Contributor

NativeAgentLoop.run_turn applied wall_clock_timeout_s around model calls, but stream_turn awaited the provider stream without a deadline. A stalled provider could therefore keep /api/chat open indefinitely. Added the same configured deadline around each native model stream and emit the existing structured error event on timeout, including cancellation of the provider iterator. Regression uses a hanging protocol-neutral client and verifies bounded completion plus cleanup. Validation: 10 native agent-loop tests passed and compileall passed; no API shape change; targets main.

Copilot AI lite review requested due to automatic review settings September 17, 2026 10:51

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@DevChiniwala
DevChiniwala force-pushed the codex/enforce-native-stream-deadlines branch from c19b432 to bf3cc94 Compare September 17, 2026 10:51
@haolpku
haolpku merged commit 2718bbd into OpenDCAI:main Sep 20, 2026
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