paseo-follow-up 2.1.0-beta.5 → 2.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,93 @@
1
1
  # Release notes
2
2
 
3
- What changed in each version of Follow-up, newest first. Follow-up shows the curated part of a major release in "What's new" after the update, and every version's notes from Home's version line.
3
+ What changed in each version of Follow-up, newest first. Follow-up shows "What's new" after an update that brings new release notes: the curated part of each stable release since you last looked (betas install quietly; Settings → General can turn it off), and every version's notes from Home's version line.
4
+
5
+ ## 2.1.0 (2026-11-17)
6
+
7
+ Answers reach the agent even when Paseo is busy, search is one key away, and artifact links have their real names.
8
+
9
+ - **Answers reach the agent on their own.** They wait in a queue and retry until they land, even while Paseo is busy or unreachable, without arriving twice. The card says when the next try is.
10
+ - **⌘/ opens Follow-up search from anywhere** (Ctrl+/ on Windows and Linux). Walk Home and the sidebar view with ↑/↓ or j/k, and Enter opens the chat.
11
+ - **Find things faster:** search inside a workspace's Pull requests, Tasks and Activity, and the sidebar filter puts name matches first.
12
+ - **Artifact links show their real names** instead of "Untitled artifact", or where they came from and when if the name was never seen.
13
+ - **New:** Follow-up's own icon, a resizable side pane on Home, the Overseer in the sidebar view, and Report an issue can start in a new workspace.
14
+ - **Steadier and lighter:** Follow-up starts on its own after Paseo restarts, keeps one connection to Paseo, gives memory back after a busy stretch, and tells you when it can't save instead of failing silently.
15
+
16
+ <details><summary>Full changelog since 2.0.1</summary>
17
+
18
+ ### Home and Needs you
19
+
20
+ - Follow-up has its own icon now, in the sidebar, the workspace header button and the panel tab, instead of the pull request icon. While a workspace needs you, the icon's dot turns amber.
21
+ - Walk Home and Follow-up's sidebar view from the keyboard: ↑/↓ or j/k move between workspaces, Home and End jump to the ends, and Enter opens the chat.
22
+ - Drag the line between Home's list and the right-hand pane to make the pane wider or narrower. Follow-up keeps the width you pick, and on a keyboard you can move it with the arrow keys.
23
+ - Press ⌘/ (Ctrl+/ on Windows and Linux) anywhere in Paseo to open Follow-up Home with the cursor in its search, even while you're typing a message. Pick another key, or none, in Settings under Inbox & display.
24
+ - Search inside a workspace's Pull requests, Tasks and Activity: the search icon in each section's header finds a PR by number, title, branch or failing check, a task by its title or evidence, and anything in Activity, including folded items.
25
+ - Filtering the sidebar list puts workspaces whose name matches first, then matches in a branch, PR or linked item, then matches elsewhere in the row.
26
+ - On a narrow Home list, a row's badges and pull request chip now make room (shortening, then hiding the least important) instead of covering when the row last changed.
27
+ - A task scheduled for a time now starts at that time, not up to a minute later.
28
+
29
+ ### Questions and answers
30
+
31
+ - Sending repairs answers at once, even when Paseo is slow. Follow-up queues the message and sends it as soon as the agent is free; the message line says why it's waiting.
32
+ - An answer and the repairs waiting for the same agent now go together as one message, so the agent wakes up once instead of twice.
33
+ - Your answers reach the agent on their own. If Paseo is busy or unreachable, Follow-up keeps the answer and retries until it lands, and the card says when it tries next. Once Paseo is back, the answer goes out within about 15 seconds.
34
+ - An answer that can't be confirmed after several tries shows Failed with Retry, instead of waiting silently for you to resend it.
35
+ - On a phone, Report an issue's Send to list scrolls again, and the new workspace and new agent options come first.
36
+
37
+ ### Repairs and PRs
38
+
39
+ - Lists inside sheets and popovers scroll on a phone, and the reviewer field in a PR sheet stays above the keyboard.
40
+ - Follow-up keeps one connection to Paseo while it runs, instead of reconnecting every minute or two between checks.
41
+ - The deploy check reads Cloud Run in Follow-up itself instead of starting gcloud for every fleet read; gcloud now only hands out the access token, once every 45 minutes.
42
+
43
+ ### The Overseer and AI priority
44
+
45
+ - Overseer forwards and reports handed to an agent are kept and retried until they arrive.
46
+
47
+ ### Summary and Linked items
48
+
49
+ - Rename title with AI works with linked artifacts and fixes long or quoted suggestions before showing them.
50
+
51
+ ### Providers and helper agents
52
+
53
+ - Report an issue can start the report in a new workspace, with an agent on the default model.
54
+
55
+ ### Agents and tools
56
+
57
+ - Rename title with AI works for workspaces beyond the first page, including background workspaces.
58
+
59
+ ### Setup, Settings and updates
60
+
61
+ - Release tooling waits for delayed registry updates after npm accepts a version, rather than treating the version as failed.
62
+ - Retrying an accepted release resumes verification when npm reports that the version was already published.
63
+
64
+ ### Performance
65
+
66
+ - Follow-up gives memory back after a busy stretch: once agents and the app go quiet, the worker returns to its usual size instead of staying at its peak.
67
+ - Follow-up does less work while agents are busy.
68
+ - Follow-up sends the app less data when it refreshes your workspaces, so the worker uses less memory.
69
+
70
+ ### More
71
+
72
+ - Agents can read Follow-up's message queue and retry or cancel a waiting message, like you can.
73
+ - Artifact and spec links reuse names from local publish and read receipts across workspaces. Existing unnamed links fill at startup, chosen names stay intact, and unnamed artifacts show their source and date.
74
+ - Follow-up reliably frees its previous session when the app restarts, so tracking can resume.
75
+ - The action is now called Rename title with AI in menus, ⌘K and the dialog.
76
+
77
+ ### Fixes
78
+
79
+ - A message to an agent that can't go out (an Overseer forward or a report) now shows in Needs you with Retry and Cancel.
80
+ - Fixed: an answer card could reach the agent twice when Paseo was slow to confirm it. Follow-up now checks the agent's chat before sending anything again.
81
+ - Follow-up's sidebar view now shows the Overseer, with its state, like Home does. Tap it to open the Overseer's chat, or to start it.
82
+ - Saving reviewers, agent settings and the PR workflow no longer stalls on a slow disk, and Needs you no longer waits while the inbox saves.
83
+ - A setting that can't be saved now shows an error instead of failing silently; your change is kept and saving keeps retrying.
84
+ - A message waiting to go out now says "Next try at 12:04" instead of "retrying at 12:04", so its status line no longer repeats the Retrying label.
85
+ - Suggestions stay editable when they need a change, and a busy host no longer refuses a rename click.
86
+ - The sort menu now says only when your workspaces were last ranked, without the run's cost or a note about Home.
87
+ - If Follow-up can't save your tracked work, it now says so and keeps retrying instead of failing silently.
88
+ - Follow-up no longer stays down after Paseo restarts while the previous Follow-up is still stopping. It waits for that one to exit and starts on its own, and says it is waiting meanwhile.
89
+
90
+ </details>
4
91
 
5
92
  ## 2.0.1 (2026-11-14)
6
93
 
package/README.md CHANGED
@@ -90,8 +90,12 @@ View. Follow-up 2.0 still runs on Paseo 0.15; there it simply doesn't offer the
90
90
 
91
91
  <img alt="Follow-up on a phone: Home's list, and a workspace's detail with its question" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-phone.png">
92
92
 
