Skip to content

fix(app): bound citation repair work behind the Home watchdog - #23079

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/crash-8015
Oct 21, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/crash-8015

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

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, reports EXC_CRASH / SIGKILL, FRONTBOARD 0x8BADF00D, 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 -> ConversationListItem during WidgetsBinding.drawFrame. The native timer is the engine frame/vsync timer. This snapshot does not show SchedulerBinding._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

  • 88 targeted Flutter tests passed: citation contract, title/fallback behavior, list-row isolation, and detail-title rendering. New cases cover overlapping literal IDs, BMP/astral Unicode boundaries and Arabic digits in speaker labels.
  • Identical synthetic host workload (30 short titles, 1500 IDs each): old implementation 9.915 seconds, fixed implementation 11.4 milliseconds. The old implementation fails the new 3-second coarse watchdog-class budget; the fixed implementation passes. These are host measurements, not iPhone frame times.
  • Full citation contract fixtures, protected Markdown/code/link cases and title bracket preservation remain green.
  • Native evidence identifies the expensive sampled path; physical-device acceptance of the new binary remains required. No backend/listen deployment is needed.

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 via infra/rollout/bin/review.sh: SHIP, no P0/P1. Exact reviewed head: edf3fd773309358618fe757b30904b4536f72d80.

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
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T17:55:21.381532Z — PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Git-on-my-level
Git-on-my-level merged commit 19458d3 into main Oct 21, 2026
54 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/crash-8015 branch October 21, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant