Skip to content

fix(summary): log LLM error response body - #53

Merged
zhanghanduo merged 2 commits into
mainfrom
fix/summary-log-error-body
Sep 30, 2026
Merged

zhanghanduo merged 2 commits into
mainfrom
fix/summary-log-error-body

Conversation

@zhanghanduo

Copy link
Copy Markdown
Collaborator

Follow-up to ApodexAI/ApodexHarness#648: the Summary LLM 400 response body was not logged.

Changes

  • SummaryLLMEngine now logs a WARNING with status code, candidate, model and the response body (truncated to 2000 chars) on httpx.HTTPStatusError, before the retry decision, so permanent 400s are covered.

Tests

  • New tests for body logging and truncation; 34 summary tests pass, ruff clean.

🤖 Generated with Claude Code

zhanghanduo and others added 2 commits September 30, 2026 11:34
A bare "400 Bad Request" hid why the provider rejected summary calls
(ApodexHarness #646/#648). Log the (truncated) response body on HTTP
status errors before the retry decision.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@zhanghanduo
zhanghanduo merged commit 4a94566 into main Sep 30, 2026
5 checks passed
@zhanghanduo
zhanghanduo deleted the fix/summary-log-error-body branch September 30, 2026 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant