Repository navigation
fix(app): isolate sync ring painting and Device live updates - #23018
Merged
Merged
Conversation
Keep animation frames inside the ring painter and select visible Device page state at the dependent section. Add rebuild, paint, lifecycle and visible-state regression coverage. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Assert one inventory pass per sync update and zero scans for capture metrics. Preserve both surfaces pixel for pixel in still-frame renders. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
Read battery and charging fields only when a connected device has visible stats, preserving the existing disconnected-page contract. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Problem and change
The sync ring introduced with episodes v1 repainted the surrounding Home header on every frame.
RotationTransitionrebuilt at 60 Hz without a repaint boundary. It did not notify a shared provider or rebuild the whole Home page at 60 Hz. Separately, Device settings subscribed to Capture, Sync, Conversation and Episode at its page root, so unrelated metrics/progress updates rebuilt every section and repeated the WAL/today-duration calculations.The arc now uses
CustomPainter(repaint: controller)inside its ownRepaintBoundary, leaving its glyph/header unchanged. Its 1,400 ms rotation, faint track, arc, size and stroke stay the same. The controller stops while inactive, outsideTickerMode, or under Reduce Motion. Device settings selects its visible capture state and badge and subscribes to stats, Right now and diagnostics within those sections. Existing narrow Home provider selectors remain in place. Battery/charging fields are read only when a connected device’s stats are shown.No frame-rate timer was found in these paths: the ring already used an AnimationController; Capture metrics sample every 5 seconds, episode polling/row ticks every 30 seconds, device discovery every 10 seconds and health hourly. The defect was escaping paint/rebuild work, rather than an INV-PERF-1 fast-timer violation.
Before and after
Same m5-mbp, Flutter 3.44.5, synthetic providers, 800×600 viewport, 60 explicit frame pumps at 16,667 µs after warmup. Home means the production
BatteryInfoWidgetin an AppBar; Device is the productionDeviceSettingspage. This is a scoped reproduction, not a full connected-phone profile.The notification rate is an injected repeatable stress workload, not a claim about the production rate. The metrics values change; the Device page's other visible inputs remain unchanged. The regression test failed on the original code for both Device cases and the active Home ring, then passed with the fix. Positive controls verify the arc actually paints, the static glyph stays unpainted, pause/sync amounts still update, and the ticker stops and resumes.
Live binding (
framePolicy=onlyPumps) host build/layout/paint p95 in the measured windows: Home idle 0.769 → 0.797 ms, Home syncing 2.443 → 0.733 ms, Device idle 21.143 → 1.958 ms, Device syncing 20.789 → 1.210 ms. Host scheduling is noisy; timings are diagnostic and no device FPS or GPU-raster improvement is claimed. The deterministic build/paint counts are the regression gate.Rerun from
app/:Store source and release
The defects are present in
76fee8d44c67112ee6fa7e159e7d628bc4d20cf1, the supplied source of 1.0.569. Its ring blob is7e06a08d8be0128edb057f7a85e534d6655a776eand Device settings blob isb0dae8b47a94fdd2db1b5f53c5f87b9ff5519481, both identical to the measured pre-fix base33d7596f4be5. Recommend replacing the review build if the store release must avoid this regression. This PR includes the mobile unreleased changelog so the fix can join the next TestFlight build after normal merge/release approval. No merge, deploy or release dispatch was performed.Validation and UI evidence
Product invariants affected
INV-PERF-1: keep animation work in the painting leaf and notifications scoped to changed visible inputs. INV-UI-3: retain the existing shared activity-ring primitive and visual design.
Failure-Class: new
Adds
FC-mobile-live-indicator-work-escapes-leafwith the reusable rebuild/paint regression suite as its prevention artifact.UI-Evidence: synthetic host renders (Android theme, Reduce Motion); not phone screenshots. Both before/after pairs are pixel-identical.
Measurement metadata
🤖 Generated with Claude Code