gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Main branchmain10f8a8c8Merge branch 'code-order' into mainJukeboxmain/missions/014-reconnect-after-background.md

3.6 KB

  1. # 014 — jukebox: no playback after the tab was in the background (his report 2026-11-19)
  2. 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"
  3. (Original report 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")
  4. NOT HIS (Jukebox): live = loreana :8700, PID 991692, main 04f5d9d, Hybriel day41 (bin e9911159). T1 (mission 013, report
  5. /media/STORAGE/claude-scratch/jukebox/T1/REPORT.md, read it) could not reproduce on a fresh tab: every tap played. A tap emits the
  6. server face jbQueue (components/main.hl, near :679) and plays only after the answer (media-player.hl:513/525). The app has NO
  7. reconnect handling at all (no `on client reconnected`, no `__hlReach`; grep is empty). Per SPEC.md (~line 2680-2710, protocol
  8. "resumed"/reconnected) and HL-STANDARD F13, hl:web should reopen the socket and replay queued emits; `on client reconnected(r)` with
  9. `location.reload()` on `r.stale` is the app's part.
  10. ## Goal: reproduce and find the mechanism, then propose the fix (no fix yet)
  11. 1. Read WORKER-RULES in full: /media/STORAGE/projects/WorldAPI/worldapi-conductor/archive/2026-10-31/WORKER-RULES.md; CONDUCTOR.md
  12. "Verification"; README "Run it"; /media/STORAGE/projects/hybriel/docs/HL-STANDARD.md (F13, F20); SPEC.md around the "resumed" frame;
  13. /media/STORAGE/projects/hybriel/COMPONENTS.md §10 (reconnect). Copy a working shape from the docs.
  14. 2. Worktree /media/STORAGE/claude-scratch/jukebox/T2/wt from main 04f5d9d (bin/ = copy of the root's bin/, never a symlink), storage
  15. copy in T2/storage. Server ports 8824-8829 (8822 is someone else's; check `ss -ltn`), reachable from lisbeth via Tailscale
  16. (loreana 100.77.141.84). Never ./storage, never any request to :8700.
  17. 3. In his Chrome on lisbeth :9223 (tunnel `ssh -f -N -o ExitOnForwardFailure=yes -L 9223:127.0.0.1:9223 [email protected]`, stop it if
  18. you opened it; one own plain tab; json/list before and after), 800x1280 with touch emulation. Lose the connection the ways a real
  19. tablet does, each followed by a tap on a song row:
  20. a) Page.setWebLifecycleState frozen for a few minutes, then active (Android freezes background tabs);
  21. b) network offline (Network.emulateNetworkConditions) for a while, then online;
  22. c) the server drops the socket while the tab stays (e.g. kill the TCP connection with `ss -K` on the test port, or restart the
  23. test server) — no new page load;
  24. d) a long idle (>= 10 min) in the background if a-c show nothing.
  25. Record per case: does the socket reopen (CDP Network.webSocket* events), does the jbQueue emit leave and get an ack, does audio
  26. play, console errors, what the page shows (__hlReach).
  27. 4. Name the mechanism with file:line (app or vendored hl:web under the worktree). Say plainly: app bug (missing reconnect handling)
  28. or framework gap (hl:web does not reopen/replay). If framework: write a minimal repro (smallest .hl page + steps) into
  29. T2/repro/ for Arachne. If app: the proposed change in a few lines, built the framework's way (no hand JS, no workaround).
  30. 5. No code changes in main, no PR, no ticket writes.
  31. ## Environment
  32. Scratch /media/STORAGE/claude-scratch/jukebox/T2/. Chrome via HL_PORT_BASE=8630 if a gate needs it. Model Sonnet. Cap about 60 requests.
  33. Stop every process you started (name + PID in the report), delete the storage copy, no tab left (paste final json/list).
  34. ## Report (T2/REPORT.md + final message at most 10 lines, plain sentences)
  35. Reproduced yes/no and with which case; the cause with file:line; app or framework; proposed fix; processes stopped; final 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