Repository navigation
Description
Summary
Accept marker (label) plus before/after seconds on bug_report (and startMarker/endMarker on trim and export_gif), resolved with the existing markersOrChapters helper used by narrate.
Where
src/tools/bugReport.ts:52-54src/utils/bugReport.ts:69-76src/tools/trim.ts:13-15src/tools/exportGif.ts:32-33src/tools/narrate.ts:32src/tools/narrate.ts:63-65src/tools/compose.ts:29src/tools/startRecording.ts:188
Problem
bug_report's window is start/end/clipSec, and clipWindow defaults to the last 30 s: const end = Math.min(opts.end ?? durationSec, durationSec); ... const start = opts.start ?? Math.max(0, end - clipSec); (utils/bugReport.ts:74-76). trim and export_gif take plain seconds only. Markers are already a time vocabulary elsewhere: narrate lines take marker: "Or a marker label." resolved via markersOrChapters (narrate.ts:32, 63-65), compose has alignMarker (compose.ts:29), and hotkeys lets a person press Ctrl+Alt+Shift+M to mark a moment live (startRecording.ts:188).
Who benefits
The natural bug flow is "I pressed the marker hotkey when it broke, then kept going"; bug_report then clips the last 30 s of the recording, not the marked moment, unless the agent first reads the marker sidecar and does the arithmetic. Same for trimming a demo between two marked points.
Proposal
Accept marker (label) plus before/after seconds on bug_report (and startMarker/endMarker on trim and export_gif), resolved with the existing markersOrChapters helper used by narrate. In bug_report, when no window is given and the recording has exactly one marker, default the clip to around it and say so in the result.
Getting started
- Relevant files:
src/tools/bugReport.ts,src/utils/bugReport.ts,src/tools/trim.ts,src/tools/exportGif.ts - Run tests:
npm test(alsonpm run typecheckandnpm run lint); see CONTRIBUTING.md - If you change a tool's schema or description, run
npm run docs
Filed by repo-audit/full-audit at f0e5ebd. Severity: medium. Effort: M. audit-key: enhancement|src/utils/bugReport.ts|clipWindow
Activity