pause/resume report "Already paused/recording" while the other operation is still running
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 82/100
- Tipo de issue
- Bug
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- node.js, typescript
- Domínio
- audio-video-rtc, backend
Direção de pesquisa
Leia src/tools/pauseRecording.ts e src/tools/resumeRecording.ts junto com src/utils/lifecycle.ts, onde sessionOpInFlight e withSessionOp são definidos. Verifique como cada ferramenta lida com uma operação em andamento antes de retornar o status de “já pausado” ou “já gravando”. Adicione o teste unitário solicitado com uma pausa lenta simulada e execute npm test; o trabalho estará concluído quando os dois casos de operações sobrepostas retornarem um erro para tentar novamente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- TypeScript
- Estrelas
- 1
- Forks
- 4
- Merge médio
- 14h 8min
- PRs com merge (30d)
- 48
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de TMHSDigital/screencast-mcp
-
effort: small good first issue priority: medium testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
TMHSDigital/screencast-mcp#351 ·
Mantenedores costumam responder em até 1 dia
-
bug effort: small priority: medium
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
TMHSDigital/screencast-mcp#344 ·
Mantenedores costumam responder em até 1 dia
-
effort: medium help wanted priority: medium testing
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 76/100
TMHSDigital/screencast-mcp#350 ·
Mantenedores costumam responder em até 1 dia
-
effort: medium priority: medium testing
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 70/100
TMHSDigital/screencast-mcp#349 ·
Mantenedores costumam responder em até 1 dia
-
effort: medium help wanted priority: medium testing
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 65/100
TMHSDigital/screencast-mcp#348 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de TMHSDigital/screencast-mcp
Issues semelhantes
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
openclaw/openclaw#200365 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
area-templates triage:bot-seen triage:needs-human
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
microsoft/aspire#22356 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Archiving an agent that is not loaded keeps its old updatedAtTalvez já em andamento @luoph assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
content triage
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia