Repository navigation
docs(web-app): hand an autopilot off to a fresh session on request - #45
Merged
kalaspuff merged 1 commit intoNov 11, 2026
Merged
Conversation
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Nov 11, 2026
## 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}` on `POST …/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 and `fctl autopilot` say "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 `--fresh` fails 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 dev` with fake-claude. Between
turns, `fctl autopilot wake -p playground --fresh` printed "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
autopilot` showed `● 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:
- hyperstructure/design#45
## 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
- **Decision:** A session at work finishes its turn before the fresh one
takes over, as automatic handoffs do: nothing stops it mid-turn. What
wakes it meanwhile is held for the fresh session rather than told to the
one leaving.
- **Decision:** Between turns, the old session gets no last turn to
write notes: as with the 12-hour and context-size handoffs, the fresh
one starts from the plan and log the briefing asks it to keep current.
- **Decision:** Only those who steer it (a project's maintainers and
owners, a workspace's admins) can ask, with no confirmation dialog, and
asking doesn't move it onto their subscription, as *Wake now* doesn't.
The autopilot can't rotate itself.
- **Decision:** Pausing it drops a handoff still waiting for the turn to
end (a pause clears pending wakes and stops its session); people ask
again after resuming.
[fctl session](https://app.fctl.sh/s/ses_01M75HXM637MQ7M8VKPDAJ7ENE)
<!-- FCTL_REVIEW_SUMMARY -->
---
> [!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 --fresh` and 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 as `fresh_asked`, and the web tab and CLI say so.
>
> **Version skew.** The new `fresh` wake reason and `fresh_asked` field
are optional for older clients, and `fctl autopilot wake --fresh` fails
with a clear message against a control plane that predates it.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M75KH34M471WCGV6MHAKXF78)'s first
look at
[`9ef137e`](9ef137e)
· 20 files, +424 −65 · [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
Nov 11, 2026
kalaspuff
deleted the
fctl/1156-there-should-be-a-way-to-force-an-autopi
branch
November 11, 2026 16:02
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
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.
fctl session
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.
fctl review's first look at
be4aa15· 1 file, +13 −4 · Review agent settings