Skip to content

fix(app): Transcript tab RangeError while a recording transcript loads - #24922

Merged
kodjima33 merged 2 commits into
mainfrom
fix/transcript-tab-leading-ids
Nov 11, 2026
Merged

kodjima33 merged 2 commits into
mainfrom
fix/transcript-tab-leading-ids

Conversation

@kodjima33

@kodjima33 kodjima33 commented Nov 8, 2026 •

Copy link
Copy Markdown
Collaborator

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 leadingItems when loadingRecordingTranscript is true, but only adds its id to leadingItemIds when isReprocessingOpenConversation is true. While a recording transcript loads, the lists differ in length and TranscriptWidget reads past the end of leadingItemIds (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

  • New test/widgets/transcript_leading_items_test.dart starts 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 with leadingItems.length == leadingItemIds.length and passes with the fix.
  • Neighbouring widget tests pass (64): recording speaker selection, transcript heading, speaker labeling, conversation detail status, playback sync.
  • Not reproduced on a device: the loading window needs a multi-recording conversation on prod data.

UI-Evidence: none

Failure-Class: none

Product invariants affected

none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

#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.
@kodjima33 kodjima33 added the mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship label Nov 8, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@kodjima33

Copy link
Copy Markdown
Collaborator Author

/approve-ui ec7b55a

@kodjima33

Copy link
Copy Markdown
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+.

@kodjima33
kodjima33 merged commit f875d8e into main Nov 11, 2026
45 checks passed
@kodjima33
kodjima33 deleted the fix/transcript-tab-leading-ids branch November 11, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mux-proposal Mobile UX improver (MUX) proposal; waits for Nik's ship

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant