# Codex backend quirks Status: accepted ## Context Codex tool calls carry a call id and an item id. Reasoning items are encrypted and the request uses store=false. Codex models cannot switch reasoning off. The server hides models whose `minimal_client_version` exceeds the client's. ## Decision Store tool ids as `call_id|item_id` so both survive a round trip; replay the encrypted reasoning item verbatim; map Off to the lowest supported level; claim a high client version (override `HX_CODEX_CLIENT_VERSION`) so models are listed. ## Consequences Round trips are lossless; the claimed version only affects listing, the server still gates use. Code: crates/hx-ai/src/codex.rs (id encoding, reasoning replay, effort mapping, client version); crates/hx-ai/src/lib.rs:Effort (start level, levels)