Files
Project-Thoth/codex/chatgpt-capture-mvp/implementation/0003c-render-all-turns.md
T

689 B

Task 3C — Render All Turns Before Capture

Goal: Before extraction, automatically scroll through the ChatGPT conversation so virtualized turns are rendered in the DOM.

Approach:

  1. Find all section[data-testid^="conversation-turn-"][data-turn].
  2. Scroll each turn into view in ascending order.
  3. Wait briefly after each scroll for React to render content.
  4. After reaching the bottom, run the turn-section extractor.
  5. If any turns are still empty, mark them not_rendered.

Requirements:

  • Do not click buttons.
  • Do not submit messages.
  • Do not alter conversation content.
  • Use scrollIntoView only.
  • Add timeout protection.
  • Show status: "Preparing conversation for capture..."