Repository navigation
mcpx(daemon): bound chat proxy upstream calls (#2114) - #3380
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
dbe4fff to
562db2a
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 562db2ac63
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| sections: proxy | ||
| kind: Added | ||
| summary: configuration.md gains the proxy section (#2114): the new proxy.timeout setting (duration, 10m default, --proxy-timeout / MCPX_PROXY_TIMEOUT) that bounds how long the daemon waits for a chat-completions upstream, returning 502 when the deadline passes before response headers |
There was a problem hiding this comment.
Register the new history fragment in the compendium manifest
The new Markdown fragment has no entry in docs/compendium.manifest.json, so it introduces a failure in TestEveryDocumentHasAChapter. That test walks all module Markdown files, including docs/changes/, and reports any file absent from the manifest (internal/settings/compendium_test.go:123–166). Add an entry for this fragment, using the not-compendium role if appropriate for release-history fragments. This also follows the explicit documentation-registration requirement in internal/AGENTS.md.
AGENTS.md reference: pkgs/mcpx/internal/AGENTS.md:L17-L18
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 90bb132 (pushed to queue/3088-2114-proxy-timeout): added the docs/changes/proxy-timeout.md entry to pkgs/mcpx/docs/compendium.manifest.json with role not-compendium, matching the other docs/changes fragments. Verified on the laptop: TestEveryDocumentHasAChapter no longer lists proxy-timeout.md; its 4 remaining unregistered files (TESTING.md, docs/changes/docs-history-tool.md, docs/changes/protocol-capability-claims.md, docs/changes/research-and-findings-chapter.md) are identical on clean main — pre-existing, not introduced by this PR. Disposition by queue task 8803 (repo-worker-code, lane code-f).
…fest (#2114) Codex P1 on PR #3380 (comment 4460883082): docs/changes/proxy-timeout.md had no manifest entry, failing TestEveryDocumentHasAChapter for the PR-introduced file. Entry added with role not-compendium, matching the other docs/changes fragments. The test still lists 4 pre-existing unregistered files (TESTING.md and 3 older fragments) — identical on clean main, not this PR. Task 8803.
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
proxy.timeout(10m default) and use it for the complete upstream request. Failures before response headers return 502.proxy.*reads safe when they are absent from the settings schema.Evidence
go test ./internal/daemon -run 'TestProxy(UpstreamTimeoutReturnsBadGateway|CapsFeedbackCopyAndForwardsFullStream)' -count=1passed;go test ./internal/e2e -run TestProxyUpstreamTimeoutIsReachableFromTheEnvironment -count=1passed; focused settings/docs tests passed.TestKeepAliveCallersLoseNoCallsAcrossATakeover: takeover EOF; that test passed when run alone on clean main. An earlier full daemon run passed.Merge Danger
Door: two-way.
Blast Radius: low — only the daemon chat-completions proxy deadline and feedback capture are affected.
Need help on this PR? Tag
@codesmith-botwith what you need.