Handler tests for stop/pause/resume branches that only a live capture reaches
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 65/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Read src/tools/stopRecording.ts, src/tools/pauseRecording.ts, and src/tools/resumeRecording.ts, then follow the fake-spawn harness in src/__tests__/startRecording.test.ts. Add handler-level tests for the listed arm, ended-session, ownership, webcam, pause, and resume cases; run npm test and confirm the tests cover those branches and the src/tools/** coverage floor passes.
索引モデルが issue の本文から書いたものです。
説明
Summary
stop_recording, pause_recording and resume_recording contain branches of their own beyond utils/lifecycle.ts: arm-id routing, the already-ended path that finishes a leftover replay buffer and picks a note by endReason, the foreign-owner refusal, webcamReport, and the "Already paused" / "Already recording" short-circuits. Only the Windows capture smoke and opt-in local tests call these tools, and the smoke is the flaky one (#331). Local coverage without the smoke: stopRecording.ts 30.6% lines / 19.2% branches, pauseRecording.ts 16.7% / 0%, resumeRecording.ts 15.4% / 0%. The src/tools/** 77% floor fails locally (76.3%).
Where
src/tools/stopRecording.ts:25-54, 86-128src/tools/pauseRecording.ts:27-35,src/tools/resumeRecording.ts:27-35src/__tests__/captureSmoke.test.ts:19(gated byRUN_CAPTURE_SMOKE)
Suggested fix
Add a handler-level test file that reuses the fake-spawn harness in src/__tests__/startRecording.test.ts:23-58 (seeded SessionStore, InMemoryTransport client). Cases:
- stop_recording with a waiting
arm-id: status "cancelled", note "Disarmed", and the arm is gone. - stop_recording with an unknown
arm-id: isError "No armed recording". - stop_recording with an arm whose start failed: status "failed" plus
error. - stop_recording with an arm that started: stops the arm's sessionId.
- stop_recording on a stopped session with endReason
max_duration/window_closed/ undefined: the three notes, and no kill. - stop_recording on an ended session with a replay dir: save:false gives
replay.discarded; save:true with a failing save givesreplay.error. - stop_recording on a live record owned by another live pid: the foreignStopRefusal error, and the process is not killed.
- webcam report: missing file gives
webcam.error; probe-able files giveoverlay. - pause_recording on an already paused session: "Already paused."; unknown id gives isError.
- resume_recording on a recording session: "Already recording."; the result carries remainingSec only when capSec > 0.
Getting started
- Relevant files:
src/tools/stopRecording.ts,src/__tests__/startRecording.test.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at b9b94fa. Severity: medium. Effort: M. audit-key: testing|src/tools/stopRecording.ts|register
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 4
- 平均マージ
- 14時間 8分
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/screencast-mcp のほかの issue
-
effort: small good first issue priority: medium testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
TMHSDigital/screencast-mcp#351 ·
メンテナーはふだん 1 日以内に返信
-
bug effort: small priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/screencast-mcp#344 ·
メンテナーはふだん 1 日以内に返信
-
bug effort: small good first issue priority: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/screencast-mcp#343 ·
メンテナーはふだん 1 日以内に返信
-
effort: medium help wanted priority: medium testing
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
TMHSDigital/screencast-mcp#350 ·
メンテナーはふだん 1 日以内に返信
-
effort: medium priority: medium testing
難易度 4/5 1〜2日 初心者へのやさしさ 70/100
TMHSDigital/screencast-mcp#349 ·
メンテナーはふだん 1 日以内に返信
TMHSDigital/screencast-mcp の issue をすべて見る
似ている issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openclaw/openclaw#200365 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Archiving an agent that is not loaded keeps its old updatedAt対応中かも @luoph が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
content triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信