Repository navigation
fix(deepinfra): model list fails when HTTP proxy is required - #111428
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 19, 2026, 9:59 AM ET / 13:59 UTC. Summary PR surface: Source +4, Tests +51. Total +55 across 2 files. Reproducibility: yes. at source level: configure a network that requires an eligible HTTP(S) proxy and run Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Keep the fixed DeepInfra URL on the shared guarded-fetch path, retain the focused regression test, and merge once the normal checks gate the current head. Do we have a high-confidence way to reproduce the issue? Yes, at source level: configure a network that requires an eligible HTTP(S) proxy and run Is this the best way to solve the issue? Yes. Reusing the existing trusted environment-proxy mode at the fixed DeepInfra catalog boundary is narrower and safer than adding provider-specific proxy configuration or bypassing the shared SSRF guard. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5ae1f7f0f5e5. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +4, Tests +51. Total +55 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
860285e to
8f5f6f6
Compare
|
Maintainer land-ready verification for
Known proof gap: this maintainer host does not require an HTTP proxy, so I did not independently repeat the contributor's proxy-backed CLI run end to end. The regression test independently proves that the fixed DeepInfra endpoint enters the trusted environment-proxy mode and that the guarded connection is released; the shared guard's proxy, hostname, redirect, and response-cap contracts are covered by their owning tests. |
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where users whose network requires a standard HTTP(S) proxy could not run the DeepInfra model list. The public catalog request timed out after five seconds and consumed the prepared model-runtime publication deadline, so the CLI exited before showing any models.
Why This Change Was Made
The fixed DeepInfra-owned catalog endpoint now uses OpenClaw's existing trusted-environment-proxy guarded-fetch preset. The change retains the existing hostname policy, SSRF checks, timeout, cache, pagination, redirect handling, response limits, connection release, and offline behavior.
Related implementation pattern: #110924
User Impact
DeepInfra users behind an eligible HTTP(S) proxy can list the current live catalog instead of seeing the CLI fail during startup. Networks without a working proxy continue to use the existing guarded timeout path.
Evidence
Live proof used only
pnpm openclawfor OpenClaw runtime verification, with an isolated state directory and a test-only placeholderDEEPINFRA_API_KEY:pnpm openclaw models list --provider deepinfra --plainlogged a 5,005 ms timeout for the official catalog and exited withprepared model runtime publication timed out.pnpm openclaw models list --provider deepinfra --plaincommand completed and listed 92 DeepInfra entries, including live models outside the 8 bundled fallback rows. A direct provider projection check reportedlive=trueand 90 chat rows.Focused and extension verification:
trusted_env_proxy.node scripts/run-vitest.mjs extensions/deepinfra/provider-models.proxy.test.ts: 1/1 passed.pnpm test:extension deepinfra: 13 files, 73/73 tests passed.OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 CI=1 node scripts/check-changed.mjs: passed, including format, Plugin SDK baseline, extension production/test typechecks, targeted lint, boundary, database-first, sidecar, and import-cycle checks.codex review --base origin/main: no findings; reviewer independently ran 19 related tests and live proxy/direct controls.No real inference request was made; the exercised third-party boundary is DeepInfra's public model catalog.