Skip to content

Conversation

@GitHoobar
Copy link

Bug 1: validate_message_tree() does len(prompt.text) without checking if prompt is None first — will raise AttributeError on trees with no prompt.
Bug 2: validate_and_log() opens file with log_path.open() but only calls close() at the end — any exception before that line leaves the file handle open.
Bug 3: Text length check uses > instead of >=, so a message with exactly max_length characters passes validation when it should fail.

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.

2 participants