Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Jul 2, 2025

This PR updates the JSON decoding error handling in generate_case_signal_summary to return the raw plugin response instead of raising an exception, and adjusts the log message to include the decoding error.

@whitdog47 whitdog47 self-assigned this Jul 2, 2025
@whitdog47 whitdog47 added the bug Something isn't working label Jul 2, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the JSON decoding error handling in generate_case_signal_summary to return the raw plugin response instead of raising an exception, and adjusts the log message to include the decoding error.

  • Change error handling for json.JSONDecodeError to return raw response
  • Update warning message to include the exception detail
Comments suppressed due to low confidence (1)

src/dispatch/ai/service.py:308

  • Add a unit test to cover the JSON decoding error path and verify that the raw response is returned as expected.
        return {"Summary": response}

@whitdog47 whitdog47 merged commit 3a6bfc5 into main Jul 2, 2025
10 checks passed
@whitdog47 whitdog47 deleted the fix/return-raw-response-if-error branch July 2, 2025 17:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants