Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed July 20, 2026, 2:56 AM ET / 06:56 UTC. Summary PR surface: Source +1, Tests +40. Total +41 across 2 files. Reproducibility: yes. source-reproducible with high confidence: current main’s non-OK generated-video download branch throws before consuming or cancelling the response body. The new test also identifies the focused provider call path, although this review did not execute it. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Keep the minimal cancellation and regression test, then add redacted terminal or runtime output that executes the actual Google provider flow with a controlled non-OK streamed download and shows both cancellation and the preserved error. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible with high confidence: current main’s non-OK generated-video download branch throws before consuming or cancelling the response body. The new test also identifies the focused provider call path, although this review did not execute it. Is this the best way to solve the issue? Yes, the cancellation before the existing throw is the narrowest maintainable fix and matches merged cleanup patterns; the remaining gap is evidence that the exact provider path behaves as intended. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 34f942e89db0. Label changesLabel justifications:
Evidence reviewedPR surface: Source +1, Tests +40. Total +41 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
ac3cfd5 to
5124537
Compare
5124537 to
8075cba
Compare
|
Maintainer verification of @Monkey-wusky's original PR, exact GitHub-signed head bd81605:
This directly addresses ClawSweeper's request for evidence from the real provider's controlled streamed-error path. The contributor-authored PR body is intentionally preserved, so the requested proof is recorded here instead of rewriting their submission. |
|
Merged via squash.
|
* origin/main: (128 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) refactor(ui): give Memory the shared hub header with hoisted agent scope (#115884) fix(test): stop asserting exact video deadline budgets (#115883) feat(gateway): expose MCP tool identity in effective tools (#115870) fix(skills): verify workshop migration without recovery refactor: replace context-engine retry proxy with declared params (#115872) fix: reject malformed UTF-8 in hosted official plugin catalog feed responses (#111768) fix(codex): harden app inventory invalidation and targeted publishes (#115866) fix(browser): uploads fail when the browser runs on a remote node (#115291) fix(scripts): keep format-docs output tails UTF-8 safe (#110825) fix(skills): recover complete apply transitions fix(macos): reap timed-out shell process groups (#115859) refactor(ollama): unify model inspection and setup (#115879) fix(ui): muted theme text below WCAG AA contrast in webchat (#114586) fix(test): restore isolated memory manager tests (#115880) fix(skills): revalidate rollback targets ...
…discovery * origin/main: (72 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) refactor(ui): give Memory the shared hub header with hoisted agent scope (#115884) fix(test): stop asserting exact video deadline budgets (#115883) feat(gateway): expose MCP tool identity in effective tools (#115870) fix(skills): verify workshop migration without recovery refactor: replace context-engine retry proxy with declared params (#115872) fix: reject malformed UTF-8 in hosted official plugin catalog feed responses (#111768) fix(codex): harden app inventory invalidation and targeted publishes (#115866) fix(browser): uploads fail when the browser runs on a remote node (#115291) fix(scripts): keep format-docs output tails UTF-8 safe (#110825) fix(skills): recover complete apply transitions fix(macos): reap timed-out shell process groups (#115859) refactor(ollama): unify model inspection and setup (#115879) fix(ui): muted theme text below WCAG AA contrast in webchat (#114586) fix(test): restore isolated memory manager tests (#115880) fix(skills): revalidate rollback targets ...
* origin/main: (95 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) refactor(ui): give Memory the shared hub header with hoisted agent scope (#115884) fix(test): stop asserting exact video deadline budgets (#115883) feat(gateway): expose MCP tool identity in effective tools (#115870) fix(skills): verify workshop migration without recovery refactor: replace context-engine retry proxy with declared params (#115872) fix: reject malformed UTF-8 in hosted official plugin catalog feed responses (#111768) fix(codex): harden app inventory invalidation and targeted publishes (#115866) fix(browser): uploads fail when the browser runs on a remote node (#115291) fix(scripts): keep format-docs output tails UTF-8 safe (#110825) fix(skills): recover complete apply transitions fix(macos): reap timed-out shell process groups (#115859) refactor(ollama): unify model inspection and setup (#115879) fix(ui): muted theme text below WCAG AA contrast in webchat (#114586) fix(test): restore isolated memory manager tests (#115880) fix(skills): revalidate rollback targets ...
…d-fingerprint * origin/main: (36 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) refactor(ui): give Memory the shared hub header with hoisted agent scope (#115884) fix(test): stop asserting exact video deadline budgets (#115883) feat(gateway): expose MCP tool identity in effective tools (#115870) fix(skills): verify workshop migration without recovery refactor: replace context-engine retry proxy with declared params (#115872) fix: reject malformed UTF-8 in hosted official plugin catalog feed responses (#111768) fix(codex): harden app inventory invalidation and targeted publishes (#115866) fix(browser): uploads fail when the browser runs on a remote node (#115291) fix(scripts): keep format-docs output tails UTF-8 safe (#110825) fix(skills): recover complete apply transitions fix(macos): reap timed-out shell process groups (#115859) refactor(ollama): unify model inspection and setup (#115879) fix(ui): muted theme text below WCAG AA contrast in webchat (#114586) fix(test): restore isolated memory manager tests (#115880) fix(skills): revalidate rollback targets ...
…-mascot-cadence * origin/main: (24 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) fix(skills): verify workshop migration without recovery fix(skills): recover complete apply transitions fix(skills): revalidate rollback targets fix(skills): restore post-commit write failures fix(skills): retain rollback for partial writes fix(skills): avoid recursive workshop recovery locks fix(skills): use bounded config recovery reads chore(skills): prune workshop max-lines baseline fix(skills): preserve workshop recovery config fix(skills): refresh snapshots after apply rollback fix(skills): guard workshop rollback recovery refactor(skills): drop obsolete workshop lint waiver test(skills): assert recovery through retry test(skills): prove workshop apply recovery fix(skills): avoid recursive workshop target locks ...
…ocess-probes * origin/main: (56 commits) fix(codex): keep stressed inference turns isolated and observable (#115893) feat(skills): review interrupted deep turns in experience review (#115887) fix: reject malformed UTF-8 in proxy gateway error response bodies (#111852) fix(browser): stabilize atomic download staging (#115892) fix(google): cancel unread response body on video download error (#110045) refactor(ui): give Memory the shared hub header with hoisted agent scope (#115884) fix(test): stop asserting exact video deadline budgets (#115883) feat(gateway): expose MCP tool identity in effective tools (#115870) fix(skills): verify workshop migration without recovery refactor: replace context-engine retry proxy with declared params (#115872) fix: reject malformed UTF-8 in hosted official plugin catalog feed responses (#111768) fix(codex): harden app inventory invalidation and targeted publishes (#115866) fix(browser): uploads fail when the browser runs on a remote node (#115291) fix(scripts): keep format-docs output tails UTF-8 safe (#110825) fix(skills): recover complete apply transitions fix(macos): reap timed-out shell process groups (#115859) refactor(ollama): unify model inspection and setup (#115879) fix(ui): muted theme text below WCAG AA contrast in webchat (#114586) fix(test): restore isolated memory manager tests (#115880) fix(skills): revalidate rollback targets ...
…nclaw#110045) * fix(google): cancel unread response body on video download error * fix(google): safely cancel failed streaming video downloads --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
When
downloadGeneratedVideoFromUrireceives a non-OK response (e.g. 503), it throws immediately without canceling the response body. The unconsumed stream holds a connection open.Why This Change Was Made
Follows the same pattern as #109701, #109519, #109728, #110039 — cancel the response body before throwing.
User Impact
No user-facing change. Prevents resource leaks when Google video generation downloads fail with non-OK HTTP status codes.
Evidence
Real HTTP server proof
The proof script simulates a Google direct-URI download endpoint returning 503 with a slow binary stream, then exercises the cancel-before-throw pattern.
Unit test
New test ("cancels response body on non-OK direct URI download before throwing") verifies
body.cancel()is called once before the error propagates, usingReadableStream({ cancel })spy pattern.