gitoria

jukebox

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit0923398b0923398bMerge branch 'records-1124d' into mainJukebox0923398b/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

  • 0923398bMerge branch 'records-1124d' into mainJukebox
  • 78f0cc86|||PR records 2026-11-24: inbox-thread rule, "Not playing" confirmed and closedmre
  • c1b153c4Merge branch 'records-1124c' into mainJukebox
  • d7b5e780|||PR Records 2026-11-24 (2): live day72, PR #19 merge, #10 newsmre
  • 43b564dbMerge branch 'records-1124b' into mainJukebox
  • fa86b08c|||PR Records 2026-11-24: LOG, STATUS, missions 020-023mre
  • 0a2ae3daMerge remote-tracking branch 'origin/records-1123' into records-1124mre
  • 9a48cfcaMerge branch 'vendor-theme' into mainJukebox
  • 170d3735Merge branch 'code-order-2' into mainJukebox
  • 3f1918a7|||PR Re-sync layouts theme 4099e64 with Segoe UI firstmre
  • 2e7f6a43Vendor virtual-list 489afcf from components.hybrielmre
  • 0ba85799Merge branch 'reset-classes' into mainJukebox
  • 502eeed5jukebox#20: vendor virtual-list initial resetKey baseline fixmre
  • 6d5ce287|||PR jukebox#9 Centralize songs table reads and writes in db.hlmre
  • dcca21abjukebox#8 Move copies and queue logic into their topicsmre
  • 3b76651cjukebox#20: update virtual-list README pin and resetKey optionsmre
  • bc09e1e8|||PR jukebox#20: reset virtual lists through resetKey (partial validation)mre
  • a3796dc5Records: live step waits for idlemre
  • 3b158e16Records: merges of #9 and #11mre
  • 27204167Merge main into records-1123mre