Skip to content

feat(web): ask to wake a paused autopilot when you message its session - #677

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

kalaspuff merged 4 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

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

after-dark-box.png

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

after-dark-ask.png

after-light-ask.png

On a phone, 390 px wide:

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

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

earlier-ask.png

Related

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


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.

fctl review's first look at 3309e0c · 33 files, +1778 −236 · Review agent settings

fctl-sh Bot added 3 commits December 3, 2026 07:47
A message to the session a paused autopilot works in reached its agent
alone: its fctl is refused while paused, so it did the work in that one
session instead of planning and delegating. The message box now asks
first, in a card over it, whether to wake the autopilot with the
message (first, focused) or send it without waking it; the earlier
session's card wakes it too.

POST /sessions/{id}/messages takes wake_autopilot, which checks what a
resume does, moves the session to the connection it runs on, delivers
the message and then resumes the autopilot. Its wake treats a session a
person just messaged as at work, so it carries on there rather than
hand off to a fresh session under the message. Autopilots that paused
themselves say so (paused_itself, migration 0080). fctl send --wake
does the same from the CLI.
The now line in a paused autopilot's session says who paused it and
why, rather than that fctl wakes it; fctl autopilot says whether it
paused itself; autopilots hear that people may resume them with a
message to their session.
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-control/src/autopilots.rs Resolved
Comment thread crates/fctl-control/src/api/sessions.rs Resolved
Comment thread web/src/routes/session.tsx Resolved
Comment thread web/src/components/session/composer.tsx Resolved
Comment thread crates/fctl/src/cmd/autopilot.rs Resolved
- A wake for a fresh session that a message on its way holds tries again
  when the message stops counting, not at once in a loop.
- A resume that fails once the message went answers success, with
  not_woken saying why it stays paused, rather than a 409 that clients
  read as "not sent".
- The web app's toast says what the server did (woke, still paused, or
  neither), the paused line yields to the sign-in, refused and limit
  hints, and only a paused autopilot's session ticks each minute.
- autopilots.pauser (itself, fctl or person; migration 0080 rewritten,
  unshipped) replaces paused_itself, so a pause by someone whose account
  is gone, or one the log doesn't explain, isn't called fctl's.
@kalaspuff
kalaspuff merged commit 0f14daf into main Dec 3, 2026
12 of 13 checks passed
@kalaspuff
kalaspuff deleted the fctl/1811-when-sending-a-follow-up-directly-to-an branch December 3, 2026 08:36
kalaspuff pushed a commit to hyperstructure/design that referenced this pull request Dec 3, 2026
… it (#90)

## 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

- hyperstructure/fctl#677

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

<!-- FCTL_REVIEW_SUMMARY -->
---

> [!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.
>
> <sub>[fctl
review](https://app.fctl.sh/s/ses_01M8XFT5W5XWJ5W10ST00N43XE)'s first
look at
[`badba5a`](badba5a)
· 1 file, +43 −4 · [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>
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