Repository navigation
Release feedback requests after response handling completes - #26274
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to The change releases feedback request resources once response handling is done, and existing results and error messages are preserved. No actionable merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description is detailed and covers the change, rationale, testing, visual proof, review, scope, and compatibility considerations. However, the required Linked Issue section does not contain an actual issue link and instead states that no issue is linked.
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ELI5
Feedback submission can finish while its network request stays open. Submissions now release their own request as soon as the response handling finishes.
What Changed
The feedback request helper aborts its existing controller in cleanup, after the optional image response reader and error handling complete. Successful results, retries, attachment delivery and timeout messages keep their existing behavior. All five production callers use response metadata after the helper returns; the image response body is read inside the awaited callback.
Why
Clearing the deadline after receiving headers leaves an unfinished response without a cleanup owner. Reusing the request's existing controller closes that gap without adding another timer or changing submission policy.
The actual public submission function was exercised with real Electron 43.7.5 HTTP against an owned HTTPS server on macOS. Two failed text submissions make four attempts. With 1 KiB unfinished response bodies, all four original requests remained open 10.5 seconds after submission returned, including after GC and beyond the original deadline. With this change, none remained open. A successful text submission also released its unused response. All 18 paired result, error, request-count and upload-shape controls matched.
This is native resource cleanup after an on-demand submission. It does not establish a cause for the intermittent Codex typing pause or claim a latency improvement.
Linked Issue
Performance audit; no existing issue linked.
Visual Proof
N/A
Submission results and renderer interactions are unchanged. The native before/after request ownership check is described above.
Testing
Native resource evidence is macOS/Electron. Windows and Linux use the same controller and cleanup path; no native measurements on those platforms are claimed.
Review
Independent production, native-provenance and regression review found no blocker. The production change is one line. A returned response's unused body is now retired when the helper finishes; the complete production caller census confirms no caller reads that body afterward. No SSH execution authority, remote wire, folder identity, privacy or retry policy changes.
Agent skill upstream boundary
Checklist