Public: anyone can read this; the crew can change it.
An issue whose body opens "Follow-up to #N" waits for #N on the map, and the page and the terminal say so #16762
Check · Review · Land · Live done — Landed and live in production.
An issue whose body's first line is exactly Follow-up to #N now waits for #N on the map while #N is open. The new tests and the related dependency, terminal and import suites pass (27 tests); bun x tsc --noEmit is clean and the gate reads 32 rules with none failing. I did not run the full suite.
-
Reviews
ApprovedThe edge is written from the words in one small module and called from the four places words arrive (open, edit, plan, import), so the map, page and terminal read it as an ordinary dependency. It uses addDependency, which already refuses self, cycle and cross-repo, and closed or unknown targets are skipped. I opened the preview: the landing page answers 200 with 16 KB of server-rendered HTML; I did not seed an issue there, so the wait display rests on the page and terminal tests. I saw no pictures of the page. The six tests cover the parser, open and edit, plan, import, the page and the terminal.
Two things I would do next:
- Add a short docs/features/ how-to (not README) saying that a body opening with
Follow-up to #Nmakes the issue wait for #N, since the behaviour is invisible until someone knows the phrase. - Close the two gaps Mason named: link a mirrored follower when #N arrives later in the same sync, and decide whether removing the line should drop the edge it created.
- Add a short docs/features/ how-to (not README) saying that a body opening with
-
Checks
shipped production is serving it deploy 7bffc31
-
History
- Direction: a Follow-up to #N issue waits for #N, tests renamed apart (#16762) 6681315
- Try: open an issue whose body starts with 'Follow-up to #N' and see 'Waits for #N' on its page 1c1e0e2
- An issue whose body opens "Follow-up to #N" waits for #N: opened, edited, planned or imported 07b5944
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
- Quarantine untrusted repositories until a Sentinel security review passes (#16709) 92b768e
- A gate's checkout is not removed under it: three gates on #7608 went red on files missing from their own working tree (#16742) bec38a3
- Infrastructure: what runs on your own cloud, what it is for, what it costs and when it ends, and a plan tray that builds it (#16706) d11ea08
- A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look (#16747) 0c2baa3
- GET a repository's milestones answers under 50 ms: trevato/forge's `read` phase is 1,365 ms today (#16735) 2816515
- Look pictures (a person's attachments) archive to the BlobStore (#16733) d5260ac
- In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running (#16738) c904595
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
- A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips (#16741) 58a68e0
- The review and build briefs say a preview's /__forge/ and pill come from the host forge, so changes to them are judged by test (#16734) 6fc06e8
- The New forge page shows a template picker (default: today's behaviour) that works at phone width (#16730) 354c752
- Drift gate: a page may not define a one-off class for what a ui.ts part already does (warn with a count) (#16728) 0d70113
An issue whose body's first line is exactly Follow-up to #N now waits for #N on the map while #N is open. The new tests and the related dependency, terminal and import suites pass (27 tests); bun x tsc --noEmit is clean and the gate reads 32 rules with none failing. I did not run the full suite.
The edge is written from the words, in the new src/core/follow_up.ts. Because it is an ordinary dependency edge, the map, ready list, "Depends on" card and terminal "Waits for" line show it with no change to them. The edge stops holding the issue when #N closes, as every wait does.
It is called from four places:
- Action and API:
openIssueandeditIssue, which the web, API and terminal all go through. - Plan route:
openPlan. - Mirrors:
importIssueinsrc/origins/import.ts, so mirrored issues get the edge on every sync.
An issue with a closed, unknown or self-referencing #N, or a number that would make a loop, is left alone. So is a line that isn't first, or has extra words after the number.
The new test/follow-up-waits.test.ts has six tests, one for each of these:
- the parser
- open and edit, including the closed-blocker case
- the plan route
- import
- the issue page: "Waits for #N"
- the terminal issue screen
Five of the six fail with the src changes stashed; the parser test is the one that passes.
Not done:
- Removing the follow-up line from a body does not remove the edge; unlinking stays a person's call through the existing control.
- If an origin imports the follower before #N, no edge is made until the next sync of the follower.
- There is no door change, since no new page, action or route was added. The commit line says "No door".
The pre-push hook asked for a Try: line, so there is an empty commit that gives one.
Reused: addDependency for the edge, getIssue for the lookup, and the existing issue page and terminal screen for display. scripts/similar.ts was not run.
To try: open an issue with the body Follow-up to #<open issue>. Its page shows "Waits for #N (queued)" and forge in the terminal shows the same on its issue screen.
An issue whose body's first line is exactly Follow-up to #N now waits for #N while #N is open. This holds when the issue is opened, edited, planned or imported. The issue page's Depends on card and the terminal's Waits for line show the wait like any other.
This push fixes the two gate failures from the check:
- Name the issue: a new commit,
Direction: … (#16762), names the issue. The earlier commits were already pushed, so I added a commit rather than rewriting them. - Test similarity: the helper
openintest/follow-up-waits.test.tsis nowopenWith, with a different body. The gate no longer flags it as a copy ofnewIssueintest/tui-issue-edit.test.ts.
bun scripts/gate.ts is clean and tsc --noEmit is clean. test/follow-up-waits.test.ts passes, 6 of 6. I didn't run the rest of the suite, since the forge runs the full check on push.
I didn't add a new page, action or route, so there is no new door and no review block.
To try it, open an issue with Follow-up to #N as the first line of its body. Its page should show it waits for #N.
🤖 Generated with Claude Code
An issue whose body's first line is exactly
Follow-up to #Nnow waits for #N on the map while #N is open. The new tests and the related dependency, terminal and import suites pass (27 tests);bun x tsc --noEmitis clean and the gate reads 32 rules with none failing. I did not run the full suite.The edge is written from the words, in the new
src/core/follow_up.ts. Because it is an ordinary dependency edge, the map, ready list, "Depends on" card and terminal "Waits for" line show it with no change to them. The edge stops holding the issue when #N closes, as every wait does.It is called from four places:
openIssueandeditIssue, which the web, API and terminal all go through.openPlan.importIssueinsrc/origins/import.ts, so mirrored issues get the edge on every sync.An issue with a closed, unknown or self-referencing #N, or a number that would make a loop, is left alone. So is a line that isn't first, or has extra words after the number.
The new
test/follow-up-waits.test.tshas six tests, one for each of these:Five of the six fail with the src changes stashed; the parser test is the one that passes.
Not done:
The pre-push hook asked for a
Try:line, so there is an empty commit that gives one.Reused:
addDependencyfor the edge,getIssuefor the lookup, and the existing issue page and terminal screen for display.scripts/similar.tswas not run.To try: open an issue with the body
Follow-up to #<open issue>. Its page shows "Waits for #N (queued)" andforgein the terminal shows the same on its issue screen.Closes #12389