Repository: cypress-io/cypress
File: packages/reporter/src/commands/command.tsx (TypeScript)

Code before:
  // 50ms, it won't show the snapshot at all. so we
  // optimize for both snapshot showing + restoring
  const _snapshot = (show: boolean) => {
    if (show) {
      runnablesStore.attemptingShowSnapshot = true

      setShowTimeout(setTimeout(() => {
        runnablesStore.showingSnapshot = true
        events.emit('show:snapshot', model.testId, model.id)
      }, 50))
    } else {
      runnablesStore.attemptingShowSnapshot = false
      clearTimeout(showTimeout as TimeoutID)

      setTimeout(() => {
        // if we are currently showing a snapshot but
        // we aren't trying to show a different snapshot
        if (runnablesStore.showingSnapshot && !runnablesStore.attemptingShowSnapshot) {
          runnablesStore.showingSnapshot = false
          events.emit('hide:snapshot', model.testId, model.id)
        }
      }, 50)
    }
  }

  if (model.name === 'request' && !appState.showFetchRequests) {
    return null
  }

  return (
    <>
      <li className={cs('command', `command-name-${commandName}`)}>
        <div
          className={cs(
            'command-wrapper',
            `command-state-${model.state}`,
            `command-type-${model.type}`,
            {
              'command-is-event': !!model.event,
              'command-is-pinned': _isPinned(),
              'command-is-interactive': (model.hasConsoleProps || model.hasSnapshot),
            },
          )}
        >
          <NavColumns model={model} isPinned={_isPinned()} toggleColumnPin={_toggleColumnPin} />
          <FlashOnClick
            message='Printed output to your console'
            onClick={_toggleColumnPin}
            shouldShowMessage={_shouldShowClickMessage}
            wrapperClassName={cs('command-pin-target', { 'command-group': !!groupId, 'command-group-no-children': !model.hasChildren && model.group })}
          >

Review comment (suggestion):
I believe this will hide `cy.request` command logs as well (which I don't think we want). I think you just need to check `model.event` is `true`.

Code after:
  // 50ms, it won't show the snapshot at all. so we
  // optimize for both snapshot showing + restoring
  const _snapshot = (show: boolean) => {
    if (show) {
      runnablesStore.attemptingShowSnapshot = true

      setShowTimeout(setTimeout(() => {
        runnablesStore.showingSnapshot = true
        events.emit('show:snapshot', model.testId, model.id)
      }, 50))
    } else {
      runnablesStore.attemptingShowSnapshot = false
      clearTimeout(showTimeout as TimeoutID)

      setTimeout(() => {
        // if we are currently showing a snapshot but
        // we aren't trying to show a different snapshot
        if (runnablesStore.showingSnapshot && !runnablesStore.attemptingShowSnapshot) {
          runnablesStore.showingSnapshot = false
          events.emit('hide:snapshot', model.testId, model.id)
        }
      }, 50)
    }
  }

  if (model.name === 'request' && model.event && !appState.showFetchRequests) {
    return null
  }

  return (
    <>
      <li className={cs('command', `command-name-${commandName}`)}>
        <div
          className={cs(
            'command-wrapper',
            `command-state-${model.state}`,
            `command-type-${model.type}`,
            {
              'command-is-event': !!model.event,
              'command-is-pinned': _isPinned(),
              'command-is-interactive': (model.hasConsoleProps || model.hasSnapshot),
            },
          )}
        >
          <NavColumns model={model} isPinned={_isPinned()} toggleColumnPin={_toggleColumnPin} />
          <FlashOnClick
            message='Printed output to your console'
            onClick={_toggleColumnPin}
            shouldShowMessage={_shouldShowClickMessage}
            wrapperClassName={cs('command-pin-target', { 'command-group': !!groupId, 'command-group-no-children': !model.hasChildren && model.group })}
          >