inspector icon indicating copy to clipboard operation
inspector copied to clipboard

[FEATURE] Copy a range of consecutive debugger steps

Open QY-25123 opened this issue 3 months ago • 3 comments

Feature

Currently, users can only copy debugger steps individually via the "Copy step" button on each step card. It would be helpful to select and copy a range of consecutive steps, so users can easily share only the relevant part of the flow with Claude or an engineer (rather than copying the whole log or one step at a time).

This applies to both the OAuth Debugger and the XAA Debugger, which both have per-step "Copy step" buttons on their step cards.

Solution

Add a "Select" mode toggle near the existing "Copy" button on the Guide view. In select mode:

  • Each step card gets a checkbox.
  • Clicking a step selects it; shift-clicking selects everything between the last-clicked step and the current one (standard range-select UX).
  • With one or more steps selected, a "Copy N steps" action copies the selected range using the same sanitized text format as the existing single-step/full-log copy (redacting tokens, secrets, cookies, etc.).

Alternatives

  • Multi-select via checkboxes without shift-click range support (more clicks for long ranges).
  • A "start step" / "end step" picker instead of inline checkboxes.

Additional Context

Today, each step card in the OAuth Debugger (and similarly the XAA Debugger) has an individual "Copy step" button — see step 7 ("Client Credentials Received") and step 8 ("Generate PKCE Parameters") in the Guide view. There's no way to select steps 7 and 8 together and copy both in one action.

Image

QY-25123 avatar Aug 13 '26 23:08 QY-25123

I will work on this one

QY-25123 avatar Aug 13 '26 23:08 QY-25123

Hi @chelojimenez, I'd like to pick this up. #3966 by @QY-25123 was closed in the 30-day sweep with three review items still open, and I haven't seen anyone continue it.

My plan is to build on that PR's approach (with credit) on current main and finish what the last review asked for:

  • Move the shared select-mode logic into a useStepRangeSelect hook and a small toolbar component, so OAuthFlowLogger and XAAFlowLogger stay in sync and neither file grows past the hygiene allowance.
  • Add generateRawText coverage for multi-step filtering (info entries, split request/response entries, empty steps).
  • Add an XAA steps: [] test that returns the empty-state output instead of the whole flow.

@QY-25123, if you're planning to reopen #3966 yourself, let me know and I'll step back.

Rutvij97 avatar Nov 12 '26 11:11 Rutvij97