Skip to content

Conversation

@polina-c
Copy link
Collaborator

@polina-c polina-c commented Feb 13, 2026

Fixes #716

gemini-code-assist[bot]

This comment was marked as outdated.

@polina-c
Copy link
Collaborator Author

/gemini review

@polina-c polina-c marked this pull request as ready for review February 13, 2026 05:14
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a PromptBuilder class to encapsulate the logic for constructing system prompts, improving code organization and maintainability by centralizing prompt creation. A high-severity issue regarding insecure prompt construction in the PromptBuilder class has been identified, which could lead to prompt injection if user-controlled data is included in the instructions. Furthermore, a bug where the string 'null' is interpolated into the prompt when instructions are omitted could lead to incorrect prompt generation.

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