Repository navigation
fix(session): settled and covered sessions stop polling - #91
Merged
Merged
Conversation
This was referenced Nov 15, 2026
Tarquinen
force-pushed
the
port-polling
branch
from
November 15, 2026 23:29
e652758 to
359ac04
Compare
Port iOS 0d329484, 3d530299 and c93c1a47. A settled session on a healthy stream (nothing running, queued or waiting) now asks for its requests and inbox every 60 s instead of 12 s, and re-reads its transcript after 120 s instead of 20-24 s. A screen something covers (a pushed subagent, Settings, its own browser) stops its timers unless a call is live on it or an Ask is under way in its browser; the uncover reads pending work at once and the transcript only if the watchdog came due. Home's list now reaches each open screen through its reducer (ActiveSessionsRead), so a subagent the list shows running first moves its parent to the running cadence. The poll loops sleep on the watchdog clock, so tests drive them. Deferred: the inbox loop awaiting its own read, and iOS's Control Center glance receipts (iOS-only). Verified: ported 4 session and 3 Home tests from SessionFeatureTests+QuietPolling.swift; updated the existing cadence expectations as iOS did; scripts/check.sh on the Android VM passes.
Tarquinen
force-pushed
the
port-polling
branch
from
November 16, 2026 01:03
359ac04 to
3000bde
Compare
Merged
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A settled session on a healthy event stream now checks for requests and queued messages every 60 s instead of 12 s, and re-reads its transcript after 120 s instead of 20–24 s; the stream already brings those changes. A screen that something covers (a subagent, Settings, its browser) stops its timers unless a call or a browser Ask is live on it, and catches up when it's back in front.
iOS: 0d329484, 3d530299, c93c1a47
Emulator (session-lab request log, one open session): finished session, 90 s in front:
dev7 reads each of inbox, permissions and questions, this PR 1 each. Same session under Settings for 60 s:dev5 each, this PR 0. A running session in front polls the same on both (5 each per 60 s).Verified: ported 4 session and 3 Home tests from
SessionFeatureTests+QuietPolling, with the cadence expectations updated as iOS did;scripts/check.sh :feature:drawer :feature:sessionpasses.