GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(proxy): raise default upstream stall timeout to 600s by Wibias · Pull Request #378 · lidge-jun/opencodex Conversation
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe default upstream stall timeout increases from 300 to 600 seconds. Runtime fallback logic, web-search timeout calculations, tests, and architecture/configuration documentation are updated accordingly. ChangesStall timeout default
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@structure/04_transports-and-sidecars.md`:
- Line 103: Update the derived web-search budget documentation to reflect the
600-second default stallTimeoutSec: document the effective default as 630
seconds, consistent with max(600, 200, 200, 200) plus the 30-second allowance.
Keep the documented CLI/API defaults and calculation synchronized.
- Around line 103-105: Update the stall deadline documentation to explicitly
state that the shared ChatGPT forward/passthrough adapter and bridge streaming
path powers both the web-search and vision sidecars. Make clear that the
600-second timeout and heartbeat behavior apply across this shared
forward/sidecar path, not only to the primary provider request or web search.
Fix all unresolved CodeRabbit comments on this PR:
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 13e835cc-abc6-489e-85e8-5fd7b32db9d1
docs-site/src/content/docs/ja/reference/architecture.mddocs-site/src/content/docs/ja/reference/configuration.mddocs-site/src/content/docs/ko/reference/architecture.mddocs-site/src/content/docs/ko/reference/configuration.mddocs-site/src/content/docs/reference/architecture.mddocs-site/src/content/docs/reference/configuration.mddocs-site/src/content/docs/ru/reference/architecture.mddocs-site/src/content/docs/ru/reference/configuration.mddocs-site/src/content/docs/zh-cn/reference/architecture.mddocs-site/src/content/docs/zh-cn/reference/configuration.mdsrc/stall-timeout.tsstructure/04_transports-and-sidecars.mdtests/stall-timeout.test.tstests/web-search-timeout-plan.test.tstests/web-search.test.ts
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| timer (Codex's default `stream_idle_timeout` is 300 s and ANY SSE event re-arms it). Those | ||
| bridge-enqueued keepalive frames do NOT count as activity for the bridge's own watchdog: a bounded | ||
| stall deadline (default 300 s, configurable via `stallTimeoutSec`, checked on the 2 s heartbeat tick) | ||
| stall deadline (default 600 s, configurable via `stallTimeoutSec`, checked on the 2 s heartbeat tick) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Update the derived web-search budget to 630 seconds.
Line [103] now documents a 600-second base stall timeout, but Lines [124]-[132] still say the effective default is 230 seconds. With the documented defaults, the calculation is max(600, 200, 200, 200) + 30 = 630 seconds. This contradiction can mislead operators when diagnosing or configuring long web-search turns.
As per path instructions, user-facing documentation must remain synchronized with actual CLI/API behavior.
-`max(base stall, connect timeout, routed-model stall, sidecar timeout) + 30 s` (230 s at defaults), +`max(base stall, connect timeout, routed-model stall, sidecar timeout) + 30 s` (630 s at defaults),
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@structure/04_transports-and-sidecars.md` at line 103, Update the derived
web-search budget documentation to reflect the 600-second default
stallTimeoutSec: document the effective default as 630 seconds, consistent with
max(600, 200, 200, 200) plus the 30-second allowance. Keep the documented
CLI/API defaults and calculation synchronized.
Source: Path instructions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| stall deadline (default 600 s, configurable via `stallTimeoutSec`, checked on the 2 s heartbeat tick) | ||
| closes the stream with `response.incomplete` / `upstream_stall_timeout` and cancels the upstream | ||
| request if no real adapter events arrive. Adapter-yielded `{ type: "heartbeat" }` events DO reset |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Clarify that the shared bridge path also covers both sidecars.
The timeout description should explicitly state that the ChatGPT forward/passthrough adapter and bridge streaming path powers both the web-search and vision sidecars. Without that scope, readers may incorrectly assume this 600-second stall deadline applies only to the primary provider request or web search.
As per path instructions, bridge stall-timeout wording must reflect the shared forward/sidecar path.
The HTTP/SSE bridge emits `response.heartbeat` events during upstream silence ... +The same ChatGPT forward/passthrough adapter and bridge streaming path powers the web-search and +vision sidecars, so this stall deadline applies to those sidecar streams as well.
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| stall deadline (default 600 s, configurable via `stallTimeoutSec`, checked on the 2 s heartbeat tick) | |
| closes the stream with `response.incomplete` / `upstream_stall_timeout` and cancels the upstream | |
| request if no real adapter events arrive. Adapter-yielded `{ type: "heartbeat" }` events DO reset | |
| stall deadline (default 600 s, configurable via `stallTimeoutSec`, checked on the 2 s heartbeat tick) | |
| closes the stream with `response.incomplete` / `upstream_stall_timeout` and cancels the upstream | |
| request if no real adapter events arrive. Adapter-yielded `{ type: "heartbeat" }` events DO reset | |
| The same ChatGPT forward/passthrough adapter and bridge streaming path powers the web-search and | |
| vision sidecars, so this stall deadline applies to those sidecar streams as well. |
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@structure/04_transports-and-sidecars.md` around lines 103 - 105, Update the
stall deadline documentation to explicitly state that the shared ChatGPT
forward/passthrough adapter and bridge streaming path powers both the web-search
and vision sidecars. Make clear that the 600-second timeout and heartbeat
behavior apply across this shared forward/sidecar path, not only to the primary
provider request or web search.
Source: Path instructions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Fix the leftover 230s web-search budget example to 630s, and note that the bridge stall deadline also covers web-search and vision sidecar streams.
|
Closing with thanks — the premise no longer holds on current dev. Since the heartbeat work landed (WP4), the bridge resets the stall clock on EVERY adapter event, including keepalive heartbeats (src/bridge.ts:452; pinned by tests/bridge.test.ts:461), and Cursor converts token deltas/checkpoint progress into heartbeat events (src/adapters/cursor/live-transport.ts:860,935). So a "heartbeat-only progress got cut at 300s" scenario points to a pre-WP4 runtime or a heartbeat-delivery gap — not to a too-small budget. Raising the global default to 600s would keep truly dead upstreams alive for 10 minutes everywhere and push the web-search watchdog to ~630s (structure/04_transports-and-sidecars.md:124) — a global double-mask. Long-running Cursor operators already have the per-config If a 300s cut still reproduces on a WP4+ runtime, please reopen with the exact SHA, a restarted proxy, and the last adapter-event type + timestamp — that would indicate a heartbeat delivery bug, which we would fix directly instead. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.