Repository navigation
[codex] Tune adaptive stream readiness timeouts - #5767
diegosouzapw merged 6 commits into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Follow-up after review: verified the env override test is already asserting |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
9358eea
into
cheaper-inference:release/v3.8.43
|
Thanks @nguyenxvotanminh3! The adaptive readiness cap + env knob + SSE keepalive solves real false-timeouts on high-reasoning runs. Merged into release/v3.8.43. 🙌 |
…t-goal-resilience-pr Resolve conflicts against release/v3.8.43 (which now contains cheaper-inference#5767): preserve the agentGoalPolicy Math.max readiness-timeout guard and the OMNIROUTE_AGENT_GOAL_* env docs/example blocks, keep release's version of everything already delivered by cheaper-inference#5767. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
Integrated into release/v3.8.43
Summary
STREAM_READINESS_MAX_TIMEOUT_MSso operators can raise the adaptive first-event cap for long-thinking agent workloads without changing code..env.example.Why
Large Codex/Kiro-style agent requests can legitimately take longer before producing the first useful SSE event. The existing adaptive policy could still cap at 120s, causing premature stream-readiness timeouts even though the stream may be alive.
Validation
node --import tsx/esm --test tests/unit/runtime-timeouts.test.ts tests/unit/stream-readiness-policy.test.ts tests/unit/stream-readiness.test.ts tests/unit/combo-stream-readiness-fallback.test.ts tests/unit/chat-retry-policy.test.tsnode --import tsx/esm --test tests/unit/runtime-timeouts.test.ts tests/unit/stream-readiness-policy.test.tson the standalone branchnpm run typecheck:corenpx eslint src/shared/utils/runtimeTimeouts.ts open-sse/config/constants.ts open-sse/handlers/chatCore.ts open-sse/utils/streamReadinessPolicy.ts tests/unit/runtime-timeouts.test.ts tests/unit/stream-readiness-policy.test.tsgit diff --checkhttp://localhost:20129/api/auth/statusreturned 200 and resolver acceptedSTREAM_READINESS_MAX_TIMEOUT_MS=300000