Conversation
DoganK01
commented
Jan 29, 2026
- make "print" flag true as default
PR Review: Fix Agent Printing (#513)SummaryThis PR changes the default value of the ✅ Positive Aspects
|
PR Review: Fix Agent Printing (#513)This PR changes the default print flag from False to True for Agent and Direct classes. Positive Aspects
Issues and Concerns1. Breaking Change Without Migration Path (Severity: High) This is a breaking change affecting all existing code. Users relying on silent behavior will now see unexpected output. No deprecation warning or migration guide provided. Recommendation: Add changelog notes and migration guide for this breaking change. Files affected: src/upsonic/agent/agent.py:271, src/upsonic/direct.py:69 2. API Change in chat.py (Severity: Medium) Changed from print_do_async() to do_async() at src/upsonic/chat/chat.py:709. This may be a breaking API change if print_do_async() was a public method. Recommendation: Document what print_do_async() did and ensure backward compatibility or deprecation path. 3. Missing Test Coverage (Severity: High) No tests verify: default print flag values, propagation to CultureManager, print suppression, print_price_id_summary() conditional logic, or culture manager serialization. Recommendation: Add comprehensive tests for new default behavior. 4. Logic Issue in print_price_id_summary() (Severity: Low) Inconsistent error handling - prints error when print_output=True and price_id missing, but silently returns None when print_output=False. 5. Incomplete Propagation (Severity: Low) At src/upsonic/agent/pipeline/steps.py:2884, defaults to False when agent is None. Should this default to True for consistency? Security & PerformanceNo security issues. Minor performance overhead from enabled printing, but negligible. Recommendations
Approval: Request ChangesThe core implementation is solid, but needs tests and documentation before merging. |