fix(gateway): redact public error responses - #105
Conversation
|
Warning Review limit reached
Next review available in: 20 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (11)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
b2770ff to
cca7b08
Compare
292d8b8 to
b8a1f25
Compare
b8a1f25 to
10d9e6a
Compare
Objective
Close the next Phase2 public error-redaction gap by preventing gateway, gwclient, and OpenAI-compatible server error responses from exposing raw sensitive runtime details.
Completed Changes
/messages,/messages:stream, cancel/decode errors, runner errors, stream result errors, and APIError events before they are returned to clients.run.errorstream events.formatError.Validation
openclaw:go test ./internal/gateway -count=1 -run 'TestServer_ProcessMessage_RunError|TestServer_StreamMessage_RunError|TestServer_StreamMessage_APIErrorEvent'openclaw:go test ./gwclient -count=1 -run 'TestClient_StreamMessage_ParseErrorEmitsRunError|TestParseSSEStream_EventFallbackAndErrors'openclaw:go vet ./internal/gateway ./gwclientgo test ./server/openai -count=1 -run 'TestFormatError'go vet ./server/openaigit diff --check0 High / 0 Medium / 0 Low.Known Risks / Limitations
Follow-up Work