Skip to content

Clip windows relative to a marker (bug_report, trim, export_gif) #402

Backlog

Description

@TMHSDigital

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-54
  • src/utils/bugReport.ts:69-76
  • src/tools/trim.ts:13-15
  • src/tools/exportGif.ts:32-33
  • src/tools/narrate.ts:32
  • src/tools/narrate.ts:63-65
  • src/tools/compose.ts:29
  • src/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 (also npm run typecheck and npm 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

  1. added
    enhancement
    help wanted
    effort: medium
    on Nov 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: mediumenhancementhelp wantedpriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions