jukebox
All repositories: gitoria
3.7 KB
# 015 — jukebox: a tap whose server emit fails must still play once the connection is back (fix for 014)TASK (his words, verbatim, inbox thread "Not playing"): "i think its not reconnecting when i come back after some time and the browser was in background for a while"(Original 2026-11-17: "I just opened it on the tablet and no matter how often I touch on a song in the list it won't start playing")NOT HIS (Jukebox): T2's diagnosis (read /media/STORAGE/claude-scratch/jukebox/T2/REPORT.md in full): a tap while the socket is deadbut not yet known dead makes `items = emit server jbQueue(...)` (components/main.hl:596) return null; a failed value-form emit isnever queued (COMPONENTS.md §10), main.hl:597 returns silently, nothing plays, nothing replays. Same shape at main.hl:634, 643, 657, 701.The app has no `on client reachability` / `on client reconnected`.## Goal1. Read WORKER-RULES in full (/media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md), CONDUCTOR.md"Verification" and "Path to live", README "Run it", /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (L1-L19, F13, F15, F20),HL-PRIMER.md, COMPONENTS.md §10 incl. lines ~400-490 (reconnected, __hlReach, reachability, #379). Copy a working shape from the docs.2. Worktree /media/STORAGE/claude-scratch/jukebox/T3/wt, branch `reconnect-retry` from main 04f5d9d (bin/ = copy of root bin/, never asymlink); storage copy in T3/storage. Ports 8824-8829 (8822 is someone else's; check `ss -ltn`), Chrome gates via HL_PORT_BASE=8630.3. Change in components/main.hl only (app glue; vendored media-player/hl:web untouched):- When jbPlay's server emit fails (null), remember the tapped request (ctx/index/id, identified by the song id, never by positionalone) and run it once when the connection is back (`on client reachability(r)` with reach 'up', and/or `on client reconnected(r)`);a newer tap replaces the pending one. Same treatment for the other value-form emits at :634, :643, :657, :701 where a user actionis lost (explain each in the report; skip one only with a reason).- `on client reconnected(r)`: `location.reload()` when `r.stale` (F6/F13).- No visible new controls or decoration (needs his OK). No hand JS, no setTimeout/polling, no window.*.4. A check that FAILS on 04f5d9d and passes on the branch: tap during a dead-but-not-yet-known socket (T2 case f: CDP offline, tap~3 s later, online again) => audio plays after reconnect without another tap. Add it to an existing gate file or tests/jb23.mjs(ports by env var, header documents them). Run all gates (CONDUCTOR.md "Verification") and compare with the last results in LOG.md.5. Proof in his Chrome on lisbeth :9223 (tunnel `ssh -f -N -o ExitOnForwardFailure=yes -L 9223:127.0.0.1:9223 [email protected]`, stop itafter; one own plain tab, closed in finally; json/list before and after; touch emulation) at 800x1280 and 390x844: case f playsafter reconnect; a normal tap still plays at once; frozen-tab case (T2 case a) still plays.6. Commit on the branch, push to origin with user Jukebox and ~/.config/jukebox/gitoria-token via an inline credential helper (neverin URL or config), open the PR (title + body short; '|||PR' convention as in earlier branches, see git log). STOP at the PR: no merge,no restart, no request to :8700, never ./storage, no ticket writes.## EnvironmentScratch /media/STORAGE/claude-scratch/jukebox/T3/. Model Sonnet. Cap about 60 requests. DOCS line: what the docs did not answer.Stop every process you started (name + PID in the report), delete the storage copy (keep wt for review fixes), no tab left.## Report (T3/REPORT.md + final message at most 10 lines)Diff summary with file:line; the new check and its fail-on-old proof; gate results; Chrome proof; PR link and head sha; processes stopped; tab list.
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