Skip to content

reloadAtCurrentPosition() refuses a forward-only source in silence, and the host waits forever #526

Closed

Description

@superuser404notfound

reloadAtCurrentPosition() returns without doing anything and without saying anything when the session is a non-seekable custom source. A host cannot tell that from a reload that worked.

Measured on a device, iOS 26.6, with a live direct-ingest channel (aether-custom://source, forward-only). The sequence, from one continuous log:

06:37:44  #1 rate=0.0 / timeControlStatus=paused          the viewer pauses
06:41:30  background grace window armed (15s) before paused teardown (#127)
06:41:45  background grace window expired, tearing down paused pipeline (#127)
06:41:45  pump finished: reason=stopRequested ... cacheCount=201
...
07:02:52  [LiveProgram] now Ride to the Roots             the app is back, view model alive
07:02:57  background grace window cancelled, session survives the app switch (#127)

and then nothing at all. No load, no producer, no error, for the twenty minutes until the log was pulled. The host had called reloadAtCurrentPosition() on the way in, exactly as teardownVideoForBackground's own comment says it should ("Session torn down; host will reload + repause on foreground return"), and the call hit

guard customSourceIsSeekable, let placeholderURL = loadedURL else { return }

The refusal is correct: a forward-only origin cannot be reopened at a position. The silence is not. The vocabulary for saying so already exists one file over, sessionReloadRefusal answers .customSourceNotSeekable for exactly this session, and AetherEngineError.sessionNotReloadable exists to carry it; only this path did not use either.

Fixed by throwing that refusal and logging it. A try? caller behaves exactly as before (nothing happened either way), and a caller that looks now has something to look at.

The host half of this is Sodalite's: a live session's answer to a torn-down pipeline is to tune again, not to wait for a rebuild that cannot come, because the DVR window died with the producer and there is no position left to return to.

Worth noting for whoever reads this next: the paused-background teardown itself is working as designed and the recording behaved perfectly up to it. The producer kept cutting through the whole pause (live seg-123 through live seg-203, four minutes of it) and never parked, so "pause keeps recording" is already true on this path. What ends the session is the app going to the background, not the pause.

Activity

  1. superuser404notfound commented on Sep 11, 2026

    @superuser404notfound
    OwnerAuthor

    Fixed on both sides and confirmed on the reporting device.

    The engine half throws sessionNotReloadable(.customSourceNotSeekable) and logs it where it used to return in silence. The host half is Sodalite's: a live session answers a torn-down pipeline by tuning again rather than by waiting for a rebuild that cannot come, because the DVR window died with the producer and there is no position left to return to.

    The verification is an absence, so it is worth stating as one. Same gesture that produced twenty minutes of empty log: channel playing, paused, app backgrounded past the fifteen second grace window, back to the foreground. Before, a spinner that never stopped. After, the channel comes back at the live edge.

    Leaving this open until it ships in a release.

  2. superuser404notfound commented on Sep 11, 2026

    @superuser404notfound
    OwnerAuthor

    Released in 6.81.0 (dcc7c61b, merged as 9ece7930). Both consumers are pinned to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions