Skip to content

feat(autopilot): pass screenshots on to its sessions as published links - #516

Merged
kalaspuff merged 2 commits into
mainfrom
fctl/1169-autopilot-sessions-should-know-that-in-o
Nov 11, 2026
Merged

kalaspuff merged 2 commits into
mainfrom
fctl/1169-autopilot-sessions-should-know-that-in-o

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

An autopilot had no way to pass a screenshot on to one of its sessions: its sessions see only what it writes them, and the API refuses it attachment uploads, so fctl run --attach and fctl send --attach fail for it. Where the project publishes screenshots, an autopilot's own session now gets a "Screenshots for your sessions" section in its ~/AGENTS.md in place of "Screenshots in pull requests" (it opens none): publish the image with fctl publish, put the link in the session's task or a fctl send message, say what it shows, and tell the session to download it to look at it. It also mentions that the same Markdown shows a screenshot to people in fctl autopilot ask --detail. The architecture docs and llms.txt say so too.

Verified with a unit test of the rendered ~/AGENTS.md (an autopilot with and without publishing) and cargo xtask check --quick.

Worth confirming

  • Decision: the instructions go in the autopilot's ~/AGENTS.md, which fctl-agent writes only when the project publishes screenshots and the sandbox's fctl has fctl publish, rather than in its briefing. So an autopilot in a project that doesn't publish screenshots hears nothing of it, and it reaches autopilots once their runners' hosts run this release.
  • Decision: autopilots still can't upload attachments: their API requests go through a JSON-only relay, so --attach needs a protocol change, which Let an autopilot attach files to the sessions it starts #517 tracks as a follow-up.

fctl session


Note

Low risk. It only changes the text of the instructions file an autopilot's own session gets, and only where the project publishes screenshots.

What it does. An autopilot's session now gets its own screenshots section in ~/AGENTS.md: it says the autopilot can't attach files to the sessions it starts, so it should publish a screenshot with fctl publish and put the link in the session's task or message. Other sessions keep the existing pull request wording. The supervisor sets a new autopilot flag from the session spec, and the architecture docs and llms.txt describe it.

fctl review's first look at 73833e4 · 4 files, +77 −7 · Review agent settings

An autopilot can't attach files to its sessions' tasks or messages (the
API refuses it uploads), and its sessions see only what it writes them.
Where the project publishes screenshots, its ~/AGENTS.md now tells it to
publish one with fctl publish and put the link in the task or message,
instead of the section on screenshots in pull requests, which it doesn't
open.
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 11, 2026 22:53
@fctl-review

This comment has been minimized.

Comment thread crates/fctl-agent/src/prompt.rs Resolved
@kalaspuff
kalaspuff merged commit 1c826d4 into main Nov 11, 2026
14 checks passed
@kalaspuff
kalaspuff deleted the fctl/1169-autopilot-sessions-should-know-that-in-o branch November 11, 2026 23:08
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