← baseline_full

requests_7328

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · psf/requests

Task input

Prevent Response self-reference in redirect history

This PR should address #6295, avoiding the unnecessary addition of the current response in its own redirect history. Ideally, we should remove intermediate `.history` assignment entirely, as `Session.send()` overwrites it on the final response anyway. The intermediary behavior introduces a number of issues both in intuitiveness and a reference explosion delaying the objects being properly cleaned up after use.

That's unfortunately a breaking change we'll have to wait on, but this should fix the immediate issue for now.

Tool calls (0)

#ToolArgumentsResult
No trace captured.