This is the smallest reliable pattern for making Codex sessions reviewable in your own database:
UserPromptSubmitimmediately appends every new rollout byte, including the submitted prompt.Stopappends the assistant response and any tool activity from the completed turn.- The receiver stores immutable byte fragments plus a committed cursor.
- A session is reconstructed by ID by concatenating verified fragments in ordinal order.
No polling job or queue is required. Uploads are small, append-only, idempotent, and scoped to one session.