Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

ci(release-notes): the fallback list respects the no-release-notes label

review5a141bdb82c1
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f0e846605..2206e772b 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -321,9 +321,10 @@ jobs:
# release is ever blocked waiting for prose, and nobody has to be in the loop.
#
# DEGRADES, NEVER FAILS: if the generator throws for any reason (gh api down, a body
- # shape we do not parse, a missing node), the step falls back to EXACTLY the plain
- # `git log` list this release used to publish. A release that cannot publish because
- # prose generation broke would be strictly worse than the list we are replacing.
+ # shape we do not parse, a missing node), the step falls back to the plain `git log` list
+ # this release used to publish — or to the compare link alone when a `no-release-notes` PR
+ # is in the range or the label lookup does not answer. A release that cannot publish
+ # because prose generation broke would be strictly worse than the list we are replacing.
- name: Generate release notes
env:
GH_TOKEN: ${{ github.token }}
@@ -346,11 +347,31 @@ jobs:
if ! node scripts/release-notes.mjs --tag "$tag" --prev "$prev" \
--repo "$GITHUB_REPOSITORY" --out notes.md; then
echo "::warning::structured release notes failed; falling back to the plain commit list"
+ # The plain list is commit subjects, and git knows nothing about the `no-release-notes`
+ # label — the fallback would publish exactly what the label keeps out. So the list is
+ # printed only when the label lookup ANSWERS and no labelled PR was merged in this
+ # range; otherwise the notes are the compare link alone. A failed lookup is not "no
+ # labelled PRs".
+ withheld=yes
+ if labelled=$(gh api --paginate "repos/${GITHUB_REPOSITORY}/issues?labels=no-release-notes&state=all&per_page=100" \
+ --jq '.[] | select(.pull_request) | .number' 2>/dev/null); then
+ withheld=no
+ subjects=$(git log --format='%s' "$range")
+ for n in $labelled; do
+ if grep -qE "^Merge pull request #${n} |\(#${n}\)\$" <<<"$subjects"; then withheld=yes; break; fi
+ done
+ fi
+ if [ -n "$prev" ]; then link="https://github.com/${GITHUB_REPOSITORY}/compare/${prev}...${tag}"
+ else link="https://github.com/${GITHUB_REPOSITORY}/commits/${tag}"; fi
{
echo "## Changes${prev:+ since ${prev}}"
- git log --no-merges --format='- %s' "$range" | grep -vE '^- chore\(release\)' | head -60
- total=$(git log --no-merges --format='- %s' "$range" | grep -cvE '^- chore\(release\)' || true)
- if [ "${total:-0}" -gt 60 ]; then echo "- …and $((total - 60)) more commits"; fi
+ if [ "$withheld" = yes ]; then
+ echo "Full list of changes: ${link}"
+ else
+ git log --no-merges --format='- %s' "$range" | grep -vE '^- chore\(release\)' | head -60
+ total=$(git log --no-merges --format='- %s' "$range" | grep -cvE '^- chore\(release\)' || true)
+ if [ "${total:-0}" -gt 60 ]; then echo "- …and $((total - 60)) more commits"; fi
+ fi
} > notes.md
fi
gh release edit "$tag" --repo "$GITHUB_REPOSITORY" --notes-file notes.md
diff --git a/CLAUDE.md b/CLAUDE.md
index 97363929f..79491cf96 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -10758,7 +10758,9 @@ The "auto-download off" setting is NOT here — that is PR #956's.
**Backend check feed** (`src/core/check.ts`, successor to the static `announcements.json`): the
**main process** calls `GET https://api.nodeterm.dev/v1/check?deviceId=&version=&os=&arch=&channel=stable&plan=`
(so the renderer CSP stays `'self'`) on launch + every 6h, cached 5 min, returning `{ messages, update }`.
-`deviceId` is the anonymous install id the backend counts active installs by. **Only while Settings →
+The one cache exception: a reply fetched before the open-project count was known (launch reads the
+feed before the workspace index has loaded) is refetched once the count is, so the launch check is
+not left count-less for five minutes. `deviceId` is the anonymous install id the backend counts active installs by. **Only while Settings →
Privacy → Telemetry is on** does the query also carry `openProjects=<n>` (the open-project count, a
number only; the backend keeps each device's maximum for the project limit). The reply may also
carry `limits: { projects: { free, epoch } }` while the free-tier project limit is on (absent = off);
diff --git a/docs/release-notes/README.md b/docs/release-notes/README.md
index 02dc3c021..cb0af946a 100644
--- a/docs/release-notes/README.md
+++ b/docs/release-notes/README.md
@@ -28,8 +28,9 @@ into Internal changes, not counted. It exists for work that ships switched off a
announced until it is switched on; ordinary internal work stays in the collapsed section. The
generator looks the labelled PRs up on every run (`EXCLUDE_LABEL` in `scripts/release-notes.mjs`),
and a failed lookup fails the generator rather than publishing notes that ignored the label. That
-failure, like any other, falls back to the plain `git log` list (see Failure), which knows nothing
-about labels — check the notes by hand if the job log shows that warning.
+failure, like any other, takes the fallback (see Failure), and the fallback's commit list knows
+nothing about labels — so it is withheld, and the notes are the compare link alone, whenever a
+labelled PR was merged in the range or the lookup does not answer there either.
## Layer 2 — Highlights (optional, written by hand)
@@ -71,8 +72,10 @@ other change, or do not write it.
## Failure
Any failure in the generator — `gh api` down, a body shape it cannot parse, no `node` on the runner
-— falls back to exactly the plain `git log` list releases used to publish, with a `::warning::` in
-the job log. **A release that cannot publish because prose generation broke would be strictly worse
+— falls back to the plain `git log` list releases used to publish, with a `::warning::` in the job
+log. The one exception is the label: when a `no-release-notes` PR was merged in the range, or the
+label lookup does not answer, the fallback publishes only the compare link, because commit subjects
+would announce exactly what the label keeps out. **A release that cannot publish because prose generation broke would be strictly worse
than the list this replaces.**
## Testing it by hand
diff --git a/src/shared/project-limit.ts b/src/shared/project-limit.ts
index bb0466690..9ac750a8a 100644
--- a/src/shared/project-limit.ts
+++ b/src/shared/project-limit.ts
@@ -4,7 +4,7 @@
/**
* How many of `projects` are OPEN — the one definition, shared by the open-project report and the
- * gate (spec §3). A project is open when it is in the workspace, not `closed` (a "Recently closed"
+ * gate. A project is open when it is in the workspace, not `closed` (a "Recently closed"
* entry) and not a relay tab (`remote` — a live connection to another machine's project, never a
* workspace on this disk). SSH projects, cwd-less canvases and unavailable placeholders all count:
* each is a tab on the user's screen.