Skip to content

docs(web-app): a message to a paused autopilot's session asks to wake it - #90

Merged
kalaspuff merged 3 commits into
mainfrom
fctl/1811-when-sending-a-follow-up-directly-to-an
Dec 3, 2026
Merged

kalaspuff merged 3 commits into
mainfrom
fctl/1811-when-sending-a-follow-up-directly-to-an

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Describes how a message to the session of a paused autopilot asks to wake it, in docs/web-app/autopilot.md. While paused, the autopilot's fctl reaches nothing, so a message there reached its agent alone, which did the work in that one session instead of delegating. Sending there now asks first in a pink card over the message box. The card says who paused it and when, quotes the reason, and offers Wake it and send (first, focused) or Send without waking it. The docs cover the line above the box, the card's copy for each way and when a way is disabled, the now line's Paused state (who paused it and why), and Wake it and send to #20 on the earlier-session card. The header table's paused sentence now tells "It paused itself" from "fctl paused it" and "Someone paused it" (a person whose account is gone). The line above the box yields to what blocks the session (Claude refusing its connection, signing in, a subscription at its limit), and a wake that fails after the message went says so in a red toast rather than reading as a failed send.

Related

fctl session


Note

Low risk. It only changes a design document, docs/web-app/autopilot.md, so no code or behavior is affected.

What it does. Documents what happens when a reader messages the session of a paused autopilot: a pink line above the message box, a card that asks whether to wake it or send without waking it, and how a wake that fails after the message went is reported. It also updates the Paused status copy, which now says who paused the autopilot, when and why, and the now line's Paused state.

fctl review's first look at badba5a · 1 file, +43 −4 · Review agent settings

kalaspuff pushed a commit to hyperstructure/fctl that referenced this pull request Dec 3, 2026
#677)

## Summary

