Skip to content

[Bug]: partial import retry certifies a transcript without its new messages #36603

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Import a native Codex transcript. Let its history commit, then fail the provider runtime insert.
  2. Continue the session outside T3, adding user and assistant messages.
  3. Retry the import.

The deterministic importer test uses a real SQLite TEMP trigger on provider_session_runtime to abort the insert, drops it, extends the candidate transcript, and calls importer.run again. Run pnpm exec vp test run apps/server/src/project/AgentSessionImporter.test.ts with the regression test in the linked fix.

Expected behavior

Do not report the continued transcript as imported or record its source identity unless the thread holds its messages. Safely skipping changed history is acceptable; unchanged retries should recover.

Actual behavior

The retry reports the continued transcript as imported and records its newer identity, while the imported thread still holds only the original messages. The native continuation is missing in T3.

Impact

Minor bug or occasional failure

Version or commit

Reproduced on pingdotgg/main at 5e06246. Independently confirmed by Claude Opus 5.5 at d2bdd58.

Environment

Linux, server importer integration test with real SQLite persistence and a Codex transcript fixture. No provider account required.

Logs or stack traces

The strengthened regression fails on main: expected the retry to be skipped, received imported. It passes with the fix.

Screenshots, recordings, or supporting files

Found by GPT 6.1 Sol in Wout’s bughunt, independently confirmed by Claude Opus 5.5. The SQLite trigger proves partial persistence, not a real disk-full event, crash, or client disconnect.

Workaround

Avoid continuing the native session between a failed import and its retry.

Activity

  1. added
    vouch:trusted
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions