Tests for the start_recording startWhen/stopWhen arm path and its consent carry-over
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Read src/tools/startRecording.ts around the listed arm and watcher paths, then inspect src/__tests__/startRecording.test.ts, src/__tests__/consentLogging.test.ts, and src/utils/triggers.ts. Extend the fake spawn tests with an elicitation capable client and mocked window and text checks, then run npm test. Done means the listed startWhen, consent carry-over, failed arm, and stopWhen cases pass.
索引モデルが issue の本文から書いたものです。
説明
Summary
armRecording asks for consent once at arm time, adds the args object to approvedAtArm, and later calls tool.handler(startArgs, ...). prepareStart skips the consent prompt when approvedAtArm.has(args). This relies on the handler receiving the very same object. watchStopWhen stops a session when OCR text appears. No test covers startWhen, stopWhen or approvedAtArm: triggers.test.ts covers only the utils. startRecording.ts is the highest-churn file and is at 47% lines / 34% branches locally.
Where
src/tools/startRecording.ts:237, 450-461, 466-511, 538, 654src/__tests__/triggers.test.ts:41-54
Impact
If a refactor or the SDK clones args before the handler, armed recordings either re-prompt (and fail when no one is there) or, worse, a change to the WeakSet logic lets an unarmed call skip consent.
Suggested fix
Extend src/__tests__/startRecording.test.ts (fake spawn) with an elicitation-capable client (the pattern in src/__tests__/consentLogging.test.ts:76-77) and mocked window/text checks:
- startWhen
{}: isError "startWhen needs window and/or text." - startWhen
{window}: status "armed" with anarm-id, and consent asked exactly once. - When the condition is met, a session starts through the same handler and the elicitation handler is not called a second time.
- A plain start_recording after an arm still prompts (approval does not leak).
- Consent declined at arm: isError, and no arm is registered.
- fire() returning isError: arm status "failed" with that error text.
- stopWhen text met: the session stops with the stopWhen reason; a session that ends first aborts the watcher.
Getting started
- Relevant files:
src/tools/startRecording.ts,src/utils/triggers.ts - How to run tests:
npm test
Filed by repo-audit/full-audit at b9b94fa. Severity: medium. Effort: M. audit-key: testing|src/tools/startRecording.ts|armRecording
- 主要言語
- 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 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 日以内に返信