Skip to content

Client-side compaction injection orphans pre-existing openai-tagged threads from provider-filtered thread/list clients (mobile) #5906

Closed as not planned

Description

@luvs01

Problem

Enabling codexClientCompaction injects model_provider = "opencodex" as the default provider (plus the [model_providers.opencodex] table and retained root openai_base_url). By design it does not retag existing threads — inject.ts deliberately skips the history unit for the compaction-only form, relying on the root openai_base_url override so openai-tagged threads still route through the proxy.

That works for resuming, but it orphans those threads from any thread/list caller that omits modelProviders: Codex app-server defaults such requests to the server's configured default provider, so only newly created opencodex-tagged threads are listed.

Impact

The ChatGPT mobile remote-control client omits modelProviders. After enabling client-side compaction on a machine with ~5,200 pre-existing openai-tagged threads, the mobile thread list showed exactly 1 thread (the only one created under compaction). Both machines behaved identically; DESKTOP (native routing, no injection) showed everything.

Verified: disabling codexClientCompaction and re-running ocx sync --restart-app-server-only restores the Design-B injection (openai_base_url only, no model_provider default) and all threads become visible again — so the feature currently trades full remote thread visibility for local compaction ownership.

Suggestions

  • Forward-tag existing threads to opencodex when compaction is enabled (both providers resolve to the same proxy URL anyway, so retagging is routing-neutral), or
  • Warn in the toggle/UI that enabling client-side compaction hides pre-compaction threads from provider-filtered remote clients, or
  • Coordinate with upstream so thread/list without modelProviders returns all providers' threads.

Cross-reference: upstream question filed at openai/codex regarding the modelProviders default-filter semantics.

Activity

  1. Ingwannu commented on Sep 26, 2026

    @Ingwannu
    Owner

    Confirmed as the same root cause and configuration boundary already tracked in #5848: provider-table form with root model_provider = "opencodex", existing openai-tagged threads, and a mobile thread/list caller that omits modelProviders. I copied the compaction-specific 5,200-thread evidence to #5848 so it is not lost. Closing this report as a duplicate; implementation and compatibility discussion continue there.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions