Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Conversation editor never revokes blob URLs of removed attachments

Đã đóng
#3,185 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@ManoharPaturi đang làm issue này rồi.

Từ ngày 13/10/2026.

  • #3186 của @ManoharPaturi — đang mở

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
frontend

Hướng nghiên cứu

Start with ChatInputArea.changeAttachments, which already revokes dropped blob URLs, and compare it with useConversationDraft.changeAttachments, which the ConversationEditor piece editor calls without revoking anything. The attachment chip URLs are created in PromptEditor with URL.createObjectURL. Done means removing an attachment in the draft editor calls URL.revokeObjectURL right away. Pull request #3186 is already open against this issue, so review or build on that work rather than starting a parallel fix.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe the bug

In the conversation editor, removing an attachment from a media piece never revokes the attachment's blob object URL. The blob: URL and its File payload stay alive until the whole draft is discarded or the editor unmounts.

ChatInputArea.changeAttachments handles the same removal correctly by revoking dropped blob URLs, but the draft editor path (ConversationEditor piece editor calling useConversationDraft.changeAttachments) forwards the new attachment list straight through with no revocation. Attaching and removing a large file repeatedly during one editing session pins every dropped File in memory.

Steps/Code to Reproduce
  1. Open a conversation in the editor and pick a media piece.
  2. Attach a file (the attachment chip gets a blob: URL from URL.createObjectURL in PromptEditor).
  3. Remove the attachment with the chip's dismiss button.
  4. URL.revokeObjectURL is never called for that URL until the draft is discarded or the editor unmounts.

Repeat 2-3 in one session and the dropped Files accumulate.

Expected Results

Removing an attachment in the editor revokes its blob object URL immediately, the same way the chat composer does.

Actual Results

The URL stays valid and the File payload stays pinned until the draft is discarded or unmounted.

Screenshots

N/A

Versions

OS: macOS
Browser: Chrome
Python version: 3.14
PyRIT version: installed from main (66c41fa)

Ngôn ngữ chính
Python
Star
4.6k
Fork
944
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
328

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/PyRIT

Tất cả issue của microsoft/PyRIT

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.