Repository navigation
fix(app): strict segment seek + stop-at-end for transcript playback (#4471) - #11170
Conversation
…asedHardware#4471) Segment taps used scrubber gap-snap (wallToArtifact), so a start in a collapsed inter-part gap jumped ~20s into the next span and played to the end. Mirror macOS strict in-span mapping, require the dense artifact, and pause when position reaches the segment end. Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
) Bump a per-seek generation so a stale segment end-handler cannot pause playback started by a newer tap or scrub. Format AudioTimelineMapper constructor to satisfy dart format CI. Co-authored-by: Cursor <[email protected]>
|
Addressed both cubic P2s: Formatting: Rapid second tap:
|
Formatting CI failed: dart format --set-exit-if-changed on the changed conversation_detail/page.dart (ternary/indent drift). Co-authored-by: Cursor <[email protected]>
|
Formatting was red on |
…asedHardware#4471) Co-authored-by: Cursor <[email protected]>
|
Android Compile Smoke — infra flake, not this diff.
Couldn’t |
|
Nice work on this — the strict-mapping approach is clean and the generation-guarded stop handler is the right pattern for preventing stale end-handlers from pausing newer taps. The reporter-shaped test case is a good touch. Two behavior changes I'd want a maintainer to confirm before merge:
Minor edge case: if CI is green and the mapper contract is well-tested. Leaving for maintainer review on the two UX/behavior questions above. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Strict in-span segment mapping matches the macOS behaviour and stops seeking past the gap; 14 unit tests.
Summary
wallToArtifactgap-snap. After dense MP3 playback collapses gaps >90s, a segment whose wall start sits in that gap (e.g. 11:41) snaps to the next span (e.g. 12:03). macOS already uses strict in-span mapping (CapturePlayback.artifactOffset).wallToArtifactStrict/wallToArtifactStrictInclusivefor segment start/stop; require dense artifact + spans (no per-part fallback for taps); pause viapositionStreamat segment end. Scrubber keeps gap-snap.Test plan
flutter test test/unit/audio_timeline_mapper_test.dart→ 14 passed (incl. reporter-shaped 701→null vs scrubber snap)Product invariants affected
none
Failure-Class: none
Fixes #4471