93
- After a major update, Follow-up shows **What's new** once. Smaller updates and betas install quietly. Release notes
94
- are in Settings → General and in [CHANGELOG.md](CHANGELOG.md).
93
+ With Updates set to **Tell me**, Home says when any newer stable version is available, including minor and patch
94
+ releases. On the Beta channel, betas show only in Settings → General.
95
+
96
+ After an update that brings new release notes, Follow-up shows **What's new** once. Betas install quietly.
97
+ To stop it, turn off **Show What's new after updates** in Settings → General. Release notes are there too, and in
98
+ [CHANGELOG.md](CHANGELOG.md).
95
99
 
96
100
  ## Helper agents and providers
97
101
 
package/client/brief.tsx CHANGED
@@ -14,7 +14,7 @@ import { briefKey, HEADLINE_WORD } from "../shared/headline";
14
14
  const word = (kind: Brief["kind"]) => HEADLINE_WORD[briefKey(kind)];
15
15
  import { answerQuestionRpc, briefActionRpc, browserStatusRpc, inboxBriefRpc } from "../shared/contracts";
16
16
  import { errorText, mootNote } from "../shared/errors";
17
- import { OTHER, OTHER_LABEL, briefAnswerStatus, isOther, type Question } from "../shared/questions";
17
+ import { OTHER, OTHER_LABEL, OWN_ANSWER_HINT, briefAnswerStatus, isOther, type Question } from "../shared/questions";
18
18
  import type { ListQuestion, ListWorkspace } from "../shared/list";
19
19
  import { useDetailGate, useWorkspace } from "./workspace-data";
20
20
  import { SubmitScope, focusRing, submitHint, text, useNow } from "./kit";
