Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This preserves the existing bundled-plugin source when Codex launch arguments are overridden, while keeping explicit user arguments and refreshed host environment values. The scope is launch configuration, with no product-default or permission changes. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…ost env Resolve and strip T3CODE_CODEX_LAUNCH_ARGS through one helper shared by the driver and the v2 adapter, and copy the environment only when the override is present so a policy host env keeps its read-through PATH. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 53b8d16
Copying the environment to drop T3CODE_CODEX_LAUNCH_ARGS froze values the host refreshes later, such as PATH from the login shell, for every later Codex launch. Return a read-through view that hides only the override. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dismissing prior approval to re-evaluate 7e218ec
EvidenceEnvironment for both columns: Linux web dev client, Chromium at 1280×800 CSS pixels, light theme, real Codex CLI 0.173.0, GPT-6-Astra Medium via the available API endpoint. Separate worktrees and fresh T3 databases (
The recorded real app-server launches show base drops the generated marketplace source while head keeps it alongside Control on base: removing only the environment override restored both the composer skill and the real-model response. On head, explicitly supplying the shared-home marketplace source put that user argument last and intentionally hid the bundled plugin because Codex requires its shadow-home bundled path. Head explicit-source capture and the inventory evidence confirm user precedence. Reproduction steps · Synthetic fixture seed · Real-CLI logging wrapper · Native inventory driver Primary comparison stills and the explicit-source still were pixel-identical across screenshots taken more than 500 ms apart. Both recordings were visually inspected. Not shown:
|




Problem
An unrelated
T3CODE_CODEX_LAUNCH_ARGSoverride makes the bundled marketplace disappear for a shadow-home Codex CLI instance. When a new turn opens a session,ProviderTurnStartServicecallsProviderSessionManager.open, which invokes the adapter built byCodexDriver.create; the app-server factory resolves the environment override after the shadow source has been added, so the native process never receives that source.Deterministic repro on
origin/main(fba92aeb8bd36ac60f18d6367f7d18eca6d2a201)Run this with Codex CLI 0.166.0. The
argsarray is the output of the base ordering:resolveCodexLaunchArgs(codexHomeLaunchArgs(path, authOverlay, configuredArgs), environment).Observed: the first command exits 0 with
{"marketplaces":[]}. Expected: it listsopenai-bundledfrom the shadow home, as the second command does, while keeping the override's250000value.Change
Resolve the user launch arguments first, consume the environment override, and prepend the generated marketplace source in both the driver and the session adapter. Probes and turns share this server-side behavior across web, desktop, and mobile; explicit user arguments still come last, and resolving the composed string again preserves escaped trailing whitespace.
Scope
Small fix for an obvious bug; no issue needed under CONTRIBUTING.md.
Verification
CodexDriver.test.tsshadow-home case failed on the pinned base because the marketplace-cpair was absent. It passed on the patch with the marketplace pair first, the override pair second, and no configured100000value.vp run check:changedexited 0: format, lint, knip, GraphQL, typecheck, and 297 tests across four affected files.openai-bundledunder the shadow home; native app-serverplugin/listlikewise went from empty tosample@openai-bundledwith a local sample plugin.Authored by GPT-6.2 Sol (Codex); reviewed by Gemini 4 Neon (Antigravity).