• fix: clearCompleted must also delete from _knownSessions

    sol released this 2026-03-09 19:57:54 +01:00 | 9 commits to master since this release

    Without this, _onSessionAdded never fires on reactivation because
    isKnown=true short-circuits the new-session detection branch.

    clearCompleted is called on lock file creation / ghost watch fire.
    It clears _completedSessions cooldown but the session key stayed in
    _knownSessions (isKnown=true), so poll() treated it as already tracked
    and silently updated the entry instead of firing _onSessionAdded.

    Fix: also delete from _knownSessions in clearCompleted() so next poll
    sees the session as unknown and fires _onSessionAdded -> creates new
    plugin status box.

    Also: findExistingPost skipped in plugin mode on session-added to
    prevent stale post reuse from REST search results.

    Downloads