Codex Direct import silently treats a paginated-history preview as the complete transcript
Happier 0.2.16 on Windows, with Codex CLI 0.162.1.
Observed behavior
An existing Codex conversation has full history in the native paginated history store, but its older rollout file is absent. The native Codex history API can read the conversation. Happier's Direct transcript pager instead returns a single preview item, reports no more history, and reports no truncation.
Code inspection shows that persisted takeover uses this same pager and accepts a response with no continuation as complete. The risk of importing the preview as full history follows from that code path; a preview-only persisted import was not deliberately performed on the original conversation.
This report concerns the displayed and imported transcript. It does not claim that the underlying native conversation was deleted.
Synthetic reproduction
- Create a disposable conversation with several user and assistant exchanges using a Codex client that stores paginated history.
- Use a valid native conversation whose paginated history is available but whose legacy rollout file is absent. Verify that the native history API returns the exchanges.
- Link that conversation in Happier Direct and request its transcript.
- Observe the preview-only response with no continuation and no truncation warning.
- Import it as a persisted Happier session and compare the displayed exchanges with the native history.
Expected behavior
Use the native paginated history source when the rollout file is absent. If complete history cannot be read, clearly mark the preview as incomplete and prevent a successful full-history import from being reported. Preserve the original native conversation identity and goal state.
Confirmed workaround
For a disposable, inactive, unarchived conversation, a native Codex resume without starting a turn materializes the legacy history. The Happier adapter can then read and import the earlier exchanges. This requires no new user prompt or model turn. Archived conversations need separate handling so their archived state is retained.
All reproduction steps above are synthetic. No account identifiers, machine identifiers, project details, file paths, logs, screenshots, or conversation text are included.
Thanks @RogueKostas. Your distinction between listing previews and paginated history pinpointed the failure.
We confirmed that missing rollout history could fall back to a preview and incorrectly report completion. The correction now shares source selection across paging, follow and import, reads native history pages when needed, and rejects history it cannot read completely. It reuses existing projections without resuming or unarchiving the native thread.
Live testing also uncovered a Codex case where missing SQLite history returns a successful empty page despite surviving paginated rollouts. That now fails explicitly too.
The correction is integrated in development source; release availability has not been verified. Which Happier channel are you using? Please retry once it includes these changes.
Posted on behalf of @leeroybrun.