Android: the seek bar handle on Now Playing never moves #53
Open
opened 2026-08-18 05:58:15 +00:00 by logan
·
3 comments
No Branch/Tag Specified
main
fix/146-stub-etxtbsy
fix/175-wizard-follows-the-library
fix/231-setter-rollback
fix/197-duplicate-column-label
docs/225-fixtures-wav-tags
docs/220-skill-check-scope
test/217-fixture-names-in-queue-selection
fix/216-riff-parse-allocation
fix/170-queue-header-action-names
fix/210-nav-sheet-scroll-affordance
docs/50-readme-landing-page
feat/65-art-prefetch-ahead
feat/71-more-as-a-bottom-sheet
feat/54-native-touch-feel
feat/67-entity-links-into-menus
test/196-visual-tier-gates
fix/138-ui-test-storage-leak
fix/104-wav-tags-read
fix/207-sheet-scroll-affordance
fix/204-ui-visual-update-filter
pi-agent-backlog-automation
63-touch-model-phase-2
63-android-touch-model
186-touch-targets-settings
186-touch-targets-page-header
187-seek-bar-hit-area
189-190-explore-correctness
135-android-underrun-instrumentation
51-android-small-screens
fix/171-phone-queue-scrim
fix/137-touch-only-affordances
fix/154-nested-css-check
feat/58-mini-player-progress-line
fix/66-album-page-scrolls-as-one
60-context-menu-action-sheet
64-android-system-volume
59-slim-the-mini-player
55-queue-as-a-screen
feat/57-drop-the-android-top-bar
feat/62-jobs-as-a-notification
fix/53-seek-bar-never-moves
fix/159-android-task-app-id
fix/52-android-activity-recreation-restarts-the-process
fix/150-expand-button-under-the-art
feat/42-inline-volume-and-centred-transport
fix/156-queue-selection-fixture-order
fix/151-fuse-the-scroll-guard-and-the-write
fix/43-queue-panel-selection
fix/143-top-bar-fits-its-window
feat/27-jobs-into-settings
feat/25-configurable-sidebar-tabs
feat/6-global-back-forward
fix/72-active-view-broadcast
fix/69-page-header-action-overflow
fix/quick-wins-batch
fix/118-in-library-clear
fix/61-mini-player-plain-text
fix/68-hover-affordances-pointer
fix/119-dev-headless-port
fix/130-issue-claim-user
fix/131-codegen-check-scope
feat/28-autotag-match-on-album
feat/17-demote-version-selector
feat/38-ownership-visibility
ci/115-manual-release
feat/34-icon-language
feat/7-full-tracklist-toggle
fix/16-tagwriter-totals
fix/unclaim-ca-certs
fix/unclaim-shell
ci/unclaim-on-close
docs/closing-keyword
docs/retire-stale-planning-docs
docs/issue-driven-workflow
integration/small-fixes
fix/small-issue-batch
fix/queue-toggle-state
fix/drag-count-badge
fix/album-card-year
fix/album-tracklist-heading
fix/seek-bar-clock-width
fix/explore-art-scanner-requests
chore/workflow-guardrails
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.1
v0.3.0
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.0
v0.0.1
v0.0.0
Labels
Clear labels
Area/Design
Area/Downloads
Area/Explore
Area/Library-UI
Area/Metadata
Area/Packaging
Area/Player
Area/Queue
Area/Settings
Area/Shell-Nav
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Platform/Android
Platform/Desktop
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
In Progress
Somebody is actively working on this right now
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: yonlu/yellowjacket#53
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Report
The seek bar is broken on the Now Playing view — the handle stays at the start no matter how far the song has progressed.
Findings
now-playing-viewcomposes the real<seek-bar>, so the bar works elsewhere and fails here. That points at the report not reaching this instance rather than at the bar itself.seek-barrendersPlaybackPositionChanged(payloadplayer.PositionInfo), emitted at 1Hz while playing and immediately on load/play/pause/seek/finish. Each report carries atrackChangeId— a bar mounting later must not adopt a report about the previous track, and the store is a singleton. A view created on navigation mounts its bar mid-track, so atrackChangeIdmismatch (or a missing initial report for a late subscriber) would produce exactly this symptom: zero progress, forever.setIntervalis interpolation between reports only, stopped and restarted by each one — with no reports accepted, it never starts.Direction
Check what a
seek-barmounting mid-playback does withtrackChangeIdand whether it gets a snapshot of the current position on mount (rather than waiting for a report it will reject). Add a spec that mounts a bar while a track is already playing. This is likely a desktop bug too, hidden because the desktop bar mounts at startup and never remounts.Two things found while auditing the player for a desktop report of "pause icon showing, bar not moving" (#122–#125). Neither is claimed here; filing them where whoever picks this up will see them.
The stated hypothesis does not survive reading
updated(). Aseek-barmounting mid-track is not left rejecting reports:previousTrackChangeIdstarts at-1, so the firstupdated()always takes the track-change branch, sets it to the live id and seedsseekValuefromcurrentTrack.seekPosition;forThisTrackthen compares the store'sposition.trackChangeIdagainst that same live id — they match, because both come fromp.trackChangeIDandemitTrackChangedis the only thing that increments it;previousPositionSeqstarts at-1, so any report'sseqdiffers and is applied.So a late-mounting bar adopts the current position on its first update and starts interpolating. If the Android bar still shows zero, the report is not reaching the store (or
wa-slider's.valueis not reflecting in Chrome 113 — that WebView is two years behind everything else we test on), rather than being rejected by the bar. Worth confirming withwindow.__yjEventson the device before changing the component.A real way the interval stops and does not restart, on any platform.
handleInput()callsstopProgress()and changes no reactive state, so no re-render follows and theupdated()tail that would restart the interval never runs. It is only restarted by achangeevent or by the next accepted backend report. Anyinputwithout a committedchange— a touch that lands on the track and is treated as a scrub, a drag cancelled outside the element — therefore freezes the bar until the next 1 Hz report rescues it. On a touch device that is the common gesture, and if reports are also not arriving it is permanent. Cheap fix: make the drag an@stateflag and letupdated()own the interval, so there is one place that decides whether it runs.Taking this on
fix/53-seek-bar-never-moves.Starting from yonlu's comment rather than the issue's own hypothesis,
which that comment shows does not survive reading
updated()—previousTrackChangeIdstarts at-1, so a late-mounting bar alwaystakes the track-change branch and adopts the live position.
Plan, in that order:
attached. The question yonlu left open is whether
PlaybackPositionChangedreaches the store at all on Android, orwhether it does and
wa-slider's.valueis not reflecting inChrome 113 — those need opposite fixes and the page can be asked
directly (
make android-inspect/android-eval).handleInput()calls
stopProgress()and changes no reactive state, so nothingre-renders and the
updated()tail that would restart the intervalnever runs. On a touch device a tap on the track is the common
gesture.
seek-barhas no test at anytier, which is why a component this load-bearing could be broken on
one platform without anything failing. A mid-playback mount is
assertable with
wails-fake.ts, so this need not stay device-gated.app.yellowjacket(the released app, v0.3.1) will not be touched:anything installed here is the
.devvariant, via the tasks fixed in#159.
Measured on the reported device against current
main. The symptomdoes not reproduce, and the most likely reason is that it was a backend
fault already fixed in v0.4.0. Detail below so this can be judged
rather than taken on trust — I have not closed it, because the person
who saw it should get to say.
The component is not what changed.
seek-bar.tsandplayer-store.tsare byte-identical to the build thephone is carrying (the released
v0.3.1,firstInstallTime2026-08-17). Every change in this area since is in
backend/player/—which is exactly where the player audit (#122–#127) landed, and those
are in v0.4.0, not v0.3.1.
Four scenarios on the phone (TLP301, Android 14, Chrome 113), current
main, with a synthesised 4-minute track, reading the component's ownstate rather than a screenshot:
seekValue28, slider 28, max 240,00:28— trackingfont_scale)The issue's stated hypothesis is dead, as your comment said it would be,
and there is already a test for it —
transport.test.ts's "resumesmid-track from the position the backend reported". I had gone looking
for a missing
seek-bartest and found the suite is intransport.test.ts, not a file of its own; it is 20 tests deep.What does reproduce, on the same phone. Reverting only
backend/player/to v0.3.1 — frontend and everything else at HEAD —brings back a real position defect. Six seconds into a 20-second file
with no database row, played after a 240-second one:
That is #125's stale
trackLengthMs("cleared only byUnloadTrack, soa file with no row inherited the previous track's duration"), and it is
fixed at HEAD. Worth noting its shape, because it is not quite what
this issue describes: the fraction stays roughly right while the
absolute numbers are wrong, so it presents as a clock that lies rather
than as a handle pinned at zero. If what you saw was the clock
disagreeing with the music, that is this and it is fixed. If the handle
really was at the far left with the clock counting normally, something
else is going on and this should stay open.
(The v0.3.1
backend/playercompiles against HEAD with one shim —SetPlaybackFinishedHandlergained asrcErr errorparameter — whichis what made that a ten-minute experiment.)
Your second finding was real and is now fixed as #164:
handleInput()stopped the interval and mutated no reactive state, sonothing re-rendered and only a
changeor the next report could restartit.
updated()owns the interval now, the drag is@state, andpointerup/pointercancel/touchend/touchcancelon the documentstop the flag stranding — which would have converted a one-second stall
into a permanent one. Reports are ignored mid-drag too, so the thumb is
no longer pulled out from under the finger once a second. Three tests,
all checked against the fault.
What would settle this: does it still happen on v0.4.0 or later?
That is the first build with the player fixes. Marking
Status/Need More Infoand unassigning so it is free for you or whoevercan answer that.