pause/resume report "Already paused/recording" while the other operation is still running
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 82/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- node.js, typescript
- Área
- audio-video-rtc, backend
Línea de trabajo
Lee src/tools/pauseRecording.ts y src/tools/resumeRecording.ts junto con src/utils/lifecycle.ts, donde se definen sessionOpInFlight y withSessionOp. Comprueba cómo gestiona cada herramienta una operación en curso antes de devolver el estado de «ya está pausado» o «ya está grabando». Añade la prueba unitaria solicitada con una pausa lenta simulada y ejecuta npm test; el trabajo estará terminado cuando ambos casos de operaciones solapadas devuelvan un error para reintentar.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Summary
resume_recording and pause_recording return early based on the persisted status, before the per-session operation lock. runPause keeps the record at status: "recording" until the segment has quit and been probed (up to the 8 s graceful wait plus ffprobe), so a resume in that window returns "Already recording." and the session then ends up paused. The mirror case applies to pause during a resume.
Where
src/tools/resumeRecording.ts:28-34,src/tools/pauseRecording.ts:28-34(status short-circuit)src/utils/lifecycle.ts:141-147(withSessionOpis meant to reject a colliding operation)src/utils/lifecycle.ts:237-238(status written only after the pause finishes)sessionOpInFlightexists for this check but no tool calls it
Impact
An agent that pauses and then quickly resumes (or a client that retries or parallelizes calls) is told the recording is running when it is paused, so the rest of the task is not captured. In the mirror case it is told capture is paused while it is still recording the screen.
Steps to reproduce
start_recording {"target":"full"}- Call
pause_recording, and before it returns callresume_recordingwith the same id. Resume returns{status:"recording", note:"Already recording."}. - After pause returns,
get_sessionshowsstatus: "paused".
Suggested fix
In both tools, check sessionOpInFlight(store, id) before the status short-circuit and throw the same "a of it is in progress; retry" error that withSessionOp uses. Report "Already paused/recording" only when no operation is in flight.
Acceptance criteria
- resume during an in-flight pause (and pause during an in-flight resume) returns an error asking to retry.
- Unit test with a stubbed slow pause.
Getting started
- Relevant files:
src/tools/pauseRecording.ts,src/tools/resumeRecording.ts,src/utils/lifecycle.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at b9b94fa. Severity: medium. Effort: S. audit-key: bug|src/tools/resumeRecording.ts|register
- Lenguaje dominante
- TypeScript
- Estrellas
- 1
- Forks
- 4
- Merge medio
- 14 h 8 min
- PR fusionados (30 d)
- 48
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
TMHSDigital/screencast-mcp#351 ·
Los mantenedores suelen responder en 1 día
-
bug effort: small priority: medium
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
TMHSDigital/screencast-mcp#344 ·
Los mantenedores suelen responder en 1 día
-
effort: medium help wanted priority: medium testing
Dificultad 3/5 1-2 días Aptitud para principiantes 76/100
TMHSDigital/screencast-mcp#350 ·
Los mantenedores suelen responder en 1 día
-
effort: medium priority: medium testing
Dificultad 4/5 1-2 días Aptitud para principiantes 70/100
TMHSDigital/screencast-mcp#349 ·
Los mantenedores suelen responder en 1 día
-
effort: medium help wanted priority: medium testing
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
TMHSDigital/screencast-mcp#348 ·
Los mantenedores suelen responder en 1 día
Todos los issues de TMHSDigital/screencast-mcp
Issues similares
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
openclaw/openclaw#200365 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
area-templates triage:bot-seen triage:needs-human
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
microsoft/aspire#22356 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Archiving an agent that is not loaded keeps its old updatedAtPosiblemente ocupada @luoph la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
content triage
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día