Repository navigation
fix(plugins): report request timeouts for stalled response bodies - #116166
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 29, 2026, 9:42 PM ET / July 30, 2026, 01:42 UTC. ClawSweeper reviewWhat this changesThe PR passes each plugin’s existing request deadline into the bounded HTTP response-body reader so stalled response streams return the plugin’s established timeout result instead of a generic body-reader stall error. Merge readinessKeep this PR open for normal member/maintainer review. The patch is a focused, owner-level timeout propagation fix across OpenAI device login, MS Teams uploads, and QQ channel API reads; no concrete correctness or security defect is evident from the supplied diff and CI evidence, while the Priority: P2 Review scores
Verification
How this fits togetherThese plugin request paths start an operation-level timeout, make an HTTP request, then parse the returned response body. The bounded reader sits after response headers; this change makes it use the same owner-level deadline so timeout reporting remains consistent through request completion. flowchart LR
A[Plugin operation] --> B[Owner request deadline]
B --> C[HTTP request]
C --> D[Response headers]
D --> E[Bounded response-body reader]
B --> E
E --> F[Stable plugin timeout or parsed result]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +6, Tests -3. Total +3 across 5 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the owner-level timeout propagation approach, land it only after the relevant plugin owners confirm the expected timeout wording and behavior for stalled body reads, and keep shared HTTP defaults unchanged. Do we have a high-confidence way to reproduce the issue? Yes, source reproduction is reasonably clear: each affected operation has an existing request deadline while its response-body reader previously lacked that deadline. The PR body also reports focused reproductions on current main, but this review did not independently execute them. Is this the best way to solve the issue? Yes. Passing the already-established owner timeout into the bounded reader is the narrowest maintainable fix because it preserves plugin-specific timeout policy without changing shared HTTP behavior. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 21db50efc72e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
e747e5f to
b23391c
Compare
|
Merged via squash.
|
* origin/main: fix(macos): stop canceled voice wake timers (openclaw#116189) fix(macos): coalesce location permission requests (openclaw#116183) fix(macos): guard remote tunnel restart ownership (openclaw#116172) fix(agents): throw CompactionError when summarization fails (openclaw#115500) fix(test): isolate ACP startup output stream (openclaw#116076) fix(agents): deny all tools when scheduled authority names a removed account (openclaw#115932) fix(test): stop collecting Vydra test helpers (openclaw#116139) fix(discord): preserve webhook deadline errors (openclaw#116155) fix(test): isolate Google embedding batch timeout (openclaw#116161) fix(cron): stop replaying old schedule slots after a cron job is edited (openclaw#115779) fix(plugins): report request timeouts for stalled response bodies (openclaw#116166)
…enclaw#116166) * fix(openai): preserve device-code request timeouts * fix(msteams): preserve SharePoint upload timeouts * fix(qqbot): preserve channel API request timeouts
What Problem This Solves
Fixes an issue where OpenAI device-code login, MS Teams SharePoint uploads, and QQ channel API calls could report a generic response-body stall before the plugin's existing request deadline when response headers arrived but the body stopped streaming.
Why This Change Was Made
Each plugin now passes its existing operation timeout into the bounded response reader, so the owner-level deadline remains authoritative without changing shared HTTP defaults. The OpenAI and Teams regression tests also await timer advancement and rejection together so a failing assertion cannot leak an unhandled rejection.
User Impact
Users now receive the plugin's stable request-timeout result for stalled response bodies, matching the same deadline used before response headers arrive.
Evidence
main: OpenAI returnederror body read stalled for 10000ms, Teams returned a 30000ms body-reader error, and QQBot returned the 10000ms body-reader error.git diff --checkpassed;oxfmtcompleted on all five changed files.openai/codex@9a6668f674d74b35418fa534b3b6285a315d0765:codex-rs/login/src/device_code_auth.rs:62-178andcodex-rs/login/tests/suite/device_code_login.rs:38-87,216-248.AI-assisted: yes. I reviewed the implementation and validation results.