Skip to content

Fix: Add messages to reporter if crashing during truncation#274

Merged
philipph-askui merged 3 commits into
mainfrom
fix/truncating_long_messages
May 12, 2026
Merged

Fix: Add messages to reporter if crashing during truncation#274
philipph-askui merged 3 commits into
mainfrom
fix/truncating_long_messages

Conversation

@philipph-askui
Copy link
Copy Markdown
Contributor

@philipph-askui philipph-askui commented May 11, 2026

fix: add messages to reporter before adding them to truncation strategy (so that they show up in case truncation crashes)
fix: report truncation errors to reporter before raising them

@philipph-askui philipph-askui marked this pull request as ready for review May 12, 2026 06:13
@philipph-askui philipph-askui changed the title Fix: Missing report messages if crashing during truncation Fix: Add messages to reporter if crashing during truncation May 12, 2026
reporter.add_message(
"TruncationStrategy", f"Truncation Failed with error: {e}"
)
raise
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should it not be raise e?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@philipph-askui philipph-askui merged commit 9c39eb1 into main May 12, 2026
1 check passed
@philipph-askui philipph-askui deleted the fix/truncating_long_messages branch May 12, 2026 13:52
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