Repository navigation
Fix/media download http errors 3852 - #3885
Richard Lundeen (richlundeen) merged 15 commits into
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
Download errors can leak between conversations because they are keyed by list position, and the 404 test can pass even if the HTTP status check is removed.
2 open issues
What changed in this PR
This PR addresses #3852 in PyRIT’s chat interface by rejecting failed HTTP responses before downloading media and showing retryable inline errors.
Changes:
- Check HTTP status before converting media responses into downloadable blobs.
- Replace the new-tab fallback with an inline error while keeping Download available.
- Add a 404-then-success retry test and update the successful-response mock.
| File | Description |
|---|---|
frontend/src/components/Chat/MessageList.tsx |
Validates download responses and displays retryable errors. |
frontend/src/components/Chat/MessageList.test.tsx |
Adds failure-and-retry coverage and updates download mocks. |
Review effort: Balanced
|
Both concerns summarized in this review are addressed at this head: the 404 test exercises an error blob, and transient download errors are scoped to the conversation and attachment. The inline replies contain the specific evidence. Verified on published commit |
Preserve conversation-scoped download errors and main's copy/branch disabled-reason behavior. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Richard Lundeen (richlundeen)
left a comment
There was a problem hiding this comment.
Automated review completed. No blocking concerns remain. This review records source coverage; merging is handled separately.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Thanks to the PyRIT maintainers for reviewing and merging this PR! I appreciate the feedback throughout the process. It was great to contribute the HTTP download error handling and retry behavior, along with regression coverage for failed downloads. Looking forward to contributing more to PyRIT and helping improve the project! |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Description
Tests and Documentation
Summary
Testing
frontend/src/components/Chat/MessageList.test.tsx.Fixes #3852