cfaee4c0dc
- Added checks to skip writing error messages to stderr when stopReason is 'error' or 'aborted', as these cases already handle error output separately. - This prevents duplicate error reporting in print mode when the assistant encounters terminal error conditions.