mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-15 20:01:28 +00:00
* fix: add size and duration fields to CLI bru.runRequest() response Add `size` and `duration` fields to the response object in CLI to match GUI behavior, ensuring consistent API for bru.runRequest() across both environments. - `duration` is an alias for `responseTime` for GUI compatibility - `size` is the byte length of the response buffer (0 for errors/skipped) Fixes #7352 * fix: address PR review feedback for CLI response consistency - Coerce responseTime header to number (was string from headers.get()) - Add comment explaining duration vs responseTime difference between GUI (wall-clock) and CLI (approximation using responseTime) - Add integration tests for duration/size fields across skipped, success, and network error response paths * fix: add missing setupProxyAgents mock in response-fields test The success path calls setupProxyAgents which was missing from the proxy-util mock, causing CI failure. --------- Co-authored-by: Chirag Chandrashekhar <cchirag85@gmail.com>