Repository navigation
Description
Intro: This might be an issue on private repos.
What is wrong. An agent in an fctl session can't put a screenshot in a pull request. Since 2.99, gh pr create, gh pr edit and gh pr comment take --attach, which uploads an image or video the way dragging it into GitHub's editor does. In a session it fails before it changes anything:
$ gh pr edit 35 --attach after.png
unsupported authentication type
GitHub accepts these uploads only with a person's token, and a session has the GitHub App's installation token (ghs_…). Calling the upload endpoint (POST https://uploads.github.com/user-attachments/assets) directly with it gets a 404. The only other way to show an image in a private repository's pull request is to commit it, and screenshots are never committed. So pull requests that change how fctl looks describe the change in words: #35 checked its UI in Chromium in both themes and at a phone width but shows none of it, and hyperstructure/fctl-site#4 points at its session for the before and after screenshots, which the session doesn't display.
How it works now.
- The control plane gives sessions installation tokens (
installation_tokenincrates/fctl-control/src/github.rs), and fctl-agent writes them into gh'shosts.yml(write_github_tokensincrates/fctl-agent/src/workspace.rs). - gh 2.102 uploads with OAuth tokens, classic and fine-grained personal access tokens, and some GitHub App user-to-server tokens (
ghu_…), and only with write access to the repository (internal/attachments/client.goin cli/cli). It refuses installation tokens before it sends anything. - Files go one way, from people to agents (ADR 0008). An agent has no way to show people a file, so nobody sees the screenshots it takes.
What should happen
- An agent in a session can attach screenshots and short recordings to its pull requests' descriptions, in its project's repositories, without committing them. (test: show a screenshot of fctl.sh published from a session fctl-site#13)
- The
screenshotsskills in this repository and in hyperstructure/fctl-site say how, instead of saying that sessions can't attach yet. (feat: let agents publish screenshots for pull requests on fctl #71, docs(legal): say what publishing screenshots shares and keeps fctl-site#11, docs: say how agents in a session show recordings #78, docs: say how agents in a session show recordings fctl-site#14)
Compatibility. Options 1 and 2 below give agents a new command in the sandbox, which reaches them with a release of the host and agent (hosts may run one version behind the control plane). Option 3 needs no release.
Decisions for a person. How agents in sessions publish screenshots:
- As the person who started the session. People link their GitHub account, the control plane keeps a user-to-server token for them, and uploads with it when the agent asks. The images stay private to the repository, like ones dropped in by hand. gh says only some user-to-server tokens are accepted, so this needs a try first.
- Hosted by fctl. The agent publishes a file from the sandbox through the session socket; the control plane stores it with the project's files and serves it at an unguessable URL that GitHub's image proxy can fetch, and the session shows it too. Anyone with the URL can see the image, and fctl.sh's privacy policy needs a matching change.
- A project secret. A token that can upload (a machine account's fine-grained token with write access), used only for
gh … --attach. No code, but a long-lived token sits in every sandbox of the project, and descriptions edited with it show that account as the editor.
Found while writing the screenshots skills.
Activity
docs: add agent rules for screenshots in pull requests (#43)
docs: add agent rules for screenshots in pull requests (#6)
feat: notify people when a session waits for them, pauses or fails (#48)
fix: stop removed browsers coming back and digests replacing each oth…
feat: show Claude plan usage in Settings, on the floor and in the CLI (…
feat(host): pull the sandbox image from GHCR instead of building it (#39
feat(tokens): make danger red instead of hot pink (#5)
docs: add the sandbox images page and say hosts pull from ghcr.io (#7)
fix(web): make destructive actions and errors red instead of pink (#60)
feat: credit the person who started a session in its commits (#55)
feat(web): replace native selects with an animated Select (#61)
fix(web): make hover fills visible in the light theme (#65)
feat: stop idle sessions after ten minutes and resume them for a mess…
feat: show when a session's runner is away or can't reach its agent (#69
fctl-sh commentedon Oct 18, 2026
Progress: #71 implements option 2, "Hosted by fctl", and hyperstructure/fctl-site#11 updates the privacy policy, the terms and that repository's screenshots skill. Neither is merged yet.
What they do
fctl publish shot.pngpublishes a PNG, JPEG, GIF or WebP image of up to 5 MB athttps://app.fctl.sh/api/v1/published/<token>/<name>. The token is 256 random bits, and only its hash is stored. GitHub's image proxy can fetch the image, and the agent puts the Markdown fctl prints into the pull request.~/AGENTS.mdtells agents to trygh … --attachfirst and publish when GitHub refuses.fctl admin set --publish-screenshots on), and each project turns it on in its settings (fctl projects set --publish-screenshots on). Turning either off takes the screenshots offline.fctl unpublish <link>.screenshotsskills describe the fallback.What is left
.webmand.mp4files aren't published: GitHub doesn't play videos from other hosts in a description, and Safari needs range requests to play them from a link. Animated GIF and WebP work. A person decides whether link-only recordings are worth adding.Session: https://app.fctl.sh/s/ses_01M57K8M7GHV0F7BR9NN41P6WZ
docs: say how agents in a session show recordings
fctl-sh commentedon Oct 18, 2026
Checked end to end from an fctl session today (2026-10-18). Screenshots and short recordings work. One gap was left in the skills, and #78 and hyperstructure/fctl-site#14 fix it.
What I checked
gh pr create --attachstill fails withunsupported authentication typeand creates nothing.fctl publishpublished two PNG screenshots of https://fctl.sh (light and dark) and an animated WebP recording of its hero (3 s, 0.9 MB). Without signing in, each link serves the file byte for byte, with its image type,nosniff, a sandboxing CSP andnoindex. The links expire on 2026-11-17, 30 days on.fctl publishrefuses the.webmitself:Only PNG, JPEG, GIF and WebP images can be published.The checklist
.webm, which a session can't do. docs: say how agents in a session show recordings #78 and docs: say how agents in a session show recordings fctl-site#14 say to turn the recording into an animated WebP with ffmpeg and publish that. Tick it and close this once both are merged.The two items left in the comment above
.webmand.mp4still aren't published. If anyone wants link-only videos as well, that's a new issue.Session: https://app.fctl.sh/s/ses_01M57YJF6VBYJZ93Q1ZVZ10QKG
docs: say how agents in a session show recordings (#14)
docs: say how agents in a session show recordings (#78)
fctl-sh commentedon Oct 18, 2026
hyperstructure/fctl-site#14 (hyperstructure/fctl-site@1be056d) and #78 (fd2aaba) are merged. Both screenshots skills now say how to show a recording from a session: turn it into an animated WebP and publish that. Sessions read the skills from
main, so they follow them now. #78 is docs only, so a release adds nothing but its line in the notes.Both boxes are ticked, and the "What is left" items in the earlier comment are settled (see my comment above). Closing.