A message to the session a paused autopilot works in reached its agent
alone. Its `fctl` is refused while the autopilot is paused, so it did
the work in that one session instead of planning and delegating
("Because the autopilot is paused, fctl won't let me start a session or
update the plan and log, so I'm doing it directly in this session.").
Autopilots often pause themselves to wait for people, so the next
message is usually what they were waiting for. Now sending there asks
first, in a pink card over the message box. The card says who paused it
and when ("It paused itself 2 hours ago", "Noor paused it", "fctl paused
it"), quotes its reason, and explains that while it's paused the agent
can't start or steer sessions. It offers **Wake it and send** (first and
focused, so Enter twice wakes it) or **Send without waking it**. The
line above the box says "The autopilot is paused · your message can wake
it". The now line said "Resting · fctl wakes it when something needs
it", which was wrong while paused: it now says "Paused" with who paused
it and why. The earlier-session card (#562) offers **Wake it and send to
#N** while paused.

- **Control plane:** `POST /sessions/{id}/messages` takes
`wake_autopilot`. It runs a resume's checks first (steer permission,
workspace setting, take-over, Claude connection, confirming it's you),
moves the session to the connection the autopilot will run on, delivers
the message, then resumes the autopilot. The response says
`woke_autopilot`.
- **Wakes:** a wake now treats its own session as at work when a person
messaged it after it last changed, within the last 10 minutes
(`ap::own_status`). So the "resumed" wake reaches that session at its
next step instead of handing off to a fresh session and stopping the old
one under the message, which would have happened for any session past
its 12-hour shift. This also covers a person writing to an idle session
just as a check-in fires.
- **Who paused it:** migration 0080 adds `autopilots.paused_itself`
(backfilled from the log), shown as `Autopilot.paused_itself`, so the
web app and `fctl autopilot` can tell its own pause from fctl's.
- **CLI:** `fctl send --wake` does the same. A plain `fctl send` to a
paused autopilot's session says what happened and how to wake it.
- **Autopilots:** their briefing says to give the reason they pause,
since people read it where they write to them, and that a message may
resume them.

Verified in `cargo xtask dev` with fake-claude. I put playground on
autopilot, made it pause itself, then used **Wake it and send**. The
transcript has the message, then "fctl woke you… people resumed you
after a pause" in the same session. The log reads "Dev Owner resumed it
with a message to its session", then "#1 Woke as it was resumed", and it
started its next session and ticked its plan. With its session aged 13
hours in D1 (idle, and in another run stopped after a person's pause),
`fctl send --wake` still woke it in that session rather than a fresh
one. Unit tests cover the card and composer flow, the pause wording,
`own_status`, the CLI's request, and in D1 the joined message timing and
`paused_itself`. The web, CLI and control-plane tests pass, the D1 ones
included.

## Screenshots

The message box in a paused autopilot's own session, before and after:


![before-dark-box.png](https://app.fctl.sh/api/v1/published/eeEkAdXKBcg2zuNf5r6XxyJw4rQhZJCyyIoDWXhwoDh/before-dark-box.png)


![after-dark-box.png](https://app.fctl.sh/api/v1/published/VCipRkoBhPBwCqoKjfrJdOiYRWicuNIiNQlA8HZGS1a/after-dark-box.png)

Sending asks first, dark and light, 1440 px wide:


![after-dark-ask.png](https://app.fctl.sh/api/v1/published/mCCDSJ91fqf3PyLBRdTmJXegUURpGF2BC7ngia4pEvG/after-dark-ask.png)


![after-light-ask.png](https://app.fctl.sh/api/v1/published/ojjThtdvbtKH2r2hnM5lwPuyjgkbg9UplcqrTlCyaHT/after-light-ask.png)

On a phone, 390 px wide:


![after-phone-ask.png](https://app.fctl.sh/api/v1/published/JFYBD7T3h7RigPMi4xe1DpoEhgnLbag4YTYqLBLr2tC/after-phone-ask.png)

After **Wake it and send**: the wake follows the message in the same
session, and the autopilot starts its next session (#3) and ticks its
plan:


![flow-woke.png](https://app.fctl.sh/api/v1/published/d5Yc8LdqflJHgOoDv8cmZrgQ1973tSD3v95JXfFrzCJ/flow-woke.png)

An earlier session of its own, while the autopilot is paused:


![earlier-ask.png](https://app.fctl.sh/api/v1/published/GDuackf00IvcnxKQxFZRPaU32nDgVpOJv0vghm2CBxv/earlier-ask.png)

## Related

- hyperstructure/design#90

## Worth confirming

- **Decision:** It asks every time, including when the autopilot paused
itself, with waking first and focused (Enter, Enter). Waking without
asking when it paused itself was the other option. I kept the question
because sending without waking still has uses, such as asking the agent
why it paused.
- **Decision:** It also asks when a person or fctl paused it. The card
names who did and their reason, and waking undoes their pause, as
**Resume** on the tab does.
- **Decision:** Waking runs it on the reader's Claude subscription from
then on when it ran on someone else's, unless its owner keeps it, as
**Resume** does. The card says so in that case, and the server moves the
session to that connection before the message runs.
- **Decision:** After **Send without waking it**, the page doesn't ask
again in that session until the reader leaves, as the earlier-session
card does.
- **Assumption:** Readers who can't steer the autopilot still see the
card, with waking disabled and a reason ("Only the project's maintainers
and owners resume its autopilot"). They can still send without waking
it.

[fctl session](https://app.fctl.sh/s/ses_01M8XCV7PFVCPT15R63TYDM7CY)

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!NOTE]
> **Medium risk.** It adds a migration and changes how a message to an
autopilot's session resumes the autopilot, and how a wake decides
whether a session is still at work.
>
> **What it does.** When you message the session of a paused autopilot,
the web app now asks whether to wake the autopilot along with the
message or to send it without waking. `POST /sessions/{id}/messages`
takes `wake_autopilot`, runs the resume checks, delivers the message and
then resumes the autopilot, and `fctl send --wake` does the same. A wake
treats its own session as at work for ten minutes after a person's
message, and a new `autopilots.pauser` column (itself, fctl or person)
lets the web app and CLI say who paused it. If the resume fails after
the message went, the response is a success with `not_woken` saying why.
>
> **Migration 0080.** `0080_autopilot_pauser.sql` adds
`autopilots.pauser` and backfills it from the autopilot log's wording,
leaving NULL where the log doesn't match.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M8XFTGSE7JQW4EFWN8X0PSVJ)'s first
look at
[`3309e0c`](3309e0c)
· 33 files, +1778 −236 · [Review agent
settings](https://app.fctl.sh/p/fctl?tab=reviews)</sub>

<!-- /FCTL_REVIEW_SUMMARY -->

---------

Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
@kalaspuff
kalaspuff merged commit 120793b into main Dec 3, 2026
5 of 7 checks passed
@kalaspuff
kalaspuff deleted the fctl/1811-when-sending-a-follow-up-directly-to-an branch December 3, 2026 08:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant