small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo

fix(remote): attach a same-step pipe before a remote job's output is read

`rem.run(...).pipe(...)` sent the pipe as its own invoke frame naming the pending run call. The remote kernel made the pipe call only once that frame arrived and its handler ran. A job whose output passed 1 MiB before then refused the pipe with the replay-limit error, though the docs promise that a pipe attached in one expression streams from the start. CI hit it in test_a_pipe_attached_at_once_streams_past_retention. With a planted 50 ms gap before a pending target resolves, that test failed 2 of 2. A method called on a pending remote reference in the same step now rides in that call's frame as `then`. The remote kernel makes those calls right after the call they follow, with no await between them, and answers each one separately. Mirroring the job before a text() reply works as before. A chained call whose base failed is answered with the failure rather than left waiting for the hour-long invoke bound. The protocol accepts a chained call only when it follows the frame's own call or an earlier chained call. With the planted gap, the pipe test now passes.


Author aly.codes
Date Commit Parent 9a5d6a65
+336 -84
7 changed files
+336 -84
7 changed files