Repository navigation
fix(app): Transcript tab RangeError while a recording transcript loads - #24922
Merged
Merged
Conversation
#24509 added the loading spinner row to leadingItems when loadingRecordingTranscript is true, but leadingItemIds only got its id when isReprocessingOpenConversation was true. While a recording transcript loads, the two lists differ in length and TranscriptWidget reads past the end of leadingItemIds (RangeError in release, 8 users in ~15h on iOS 1.0.587 (1544)). Each leading row now carries its id in one list, so they cannot drift again.
There was a problem hiding this comment.
No issues found across 3 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Tip: Get a Slack DM when cubic finishes reviewing your PRs. Connect Slack
View guided diff | Turn on auto-fix | Re-trigger cubic
Collaborator
Author
|
/approve-ui ec7b55a |
Collaborator
Author
|
MUX auto-ship (PLAYBOOK, Nik 2026-11-04): Codex SHIP review on ec7b55a (runs/2026-11-11/review-24922.md), regression test fails on main and passes here, CI green. P0 crash on iOS 1.0.587+. |
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.
Summary
iOS 1.0.587 (1544) crashes the Transcript tab with a RangeError while a recording transcript loads (8 users in ~15h after release, build 1544 only).
Cause: #24509 shows the loading spinner row in
leadingItemswhenloadingRecordingTranscriptis true, but only adds its id toleadingItemIdswhenisReprocessingOpenConversationis true. While a recording transcript loads, the lists differ in length andTranscriptWidgetreads past the end ofleadingItemIds(transcript.dart:865).Fix: each leading row (spinner, heading, review question) carries its id in one list, and both lists are derived from it, so they cannot drift.
Verification
test/widgets/transcript_leading_items_test.dartstarts a recording transcript load 3 times and checks the tab renders the spinner row and the transcript with no exception, then finishes the load. It fails on main withleadingItems.length == leadingItemIds.lengthand passes with the fix.UI-Evidence: none
Failure-Class: none
Product invariants affected
none
🤖 Generated with Claude Code