Skip to content

[Bug]: Switching compatible Codex accounts with shared CODEX_HOME uses portable handoff instead of native thread resume #16613

Description

@WISSAM492

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. Use T3 Code nightly 0.0.46-nightly.20261005.2702.

  2. Use Codex CLI 0.160.0.

  3. Configure two authenticated Codex provider instances using the documented shared-home setup:

    Instance 1:

    • CODEX_HOME: ~/.codex
    • Shadow home: empty

    Instance 2:

    • CODEX_HOME: ~/.codex
    • Shadow home: ~/.codex_2nd
  4. Fully restart T3 Code after saving the provider settings.

  5. Create a new T3 thread using Instance 1.

  6. Complete several turns on Instance 1.

  7. In the same T3 thread, switch the Codex account/provider instance to Instance 2.

  8. Send another message.

  9. Ask Instance 2, without using t3_thread_read, whether it received the original conversation natively and what history it received.

This reproduces consistently for me.

Expected behavior

Because both Codex instances share the same CODEX_HOME, switching between them should resume the same native Codex thread/session.

The target account should continue using native Codex thread resume, preserving the full provider-native conversation state.

A compatible Codex account switch should not silently fall back to a portable/context handoff.

Actual behavior

After switching from Instance 1 to Instance 2, the target Codex instance receives a T3 context handoff instead of appearing to resume the same native Codex thread.

On a fresh short test thread, the target explicitly reported:

"This chat started with a context handoff containing 13 intact items and 0 omitted items..."

On a longer thread, the target reported that only a selected subset of history was included and that additional items were omitted.

The T3 UI still shows one continuous conversation, but the target Codex instance is receiving handoff context rather than full native continuation.

Impact

Major degradation or frequent failure

Version or commit

T3 Code: 0.0.46-nightly.20261005.2702

Environment

  • OS: Ubuntu Linux - T3 Code desktop app - T3 Code: 0.0.46-nightly.20261005.2702 - Codex CLI: 0.160.0 - Provider: Codex - Two separately authenticated ChatGPT/Codex accounts Provider configuration: Instance 1: - CODEX_HOME: ~/.codex - Shadow home: empty Instance 2: - CODEX_HOME: ~/.codex - Shadow home: ~/.codex_2nd

Logs or stack traces

No relevant stack trace observed. The failure is behavioral: the target Codex instance reports receiving a T3 context handoff after the account switch.

Screenshots, recordings, or supporting files

Screenshot 2026-10-07 014223.png
Screenshot 2026-10-07 014309.png
Screenshot 2026-10-07 014444.png
Screenshot 2026-10-07 014401.png

Workaround

Avoid switching Codex provider instances within an important long-running thread.

Staying on the same Codex instance preserves the current native session behavior. Using the account switch currently risks falling back to a context handoff.

Activity

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

    bugSomething is broken or behaving incorrectly.via-triageFiled through npx t3 triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions