What a fork's last follow did
A fork's standing sentence (#14462) says what its last follow of the upstream did, once, in the same sentence that says how far behind it is. The API's and MCP's words and the terminal's forks screen say that whole sentence; the fork's page says the drift part alone and puts the record on its own row (below).
- Code came in:
Last took 3 hours ago.This reads the push the take recorded, so it holds for every way a fork takes: the Take button, the API, the MCPtake_updatestool, the terminal, and a fork that follows automatically. - Nothing new:
Checked 5 minutes ago: nothing new. - A conflict:
A take 2 hours ago hit a conflict the crew holds as pull #12.When no crew member holds it:... a conflict that no one holds yet. - Never followed, or not recorded: nothing is said. A fork never reads "has not followed" it has in fact followed.
A newer take of code replaces an older check or conflict clause.
Where
- Fork's page: the live block under the header: the drift sentence, and the followed row (below) on every fork; a take updates both without a reload.
- Fork trees: each fork's row on the Forks tab, the terminal's fork tree line, and the
fork_treenodes (followed) carry the followed words (below). - MCP:
followingreturnslastFollow, the clause on a take that took nothing, elsenull;linehas the last took. - Terminal: the forks screen reads the same sentence.
How it is stored
A take that took nothing (nothing new, or a conflict) stores one fork.followed event ({outcome, on}) from takeOrTell. Taking code is already a push event marked followed. Nothing runs git to read it: the page makes one indexed query.
One line: when it last followed
Everywhere but the standing sentence, the record is said in one vocabulary, followedWords (src/actions/follow_words.ts, #15595): "followed upstream 3 hours ago" (the newest take or check of nothing new), "waiting for the crew" (the newest follow hit a conflict no later take cleared), or "never followed". It is the fork page's own row (data-followed, src/web/pages/fork-standing.ts), shown on every fork whatever the behind or ahead lines say; each fork on the Forks tab (src/web/pages/repo.ts); the terminal's tree (src/tui/screens/fork_tree.ts); and fork_tree's followed. The tree and the Forks tab read every fork's record in one statement (lastFollows).