Client or integration
Other
Area
CLI
Summary
ocx models new-policy and ocx models new-arrivals are documented in the docs site and implemented in the CLI's models runtime module, but they are unreachable: handleModels in src/cli/models.ts never routes them to handleModelsRuntimeCommand, so both fall through to handleConfiguredModels and fail with Unexpected argument(s).
Evidence (paths relative to repository root, verified on main at ebb4d55 and on npm 2.38.0):
docs-site/src/content/docs/guides/model-routing.md (around lines 88-89) documents: "Use ocx models new-policy off globally, add --provider <name> for an override, and inspect ocx models new-arrivals [--json]."
src/cli/models-runtime.ts implements both handlers (newPolicy, newArrivals; dispatch at handleModelsRuntimeCommand) and lists them in its USAGE text.
src/cli/models.ts line 448 dispatches only ["live", "edit", "enable", "disable", "provider", "selected", "preset", "context", "shadow"] to the runtime module. new-policy and new-arrivals are absent, so any invocation reaches handleConfiguredModels, which rejects unknown arguments.
The underlying feature works through the management API (GET/PUT /api/model-discovery, POST /api/model-discovery/acknowledge) and the dashboard Models page, so the impact is CLI-only: the documented commands cannot be executed headlessly.
Suggested fix: add "new-policy" and "new-arrivals" to the dispatch array in handleModels (models.ts).
Reproduction
- Install 2.38.0 from npm (
npm i -g @bitkyc08/opencodex) or build main at ebb4d55.
- Run
ocx models new-policy status --json.
- Run
ocx models new-arrivals --json.
Both commands fail with Unexpected argument(s) and exit 1 instead of reaching the implemented runtime handlers. No configuration or provider setup is needed; the failure is in CLI dispatch and reproduces with or without the proxy running.
Version
2.38.0 (npm @bitkyc08/opencodex); also present on main at commit ebb4d55.
Operating system
Windows 11
Provider and model
Not provider-specific.
Logs or error output
> ocx models new-policy status --json
Unexpected argument(s): new-policy, status
Usage: ocx models [--provider <name>] [--json]
(exit 1)
> ocx models new-arrivals --json
Unexpected argument(s): new-arrivals
Usage: ocx models [--provider <name>] [--json]
(exit 1)
Screenshots and supporting files
None.
Redacted configuration
None required.
Checks
Client or integration
Other
Area
CLI
Summary
ocx models new-policyandocx models new-arrivalsare documented in the docs site and implemented in the CLI's models runtime module, but they are unreachable:handleModelsinsrc/cli/models.tsnever routes them tohandleModelsRuntimeCommand, so both fall through tohandleConfiguredModelsand fail withUnexpected argument(s).Evidence (paths relative to repository root, verified on
mainat ebb4d55 and on npm 2.38.0):docs-site/src/content/docs/guides/model-routing.md(around lines 88-89) documents: "Useocx models new-policy offglobally, add--provider <name>for an override, and inspectocx models new-arrivals [--json]."src/cli/models-runtime.tsimplements both handlers (newPolicy,newArrivals; dispatch athandleModelsRuntimeCommand) and lists them in its USAGE text.src/cli/models.tsline 448 dispatches only["live", "edit", "enable", "disable", "provider", "selected", "preset", "context", "shadow"]to the runtime module.new-policyandnew-arrivalsare absent, so any invocation reacheshandleConfiguredModels, which rejects unknown arguments.The underlying feature works through the management API (
GET/PUT /api/model-discovery,POST /api/model-discovery/acknowledge) and the dashboard Models page, so the impact is CLI-only: the documented commands cannot be executed headlessly.Suggested fix: add
"new-policy"and"new-arrivals"to the dispatch array inhandleModels(models.ts).Reproduction
npm i -g @bitkyc08/opencodex) or buildmainat ebb4d55.ocx models new-policy status --json.ocx models new-arrivals --json.Both commands fail with
Unexpected argument(s)and exit 1 instead of reaching the implemented runtime handlers. No configuration or provider setup is needed; the failure is in CLI dispatch and reproduces with or without the proxy running.Version
2.38.0 (npm
@bitkyc08/opencodex); also present onmainat commit ebb4d55.Operating system
Windows 11
Provider and model
Not provider-specific.
Logs or error output
Screenshots and supporting files
None.
Redacted configuration
None required.
Checks