Don't lose results when the background worker is shut down mid-run

Đang mở
#4 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
backend, devtools

Hướng nghiên cứu

Start by reading background.js and tracing how script results are sent to the panel and how the panel handles a missing reply. Compare a long-running script with a result that cannot be delivered, then choose and document an approach in background.js. Done means the panel receives output after several minutes or shows an error instead of staying on “Running...” indefinitely.

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

Mô tả

bug core user story

User story

As a script author, I want to always get my script's output, so that a long run doesn't finish with nothing shown.

Why

Chrome can shut down the background service worker during a long script. The pending reply to the panel is then dropped and the panel waits forever.

Acceptance criteria

  • A script that runs for several minutes still returns its output to the panel
  • If the result truly cannot be delivered, the panel shows an error instead of hanging on "Running..."
  • Approach is documented in background.js (long-lived port, stored result, or keep-alive)

Generated by Claude Code

Ngôn ngữ chính
JavaScript
Star
1
Fork
1
Merge trung bình
1 phút
Pull request đã merge (30 ngày)
1

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 Ohr-Co/PyMonkey

Tất cả issue của Ohr-Co/PyMonkey

Issue tương tự

Thêm issue về JavaScript

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.