jukebox
All repositories: gitoria
4.5 KB
# 004 — jukebox#21: remove the locked-screen workaround that makes the Android notification card flickerTASK (HIS words, 2026-11-03, verbatim): "also after adding the browser to battery exeptions the background play when screen off works so the workaround can be removed now where the playing card in the android notification disappears and reappers on ever change."Ticket: https://tickets.worldapi.org/jukebox/21 (no ticket writes by you).NOT HIS (Jukebox's reading, unconfirmed): he plays on an Android phone/tablet in Chrome with the screen off. The medianotification card (Media Session) vanishes and comes back at every change (next song, maybe play/pause or time updates).He believes code added to keep playback going with the screen locked causes it. Candidates, NOT verified:- components/main.hl ~511 and ~684: navigator.mediaSession metadata / action handlers, and ~667 (a check on a.paused / a.ended);- components/media-player/media-player.hl ~394–420 (commit b58e449, jukebox#11: the next src is set and played inside `ended`on the same audio element).Find out which code (commit, file, lines) makes the card disappear and reappear, and why it was added (git log -L / blame,reports/JB11*.md, LOG.md). His sentence decides: remove the workaround so the card stays steady, while background play withthe screen off still works.## Ownership stopcomponents/media-player/ is Atlas's shared component (components.hybriel, other apps use it). If the cause or the fix isinside media-player.hl: do NOT change it. STOP after the finding and report the exact lines, the cause and the change youwould want (an option, default unchanged). Changes in the app's own files (main.hl, lib/, songs.hl …) you may make.## Read first- /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md in full.- /media/STORAGE/projects/WorldAPI/jukebox/CONDUCTOR.md "Verification"; README.md "Run it".- For .hl: /media/STORAGE/projects/hybriel/docs/HL-PRIMER.md, /media/STORAGE/projects/hybriel/docs/CODE-ORDER.md, and in/media/STORAGE/projects/hybriel/COMPONENTS.md the sections "The event value a View handler receives" (~1718),"Direct DOM effects are transient and untracked" (~1749), "Event bindings" (~1764). Copy a working shape from the docs.Report a DOCS line (sections used, questions the docs did not answer).## Steps1. Worktree /media/STORAGE/claude-scratch/jukebox/N1/wt, branch jb21 from main. Root bin/ is day35; link or copy it into theworktree's bin/ the way earlier missions did (never commit a bin symlink; check git status).2. Find the cause (code reading + a test in a headless Chrome: count how often mediaSession.metadata is set / the mediaelement is replaced or reloaded per song change). Write the finding first in N1/REPORT.md.3. If app-side: fix it. Add a check that FAILS on main and passes on the fix (e.g. extend tests/jb11.mjs: across a song changethe metadata is set once per song and the audio element stays the same, and the next song still starts in a hidden tab).4. All gates pass, every port overridden into your range: node tests/gate.mjs, ui.mjs, jb3.mjs, jb11.mjs, jb13.mjs, jb14.mjs,jb15.mjs, node theme/check-theme.mjs . (last on day35: 120, 53, 50, 5, 10, 5, 33, 0). A single jb3 "songs heading" timeout is flaky: rerun once.5. Proof in his Chrome on lisbeth :9223 (WORKER-RULES: lock, one plain tab, json/list before/after, closed in finally), server ona test port with a COPY of ./storage: at 390×844 and 1280×800 play a song, press next twice, look that playback and thebar are right. Shots in N1/shots/. (Chrome desktop shows no Android card; say what you could and could not prove.)6. Commit on jb21 (no attribution lines). No merge, no push, no restart of :8700 — I do the live step.## Environment- Scratch: /media/STORAGE/claude-scratch/jukebox/N1/. Ports 8820–8829 only: servers 8820–8824, Chrome via HL_PORT_BASE=8630(debug ports 8830–8834); check `ss -ltn` first. Never send anything to :8700.- DATA RULE: never open ./storage from any process; tests use a copy (copy the files; delete the copy at the end).- Model Sonnet. Cap about 60 requests. Waiting = ONE background command.- Stop every process you started; list name + PID. Last: `for p in $(pgrep chrome); do readlink /proc/$p/cwd; done | grep N1` prints nothing.## Report (N1/REPORT.md + final message at most 10 lines)Cause (commit, file, lines, why it was added), what you changed or the exact media-player change you want, the new check(fails on main: show it), gate numbers, Chrome shots, branch SHA, processes stopped, final json/list, DOCS line.
Branches
Latest commits
- 10f8a8c8Merge branch 'code-order' into mainJukebox
- 204fc828Merge branch 'day72' into mainJukebox
- 95f5faae|||PR jukebox#7 Drop needless let declarationsmre
- 33072bb5|||PR Record day72 gates and Chrome proofmre
- 95f2cd73|||PR Use typed parent methods for screen playback and local server facesmre
- 6422a020Sync media-player at 51c3818mre
- b582ba1cVendor complete Hybriel day72 plugin setmre
- 02dccbc9Merge branch 'records-1119' into mainJukebox
- a39e1c23|||PR Records: missions 013-015, reconnect fix livemre
- fc7db075Merge branch 'reconnect-retry' into mainJukebox
- ac6f4c6fL2: plain declaration for a in pickedNextmre
- 2f335086Review round 2: only an explicit queue pick drops pend (not the automatic advance); jb23 records every source changemre
- 3eb6695fReview fixes: action generation, queue pick clears pend, Previous/Next retry the decided request, typed handlersmre
- 7a53c0c2|||PR A tap lost to a dead socket plays after reconnect (mission 015)mre
- 1f0cd77bMerge branch 'records-day41' into mainJukebox
- 67be229f|||PR Records: day41 live (PR #4), mission 012, statusmre
- 0bb027daconductor: caramboleyo is the user, not owner/creatorApollo
- 04f5d9d5Merge branch 'day41' into mainJukebox
- 8ed6da45|||PR README: media-player pin df9e7dfmre
- d5d45fc3|||PR media-player df9e7df (repeat-one fix), sync pin and SOURCEmre