Repository navigation
docs(gateway): clarify independent HTTP endpoint switches - #130690
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 12:37 AM ET / 04:37 UTC. ClawSweeper reviewWhat this changesThe PR updates the two Gateway HTTP API pages to state that Chat Completions and Responses generation endpoints have independent enablement switches. Merge readinessKeep open: this is an accurate, narrowly scoped correction to current Gateway documentation; current main still contains the misleading cross-enablement statements. Priority: P2 Review scores
Verification
How this fits togetherGateway startup resolves two HTTP endpoint flags and passes them to the HTTP router. The router shares model discovery and embeddings when either API is enabled, while each generation endpoint remains separately gated. flowchart LR
A[Operator configuration] --> B[Gateway startup]
B --> C[Endpoint flag resolution]
C --> D[HTTP route router]
D --> E[Shared models and embeddings]
D --> F[Chat Completions endpoint]
D --> G[Responses endpoint]
Before merge
Agent review detailsSecurityNone. PR surfaceDocs +3. Total +3 across 2 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain this two-page documentation correction and merge it after the exact-head documentation check completes successfully. Do we have a high-confidence way to reproduce the issue? Yes—source inspection reproduces the documentation defect: the current pages promise cross-enablement that the independent router gates do not provide. Is this the best way to solve the issue? Yes—the smallest maintainable fix is to correct both reciprocal setup pages; changing runtime behavior would contradict the existing separate configuration contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f9dd6ed63edb. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review is complete. Both reciprocal setup claims now match the independent runtime route flags; no runtime or configuration change is needed. I independently replayed all40 real loopback HTTP routing cases and verified fixture/listener cleanup. The latest ClawSweeper review had no source findings. Its outstanding exact-head docs check is now green: CI33039711480 and Workflow Sanity33039711455 both succeeded at |
|
Merged via squash.
|
…-retirement-v13 * origin/main: (243 commits) fix: preserve Gateway error reasons in text logs (#130645) refactor(video): deduplicate generation contracts (#130635) fix(agents): preserve direct-message sender identity (#124548) fix(agents): preserve silent reply after settled tools (#130675) fix(talk): preserve replacement speech when an old utterance is canceled (#130687) fix(browser): preserve literal names and formatter-owned snapshot refs (#130599) fix(auth): reset only the profile replaced by a successful login (#124014) fix: bind session creation to admitted Gateway (#130686) refactor(qa-lab): reuse model reference splitter (#130317) docs(gateway): clarify independent HTTP endpoint switches (#130690) fix(ui): Control UI smooth scrolling ignores the reduced-motion preference (#130428) refactor(lmstudio): remove unreachable catalog merge (#130689) fix(crabbox): restore cloud machine CPU and RAM (#130684) fix(secrets): compare proxy bearer tokens directly (#127054) fix(matrix): show recovery key availability in text status (#128051) fix(ios): restore approval settings navigation and remove duplicate shell state (#130651) refactor(agents): use fixed tool-loop defaults directly (#130681) refactor(qa-lab): share process tree metric reader (#130419) refactor(models): simplify prepared owner access (#130683) fix(parallels): main install and update smoke cannot complete (#130658) ...
What Problem This Solves
Fixes an issue where operators following either HTTP API setup page would expect both generation endpoints to work after enabling only one. The other endpoint correctly returns 404, contrary to the old documentation.
Why This Change Was Made
The Gateway intentionally resolves
chatCompletions.enabledandresponses.enabledindependently. Both can enable the shared model-discovery and embeddings routes, but neither enables the other generation endpoint. Each page now names the existing independent switch and links to the other setup page.This corrects the documented contract without changing runtime behavior, authentication, defaults, configuration schema, or protocol. Production LOC: +0/-0. Tests: +0/-0. Documentation: +5/-2 across two files. No changelog change.
User Impact
Operators can enable the generation endpoint their client actually uses without being misled about the other endpoint. Model discovery and embeddings remain shared as documented.
Evidence
src/gateway/server-runtime-config.ts;src/gateway/server-http.tsgates generation separately and shares only models/embeddings.The HTTP proof used isolated temporary configuration, loopback listeners, authentication mode none, and hooks disabled. It did not start the full Gateway kernel, invoke a provider, or validate generated model output. No operator state or external messages were used. The documentation-only change does not alter any of those boundaries.
Provenance: the incorrect cross-enablement statements predate the available shallow history; no introduction is attributed to the history boundary.