Conversation
There was a problem hiding this comment.
Pull request overview
This pull request syncs a new AI error handling configuration from the source repository (mrz1836/go-broadcast). It adds an environment variable that allows operators to control how AI broadcast failures are handled, with an option to either fail with detailed error information or silently fall back to static templates.
Changes:
- Added
GO_BROADCAST_AI_FAIL_ON_ERRORenvironment variable with a default value offalse - Added comprehensive comment documentation explaining the error handling modes
- Positioned the configuration logically within the AI settings section
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Changed
GO_BROADCAST_AI_FAIL_ON_ERRORwith a default value offalseto.github/.env.basetrue, AI failures cause sync to fail with an error showing which API key env var was used; whenfalse(default), AI failures silently fall back to static templatesGO_BROADCAST_AI_RETRY_INITIAL_DELAYandGO_BROADCAST_AI_RETRY_MAX_DELAY)Why It Was Necessary
Testing Performed
true, AI failures properly surface errors with API key environment variable informationfalseor unset, AI failures gracefully fall back to static templates without raising errorsImpact / Risk