Repository navigation
feat(autopilot): hand off to a fresh session when people ask - #512
Merged
kalaspuff merged 2 commits intoNov 11, 2026
Merged
Conversation
People who steer an autopilot can now start a fresh session of its own
that takes over from the one it works in (fctl autopilot wake --fresh,
Hand off to a fresh session in its tab's menu, {"fresh": true} on the
wake endpoint): at once between its turns, else once its turn ends, with
all it woke for meanwhile. The fresh session hears why it takes over.
This comment has been minimized.
This comment has been minimized.
… and check --fresh landed A fresh session people asked for while its own worked now also takes over when that one pauses on a usage limit; the tab says a fresh session takes over whatever else wakes it with it; and fctl autopilot wake --fresh fails against a control plane that ignored it.
Contributor
Author
|
On the review's second finding (the resting line ignores |
kalaspuff
approved these changes
Nov 11, 2026
kalaspuff
deleted the
fctl/1156-there-should-be-a-way-to-force-an-autopi
branch
November 11, 2026 16:01
kalaspuff
pushed a commit
to hyperstructure/design
that referenced
this pull request
Nov 11, 2026
## Summary Describes how people hand an autopilot off to a fresh session of its own when they choose, as hyperstructure/fctl#512 adds it. That means *Hand off to a fresh session* in the Autopilot tab's ⋯ menu, and the tab's sentence while the handoff waits for the turn to end ("A fresh session takes over once this turn ends") or happens now. It also covers the toasts, the log lines, and the wake card that a fresh session taking over now opens with ("A fresh session takes over: it reads its brief, then goes on from its plan and log."). Docs only; the screenshots are in the fctl pull request. - hyperstructure/fctl#512 [fctl session](https://app.fctl.sh/s/ses_01M75HXM637MQ7M8VKPDAJ7ENE) <!-- FCTL_REVIEW_SUMMARY --> --- > [!NOTE] > **Low risk.** It only changes the design docs for the autopilot page; no code or tokens change. > > **What it does.** Documents the new way to hand an autopilot off to a fresh session on request, as hyperstructure/fctl#512 adds it. It covers the ⋯ menu item, the header sentences while the handoff waits for the turn to end or happens now, the toasts, the log lines, and the wake card a taking-over session opens with. > > <sub>[fctl review](https://app.fctl.sh/s/ses_01M75MGE33PVVHRAW4Y8HSRRY4)'s first look at [`be4aa15`](be4aa15) · 1 file, +13 −4 · [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>
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
People who steer an autopilot can now make it hand off to a fresh session of its own whenever they choose, not only after 12 hours or past its context size. After a release, say, the fresh session starts from what fctl and its briefing say now. They do it with Hand off to a fresh session in the Autopilot tab's ⋯ menu,
fctl autopilot wake --fresh, or{"fresh": true}onPOST …/autopilot/wake(a new wake reason,fresh). Between its turns, the fresh session takes over at once and the old one stops. While its session works, the wake waits for that turn to end, which wakes it again at once (also on a stop or a usage-limit pause), and whatever woke it meanwhile goes to the fresh session rather than to the one leaving. Until then the tab andfctl autopilotsay "A fresh session takes over once this turn ends" (Autopilot.fresh_asked).The fresh session's first message says why it takes over ("You take over from your last session, playground#1: people asked for a fresh session to take over, so fctl stopped it and started you, with what fctl and this briefing say now…"). Its log records who asked and the wake ("Dev Owner asked for a fresh session to take over", "Woke as someone asked for a fresh session"). The wake card in its session now reads "A fresh session takes over: it reads its brief, then goes on from its plan and log." for any handoff, where it said "It was put on autopilot". The autopilot can't ask for one itself, and
--freshfails against a control plane too old to know it rather than claim a handoff that didn't happen.Verified with unit tests (Rust and web), Clippy, the web app's Biome and TypeScript check, and in
cargo xtask devwith fake-claude. Between turns,fctl autopilot wake -p playground --freshprinted "A fresh session takes over now": playground#3 took over and #1 stopped. Mid-turn, with #3 kept busy for 40 s by a note, it printed "A fresh session takes over from playground#3 once its turn ends",fctl autopilotshowed● At work in playground#3 · a fresh session takes over once this turn ends, and #6 took over within 3 s of the turn's end while #3 stopped.The design docs describe it in hyperstructure/design:
Screenshots
The tab's ⋯ menu, light, dark and on a phone:
The tab while a fresh session waits for its session's turn to end:
The wake card a fresh session that takes over opens with, before and after (light, then dark):
Worth confirming
fctl session
Note
Medium risk. It changes when and how an autopilot's session is replaced, across the control plane, CLI and web, but it only acts when people ask for a fresh session.
What it does. Adds a way for people to make an autopilot hand off to a fresh session:
fctl autopilot wake --freshand a menu item in the web app. A fresh session asked for while the current one works takes over once its turn ends, or at once if the session stops or pauses. The API reports this asfresh_asked, and the web tab and CLI say so.Version skew. The new
freshwake reason andfresh_askedfield are optional for older clients, andfctl autopilot wake --freshfails with a clear message against a control plane that predates it.fctl review's first look at
9ef137e· 20 files, +424 −65 · Review agent settings