CodexMonitor’s profile-model support currently launches the backend approximately as:
codex --profile qwen-local app-server
With Codex CLI 0.153.4, this exits immediately:
Error: --profile only applies to runtime commands and `codex mcp` ...
As a result, CodexMonitor reports the generic error “request canceled.” No request reaches the configured model provider.
This affects any profile-backed model, not only Qwen or local providers.
Environment:
- Codex CLI: 0.153.4
- CodexMonitor: current main, commit 96ee2ad
- Linux ARM64
Expected behavior:
- Profile-backed models should work in app-server mode.
- The app-server should receive the profile’s model, model_provider, and other settings.
Possible implementations:
- Wait for/support an official Codex app-server profile mechanism, such as the proposed CODEX_CONFIG_PROFILE environment variable.
- Translate the selected profile’s values into supported app-server
-c key=value arguments.
- Detect unsupported
--profile app-server combinations and show a useful error.
A current workaround is a launcher shim that converts the Qwen profile into:
codex -c 'model="qwen3.8-flash-next"' \
-c 'model_provider="qwen-local"' \
-c 'model_reasoning_effort="medium"' \
app-server
The bug is general, although our tested local shim currently handles only the Qwen profile. CodexMonitor should ideally support arbitrary profiles rather than hard-coding provider/model values.
There is also an OpenAI Codex issue tracking the missing app-server profile mechanism: OpenAI Codex issue #38104 (openai/codex#38104). Another related issue documents profile/provider problems in app-server mode: OpenAI Codex issue #23417 (openai/codex#23417).
CodexMonitor’s profile-model support currently launches the backend approximately as:
With Codex CLI 0.153.4, this exits immediately:
As a result, CodexMonitor reports the generic error “request canceled.” No request reaches the configured model provider.
This affects any profile-backed model, not only Qwen or local providers.
Environment:
Expected behavior:
Possible implementations:
-c key=valuearguments.--profile app-servercombinations and show a useful error.A current workaround is a launcher shim that converts the Qwen profile into:
The bug is general, although our tested local shim currently handles only the Qwen profile. CodexMonitor should ideally support arbitrary profiles rather than hard-coding provider/model values.
There is also an OpenAI Codex issue tracking the missing app-server profile mechanism: OpenAI Codex issue #38104 (openai/codex#38104). Another related issue documents profile/provider problems in app-server mode: OpenAI Codex issue #23417 (openai/codex#23417).