Describe the bug
When starting a native Codex session (codex-native harness, e.g. via omnigent codex or sub-agent dispatches), Omnigent creates a private session CODEX_HOME and copies the user's config.toml via _populate_codex_home_config.
During this copy, _normalize_copied_codex_effort() in omnigent/inner/codex_executor.py normalizes top-level model_reasoning_effort. However, it checks against CODEX_EFFORTS (the in-process OpenAI Responses API ladder, which tops out at xhigh), rather than CODEX_NATIVE_EFFORTS (which includes max and ultra).
As a result, any native Codex session with model_reasoning_effort = "max" or "ultra" in ~/.codex/config.toml (or configured on native models such as gpt-5.6-luna or sol) has its reasoning effort silently downgraded to xhigh in the per-session config.toml.
Reproduction steps
- In
~/.codex/config.toml, configure model_reasoning_effort = "max" (or "ultra").
- Launch a native Codex session (
codex-native harness), for example with gpt-5.6-luna.
- Inspect the per-session config in
~/.omnigent/codex-native/<session>/codex-home/config.toml.
- Observe that
model_reasoning_effort has been rewritten to "xhigh".
Expected behavior
Native Codex sessions should preserve max and ultra reasoning effort in their session config.toml because codex-native drives the real Codex CLI process which validates and supports CODEX_NATIVE_EFFORTS. In-process Responses API sessions can continue normalizing against CODEX_EFFORTS.
Environment
- Platform: macOS / Linux
- Omnigent version: 0.11.0.dev0 (
main)
- Harness:
codex-native
Describe the bug
When starting a native Codex session (
codex-nativeharness, e.g. viaomnigent codexor sub-agent dispatches), Omnigent creates a private sessionCODEX_HOMEand copies the user'sconfig.tomlvia_populate_codex_home_config.During this copy,
_normalize_copied_codex_effort()inomnigent/inner/codex_executor.pynormalizes top-levelmodel_reasoning_effort. However, it checks againstCODEX_EFFORTS(the in-process OpenAI Responses API ladder, which tops out atxhigh), rather thanCODEX_NATIVE_EFFORTS(which includesmaxandultra).As a result, any native Codex session with
model_reasoning_effort = "max"or"ultra"in~/.codex/config.toml(or configured on native models such asgpt-5.6-lunaorsol) has its reasoning effort silently downgraded toxhighin the per-sessionconfig.toml.Reproduction steps
~/.codex/config.toml, configuremodel_reasoning_effort = "max"(or"ultra").codex-nativeharness), for example withgpt-5.6-luna.~/.omnigent/codex-native/<session>/codex-home/config.toml.model_reasoning_efforthas been rewritten to"xhigh".Expected behavior
Native Codex sessions should preserve
maxandultrareasoning effort in their sessionconfig.tomlbecausecodex-nativedrives the real Codex CLI process which validates and supportsCODEX_NATIVE_EFFORTS. In-process Responses API sessions can continue normalizing againstCODEX_EFFORTS.Environment
main)codex-native