Repository navigation
fix(response): elapsed time resets issue while streaming - #8989
Merged
Conversation
sharan-bruno
requested review from
bijin-bruno,
helloanoop,
lohit-bruno,
naman-bruno,
sachin-thakur-bruno,
sanish-bruno,
sid-bruno,
utkarsh-bruno and
vijayh-bruno
as code owners
August 17, 2026 07:31
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (2)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
sanish-bruno
approved these changes
Aug 17, 2026
sanish-bruno
requested changes
Aug 17, 2026
sanish-bruno
approved these changes
Aug 17, 2026
vijayh-bruno
approved these changes
Aug 26, 2026
vijayh-bruno
merged commit Aug 26, 2026
887806b
into
usebruno:bugfix/streaming-elapsed-time-internal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BRU-4095
Description
Fixes an issue where the elapsed-time counter reset to zero when navigating away from and then back to an active streaming request
Problem
Previously, we relied on
response.duration, which only reflects the actual duration after the request or stream finishes. While streaming, it still contains the previous value. On top of that, the stopwatch tracked elapsed time in component state, so navigating between tabs unmounted the response pane and caused the counter to reset.Fix
Now, we calculate elapsed time from
item.requestSent.timestampand the current time. This makes the counter derived from the actual request start time, so it stays accurate even after the component remounts. Future timestamps are also clamped to zero to prevent negative elapsed times.Screenshots
Screen.Recording.2026-08-14.at.4.37.08.PM.mov
Screen.Recording.2026-08-14.at.4.47.54.PM.mov
Contribution Checklist:
Note: Keeping the PR small and focused helps make it easier to review and merge. If you have multiple changes you want to make, please consider submitting them as separate pull requests.
Publishing to New Package Managers
Please see here for more information.