Repository navigation
fix: preserve elapsed time for streaming requests - #8796
sanish-bruno merged 1 commit into
Conversation
Walkthrough
ChangesResponse stopwatch timing
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant ResponsePane
participant ResponseStopWatch
participant SystemClock
participant IntervalScheduler
ResponsePane->>ResponseStopWatch: pass startTime and startMillis
ResponseStopWatch->>SystemClock: read Date.now()
ResponseStopWatch->>IntervalScheduler: schedule TICK_INTERVAL updates
IntervalScheduler-->>ResponseStopWatch: timer tick
ResponseStopWatch->>SystemClock: recompute elapsed time
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|
Hi, we're dedicating bandwidth to review this PR and get it merged for release v4.2.0, which is planned to go out in September. Thank you for your contribution! |
4f319b5
into
usebruno:bugfix/streaming-elapsed-time-internal
Internal - [BRU-4095]
Description
Preserves the elapsed-time counter for active streaming HTTP responses when navigating away from and back to the request.
Problem
ResponseStopWatchkept elapsed time only in component-local state. Switching requests unmounted the component, so returning to a still-running stream initialized the counter from the original response duration and appeared to reset it.Fixes #8792.
Fix
requestSent.timestampwhen available.Screenshots
Not applicable; this changes timer continuity rather than layout or styling.
Contribution Checklist:
Testing
ResponseStopWatch: 5/5 tests passedgit diff --checkSummary by CodeRabbit
Bug Fixes
Tests