Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Codex import drops earlier messages when a history segment is in archived_sessions #49788

Openbi-zx(GitHub profile, opens in a new tab) opened this issue 0 comments

Area apps/server

Environment T3 Code Desktop 0.1.14, Windows 11 x64 (build 26300), paginated Codex history.

Steps to reproduce

  1. Use a fresh T3 profile and a synthetic Codex home. Put the current rollout of a paginated thread under $CODEX_HOME/sessions/YYYY/MM/DD/, with one user message.
  2. Put a preceding rollout for the same thread under $CODEX_HOME/archived_sessions/. Include one earlier user message and one assistant reply. In the current rollout, set session_meta.history_base.thread_id to the preceding rollout ID and end_byte_offset to the uncompressed byte length of the preceding rollout.
  3. Import the project through T3 Code's welcome flow and open the imported thread.

Expected behavior

The imported thread shows the earlier user message and assistant reply, followed by the latest user message.

Actual behavior

The imported thread shows only the latest user message. The original thread still shows the earlier messages in Codex.

The scanner bundled with T3 Code 0.1.14 reproduced the issue with synthetic data. It returned one message from the current thread when the preceding rollout was in archived_sessions/, and all three when that rollout was under sessions/. Both plain .jsonl and compressed .jsonl.zst reproduced the same result.

  1. tanstack-source added labelsbug

Sign in to join this conversation.