feat(gateway): auto-delete tool progress messages after response - #4767
feat(gateway): auto-delete tool progress messages after response#4767byjk wants to merge 3 commits into
Conversation
Code Review: Auto-delete Progress Messages FeatureThanks for this useful feature! The implementation looks solid overall. Here are a few suggestions for improvement: Suggested Improvements
What's Good
Minor NoteThe approach works but could be simplified - consider whether you need the mutable list pattern here. Overall looks good to merge! 👀🚀 |
Code Review: Auto-delete Progress Messages FeatureThanks for this useful feature! The implementation looks solid overall. Here are a few suggestions for improvement: Suggested Improvements
What's Good
Minor NoteThe progress_msg_id_holder approach works but could be simplified - consider whether you need the mutable list pattern here. Overall looks good to merge! |
Code Review: Auto-delete tool progress messagesThanks for this feature! It adds useful cleanup functionality. Here are some observations: ✅ Good
|
Adds display.delete_progress_messages config option (default: false). When enabled, the final progress message (showing tool call status) is automatically deleted from the chat after the agent's final response is delivered. Implementation: - base.py: Add optional delete_message() method to BasePlatformAdapter - telegram.py: Implement delete_message() with logger.warning on failure instead of silent pass (per code review feedback) - run.py: Track progress message ID via mutable holder, delete after agent completes when config is enabled - config.py: Add delete_progress_messages display option Only the final progress message (the one that was last edited) is deleted, not intermediate per-tool progress messages.
cd1cb33 to
0e0e0a2
Compare
What
Adds
display.delete_progress_messagesconfig option (default: false). When enabled, progress messages showing tool calls are automatically deleted from the chat after the final response is sent.Only the final progress message (the one that was last edited) is deleted, not intermediate progress messages for each tool call.
Changes
delete_message()method toBasePlatformAdapter(returns False by default)delete_message()withlogger.warningon failure (not silent pass, per review feedback)delete_progress_messagesdisplay option (default: false)Config
Review Notes
Addressed feedback from initial review:
logger.warning()instead of silentexcept: passfor debugging