Repository navigation
docs(web-app): moving a session off a runner that went quiet - #91
Merged
kalaspuff merged 2 commits intoDec 3, 2026
Merged
Conversation
|
fctl reviewed On lines the diff doesn't show:
Reviewed by fctl · Review agent settings |
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Dec 3, 2026
#678) ## Summary A runner on a laptop that went to sleep kept its control connection open, so fctl counted it online for as long as anyone watched: the runners list said "online" 11 minutes after its last heartbeat. Everything on it waited. A wake or follow-up to an autopilot whose own session was there sat in that session's outbox, *Stop* left it "Stopping", and *Hand off to a fresh session* waited for a turn that couldn't end. This makes fctl stop waiting for such a runner, and lets people move a session off it themselves (ADR 0108): - **A runner silent for a minute is offline.** FleetDO counts four missed 15-second heartbeats as offline, closes the connection, and reconciles the host's sessions when it says hello again. A stop then doesn't wait for that runner either. - **An autopilot carries on elsewhere.** Once its own session's runner has been offline a minute, and another runner would run it, the next wake starts a fresh session on another runner, even mid-turn. These wake it again with the new wake reason `away`: a wake that reached the old session first, a person's message to it, and a turn the ten minutes cut off. A hand-off people ask for doesn't wait for the turn to end. The autopilot's view says when its session's runner was last heard from (`AutopilotSession.runner`, `runner_away_since`). The Autopilot tab and `fctl autopilot` show **Runner away**, and the hand-off's copy in the CLI and the toast says what happens. Where no other runner online would run it, the wake waits for this one, and the copy says a fresh session takes over "where one online would run it". - **Move to another runner** (`fctl move`, `POST /api/v1/sessions/{id}/move`, the session's ⋯, the stall notice, and the Autopilot tab's ⋯ for its own session). This is for a laptop that wakes for a moment now and then: it is online for those moments, which keeps its sessions from stopping, but gets no further with them. The session leaves that runner, which doesn't get it back until it has started elsewhere. A runner online is asked to stop it first, for a minute at most, so its agent saves a snapshot; one offline is let go at once. A second *Stop* a minute after a first that wasn't carried out lets go of the runner too, rather than staying "Stopping". I verified it in `cargo xtask dev` with a second host frozen with `SIGSTOP` as the laptop. The runner shows offline within a minute and a stop is immediate. A wake that landed in the stranded autopilot session moved the autopilot to a fresh session on the other runner, and so did a hand-off mid-turn. `fctl move` and the notice's button moved a running session to the other runner. When the frozen host woke, it stopped its old run, its uplink and snapshot upload were refused, and the moved session carried on undisturbed. The domain, CLI, proto and web tests and the control plane's 90 tests in Node pass, and Clippy (native and wasm) is clean. ## Screenshots A session on a runner that went quiet: before, the notice says to wait; after, its owner can move it, and is told what that keeps.   The autopilot's own session there (a fresh one, #15, in the after shot): before, nothing says what happens; after, the notice says the autopilot doesn't wait, and its card says **Runner away**.   The Autopilot tab, light theme: before it said "Waiting for you" as if all were well; after, **Runner away** and what follows.   The session's ⋯ with the new item, the notice at a phone's width, and the session a moment after *Move to another runner*, carrying on on dev-host.    The design docs change with it: - hyperstructure/design#91 ## Worth confirming - **Decision:** a runner silent for one minute counts as offline. A host stalled that long (a frozen process, a network that drops everything) is offline for that while, and an autopilot woken meanwhile moves on, stopping the session it left once the host is back. - **Decision:** an autopilot's own session moves mid-turn once its runner has been away a minute. What that turn was doing is cut off; the fresh session starts from the plan, log and files. - **Decision:** other sessions still get ten minutes before they stop, as their conversation lives in that sandbox. Messages sent to them meanwhile now resume them elsewhere at once when the ten minutes are up. - **Decision:** *Move to another runner* has no confirmation dialog. With no snapshot of its last run, the session starts again from its branch with a new conversation, and what it hadn't pushed stays on the old runner; the notice says so under the button. - **Decision:** a reachable runner gets one minute to stop a moved session, so it can save a snapshot, before fctl lets go of it. - **Assumption:** only the session's owner moves it (as with stop and resume). People who steer an autopilot without owning its session see the Autopilot tab's item but get "Only the session's owner can do this". - **Decision:** FleetDO's alarm now ticks every 30 seconds while any session runs, not only while one waits or a runner is offline, so that a runner going silent alone is noticed. [fctl session](https://app.fctl.sh/s/ses_01M8Y4VQXXFVA9MTVGAPXBB2EZ) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Medium risk.** It changes when fctl treats a runner as offline and when sessions and autopilots move off it, which affects every running session, though only for runners that go quiet. > > **What it does.** A runner silent for a minute now counts as offline, so stops don't wait for it and an autopilot whose own session sits there carries on in a fresh session on another runner. People can also move a session to another runner themselves (`fctl move`, `POST /api/v1/sessions/{id}/move`, the session menu and the stall notice). Since the last review, a session moved off a runner that then went offline has its old runner cleared when its assignment expires, and the 'Runner away' wording says a fresh session takes over only where another runner online would run it. > > **Offline threshold and alarm.** A runner silent for one minute is offline, and FleetDO's alarm now ticks every 30 seconds while any session runs, so a stalled host can lose its sessions sooner than before. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M8YAAJXPEBN9MXWPYCEYV5TZ)'s first look at [`74742f7`](74742f7) · 37 files, +1530 −199 · [Review agent settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub> <!-- /FCTL_REVIEW_SUMMARY --> --------- Co-authored-by: fctl-sh[bot] <fctl-sh[bot]@users.noreply.github.com>
kalaspuff
approved these changes
Dec 3, 2026
kalaspuff
deleted the
fctl/1817-if-the-sandbox-for-an-autopilot-cannot-b
branch
December 3, 2026 19:08
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.
Summary
The web app's docs for what fctl's change to sessions on a runner that went quiet shows: the stall notice's Move to another runner button and what it says under it, the autopilot's own session's stall copy, the session's ⋯ item, the Autopilot tab's Runner away phase and its Move its session to another runner item, and a hand-off that doesn't wait for a turn on a runner that went away.
fctl session
Note
Low risk. Documentation only, in two web-app spec files.
What it does. Documents what happens when a session's runner goes quiet: the transcript's runner-away notice, a new
Move to another runnerbutton under any stall and in the session's ⋯ menu, and how an autopilot's session is replaced on another runner. It also adds the matching 'Runner away' status row and menu item to the autopilot page, with the wording for when no other runner is online.fctl review's first look at
c521374· 2 files, +15 −3 · Review agent settings