Everything written this session that has not been through the device: rounds 43 to 48 (each patch adversarially verified, 43's transient-notice expectation fixed), a partial round 49, the pipeline scripts, the Android Auto design and the icon comparison mock. Also the two harness changes that were never A/B'd — adaptive waits, which may only shorten a declared wait and never lengthen it, and a ship that runs the mock walk and the deploy at the same time. The A/B and its 255-step baseline are in handoff/tools; main stays at what the phone has actually walked.
18 lines
1.1 KiB
Plaintext
18 lines
1.1 KiB
Plaintext
/* Two the phone can reach that the mock never knew, found while
|
|
mapping every api.js wrapper against it for this round: unmocked
|
|
they fall through to the real IPC, which on a file:// page rejects —
|
|
a console warning AND a toast, in a step that has nothing to do with
|
|
either. The transport is answered the way the real core answers it,
|
|
with an event and nothing else; `resume` cannot restart the position
|
|
ticks (they live in the closure the play_* command opened), so the
|
|
state is right and the position simply stands still. */
|
|
if (cmd === "player_control") {
|
|
const act = String(args?.action || "");
|
|
if (act === "pause" || act === "stop") { clearInterval(posTimer); posTimer = null; }
|
|
if (act === "pause") later(60, () => mockEmit("soulseek:player", { kind: "paused" }));
|
|
if (act === "stop") later(60, () => mockEmit("soulseek:player", { kind: "stopped" }));
|
|
if (act === "resume") later(60, () => mockEmit("soulseek:player", { kind: "playing" }));
|
|
return Promise.resolve();
|
|
}
|
|
if (cmd === "open_external") return Promise.resolve();
|