Skip to content

fix: JSON serialization and logging exception propagation in claude_code_llm#461

Merged
nicoloboschi merged 1 commit intomainfrom
consolidation
Mar 2, 2026
Merged

fix: JSON serialization and logging exception propagation in claude_code_llm#461
nicoloboschi merged 1 commit intomainfrom
consolidation

Conversation

@nicoloboschi
Copy link
Collaborator

Summary

Fixes two bugs reported in issues #458 and #459 that caused every consolidation task to retry 11 times, generating thousands of wasted LLM API calls.

Test plan

  • test_llm_provider_consolidation[claude-code-claude-sonnet-4-20250514] passes locally
  • Linting passes (ruff)

…claude_code_llm (#458, #459)

- Replace json.dumps(result) with result.model_dump_json() for Pydantic models to fix TypeError during consolidation
- Wrap record_llm_call tracing block in try/except so logging failures never propagate to retry handler
- Fix test_llm_provider.py to use _get_raw_config() for bank-configurable enable_observations field
@nicoloboschi nicoloboschi merged commit ecb833f into main Mar 2, 2026
30 of 32 checks passed
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