Stop button and configurable timeout

オープン
#2 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript

調査の方向性

Start with extension/offscreen/offscreen.js and its stopWorker() function, then trace how the panel sends messages through background.js and find the end-to-end test. Implement the Stop flow, configurable time limit with a sensible default, and test that stopping reports "Stopped by user" and allows another run without reloading.

索引モデルが issue の本文から書いたものです。

説明

core user story

User story

As a script author, I want to stop a running script myself and allow long scripts to keep running, so that a fixed 30-second limit doesn't kill legitimate work.

Why

Every script is currently killed after 30 seconds. That is right for a runaway loop and wrong for a slow scrape.

Acceptance criteria

  • The panel shows a Stop button while a script is running
  • Clicking Stop ends the script within a second and reports "Stopped by user"
  • The next run works without reloading the extension
  • The time limit can be changed (global setting or per script), with a sensible default
  • The end-to-end test covers Stop

Notes

The kill mechanism already exists: stopWorker() in extension/offscreen/offscreen.js. This needs a new message type from the panel through background.js.


Generated by Claude Code

主要言語
JavaScript
スター
1
フォーク
1
平均マージ
1分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Ohr-Co/PyMonkey のほかの issue

Ohr-Co/PyMonkey の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。