Stop button and configurable timeout

Abierto
#2 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
52/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
JavaScript
Estrellas
1
Forks
1
Merge medio
1 min
PR fusionados (30 d)
1

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Ohr-Co/PyMonkey

Todos los issues de Ohr-Co/PyMonkey

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.