feat: Semantic release notes and robust AI token counting#72
Merged
thomas-vilte merged 2 commits intomasterfrom Jan 4, 2026
Merged
feat: Semantic release notes and robust AI token counting#72thomas-vilte merged 2 commits intomasterfrom
thomas-vilte merged 2 commits intomasterfrom
Conversation
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.
Description
This Pull Request introduces a major enhancement to the release notes generation process by implementing semantic sections. This moves away from a flat list of highlights to a more structured and categorized format, significantly improving readability and organization for end-users.
Additionally, this PR improves the robustness of AI token counting within the
cost_wrapperby adding comprehensive error handling. If the AI provider's token counting API fails or does not support a specific model, the system will now gracefully fall back to a local estimation, preventing failures and ensuring continuous operation.Fixes #
Type of Change
How Has This Been Tested?
The changes have been verified through:
release_generatorto specifically validate the parsing and handling of the new semantic sections from the AI model's JSON output. Existing tests forcost_wrapperandcommit_summarizer_serviceensure no regressions.cost_wrappercorrectly falls back to local estimation and logs appropriate warnings.Checklist
🧪 Test Plan & Evidence
Suggested Manual Verification
go test ./...and ensure all tests pass