Tests for delete_recording's confirmation and partial-failure paths
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
- 領域
- testing
調査の方向性
src/tools/deleteRecording.ts と src/__tests__/deleteRecording.test.ts の既存のケースを読み、src/__tests__/consentLogging.test.ts にある elicitation 対応クライアントのパターンと比較してください。指定された確認と部分的な失敗のケースを追加し、その後 npm test を実行してください。テストが指定された各パスを網羅し、ファイル、サイドカー、レジストリ項目が指定どおり保持または削除されることを検証できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
delete_recording is the only tool that irreversibly removes user data, but its test client is created without capabilities, so confirmDelete always takes the no-elicitation early return. Never exercised: decline/cancel, a failed elicitation, the SCREENCAST_CONFIRM_CAPTURE refusal, "Nothing to delete", and the rmSync failure branch that keeps the registry entry. Branch coverage of the file is 60%.
Where
src/tools/deleteRecording.ts:33-53, 96, 106-124src/__tests__/deleteRecording.test.ts:47(client without elicitation)
Suggested fix
Add cases with an elicitation-capable client (the pattern in src/__tests__/consentLogging.test.ts:76-77):
- "decline": isError "declined by the user"; file, sidecars and registry entry kept.
- "cancel": isError "cancelled"; nothing deleted.
- the elicitation handler throws: isError "the confirmation request failed"; nothing deleted.
- "accept": deleted, and
confirmedByUser: true. - no elicitation and
SCREENCAST_CONFIRM_CAPTURE=1: isError naming the env var; nothing deleted. - a path that does not exist and no session: isError "Nothing to delete".
- one sidecar fails to delete (mock rmSync):
failedlists it, and the registry entry is kept.
Getting started
- Relevant files:
src/tools/deleteRecording.ts,src/__tests__/deleteRecording.test.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at b9b94fa. Severity: medium. Effort: S. audit-key: testing|src/tools/deleteRecording.ts|confirmDelete
- 主要言語
- TypeScript
- スター
- 1
- フォーク
- 4
- 平均マージ
- 14時間 8分
- マージ済み PR(30日)
- 48
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/screencast-mcp のほかの issue
-
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 日以内に返信
-
effort: medium help wanted priority: medium testing
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
TMHSDigital/screencast-mcp#348 ·
メンテナーはふだん 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 日以内に返信