Repository navigation
docs(legal): say the browser keeps the task being written on the floor - #27
Merged
Merged
Conversation
app.fctl.sh now keeps the task being written on the floor in the browser, with its project and attached files, until a session starts with it or the person signs out (hyperstructure/fctl, fctl/58-the-prompt-that-s-written-in-the-compose).
kalaspuff
pushed a commit
to hyperstructure/fctl
that referenced
this pull request
Oct 20, 2026
…#117) The floor's composer now keeps what you write there. If you leave the page, reload it or close the tab, the task comes back with its project, its attached files and the caret where you left it. And wherever the app names a project's GitHub repository, it now also says how many more its agents may use: `hyperstructure/fctl (+3 more)`, or `hyperstructure/fctl (+entire org)` when they may read every repository of the account. ## The draft on the floor - **Where it's kept.** The words, the project and the caret go to `localStorage` under `fctl:draft:<user id>`. The floor reads that as it opens, so the text is there on the first paint. - **Files.** Attached files go to IndexedDB (database `fctl-drafts`), stored as they are. `localStorage` holds about 5 MB of text per site, and a file would go in as base64, a third bigger, so a single Retina screenshot often wouldn't fit. - A file that doesn't fit in IndexedDB either (some private windows, a full disk) stays only while the page is open. Coming back to the floor within the app keeps it; a reload doesn't. - **No second upload.** Files that finished uploading aren't uploaded again when you come back to the floor within the app: `useAttachments(…, { keep })` holds on to finished uploads. - After a reload they upload again. The server deletes unused uploads after a day, as before. - **When it's forgotten.** - Each person has their own draft. - The session that starts with a draft forgets it. The floor opens the session page once the draft's files are gone from the browser, which takes milliseconds and never more than a second, so reloading right away can't bring the draft back. - Signing out, or deleting the account, forgets every draft in the browser. - **Docs.** `docs/getting-started.md` describes this. The privacy policy on fctl.sh lists what app.fctl.sh keeps in your browser, so it changes too: hyperstructure/fctl-site#27. ## A project's other repositories - **Protocol.** `Project` gets two fields, both computed in `PROJECT_SELECT` from `project_repos`: - `other_repos`: how many repositories its agents may use besides `repo`, named one by one. - `all_repos_of`: the account of an owner-wide grant. Both are optional. Older CLIs ignore them. When an older control plane leaves them out, the app shows the primary repository alone, as before. - **Where it shows.** - The floor's composer, next to the project picker and in the picker's list. - The workspace's projects. - The command palette. - The project's header. - `fctl projects list` (`--json` includes both fields). Each says `hyperstructure/fctl (+3 more)` or `hyperstructure/fctl (+entire org)`. A project without a primary repository says `2 repositories` or `hyperstructure (entire org)`. - **The project header.** It used to count an owner-wide grant as one more repository: `+2 repositories` for `fctl-site` with `hyperstructure/fctl` and `hyperstructure/*`. It now says `(+entire org)` and still links to the Repositories tab. It reads the counts from the project instead of fetching the repository list, and changing a repository refreshes the project and the project lists. - **Narrow layouts.** Next to the picker, the label gives way before the picker does. The repository's name truncates, and the count stays. The label is a small grid whose narrowest is the count alone. A personal account's `octocat/*` reads "+entire org" as well, because the project list doesn't know whether the account is an organization. ## How I verified it - **Unit tests.** - `web/src/lib/repos.test.ts` and `fctl_domain::repos::summary`. - `web/src/lib/draft.test.ts`. - `web/src/components/session/attachments.test.tsx`: - kept files come back ready, without a second upload; - stored files upload again; - uploads that didn't finish start again; - removed files are forgotten; - a failed start puts the files and their uploads back. - `web/src/components/session/start.test.tsx`: the session page opens once `onStarted` is done. `cargo xtask check --quick` passes. - **End to end**, with `cargo xtask dev` and Playwright in Chromium: 1. Wrote a task, picked a project, and attached an image and a text file. 2. Went to a project page and back: the text, files, project and caret were back, with no new uploads. 3. Reloaded: everything came back from storage, and the files uploaded again. 4. Removed a file and reloaded: it stayed gone. 5. Started the session: the draft was gone from the floor and from storage (three runs). 6. A draft of files alone came back with its own project, ahead of the project picked last. 7. Signing out emptied both stores. - **Repository labels**, against projects seeded with repositories in the local D1 (the dev instance has no GitHub App), at 768, 800, 900 and 1440 px wide and in both themes. ## Screenshots At 3350b8e, with dev data: Playground lists hyperstructure/fctl and three more repositories; Docs site lists hyperstructure/fctl-site, hyperstructure/fctl and `hyperstructure/*`. The floor's composer, light, 1440 px: | Before | After | |---|---| |  |  | The project picker, dark: | Before | After | |---|---| |  |  | The project's header for Docs site, light: | Before | After | |---|---| |  |  | The workspace's projects, light:  A draft after reloading the page, dark: its text, an image, a text file and its project are back.  At 900 px, where the sidebar leaves the composer little room: the repository's name truncates, and the picker and the count stay whole. Light.  Made in fctl session https://app.fctl.sh/s/ses_01M5C0HS3G1V7X00D3AM9FBV7G --------- Co-authored-by: fctl-sh[bot] <343971779+fctl-sh[bot]@users.noreply.github.com>
kalaspuff
approved these changes
Oct 20, 2026
kalaspuff
deleted the
fctl/58-the-prompt-that-s-written-in-the-compose
branch
October 20, 2026 08:51
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.
app.fctl.sh will keep the task you are writing on the floor in your browser: the words, the project you chose for it and the files you attach. They stay until a session starts with the task or you sign out, so leaving the page doesn't lose it (hyperstructure/fctl#117). The privacy policy's "Cookies and browser storage" section lists what the app keeps in your browser, so this pull request adds the draft to it and bumps
updated.Nothing changes on the server. Files attached to the floor's composer are uploaded as they were before, and uploads no session uses are deleted after a day.
Merge it together with hyperstructure/fctl#117. Neither needs the other to build.
Made in fctl session https://app.fctl.sh/s/ses_01M5C0HS3G1V7X00D3AM9FBV7G