fix: apply change undefined property to null#1121
Merged
Conversation
b2d4b21 to
f49254c
Compare
samchon
approved these changes
Feb 23, 2026
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.
This pull request standardizes the handling of optional fields in the agent’s analyze and review interfaces and prompt examples. All fields that indicate possible reviewer revisions (such as
revisedSections,revisedUnits,revisedTitle,revisedSummary, andlanguage) are now explicitly set to either a value ornullinstead of being omitted or left undefined. This change improves type safety, clarity, and consistency across the codebase.API and Type Consistency Improvements:
revisedSections,revisedUnits,revisedTitle,revisedSummary) are now required and set to either their value ornullif no revisions were made, replacing previous optional/undefined usage. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]languagefield in scenario-related interfaces is now always present and set to either a string ornullif not specified, instead of being optional. [1] [2]Prompt Example Updates:
revisedSections,revisedUnits,revisedTitle, andrevisedSummaryfields set tonullwhen no revisions are present, ensuring alignment with the updated interface requirements. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]These changes ensure a more predictable and robust contract between the agent’s backend and its consumers, reducing ambiguity and potential bugs related to missing or undefined fields.