@@ -139,8 +139,8 @@ function OptionRow({ option, recommended, sending, disabled, tight, open, onTogg
139
139
  </View>;
140
140
  }
141
141
 
142
- /** "Add note" / "Remove note": a quiet text link (muted, 13px), 44 tall on phones. */
143
- function NoteLink({ icon, label, a11y, disabled, onPress, c, compact }: { icon: string; label: string; a11y: string; disabled: boolean; onPress: () => void; c: Colors; compact: boolean }) {
142
+ /** "Add note" / "Remove note": a quiet text link (muted, 13px), 44 tall on phones. QuestionBody uses it too. */
143
+ export function NoteLink({ icon, label, a11y, disabled, onPress, c, compact }: { icon: string; label: string; a11y: string; disabled: boolean; onPress: () => void; c: Colors; compact: boolean }) {
144
144
  return <Pressable accessibilityRole="button" accessibilityLabel={a11y} accessibilityState={{ disabled }} disabled={disabled} onPress={onPress} hitSlop={6}
145
145
  style={({ hovered, pressed, focused }: { hovered?: boolean; pressed: boolean; focused?: boolean }) => ({ ...ring(focused, c), flexDirection: "row", alignItems: "center", gap: 6, alignSelf: "flex-start", minHeight: compact ? 44 : 28, paddingHorizontal: 4, marginLeft: -4, borderRadius: 6, opacity: disabled ? 0.5 : pressed ? 0.7 : 1, backgroundColor: hovered && !disabled ? withAlpha(c.foreground, 0.05) : "transparent" })}>
146
146
  <Icon name={icon} size={14} color={c.foregroundMuted} />
@@ -190,7 +190,7 @@ function BriefBody({ b, c, compact, tight, embedded, height, mode, picks, onPick
190
190
  style={{ minHeight: compact ? 66 : 58, paddingHorizontal: 10, paddingVertical: 8, borderRadius: 8, borderWidth: 1, borderColor: words[d.id]?.trim() ? c.border : withAlpha(c.accent, 0.7), color: c.foreground, backgroundColor: c.surface0, fontSize: 14, lineHeight: 20, textAlignVertical: "top" }} />
191
191
  {mode === "send" && <View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 10 }}>
192
192
  <Btn shortcut label={busy === `${d.id}:${OTHER}` ? "Sending…" : "Send answer"} icon="Send" primary disabled={!words[d.id]?.trim() || !!busy} onPress={() => onSendOther?.(d.id)} c={c} compact={compact} />
193
- {!words[d.id]?.trim() && <Text style={{ flexShrink: 1, color: c.foregroundMuted, fontSize: 12, lineHeight: 16 }}>Write your answer, then send it.</Text>}
193
+ {!words[d.id]?.trim() && <Text style={{ flexShrink: 1, color: c.foregroundMuted, fontSize: 12, lineHeight: 16 }}>{OWN_ANSWER_HINT}</Text>}
194
194
  </View>}
195
195
  </View>}
196
196
  {/* A note on a lettered pick ("A, but…"): quiet until asked for, never in the way of the one-tap answer. */}
@@ -10,13 +10,14 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";
10
10
  import { answerQuestionRpc } from "../shared/contracts";
11
11
  import type { Workspace } from "../shared/model";
12
12
  import type { ListQuestion, ListWorkspace } from "../shared/list";
13
- import { OTHER, OTHER_LABEL, answerHeading, answerLabel, answerStatus, answerMessage, answerHasActions, resendTitle, isOpen, isOther, questionState, type Question } from "../shared/questions";
13
+ import { OTHER, OTHER_LABEL, answerDraft, answerHeading, answerLabel, answerStatus, answerMessage, answerHasActions, resendTitle, isOpen, isOther, questionState, type Question } from "../shared/questions";
14
14
  import { ago } from "../shared/attention";
15
15
  import { RETRYING_DETAIL, deliveryStatus } from "../shared/queue";
16
16
  import { mootNote, sentence } from "../shared/errors";
17
17
  import { activity, type ActivityTone } from "../shared/activity";
18
18
  import { Button, Card, CardRow, Chip, FoldRow, IconButton, SubmitScope, errorText, text, type Theme } from "./kit";
19
19
  import { Spinner } from "./motion";
20
+ import { NoteLink } from "./brief";
20
21
  import { mergedColor, tint, withAlpha, type Colors } from "./theme";
21
22
  import { overviewKey, workspaceKey } from "./keys";
22
23
  import { PrLinksProvider, RichText } from "./rich-text";
@@ -92,7 +93,9 @@ const inputStyle = (c: Colors, compact: boolean, lines: number) => ({ minHeight:
92
93
 
93
94
  /**
94
95
  * One question with its answer form. Send records the answer and messages the asking agent straight
95
- * away; Copy records it and puts a reply on the clipboard instead. Used by the dialog and the pill.
96
+ * away; Copy records it and puts a reply on the clipboard instead. The one answer flow every question surface draws
97
+ * (the dialog, Needs you on Home and in the panel, the pill, phones): what its field means comes from answerDraft
98
+ * (`one-answer-flow-for-every-question`), never from the surface.
96
99
  */
97
100
  export function QuestionBody({ workspace: w, question: q, theme, compact, now = Date.now(), dense = false, bodyMaxHeight, openAgent, onAnswered, onDetails, onClose, inline = false }: {
98
101
  workspace: ListWorkspace; question: ListQuestion; theme: Theme; compact: boolean; now?: number; dense?: boolean; bodyMaxHeight?: number; openAgent?: (agentId: string) => void; onAnswered?: () => void; onDetails?: () => void;
@@ -122,10 +125,12 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
122
125
  useEffect(() => { setChoice(unsent?.choice ?? q.answer?.choice ?? null); setWords(unsent?.words ?? q.answer?.words ?? ""); }, [q.id, !!unsent]);
123
126
  const refresh = () => { void cache.invalidateQueries({ queryKey: workspaceKey(w.id) }); void cache.invalidateQueries({ queryKey: overviewKey }); };
124
127
  const free = !q.options.length;
125
- // Something else: the field below stops being an optional note and becomes the answer, so Send waits for words.
126
- const other = !free && isOther(choice);
127
- const answer = free ? words.trim() : other && !words.trim() ? null : choice;
128
- const note = free ? undefined : words.trim() || undefined;
128
+ // The field is shown only once its role is known: Something else (the answer, so Send waits for words) or Add note
129
+ // on a lettered pick. One rule for every surface (shared/questions.ts answerDraft).
130
+ const draft = answerDraft(q, { choice, words, noteOpen });
131
+ const other = draft.own;
132
+ const answer = draft.answer;
133
+ const note = draft.note;
129
134
  const run = useMutation({
130
135
  mutationFn: async (action: "send" | "copy" | "resend") => {
131
136
  if (action === "copy") await copyText(answerMessage(q, q.answer?.choice ?? answer!, q.answer?.words ?? note));
@@ -162,7 +167,7 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
162
167
  if (!answer) return;
163
168
  const input = { workspaceId: w.id, questionId: q.id, choice: answer, words: note, action };
164
169
  if (action === "copy") void copyText(answerMessage(q, answer, note)).catch(() => undefined);
165
- setPendingAnswer(w.id, q.id, { choice: answer, words: note ?? (free ? undefined : words.trim() || undefined) });
170
+ setPendingAnswer(w.id, q.id, { choice: answer, words: other ? words.trim() : note });
166
171
  const agent = who(w, q.askedBy);
167
172
  void runAction({
168
173
  label: `Answer to ${q.id}`, toast, run: () => answerRpc(input),
@@ -213,10 +218,12 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
213
218
  const submittable = !run.isPending && (open ? !!answer : q.answer?.delivery.state === "copied" || q.answer?.delivery.state === "in-chat");
214
219
  // In the pill popover the answer field and actions stay pinned below a scrolling body.
215
220
  const pinned = dense && !!bodyMaxHeight;
216
- const input = <View style={{ gap: 6 }}>
221
+ // Re-keyed by role, so the field that opens on Something else or Add note takes the caret; typing never re-keys it.
222
+ const input = draft.field && <View style={{ gap: 6 }}>
217
223
  {free && !dense && <Text style={t.meta}>No options were given. Write the decision for the agent.</Text>}
218
- <TextInput key={other ? "answer" : "note"} accessibilityLabel={free || other ? `Your answer to ${q.id}${other ? ", required" : ""}` : `Note for the agent about ${q.id}, optional`} placeholder={free ? "Your answer" : other ? "Your answer (required)" : "Add a note for the agent (optional)"} placeholderTextColor={c.foregroundMuted}
219
- multiline value={words} editable={!run.isPending} onChangeText={setWords} maxLength={2000} autoFocus={other || pinned && !free && noteOpen} style={[inputStyle(c, compact, (free || other) && !dense ? 3 : 2)]} />
224
+ {!!draft.heading && <Text style={[t.small, { fontWeight: "600" }]}>{draft.heading}</Text>}
225
+ <TextInput key={draft.field} accessibilityLabel={draft.label} placeholder={draft.placeholder} placeholderTextColor={c.foregroundMuted}
226
+ multiline value={words} editable={!run.isPending} onChangeText={setWords} maxLength={2000} autoFocus={!free && (other || noteOpen)} style={[inputStyle(c, compact, draft.field === "answer" && !dense ? 3 : 2)]} />
220
227
  </View>;
221
228
  // Context comes before the options so the developer reads why before choosing.
222
229
  const body = <View style={{ gap: dense ? 10 : 14 }}>
@@ -240,7 +247,7 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
240
247
  selected={(open ? choice : q.answer?.choice) === o.letter} disabled={!open || run.isPending} onPress={() => setChoice(o.letter)} />)}
241
248
  {/* Built in on every question with options, after the agent's own: the developer's own answer. */}
242
249
  {(open || isOther(q.answer?.choice)) && <OptionCard theme={theme} compact={compact} dense={dense} own label={OTHER_LABEL} consequence={open && !dense ? "Write your own answer" : undefined} recommended={false}
243
- selected={(open ? choice : q.answer?.choice) === OTHER} disabled={!open || run.isPending} onPress={() => { setChoice(OTHER); if (pinned) setNoteOpen(true); }} />}
250
+ selected={open ? other : isOther(q.answer?.choice)} disabled={!open || run.isPending} onPress={() => setChoice(OTHER)} />}
244
251
  </View>}
245
252
  {/* Not sent yet (copied, or in the agent's message box) never reads as answered: no check, no green. Only a
246
253
  delivered answer is green; queued, retrying or failed keeps the check but stays neutral (answerHeading). */}
@@ -262,6 +269,10 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
262
269
  <Text style={[t.meta, { color: c.foreground, fontWeight: "600", textDecorationLine: "underline" }]}>Retry</Text>
263
270
  </Pressable>
264
271
  </View>}
272
+ {/* A note on a lettered pick: the brief card's quiet links, under the options, in every mode. */}
273
+ {open && (draft.canAddNote || draft.canRemoveNote) && <NoteLink icon={draft.canAddNote ? "MessageSquarePlus" : "X"} label={draft.canAddNote ? "Add note" : "Remove note"}
274
+ a11y={draft.canAddNote ? `Add a note for the agent about ${q.id}` : `Remove the note on ${q.id}`} disabled={run.isPending} c={c} compact={compact}
275
+ onPress={() => { if (draft.canAddNote) setNoteOpen(true); else { setWords(""); setNoteOpen(false); } }} />}
265
276
  {open && !pinned && input}
266
277
  </View>;
267
278
  const actions = (open || q.answer && answerHasActions(q.answer.delivery)) && <View style={{ gap: 6 }}>
@@ -276,18 +287,17 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
276
287
  {q.answer && (q.answer.delivery.state === "failed" || q.answer.delivery.state === "cancelled") && <Button theme={theme} compact={compact} kind="ghost" icon="Copy" title="Copy" accessibilityLabel={`Copy the ${q.id} answer`} onPress={() => { void copyText(answerMessage(q, q.answer!.choice, q.answer!.words)).then(() => toast.show("Copied", { variant: "success" }), () => toast.error("Couldn't copy here")); }} />}
277
288
  {q.answer?.delivery.state === "in-chat" && composer && <Button theme={theme} compact={compact} kind="ghost" icon="MessageSquareText" title="Open chat" accessibilityLabel={`Open the chat your ${q.id} answer is in`} onPress={() => { onClose?.(); void composer.focus().catch(() => undefined); }} />}
278
289
  {(q.answer?.delivery.state === "failed" || q.answer?.delivery.state === "unconfirmed") && openAgent && <Button theme={theme} compact={compact} kind="ghost" icon="MessageSquare" title="Open agent" onPress={() => openAgent(q.askedBy ?? w.mainAgentId)} />}
279
- {pinned && open && !free && !other && !noteOpen && <Button theme={theme} compact={compact} kind="ghost" icon="Pencil" title="Note" accessibilityLabel={`Add a note for the agent about ${q.id}`} onPress={() => setNoteOpen(true)} />}
280
290
  {dense && onDetails && <IconButton theme={theme} compact={compact} icon="Maximize2" label={`Open ${q.id} with its links and full context`} onPress={onDetails} />}
281
291
  </View>
282
292
  {/* Same words as the brief card's, so a disabled Send always says why. */}
283
- {open && other && !words.trim() ? <Text style={t.small}>Write your answer, then send it.</Text>
293
+ {open && draft.hint ? <Text style={t.small}>{draft.hint}</Text>
284
294
  // Two ways to deliver (Paseo 0.16) need telling apart everywhere, the phone and the Needs you block included.
285
295
  : open && !dense && composer ? <Text style={t.small}>Send delivers it now, even mid-turn. Put in chat adds it to your message box to edit first.</Text>
286
296
  : open && !dense && !compact && !inline && <Text style={t.small}>Send puts your answer straight into the asking agent's chat, even mid-turn. Follow-up keeps it under {q.id}.</Text>}
287
297
  </View>;
288
298
  // In the pill popover the question scrolls and the answer field and actions stay put, so Send is never cut off.
289
299
  if (pinned) {
290
- const showInput = open && (free || other || noteOpen);
300
+ const showInput = open && !!draft.field;
291
301
  return <SubmitScope enabled={submittable} onSubmit={() => open ? quick("send") : run.mutate("send")} style={{ gap: 10 }}>
292
302
  <View>
293
303
  <ScrollView style={{ maxHeight: bodyMaxHeight! - (showInput ? 62 : 0), flexGrow: 0 }} contentContainerStyle={{ paddingRight: 2 }} scrollEventThrottle={32}
@@ -290,7 +290,8 @@ const subscribeClaim = (l: () => void) => { listeners.add(l); return () => { lis
290
290
 
291
291
  /**
292
292
  * Shows "What's new" once per device per version, on whichever Follow-up surface mounts first (Home, the workspace
293
- * panel or the sidebar item). Never on a first install and never while setup is showing or still loading.
293
+ * panel or the sidebar item), after an update with notes (shared/changelog.ts `whatsNew`). Never on a first install,
294
+ * after a beta, with Settings → General's switch off, or while setup is showing or still loading.
294
295
  */
295
296
  export function WhatsNewGate({ surface, theme, compact }: { surface: string; theme: Theme; compact: boolean }) {
296
297
  const query = useReleaseNotes();
@@ -304,7 +305,7 @@ export function WhatsNewGate({ surface, theme, compact }: { surface: string; the
304
305
  const viewVersion = useViewVersion();
305
306
  const decision = useMemo(() => {
306
307
  const deviceSeen = view ? seenOnDevice(view) : undefined;
307
- return view && deviceSeen !== undefined ? whatsNew({ installed: view.version, deviceSeen, previous: view.previous, onboarding, notes: view.notes }) : null;
308
+ return view && deviceSeen !== undefined ? whatsNew({ installed: view.version, deviceSeen, previous: view.previous, onboarding, enabled: view.enable_whats_new, notes: view.notes }) : null;
308
309
  }, [view, onboarding, viewVersion]);
309
310
  useEffect(() => {
310
311
  if (!decision || !view) return;
@@ -2,11 +2,11 @@ import { useState } from "react";
2
2
  import { View } from "react-native";
3
3
  import { Pressable, Text } from "./text";
4
4
  import { openExternalUrl, useRpc } from "@getpaseo/plugin/client";
5
- import { Icon, SettingsAction, SettingsCard, SettingsSection, SettingsSelect, copyText, useToast } from "@getpaseo/plugin/client/ui";
5
+ import { Icon, SettingsAction, SettingsCard, SettingsSection, SettingsSelect, SettingsSwitch, copyText, useToast } from "@getpaseo/plugin/client/ui";
6
6
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
7
  import { dismissUpdateNoticeRpc, installUpdateRpc, retryMoveRpc, setUpdatesRpc, updatesRpc } from "../shared/contracts";
8
8
  import { moveLine } from "../shared/plugin-move";
9
- import { MODE_HINT, MODE_LABEL, UPDATE_MODES, channelHint, checkedText, copyCommand, statusCopy, versionMark, type StatusAction, type UpdateMode, type UpdatesView } from "../shared/updates";
9
+ import { MODE_HINT, MODE_LABEL, UPDATE_MODES, WHATS_NEW_LABEL, channelHint, checkedText, copyCommand, statusCopy, versionMark, whatsNewHint, type StatusAction, type UpdateMode, type UpdatesChange, type UpdatesView } from "../shared/updates";
10
10
  import { writeCategory } from "../shared/settings-nav";
11
11
  import type { Channel } from "../shared/version";
12
12
  import { Button, errorText, space, text, useNow, type Theme } from "./kit";
@@ -14,7 +14,7 @@ import { Spinner } from "./motion";
14
14
  import { Disclosure } from "./settings-shell";
15
15
  import { withAlpha } from "./theme";
16
16
  import { OptionCard } from "./questions";
17
- import { ReleaseNotesSheet, VersionNotes } from "./release-notes";
17
+ import { ReleaseNotesSheet, VersionNotes, releaseNotesKey } from "./release-notes";
18
18
 
19
19
  export const updatesKey = ["follow-up", "updates"];
20
20
 
@@ -142,7 +142,8 @@ export function UpdatesSections({ theme, compact }: { theme: Theme; compact: boo
142
142
  const write = useRpc(setUpdatesRpc); const cache = useQueryClient(); const toast = useToast();
143
143
  // null: closed; false: What's new (since the last update); true: every version.
144
144
  const [sheet, setSheet] = useState<boolean | null>(null);
145
- const save = useMutation({ mutationFn: (input: { mode?: UpdateMode; channel?: Channel }) => write(input), onSuccess: v => cache.setQueryData(updatesKey, v), onError: e => toast.error(errorText(e)) });
145
+ // The What's new gate reads the switch from the release notes view, so a change refreshes that too.
146
+ const save = useMutation({ mutationFn: (input: UpdatesChange) => write(input), onSuccess: (v, input) => { cache.setQueryData(updatesKey, v); if (input.enable_whats_new != null) void cache.invalidateQueries({ queryKey: releaseNotesKey }); }, onError: e => toast.error(errorText(e)) });
146
147
  const view = query.data;
147
148
  if (query.isLoading) return <Spinner color={c.foregroundMuted} size={16} label="Loading updates" />;
148
149
  if (!view) return <SettingsSection title="Updates"><Text accessibilityRole="alert" style={{ color: c.statusDanger }}>{query.error ? errorText(query.error) : "Couldn't load updates."}</Text></SettingsSection>;
@@ -160,6 +161,7 @@ export function UpdatesSections({ theme, compact }: { theme: Theme; compact: boo
160
161
  options={[{ value: "stable", label: "Stable" }, { value: "beta", label: "Beta" }]}
161
162
  onValueChange={channel => save.mutate({ channel }, { onSuccess: () => toast.show(channel === "stable" ? "Switched to Stable. Nothing changes until a newer stable is out." : "Switched to Beta. The next check looks for betas.") })} />
162
163
  </>}
164
+ <SettingsSwitch label={WHATS_NEW_LABEL} hint={whatsNewHint(view.enable_whats_new)} value={view.enable_whats_new} disabled={save.isPending} onValueChange={enable_whats_new => save.mutate({ enable_whats_new })} />
163
165
  <SettingsAction label="Release notes" hint={`Every version up to ${view.version}, newest first.`} actionLabel="See all" onPress={() => setSheet(true)} />
164
166
  </SettingsCard>
165
167
  </SettingsSection>
@@ -175,7 +177,7 @@ export function UpdatesSections({ theme, compact }: { theme: Theme; compact: boo
175
177
 
176
178
  const SETUP_CARDS: { mode: UpdateMode; hint: string }[] = [
177
179
  { mode: "auto", hint: "Waits until your agents are idle. Rolls back if the new version fails." },
178
- { mode: "notify", hint: "Shows new versions on Home. You choose when to install." },
180
+ { mode: "notify", hint: "Shows new stable versions on Home. You choose when to install." },
179
181
  { mode: "off", hint: "No checks. You can check from Settings → General." },
180
182
  ];
181
183
  /**
package/index.server.ts CHANGED
@@ -960,8 +960,8 @@ export default function contribute(server: PluginServerContext) {
960
960
  // Record the version at start (in the background), so "Updated to X 2h ago" counts from the reload, not first view.
961
961
  void ready.then(() => selfInstall()).catch(() => undefined);
962
962
  const releaseNotesView = async (): Promise<ReleaseNotesView> => {
963
- const me = await selfInstall(); const file = await versions.read();
964
- return demoOverride(directory, "release-notes", releaseNotesViewSchema, { version: me.version, name: me.name ?? PLUGIN_NAME, installKind: me.installKind, previous: file.previous ?? null, updatedAt: file.startedAt ?? null, hostSeen: file.hostSeen ?? null, notes: me.notes });
963
+ const [me, file, updates] = await Promise.all([selfInstall(), versions.read(), updatesStore.read()]);
964
+ return demoOverride(directory, "release-notes", releaseNotesViewSchema, { version: me.version, name: me.name ?? PLUGIN_NAME, installKind: me.installKind, previous: file.previous ?? null, updatedAt: file.startedAt ?? null, hostSeen: file.hostSeen ?? null, enable_whats_new: updates.enable_whats_new !== false, notes: me.notes });
965
965
  };
966
966
  handle(rpc.releaseNotesRpc, async () => releaseNotesView());
967
967
  handle(rpc.whatsNewSeenRpc, async ({ version }) => { await versions.seen(version); return releaseNotesView(); });
@@ -1046,7 +1046,7 @@ export default function contribute(server: PluginServerContext) {
1046
1046
  if (check) await updater.check(check).catch(() => undefined);
1047
1047
  return updatesView();
1048
1048
  });
1049
- handle(rpc.setUpdatesRpc, async ({ mode, channel }) => { await updater.setSettings({ mode, channel }); return updatesView(); });
1049
+ handle(rpc.setUpdatesRpc, async ({ mode, channel, enable_whats_new }) => { await updater.setSettings({ mode, channel, enable_whats_new }); return updatesView(); });
1050
1050
  handle(rpc.installUpdateRpc, async ({ version, anyway }) => { await updater.install(version, !!anyway); return updatesView(); });
1051
1051
  handle(rpc.retryMoveRpc, async () => { await pluginMove.retry(); return updatesView(); });
1052
1052
  handle(rpc.dismissUpdateNoticeRpc, async ({ id }) => { await updater.dismiss(id); return updatesView(); });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paseo-follow-up",
3
3
  "private": false,
4
- "version": "2.1.0-beta.5",
4
+ "version": "2.2.0-beta.1",
5
5
  "description": "A Paseo plugin that follows every workspace until the work is done: one Home for what needs you, questions you answer anywhere, and repairs that send themselves.",
6
6
  "type": "module",
7
7
  "files": [
@@ -107,7 +107,7 @@ export const RPC_TOOLS: readonly RpcTool[] = [
107
107
  { name: "updates_status", rpc: "follow.updates", kind: "read", input: none },
108
108
  { name: "check_updates", rpc: "follow.updates", kind: "write", input: none, toRpc: () => ({ check: "manual" }) },
109
109
  { name: "set_updates", rpc: "follow.set-updates", kind: "planned", before: { rpc: "follow.updates", input: () => ({}) },
110
- input: z.strictObject({ mode: z.enum(UPDATE_MODES).optional(), channel: z.enum(["stable", "beta"]).optional(), ...confirm }) },
110
+ input: z.strictObject({ mode: z.enum(UPDATE_MODES).optional(), channel: z.enum(["stable", "beta"]).optional(), enable_whats_new: z.boolean().optional(), ...confirm }) },
111
111
  { name: "install_update", rpc: "follow.install-update", kind: "planned", before: { rpc: "follow.updates", input: () => ({}) },
112
112
  input: z.strictObject({ version: z.string().trim().min(1).max(64), anyway: z.boolean().optional(), ...confirm }) },
113
113
  // Settings → General: 2.0's move to the new plugin id (status is in updates_status), Try again
@@ -104,10 +104,10 @@ export const mcpSource: string = [
104
104
  " [\"set_task_trigger\", \"Schedule a task to run now, on merge or on deploy (trigger { event, delayDays } or null), with afterPrs: { workspaceId, obligationId, expectedRevision, trigger, afterPrs }.\" + ask, \"follow.agent-act\", { workspaceId: string, obligationId: string, expectedRevision: { type: \"integer\", minimum: 0 }, trigger, afterPrs: array, ...planned }, []],",
105
105
  " [\"pr_controls\", \"Read a PR's merge controls as the PR sheet shows them (Send to Paseo pairing, Graphite in Chrome): { workspaceId, prKey }.\" + read, \"follow.agent-act\", { workspaceId: string, prKey }, [\"workspaceId\", \"prKey\"]],",
106
106
  " [\"browser_status\", \"Read whether Send to Paseo is paired and which repositories it may control.\" + read, \"follow.agent-act\", {}, []],",
107
- " [\"release_notes\", \"Read Follow-up's release notes: the installed version, the version it updated from (previous) and when (updatedAt, ms), and every shipped version's notes, newest first. What's new shows the notes after previous.\" + read, \"follow.agent-act\", {}, []],",
108
- " [\"updates_status\", \"Read Settings → General: installed version and install kind, mode (auto|notify|off), channel (stable|beta), newest version per channel, last and next check, phase (current, available, waiting, installing, settling, updated, rolled-back, install-failed, untrusted), notes for the pending version, install history, and move (2.0's one-time move to its new plugin id: phase none|waiting|moving|moved|rolled-back|failed|manual, with the reason).\" + read, \"follow.agent-act\", {}, []],",
107
+ " [\"release_notes\", \"Read Follow-up's release notes: the installed version, the version it updated from (previous) and when (updatedAt, ms), and every shipped version's notes, newest first. What's new shows the notes after previous, once per device, unless enable_whats_new is off (set_updates).\" + read, \"follow.agent-act\", {}, []],",
108
+ " [\"updates_status\", \"Read Settings → General: installed version and install kind, mode (auto|notify|off), channel (stable|beta), enable_whats_new, newest version per channel, last and next check, phase (current, available, waiting, installing, settling, updated, rolled-back, install-failed, untrusted), notes for the pending version, install history, and move (2.0's one-time move to its new plugin id: phase none|waiting|moving|moved|rolled-back|failed|manual, with the reason).\" + read, \"follow.agent-act\", {}, []],",
109
109
  " [\"check_updates\", \"Ask the registry for a newer Follow-up now, like Check now. Works when updates are Off. Calls a few seconds apart share one request; call it only when asked. Returns updates_status.\", \"follow.agent-act\", {}, []],",
110
- " [\"set_updates\", \"Change how Follow-up updates, like Settings → General: { mode: auto|notify|off, channel: stable|beta }.\" + ask, \"follow.agent-act\", { mode: { type: \"string\", enum: [\"auto\", \"notify\", \"off\"] }, channel: { type: \"string\", enum: [\"stable\", \"beta\"] }, ...planned }, []],",
110
+ " [\"set_updates\", \"Change how Follow-up updates, like Settings → General: { mode: auto|notify|off, channel: stable|beta, enable_whats_new: show What's new once after an update that brings new release notes (betas never; off records each update as seen) }.\" + ask, \"follow.agent-act\", { mode: { type: \"string\", enum: [\"auto\", \"notify\", \"off\"] }, channel: { type: \"string\", enum: [\"stable\", \"beta\"] }, enable_whats_new: boolean, ...planned }, []],",
111
111
  " [\"install_update\", \"Install a newer Follow-up, like Install now: { version } from updates_status. It waits for a quiet moment (no agent mid-turn) unless anyway: true. Rolled back automatically if the new version doesn't come up. Never installs a version whose provenance failed.\" + ask, \"follow.agent-act\", { version: string, anyway: boolean, ...planned }, [\"version\"]],",
112
112
  " [\"retry_move\", \"Try Follow-up's move to its new plugin id again, like Settings → General's Try again, after updates_status shows move.phase rolled-back or failed. It waits for a quiet moment like an update and rolls back by itself if the new id doesn't come up.\" + ask, \"follow.agent-act\", { ...planned }, []],",
113
113
  " [\"trust_bypass_status\", \"Read how many permission prompts trust bypass approved today, and the latest ones.\" + read, \"follow.agent-act\", {}, []],",
package/server/mcp.mjs CHANGED
@@ -102,10 +102,10 @@ const actionTools = [
102
102
  ["set_task_trigger", "Schedule a task to run now, on merge or on deploy (trigger { event, delayDays } or null), with afterPrs: { workspaceId, obligationId, expectedRevision, trigger, afterPrs }." + ask, "follow.agent-act", { workspaceId: string, obligationId: string, expectedRevision: { type: "integer", minimum: 0 }, trigger, afterPrs: array, ...planned }, []],
103
103
  ["pr_controls", "Read a PR's merge controls as the PR sheet shows them (Send to Paseo pairing, Graphite in Chrome): { workspaceId, prKey }." + read, "follow.agent-act", { workspaceId: string, prKey }, ["workspaceId", "prKey"]],
104
104
  ["browser_status", "Read whether Send to Paseo is paired and which repositories it may control." + read, "follow.agent-act", {}, []],
105
- ["release_notes", "Read Follow-up's release notes: the installed version, the version it updated from (previous) and when (updatedAt, ms), and every shipped version's notes, newest first. What's new shows the notes after previous." + read, "follow.agent-act", {}, []],
106
- ["updates_status", "Read Settings → General: installed version and install kind, mode (auto|notify|off), channel (stable|beta), newest version per channel, last and next check, phase (current, available, waiting, installing, settling, updated, rolled-back, install-failed, untrusted), notes for the pending version, install history, and move (2.0's one-time move to its new plugin id: phase none|waiting|moving|moved|rolled-back|failed|manual, with the reason)." + read, "follow.agent-act", {}, []],
105
+ ["release_notes", "Read Follow-up's release notes: the installed version, the version it updated from (previous) and when (updatedAt, ms), and every shipped version's notes, newest first. What's new shows the notes after previous, once per device, unless enable_whats_new is off (set_updates)." + read, "follow.agent-act", {}, []],
106
+ ["updates_status", "Read Settings → General: installed version and install kind, mode (auto|notify|off), channel (stable|beta), enable_whats_new, newest version per channel, last and next check, phase (current, available, waiting, installing, settling, updated, rolled-back, install-failed, untrusted), notes for the pending version, install history, and move (2.0's one-time move to its new plugin id: phase none|waiting|moving|moved|rolled-back|failed|manual, with the reason)." + read, "follow.agent-act", {}, []],
107
107
  ["check_updates", "Ask the registry for a newer Follow-up now, like Check now. Works when updates are Off. Calls a few seconds apart share one request; call it only when asked. Returns updates_status.", "follow.agent-act", {}, []],
108
- ["set_updates", "Change how Follow-up updates, like Settings → General: { mode: auto|notify|off, channel: stable|beta }." + ask, "follow.agent-act", { mode: { type: "string", enum: ["auto", "notify", "off"] }, channel: { type: "string", enum: ["stable", "beta"] }, ...planned }, []],
108
+ ["set_updates", "Change how Follow-up updates, like Settings → General: { mode: auto|notify|off, channel: stable|beta, enable_whats_new: show What's new once after an update that brings new release notes (betas never; off records each update as seen) }." + ask, "follow.agent-act", { mode: { type: "string", enum: ["auto", "notify", "off"] }, channel: { type: "string", enum: ["stable", "beta"] }, enable_whats_new: boolean, ...planned }, []],
109
109
  ["install_update", "Install a newer Follow-up, like Install now: { version } from updates_status. It waits for a quiet moment (no agent mid-turn) unless anyway: true. Rolled back automatically if the new version doesn't come up. Never installs a version whose provenance failed." + ask, "follow.agent-act", { version: string, anyway: boolean, ...planned }, ["version"]],
110
110
  ["retry_move", "Try Follow-up's move to its new plugin id again, like Settings → General's Try again, after updates_status shows move.phase rolled-back or failed. It waits for a quiet moment like an update and rolls back by itself if the new id doesn't come up." + ask, "follow.agent-act", { ...planned }, []],
111
111
  ["trust_bypass_status", "Read how many permission prompts trust bypass approved today, and the latest ones." + read, "follow.agent-act", {}, []],
package/server/updater.ts CHANGED
@@ -129,9 +129,10 @@ export class Updater {
129
129
  /** A turn started or ended somewhere: if an update is waiting for a quiet moment, look again. */
130
130
  activity(): void { void this.d.read().then(f => { if (f.ready) return this.evaluate(); }).catch(() => undefined); }
131
131
 
132
- async setSettings(change: { mode?: UpdateMode; channel?: Channel }): Promise<void> {
132
+ async setSettings(change: { mode?: UpdateMode; channel?: Channel; enable_whats_new?: boolean }): Promise<void> {
133
133
  const file = await this.d.read();
134
- const next: UpdatesFile = { ...file, ...(change.mode ? { mode: change.mode } : {}), ...(change.channel ? { channel: change.channel } : {}) };
134
+ const next: UpdatesFile = { ...file, ...(change.mode ? { mode: change.mode } : {}), ...(change.channel ? { channel: change.channel } : {}),
135
+ ...(typeof change.enable_whats_new === "boolean" ? { enable_whats_new: change.enable_whats_new } : {}) };
135
136
  // A channel or mode change re-decides what's waiting.
136
137
  if (change.channel && change.channel !== file.channel) delete next.ready;
137
138
  if (change.mode && change.mode !== "auto" && next.ready && !next.ready.manual) delete next.ready;
@@ -262,20 +263,20 @@ export class Updater {
262
263
  }
263
264
 
264
265
  async view(): Promise<UpdatesView> {
265
- const { file, me, mode, channel } = await this.settings();
266
+ const { file, me, mode, channel, enable_whats_new } = await this.settings();
266
267
  const snap = await this.d.registry.snapshot();
267
268
  const now = this.now();
268
269
  const events = await readEvents(this.d.directory);
269
270
  const channels = { stable: offerVersion("stable", snap), beta: offerVersion("beta", snap) };
270
- const base = { version: me.version, installKind: me.installKind, mode, channel, channels, checkedAt: snap.okAt, registryError: snap.error,
271
+ const base = { version: me.version, installKind: me.installKind, mode, channel, enable_whats_new, channels, checkedAt: snap.okAt, registryError: snap.error,
271
272
  nextCheckAt: mode === "off" || me.installKind !== "npm" ? null : (snap.checkedAt ?? now) + CHECK_INTERVAL_MS, pendingNotes: [] as UpdatesView["pendingNotes"], history: historyOf(events) };
272
273
  const phase = await this.phase(file, me.version, mode, channel, snap, events, now);
273
274
  const dismissed = new Set(file.dismissed ?? []);
274
275
  let notice: UpdatesView["notice"] = null;
275
276
  if (me.installKind === "npm") {
276
277
  if (phase.kind === "rolled-back") notice = { id: `rolled-back:${phase.version}`, kind: "rolled-back", version: phase.version, from: phase.from };
277
- // Only a new major earns a Home notice (announcesUpdate, the one rule for update prompts); any other available
278
- // version stays a quiet row in Settings → General. The rollback notice reports a failure, not an update.
278
+ // Every newer stable earns a Home notice in Tell me mode; prereleases stay in Settings → General.
279
+ // The rollback notice reports a failure, not an available update.
279
280
  else if (phase.kind === "available" && mode === "notify" && announcesUpdate(me.version, phase.version)) notice = { id: `available:${phase.version}`, kind: "available", version: phase.version, from: null };
280
281
  if (notice && dismissed.has(notice.id)) notice = null;
281
282
  }
package/server/updates.ts CHANGED
@@ -7,6 +7,8 @@ import type { UpdateMode } from "../shared/updates";
7
7
  export type UpdatesFile = {
8
8
  mode?: UpdateMode;
9
9
  channel?: Channel;
10
+ /** Show What's new after an update (Settings → General); absent means on. Off records each version as seen quietly. */
11
+ enable_whats_new?: boolean;
10
12
  /** Home notices the developer closed, by id. */
11
13
  dismissed?: string[];
12
14
  /** A newer version allowed to install, waiting for a quiet moment. `manual`: Install now asked for it. */
@@ -39,7 +41,7 @@ export class UpdatesStore {
39
41
  * Defaults: the channel follows the installed version. An existing install starts at Tell me; a fresh one at Install
40
42
  * automatically, which setup shows pre-selected and saves when passed or skipped.
41
43
  */
42
- export function settingsOf(file: UpdatesFile, version: string, fallback: UpdateMode = "notify"): { mode: UpdateMode; channel: Channel } {
43
- return { mode: file.mode ?? fallback, channel: isChannel(file.channel) ? file.channel : defaultChannel(version) };
44
+ export function settingsOf(file: UpdatesFile, version: string, fallback: UpdateMode = "notify"): { mode: UpdateMode; channel: Channel; enable_whats_new: boolean } {
45
+ return { mode: file.mode ?? fallback, channel: isChannel(file.channel) ? file.channel : defaultChannel(version), enable_whats_new: file.enable_whats_new !== false };
44
46
  }
45
47
 
@@ -119,48 +119,52 @@ export type WhatsNewInput = {
119
119
  previous: string | null;
120
120
  /** Onboarding is showing or not finished: never cover it. */
121
121
  onboarding: boolean;
122
+ /** Settings → General's "Show What's new after updates" (`enable_whats_new`); absent means on. */
123
+ enabled?: boolean;
122
124
  notes: readonly ReleaseNote[];
123
125
  };
124
126
  export type WhatsNew =
125
127
  | { show: true; notes: ReleaseNote[] }
126
- /** `record` is the version to store as seen without showing anything (first install, downgrade, nothing new). */
127
- | { show: false; reason: "first-run" | "onboarding" | "seen" | "older" | "not-major" | "no-notes"; record: string | null };
128
+ /**
129
+ * `record` is the version to store as seen without showing anything (first install, downgrade, a beta, the setting
130
+ * off, nothing new).
131
+ */
132
+ | { show: false; reason: "first-run" | "onboarding" | "seen" | "older" | "off" | "prerelease" | "no-notes"; record: string | null };
128
133
 
129
134
  /**
130
- * The major a version belongs to once released: a beta of X.0.0 (2.0.0-beta.1) is still before X, while a release
131
- * candidate (2.0.0-rc.0) is X: it carries X's notes, so 1.x to rc.0 announces 2.0 once, and rc.N to X.0.0 doesn't again.
135
+ * Home's "Follow-up X is available" line (Tell me mode, server/updater.ts) announces every newer stable release.
136
+ * Prereleases stay in Settings → General, including major release candidates. A first install (no `from`), an
137
+ * unchanged version and a downgrade are never announced. What's new has its own notes-based rule (`whatsNew`).
132
138
  */
133
- function releasedMajor(v: string): number | null {
134
- const p = parseVersion(v);
135
- if (!p) return null;
136
- return p.pre.length && p.minor === 0 && p.patch === 0 && !isMajorRc(v) ? p.major - 1 : p.major;
139
+ export function announcesUpdate(from: string | null, to: string): boolean {
140
+ if (!from || !parseVersion(from)) return false;
141
+ const target = parseVersion(to);
142
+ return target != null && target.pre.length === 0 && compareVersions(to, from) > 0;
137
143
  }
138
144
 
139
145
  /**
140
- * The one rule for every prompt Follow-up makes about its own updates (the What's new sheet, and any update notice):
141
- * only a newly released major version earns one (1.x to 2.0). Betas, minors and patches are recorded quietly; their
142
- * changes wait in changes/ and ship in the next stable release's notes. A first install (no `from`) is never announced.
146
+ * A beta (any prerelease but a major's rc, which carries the major's curated section). Betas ship no notes of their
147
+ * own in the app, so What's new records them quietly; the next stable shows everything since the device last looked.
143
148
  */
144
- export function announcesUpdate(from: string | null, to: string): boolean {
145
- if (!from) return false;
146
- const a = releasedMajor(from), b = releasedMajor(to);
147
- return a != null && b != null && b > a;
148
- }
149
+ export const quietRelease = (version: string): boolean => (parseVersion(version)?.pre.length ?? 0) > 0 && !isMajorRc(version);
149
150
 
150
151
  /**
151
- * Whether this device shows "What's new" now. With no baseline at all (no device record and no previous daemon
152
- * version) this is a first install: onboarding covers it, so the installed version is recorded silently. Onboarding
153
- * wins over the sheet and leaves the stored version alone, so the sheet can come after onboarding ends. Only a new
154
- * major opens it (announcesUpdate); any other update records the installed version silently.
152
+ * Whether this device shows "What's new" now (invariant `whats-new-after-every-stable-update`): What's new opens after a stable update that brings new release notes, unless the switch is off; betas never do
153
+ * (only stables carry notes). New means a CHANGELOG section newer than the version this device last saw; with none, no
154
+ * sheet ("no-notes"). A major's rc carries the major's section and counts as its release. Quiet, recording the
155
+ * installed version: a first install (no baseline at all; onboarding covers it), a downgrade, a beta, and the switch
156
+ * off (so turning it back on never brings old notes). Onboarding wins over the
157
+ * sheet and leaves the stored version alone, so the sheet can come after onboarding ends.
155
158
  */
156
- export function whatsNew({ installed, deviceSeen, previous, onboarding, notes }: WhatsNewInput): WhatsNew {
159
+ export function whatsNew({ installed, deviceSeen, previous, onboarding, enabled = true, notes }: WhatsNewInput): WhatsNew {
157
160
  if (onboarding) return { show: false, reason: "onboarding", record: null };
158
161
  const lastSeen = deviceSeen ?? previous;
159
162
  if (!lastSeen) return { show: false, reason: "first-run", record: installed };
160
163
  const c = compareVersions(installed, lastSeen);
161
164
  if (c === 0) return { show: false, reason: "seen", record: deviceSeen ? null : installed };
162
165
  if (c < 0) return { show: false, reason: "older", record: installed };
163
- if (!announcesUpdate(lastSeen, installed)) return { show: false, reason: "not-major", record: installed };
166
+ if (!enabled) return { show: false, reason: "off", record: installed };
167
+ if (quietRelease(installed)) return { show: false, reason: "prerelease", record: installed };
164
168
  const since = notesSince(notes, lastSeen, installed);
165
169
  return since.length ? { show: true, notes: since } : { show: false, reason: "no-notes", record: installed };
166
170
  }
@@ -201,6 +205,8 @@ export const releaseNotesViewSchema = z.object({
201
205
  updatedAt: z.number().nullable(),
202
206
  /** The last version anyone on this host closed What's new for: the "seen" record for apps without local storage. */
203
207
  hostSeen: z.string().nullable(),
208
+ /** Settings → General's "Show What's new after updates" (updates.json); off records each update as seen quietly. */
209
+ enable_whats_new: z.boolean().default(true),
204
210
  /** Every shipped release note, newest first. */
205
211
  notes: z.array(releaseNoteSchema),
206
212
  });
@@ -114,6 +114,55 @@ export function nextQuestionId(questions: Pick<Question, "id">[]): string {
114
114
  export const OTHER = "other";
115
115
  export const OTHER_LABEL = "Something else";
116
116
  export const isOther = (choice: string | null | undefined) => choice === OTHER;
117
+
118
+ /** Under a disabled Send while Something else has no words yet. The brief card says the same. */
119
+ export const OWN_ANSWER_HINT = "Write your answer, then send it.";
120
+ /** Under a disabled Send while nothing is picked: names the way to write your own, too. */
121
+ export const PICK_HINT = "Pick an option, or Something else to write your own.";
122
+
123
+ /**
124
+ * What an open question's answer form holds and what its one text field means
125
+ * (`one-answer-flow-for-every-question`). Every surface that answers a question (the dialog, the panel's and Home's
126
+ * Needs you, the pill, phones) draws QuestionBody, which reads this and nothing else, so the same question is
127
+ * answered the same way wherever it is shown.
128
+ *
129
+ * The field appears only once the developer has said what the words are: their own answer (Something else, or a
130
+ * question with no options) or a note on the option they picked (Add note). A field that is a note until something
131
+ * else is clicked is the bug this replaces: words typed with nothing picked could not be sent. Should words ever be
132
+ * there with nothing picked (an unsent answer restored, say), they are the developer's own answer, never a lost note.
133
+ */
134
+ export type AnswerField = "answer" | "note";
135
+ export type AnswerDraft = {
136
+ /** The field's role, or null while it is hidden (a lettered pick, or nothing picked, without Add note). */
137
+ field: AnswerField | null;
138
+ /** Something else is the pick, marked on its radio. */
139
+ own: boolean;
140
+ /** What Send records: a letter, OTHER, the free answer, or null while Send can't send yet. */
141
+ answer: string | null;
142
+ /** Words sent with a lettered pick. */
143
+ note?: string;
144
+ placeholder: string;
145
+ /** The field's visible label, which stays once the placeholder is gone. */
146
+ heading: string | null;
147
+ label: string;
148
+ /** Says why Send is disabled, when it is. */
149
+ hint: string | null;
150
+ /** Add note is on offer: a letter is picked and no field is open. */
151
+ canAddNote: boolean;
152
+ /** Remove note is on offer: the field is a note the developer opened. */
153
+ canRemoveNote: boolean;
154
+ };
155
+ export function answerDraft(q: { id: string; options: readonly unknown[] }, s: { choice: string | null; words: string; noteOpen: boolean }): AnswerDraft {
156
+ const words = s.words.trim();
157
+ if (!q.options.length) return { field: "answer", own: false, answer: words || null, placeholder: "Your answer", heading: null, label: `Your answer to ${q.id}`, hint: null, canAddNote: false, canRemoveNote: false };
158
+ const own = isOther(s.choice) || (!s.choice && !!words);
159
+ if (own) return { field: "answer", own, answer: words ? OTHER : null, placeholder: "Your answer (required)", heading: "Your answer", label: `Your answer to ${q.id}, required`, hint: words ? null : OWN_ANSWER_HINT, canAddNote: false, canRemoveNote: false };
160
+ // A lettered pick: the field is a note, shown once asked for (or once it holds words, e.g. Something else's words
161
+ // kept when the developer picks a letter after all, so they read as the note they now are).
162
+ const field = s.choice && (s.noteOpen || !!words) ? "note" as const : null;
163
+ return { field, own, answer: s.choice, note: field && words ? words : undefined, placeholder: "Add a note for the agent (optional)", heading: s.choice ? `Note, sent with ${s.choice}` : null,
164
+ label: `Note for the agent, sent with ${s.choice} on ${q.id}, optional`, hint: s.choice ? null : PICK_HINT, canAddNote: !!s.choice && !field, canRemoveNote: field === "note" };
165
+ }
117
166
  const quoted = (words: string | undefined | null) => `"${(words ?? "").trim()}"`;
118
167
 
119
168
  /**
package/shared/updates.ts CHANGED
@@ -7,7 +7,7 @@ export type { InstallKind } from "./changelog";
7
7
  /**
8
8
  * Settings → General: the view the server sends, and the words each state shows. Pure, so every state's copy is
9
9
  * testable without rendering. Also the contract for onboarding's Updates step: it reads `follow.updates` and writes
10
- * `follow.set-updates` with `{ mode, channel }`, exactly like Settings.
10
+ * `follow.set-updates` with `{ mode, channel }`, exactly like Settings (which also writes `enable_whats_new`).
11
11
  */
12
12
 
13
13
  export const UPDATE_MODES = ["auto", "notify", "off"] as const;
@@ -15,7 +15,7 @@ export type UpdateMode = typeof UPDATE_MODES[number];
15
15
  export const MODE_LABEL: Record<UpdateMode, string> = { auto: "Install automatically", notify: "Tell me", off: "Off" };
16
16
  export const MODE_HINT: Record<UpdateMode, string> = {
17
17
  auto: "Installs new versions when no agent is using Follow-up. Checked about every 6 hours.",
18
- notify: "Shows new versions here and on Home. You choose when to install.",
18
+ notify: "Shows new versions here and new stable versions on Home. You choose when to install.",
19
19
  off: "No checks on its own. You can still check and install from here.",
20
20
  };
21
21
  export const MODE_SHORT: Record<UpdateMode, string> = { auto: "installs automatically", notify: "tells you", off: "updates off" };
@@ -44,6 +44,8 @@ export const updatesViewSchema = z.object({
44
44
  installKind: z.enum(INSTALL_KINDS),
45
45
  mode: z.enum(UPDATE_MODES),
46
46
  channel: z.enum(["stable", "beta"]),
47
+ /** What's new opens after an update that brings new release notes (stables only). Applies to every install kind. */
48
+ enable_whats_new: z.boolean().default(true),
47
49
  /** Newest version on each channel per the last check (null: nothing published, or never checked). */
48
50
  channels: z.object({ stable: z.string().nullable(), beta: z.string().nullable() }),
49
51
  checkedAt: z.number().nullable(),
@@ -61,7 +63,13 @@ export const updatesViewSchema = z.object({
61
63
  });
62
64
  export type UpdatesView = z.infer<typeof updatesViewSchema>;
63
65
 
64
- export const setUpdatesInputSchema = z.strictObject({ mode: z.enum(UPDATE_MODES).optional(), channel: z.enum(["stable", "beta"]).optional() });
66
+ export const setUpdatesInputSchema = z.strictObject({ mode: z.enum(UPDATE_MODES).optional(), channel: z.enum(["stable", "beta"]).optional(), enable_whats_new: z.boolean().optional() });
67
+ export type UpdatesChange = z.infer<typeof setUpdatesInputSchema>;
68
+ /** Settings → General's What's new switch: its label and the hint for each state. */
69
+ export const WHATS_NEW_LABEL = "Show What's new after updates";
70
+ export const whatsNewHint = (on: boolean) => on
71
+ ? "Opens once after an update that brings new release notes. Betas stay quiet."
72
+ : "Updates install quietly. Release notes below still show every version.";
65
73
 
66
74
  const ago = (ms: number) => {
67
75
  const m = Math.round(ms / 60_000);