Skip to content

fix(session): settled and covered sessions stop polling - #91

Merged
Tarquinen merged 1 commit into
devfrom
port-polling
Nov 16, 2026
Merged

Tarquinen merged 1 commit into
devfrom
port-polling

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

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: dev 7 reads each of inbox, permissions and questions, this PR 1 each. Same session under Settings for 60 s: dev 5 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:session passes.

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
Tarquinen merged commit 95728fe into dev Nov 16, 2026
1 check passed
@Tarquinen Tarquinen mentioned this pull request Nov 16, 2026

This branch was previously deployed

1 inactive deployment
release — 3000bded Deployed Nov 16, 2026 by Tarquinen via check #323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant