Repository navigation
fix(app): bound citation repair work behind the Home watchdog - #23079
Merged
Merged
Conversation
The UUID-matched 1433 watchdog stack samples regexp canonicalization in repairPass during conversation title rendering. Reuse fixed Unicode speaker patterns and reject absent literal IDs before compiling boundary expressions. A synthetic 30-row workload with 1500 transcript IDs per row takes 9.915s before and 11.4ms after on the operator Mac. Preserve citation parity, Unicode word boundaries and literal/overlapping-ID behavior in regression tests, with a coarse watchdog-class workload budget. Failure-Class: new
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
What changed and why
Home title rendering could stall long enough for iOS to terminate the app during a scene update. Build 1.0.571 (1433), sourced from
8015f02c, reportsEXC_CRASH / SIGKILL, FRONTBOARD0x8BADF00D, after exhausting a 10-second scene-update allowance.UUID-matched App.framework and Flutter.framework dSYMs resolve the sampled stack to
CharacterRange::Canonicalize -> RegExpParser -> String.replaceAll -> repairPass (note_citations.dart:106) -> repairNoteCitations -> presentableNoteTitle -> conversationRowTitle -> ConversationListItemduringWidgetsBinding.drawFrame. The native timer is the engine frame/vsync timer. This snapshot does not showSchedulerBinding._runTasks; #23076 fixes a separately reproduced idle-task spin.Citation repair now reuses fixed Unicode speaker patterns and skips per-ID Unicode boundary pattern construction when the literal ID is absent. Rendering an ordinary short title previously compiled patterns for every ID in its transcript, even though none appeared in the title. Citation output and stored data remain unchanged.
Product invariants affected
INV-PERF-1: remove repeated Unicode regexp compilation from the title-rendering path. The new shared contract regression covers a long transcript on each row.
Failure-Class: new
UI-Evidence: none -- presentation utility optimization, with existing title rendering and citation parity tests preserved; no widget layout or visible copy change.
Verification
Crash artifacts contain private device metadata and remain outside Git. This PR includes no raw crash report, production account data, user identifiers, or credentials. Crashlytics access used
ro-prod; discovery-verified filters and full report view returned no issue groups for builds 1431–1434, while an unfiltered positive control returned 25 groups. ASC also had no ingested incident submission; the device report arrived directly.make preflight: all 25 selected checks passed. Analyzer: no issues on both changed Dart files. Independent Luna round 1 viainfra/rollout/bin/review.sh: SHIP, no P0/P1. Exact reviewed head:edf3fd773309358618fe757b30904b4536f72d80.