paseo-follow-up 2.4.0-rc.0 → 2.4.0

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
@@ -2,16 +2,16 @@
2
2
 
3
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
4
 
5
- ## 2.4.0 (2026-11-25)
5
+ ## 2.4.0 (2026-11-26)
6
6
 
7
7
  Start new work in one step, rank it by what the people you follow ask for, and use Follow-up with any agent provider, GitHub or not.
8
8
 
9
9
  - **Dispatch starts new work** from a Linear issue, a link or a sentence: Follow-up makes the workspace, starts the agent and tracks it. Agents and the Overseer can start work too once you agree.
10
- - **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities. AI priority ranks by them, Why it matters shows the note behind a rank, and urgent work nobody started shows in Needs you.
11
- - **The morning brief shows what moved** in your Linear queue and what Compass heard since you last looked, with Create PR and Plan on urgent issues that have no workspace.
10
+ - **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities. AI priority ranks by them, and the morning brief shows what moved in your Linear queue.
12
11
  - **Any provider, GitHub optional:** agents on OpenCode, Pi, Copilot, Cursor and more get Follow-up's tools, and everything but the PR features works without the GitHub CLI.
13
- - **Paste or drop images** into replies, Dispatch and the Overseer, and see **PR statistics** for the repositories you turn on.
14
- - **Tasks come due on their own** when their PR merges or their date arrives, and long stacks stay fast and easy to scan. Plus many smaller fixes.
12
+ - **PR statistics** show who opens, merges and reviews PRs, and how long PRs wait for a first review, for the repositories you turn on.
13
+ - **Setup fits your machine:** it skips what you can't use, shows each helper agent on one line, and its tour covers Dispatch.
14
+ - **Paste or drop images** into replies, Dispatch and the Overseer. Agents wait for CI without polling GitHub, and tasks come due on their own. Plus many smaller fixes.
15
15
 
16
16
  <details><summary>Full changelog since 2.3.0</summary>
17
17
 
@@ -80,6 +80,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
80
80
  - GitHub is now optional. Without the GitHub CLI, workspaces, Needs you, questions, Catch up, the Overseer, tasks and Compass all work, and setup offers GitHub instead of failing.
81
81
  - Each GitHub feature (PR status, merge, reviewers, waiting for checks, PR stats) says in one line what's missing and how to turn it on. Installing and signing in is picked up without a restart.
82
82
  - While GitHub is off, a workspace's Refresh checks for it again at once.
83
+ - Setup skips steps with nothing to set on your machine, says Follow-up works with every agent Paseo runs, waits for a provider still loading, shows each helper as one line with Change, and its tour shows Dispatch.
83
84
 
84
85
  ### Home and Needs you
85
86
 
@@ -97,6 +98,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
97
98
  - On an action card, Add note and Reply instead fit beside Done in the narrow panel. Done keeps its Ctrl ⏎ hint where there's room, and Ctrl+Enter sends Done on the chat card too.
98
99
  - Sign off & next and `/ok next` skip the rows Needs you no longer shows.
99
100
  - Report an issue and Rename title with AI also open on the screen you're looking at.
101
+ - Home with nothing followed offers Dispatch on desktop too.
100
102
 
101
103
  ### Agent's tasks
102
104
 
@@ -148,6 +150,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
148
150
 
149
151
  ### Fixes
150
152
 
153
+ - What's new shows the bold in release notes, and a version's one-line preview no longer shows markdown.
151
154
  - Dispatch opens again after you visit Home a second time. It used to land on Home with nothing open.
152
155
  - Asking the Overseer to start workspaces in chat works again, including "create workspaces for these" with several issues. It no longer asks you again on a card.
153
156
  - Workspaces with very long stacks work again: PR status, Merge when ready and Add reviewers no longer fail with "Too big: expected array to have <=50 items" past 50 PRs.
@@ -1,4 +1,5 @@
1
1
  import { memo, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react";
2
+ import { NEW_NAME } from "../shared/new-name";
2
3
  import { View, type FlatList as NativeFlatList } from "react-native";
3
4
  import { Pressable, Text } from "./text";
4
5
  import { Icon, FlatList } from "@getpaseo/plugin/client/ui";
@@ -130,7 +131,7 @@ export function HomeList({ model, theme, dense = false, touch, selectedKey, onSe
130
131
  letterSpacing: item.key === "l:archived" && !touch ? 0.6 : 0, textTransform: item.key === "l:archived" && !touch ? "uppercase" : "none", paddingHorizontal: dense ? 8 : 16, ...(item.key === "l:older" && touch ? { paddingLeft: TOUCH_ROW_TEXT } : null), paddingTop: 12, paddingBottom: 4 }}>{item.text}</Text>;
131
132
  case "empty": return <View accessibilityRole="summary" style={{ marginHorizontal: 16, marginTop: 20, gap: 6 }}>
132
133
  <Text accessibilityRole="header" style={{ color: c.foreground, fontSize: 17, lineHeight: 23, fontWeight: "600" }}>Nothing followed yet</Text>
133
- <Text style={{ color: c.foregroundMuted, fontSize: 14, lineHeight: 20 }}>Follow a workspace from its Follow-up panel, or turn a project on in Settings so its workspaces join on their own. They show up here once their agents work.</Text>
134
+ <Text style={{ color: c.foregroundMuted, fontSize: 14, lineHeight: 20 }}>{`Workspaces show up here once their agents work. Start one with ${NEW_NAME}, from an issue, a PR or your words.`}</Text>
134
135
  {emptyAction ? <View style={{ flexDirection: "row", marginTop: 6 }}>{emptyAction}</View> : null}
135
136
  </View>;
136
137
  case "slot": return <View style={{ paddingVertical: 10 }}>{afterNeeds}</View>;
package/client/home.tsx CHANGED
@@ -290,7 +290,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
290
290
  // Phones: the setup offer goes after the Needs-you group when there is one, so the first ask stays high.
291
291
  raised={<NobodyRows theme={theme} compact={compact} data={queue} onDismissed={deps.sources.extras.refreshQueue} />}
292
292
  afterNeeds={compact && model.needs > 0 && props.onboarding?.offer ? <SetupOffer theme={theme} compact view={props.onboarding} /> : undefined}
293
- emptyAction={compact ? <Button theme={theme} compact kind="secondary" icon="Settings" title="Project settings" onPress={deps.openSettings} /> : undefined}
293
+ emptyAction={<Button theme={theme} compact={compact} kind="primary" icon="Plus" title={NEW_NAME} onPress={() => openNew()} />}
294
294
  top={<ListTop theme={theme} dense={compact} title={compact ? undefined : <ListHeader theme={theme} compact={compact} onSettings={deps.openSettings} onKeys={() => setKeysOpen(v => !v)} onStats={openStats} onNew={() => openNew()} newLabel={newLabel} />}>
295
295
  {/* zIndex: on web every View is its own stacking context, so the sort menu only paints and hit-tests above the
296
296
  strip and meters below if this row sits above them. */}
@@ -44,8 +44,10 @@ export function useAgentSettings() {
44
44
  /** Settings' per-row More: what its toggle says (it names what's inside) and what it shows. */
45
45
  export type JobExtra = { label: (r: RoleView) => string | null; render: (r: RoleView, save: (entry: SavedRole | null) => void, busy: boolean) => ReactNode };
46
46
 
47
- export function JobRows({ theme, compact, order, extra, preselect = false }: {
47
+ export function JobRows({ theme, compact, order, extra, preselect = false, brief = false }: {
48
48
  theme: Theme; compact: boolean; order: readonly AgentRole[];
49
+ /** Setup only (Q161): one line per helper, its model and a Change link that opens the pickers. */
50
+ brief?: boolean;
49
51
  /** Settings only: controls behind each row's More (limits, schedule, permissions, Reset to defaults). */
50
52
  extra?: JobExtra;
51
53
  /** Setup only: fill in the recommendation for jobs with nothing saved whose default can't run here. */
@@ -104,7 +106,8 @@ export function JobRows({ theme, compact, order, extra, preselect = false }: {
104
106
  {roles.map((r, i) => {
105
107
  const field = SWITCH[r.role];
106
108
  const on = field && display.status === "ready" ? display.values[field] !== false : null;
107
- return <JobRow key={r.role} first={i === 0} row={rows[i]} r={r} catalog={catalog?.providers ?? []} loading={!catalog} theme={theme} compact={compact} busy={busy}
109
+ const Line = brief ? JobLine : JobRow;
110
+ return <Line key={r.role} first={i === 0} row={rows[i]} r={r} catalog={catalog?.providers ?? []} loading={!catalog} theme={theme} compact={compact} busy={busy}
108
111
  open={open === r.role} onToggle={() => setOpen(open === r.role ? null : r.role)}
109
112
  // A job no available provider can run (needsGuard) shows off, and its notice says why; the setting is kept.
110
113
  enabled={field ? (rows[i]!.blocked ? false : on) : undefined} onEnable={field && display.status === "ready" && !rows[i]!.blocked ? v => void display.save({ ...display.values, [field]: v }, display.revision).catch(e => toast.error(errorText(e))) : undefined}
@@ -171,6 +174,47 @@ export function JobRow({ row, r, catalog, loading, theme, compact, busy, open, o
171
174
  </View>;
172
175
  }
173
176
 
177
+ /**
178
+ * Setup's row (Q161): the helper, the model it will use and Change, on one line on desktop (the switch at its end);
179
+ * a phone puts the model and Change under the name. Change opens the same pickers as Settings. Only a warning (it
180
+ * can't run) adds a line, with its one way back; what each helper does and needs stays in Settings → Agents.
181
+ */
182
+ export function JobLine({ row, r, catalog, loading, theme, compact, busy, open, onToggle, enabled, onEnable, save, first }: Parameters<typeof JobRow>[0]) {
183
+ const c = theme.colors; const t = text(c, compact);
184
+ const off = enabled === false;
185
+ const use = row.rec && !row.recommended ? () => save(recommendedEntry(r, row.rec!)) : null;
186
+ const warning = row.notice?.tone === "warning" ? row.notice : null;
187
+ const pick = loading ? "Reading your providers…" : row.blocked ? row.pick : `${row.pick}${row.recommended ? " · Recommended" : ""}`;
188
+ const toggle = enabled !== undefined && <Switch theme={theme} compact={compact} label={row.blocked ? "Unavailable" : enabled ? "On" : "Off"} accessibilityLabel={row.title} hint={row.blocked ? row.notice?.text : undefined} value={enabled} disabled={!onEnable} onChange={v => onEnable?.(v)} />;
189
+ const change = !loading && !row.blocked && <Pressable accessibilityRole="button" accessibilityLabel={`${row.title} model: ${row.pick}. Change`} accessibilityState={{ expanded: open, disabled: busy }} aria-expanded={open}
190
+ disabled={busy && !open} onPress={onToggle} hitSlop={compact ? 12 : 8} style={{ minHeight: compact ? 32 : 24, justifyContent: "center" }}>
191
+ <Text style={[t.label, { fontSize: 13, textDecorationLine: "underline" }]}>{open ? "Done" : "Change"}</Text>
192
+ </Pressable>;
193
+ const model = <View style={{ flexDirection: "row", alignItems: "center", gap: 12, flex: 1, minWidth: 0, opacity: off ? 0.6 : 1 }}>
194
+ {loading && <Spinner color={c.foregroundMuted} size={12} />}
195
+ {/* Wraps, never cut: "Recommended" is what this line is for (Q161), and a provider's name can be long. */}
196
+ <Text numberOfLines={2} style={[t.meta, { flex: 1 }]}>{pick}</Text>
197
+ {change}
198
+ </View>;
199
+ return <View style={{ borderTopWidth: first ? 0 : 1, borderTopColor: c.border, paddingHorizontal: compact ? 14 : 16, paddingVertical: compact ? 6 : 12, gap: compact ? 0 : 6 }}>
200
+ {compact
201
+ ? <><View style={{ flexDirection: "row", alignItems: "center", gap: 10, minHeight: 40 }}><Text accessibilityRole="header" style={[t.label, { flex: 1 }]}>{row.title}</Text>{toggle}</View>{model}</>
202
+ : <View style={{ flexDirection: "row", alignItems: "center", gap: 12, minHeight: 32 }}>
203
+ <Text accessibilityRole="header" style={[t.label, { width: 104 }]}>{row.title}</Text>
204
+ {model}
205
+ {/* A fixed switch column, so every row's Change lines up whether or not it has a switch. */}
206
+ <View style={{ minWidth: 84, alignItems: "flex-end" }}>{toggle}</View>
207
+ </View>}
208
+ {warning && <View style={{ gap: 6, alignItems: "flex-start", paddingLeft: compact ? 0 : 116, paddingBottom: compact ? 8 : 0 }}>
209
+ <Text accessibilityRole="alert" style={[t.meta, { fontSize: 12, lineHeight: 16, color: c.statusWarning }]}>{warning.text}</Text>
210
+ {use && <Button theme={theme} compact={compact} kind="secondary" title="Use recommended" accessibilityLabel={`Use ${row.recPick} for ${row.title}`} disabled={busy} onPress={use} />}
211
+ </View>}
212
+ {open && !loading && <View style={{ marginTop: 4, marginLeft: compact ? 0 : 116, borderWidth: 1, borderColor: c.border, borderRadius: 10, overflow: "hidden" }}>
213
+ <RolePickers r={r} catalog={catalog} busy={busy} save={save} />
214
+ </View>}
215
+ </View>;
216
+ }
217
+
174
218
  /** Provider, Model and Effort: the same pickers in setup and Settings. */
175
219
  export function RolePickers({ r, catalog, busy, save }: { r: RoleView; catalog: CatalogProvider[]; busy: boolean; save: (entry: SavedRole | null) => void }) {
176
220
  const role = r.role;
@@ -4,16 +4,19 @@ import { Pressable, Text } from "./text";
4
4
  import { openExternalUrl, useRpc, useSettings } from "@getpaseo/plugin/client";
5
5
  import { Icon, copyText, useToast } from "@getpaseo/plugin/client/ui";
6
6
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
- import { followSettingsRpc, onboardingChecksRpc, onboardingRpc, setFollowSettingsRpc, setOnboardingRpc } from "../shared/contracts";
7
+ import { followSettingsRpc, onboardingChecksRpc, onboardingRpc, prWorkflowRpc, setFollowSettingsRpc, setOnboardingRpc } from "../shared/contracts";
8
8
  import { displayPreferences } from "../shared/display";
9
- import { ONBOARDING_STEPS, autoSendWrites, checksSummary, type Check, type OnboardingStep, type OnboardingView } from "../shared/onboarding";
9
+ import { autoSendWrites, checksSummary, providersReady, setupSteps, shownStep, type Check, type Checks, type OnboardingStep, type OnboardingView } from "../shared/onboarding";
10
10
  import { Button, IconButton, errorText, text, type Theme } from "./kit";
11
11
  import { ReviewerSettings } from "./reviewers";
12
12
  import { JobRows } from "./job-rows";
13
13
  import { DockedPane } from "./docked-pane";
14
14
  import { SETUP_ORDER } from "../shared/job-rows";
15
- import { ShippingStep } from "./shipping";
16
- import { UpdatesStep } from "./updates";
15
+ import { ShippingStep, shippingKey } from "./shipping";
16
+ import { useNewRowSetting } from "./new-entry";
17
+ import { isMac } from "../shared/search-key";
18
+ import { NEW_NAME, NEW_ROW } from "../shared/new-name";
19
+ import { UpdatesStep, useUpdates } from "./updates";
17
20
  import { Spinner, useReducedMotion } from "./motion";
18
21
  import { raised, runningColor, tint, withAlpha, type Colors } from "./theme";
19
22
 
@@ -60,24 +63,40 @@ function bottomPad(compact: boolean): ViewStyle {
60
63
  export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: boolean; view: OnboardingView; deps: SetupDeps }) {
61
64
  const c = theme.colors; const t = text(c);
62
65
  const act = useRpc(setOnboardingRpc); const cache = useQueryClient(); const toast = useToast();
63
- const [step, setStep] = useState<OnboardingStep>(view.step);
64
- const index = ONBOARDING_STEPS.indexOf(step);
66
+ const [saved, setStep] = useState<OnboardingStep>(view.step);
65
67
  const scroll = useRef<NativeScrollView>(null);
66
68
  const follow = useFollowSettings();
67
69
  // Checks start on the first frame so step 2 usually opens with its answers in. One cached call, never polled.
68
70
  const checks = useChecks();
71
+ // Which steps this host has something for (setupSteps): GitHub signed in, repositories seen, an npm install. The
72
+ // reads are the ones those steps make anyway, started here so the count is right by the time they come up.
73
+ const readShipping = useRpc(prWorkflowRpc);
74
+ const shipping = useQuery({ queryKey: shippingKey, queryFn: () => readShipping({}), staleTime: 60_000 });
75
+ const updates = useUpdates();
76
+ const gh = checks.data?.checks.find(row => row.id === "gh");
77
+ const live = useMemo(() => setupSteps({
78
+ github: !gh ? null : gh.state === "ok" ? true : gh.state === "off" ? false : null,
79
+ repos: shipping.data ? shipping.data.repos.length : null,
80
+ npm: updates.data ? updates.data.installKind === "npm" : null,
81
+ providers: providersReady(checks.data?.checks),
82
+ }), [gh?.state, shipping.data?.repos.length, updates.data?.installKind, providersReady(checks.data?.checks)]);
83
+ // Once past the checks the list holds still: a late answer never takes away a step the developer is on or has seen.
84
+ const frozen = useRef<OnboardingStep[] | null>(null);
85
+ const steps = frozen.current ?? live;
86
+ const step = shownStep(saved, steps);
87
+ const index = steps.indexOf(step);
69
88
  const move = useMutation({
70
89
  mutationFn: (input: Parameters<typeof act>[0]) => act(input),
71
90
  onSuccess: next => { if (!next.show) cache.setQueryData(onboardingKey, next); },
72
91
  onError: error => toast.error(errorText(error)),
73
92
  });
74
- const go = (next: OnboardingStep) => { setStep(next); scroll.current?.scrollTo({ y: 0, animated: false }); move.mutate({ action: "step", step: next }); };
93
+ const go = (next: OnboardingStep) => { if (step === "checks" && next !== "intro") frozen.current = steps; else if (next === "intro" || next === "checks") frozen.current = null; setStep(next); scroll.current?.scrollTo({ y: 0, animated: false }); move.mutate({ action: "step", step: next }); };
75
94
  const finish = () => move.mutate({ action: "finish" }, { onSuccess: () => {
76
95
  const n = follow.data?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? 0;
77
96
  toast.show(n ? `Set up. Following ${n} workspace${n === 1 ? "" : "s"}.` : "Set up. Follow-up starts with your next workspace.", { variant: "success" });
78
97
  } });
79
98
  const skip = () => move.mutate({ action: "skip" }, { onSuccess: () => toast.show("Setup skipped. Set it up any time from Follow-up settings, General.") });
80
- const last = index === ONBOARDING_STEPS.length - 1;
99
+ const last = index === steps.length - 1;
81
100
  const failing = step === "checks" && checks.data ? checksSummary(checks.data.checks).state === "fail" : false;
82
101
 
83
102
  const body = step === "intro" ? <IntroStep theme={theme} compact={compact} follow={follow.data ?? null} />
@@ -90,32 +109,32 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
90
109
  : <TourStep theme={theme} compact={compact} />;
91
110
  const lead: Record<OnboardingStep, string> = {
92
111
  intro: "It follows your agents' pull requests until the work is done, sends what needs fixing back to them as repairs, and asks you only for decisions.",
93
- checks: "Helper agents run on the providers you pick. GitHub is optional: with the GitHub CLI, Follow-up also follows your PRs. Checking is free.",
112
+ checks: "Follow-up works with every agent Paseo runs. On Claude Code and Codex it also reminds agents at the end of each turn and can wait for their background jobs. GitHub is optional: with its CLI, Follow-up also follows your PRs.",
94
113
  defaults: "These are on now. Change anything here; it saves as you go, and Settings has the same switches.",
95
114
  shipping: "Follow-up merges and tracks PRs the way each repository already works. It picked these; change one if it's wrong.",
96
115
  reviewers: "When you press Add reviewers on a PR, Follow-up asks these people. Set a default for all repositories, or a list for one. Until then, PRs without reviewers show in Needs you.",
97
116
  updates: "New versions fix problems and add features. Follow-up can install them for you, at a moment when no agent is using it, and goes back to the old version if something breaks.",
98
117
  helpers: "Follow-up's own agents. They read, summarise and rank. They never change code or message anyone.",
99
- tour: "Four places worth knowing. Everything else is in Settings.",
118
+ tour: "Five places worth knowing. Everything else is in Settings.",
100
119
  };
101
120
  const column: ViewStyle = { width: "100%", maxWidth: 560, alignSelf: "center", paddingHorizontal: compact ? 16 : 24 };
102
121
 
103
122
  return <DockedPane compact={compact} scrollRef={scroll} style={{ backgroundColor: c.surface0 }} contentContainerStyle={{ paddingBottom: 24 }}
104
123
  header={<View style={[column, { flexDirection: "row", alignItems: "center", gap: 12, paddingTop: compact ? 8 : 20, paddingBottom: 8 }]}>
105
- <Progress theme={theme} index={index} onPick={i => i < index && go(ONBOARDING_STEPS[i])} />
124
+ <Progress theme={theme} index={index} steps={steps} onPick={i => i < index && go(steps[i])} />
106
125
  <Button theme={theme} compact={compact} kind="ghost" title="Skip setup" accessibilityHint="Leaves setup. Every setting keeps its current value." onPress={skip} disabled={move.isPending} />
107
126
  </View>}
108
127
  // While typing a reviewer on a phone the bar steps aside, so Continue never sits over the keyboard (DockedPane).
109
128
  dock={({ yields }) => !yields && <View style={[{ borderTopWidth: 1, borderTopColor: c.border, backgroundColor: c.surface0, paddingTop: 12 }, bottomPad(compact)]}>
110
129
  <View style={[column, { flexDirection: "row", alignItems: "center", gap: 8 }]}>
111
130
  {index > 0 && (compact
112
- ? <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(ONBOARDING_STEPS[index - 1])} />
113
- : <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(ONBOARDING_STEPS[index - 1])} />)}
131
+ ? <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(steps[index - 1])} />
132
+ : <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(steps[index - 1])} />)}
114
133
  {!compact && <View style={{ flex: 1 }} />}
115
- {step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(ONBOARDING_STEPS[index + 1])} />}
134
+ {step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(steps[index + 1])} />}
116
135
  <Button theme={theme} compact={compact} grow={compact} kind="primary" icon={last ? "Check" : undefined}
117
136
  title={last ? "Finish" : failing ? "Continue anyway" : "Continue"} loading={last && move.isPending}
118
- onPress={() => last ? finish() : go(ONBOARDING_STEPS[index + 1])} />
137
+ onPress={() => last ? finish() : go(steps[index + 1])} />
119
138
  </View>
120
139
  </View>}>
121
140
  <StepFade key={step} style={[column, { gap: compact ? 14 : 16, paddingTop: compact ? 8 : 20 }]}>
@@ -129,13 +148,13 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
129
148
  }
130
149
 
131
150
  /** "2 of 5" and one short segment per step, drawn like the stack bar but in neutral ink: progress isn't a PR state. */
132
- function Progress({ theme, index, onPick }: { theme: Theme; index: number; onPick: (i: number) => void }) {
151
+ function Progress({ theme, index, steps, onPick }: { theme: Theme; index: number; steps: readonly OnboardingStep[]; onPick: (i: number) => void }) {
133
152
  const c = theme.colors; const t = text(c);
134
- return <View style={{ flex: 1, flexDirection: "row", alignItems: "center", gap: 10 }} accessibilityRole="progressbar" accessibilityLabel={`Step ${index + 1} of ${ONBOARDING_STEPS.length}`}
135
- accessibilityValue={{ min: 1, max: ONBOARDING_STEPS.length, now: index + 1 }}>
136
- <Text style={[t.small, { minWidth: 34 }]}>{`${index + 1} of ${ONBOARDING_STEPS.length}`}</Text>
153
+ return <View style={{ flex: 1, flexDirection: "row", alignItems: "center", gap: 10 }} accessibilityRole="progressbar" accessibilityLabel={`Step ${index + 1} of ${steps.length}`}
154
+ accessibilityValue={{ min: 1, max: steps.length, now: index + 1 }}>
155
+ <Text style={[t.small, { minWidth: 34 }]}>{`${index + 1} of ${steps.length}`}</Text>
137
156
  <View style={{ flex: 1, maxWidth: 220, flexDirection: "row", gap: 3 }}>
138
- {ONBOARDING_STEPS.map((s, i) => <Pressable key={s} disabled={i >= index} onPress={() => onPick(i)} accessibilityLabel={i < index ? `Back to step ${i + 1}` : undefined}
157
+ {steps.map((s, i) => <Pressable key={s} disabled={i >= index} onPress={() => onPick(i)} accessibilityLabel={i < index ? `Back to step ${i + 1}` : undefined}
139
158
  hitSlop={{ top: 12, bottom: 12 }} style={{ flex: 1, height: 14, justifyContent: "center" }}>
140
159
  <View style={{ height: 3, borderRadius: 2, backgroundColor: i === index ? c.foreground : i < index ? withAlpha(c.foreground, 0.4) : c.border }} />
141
160
  </Pressable>)}
@@ -163,7 +182,15 @@ function useFollowSettings() {
163
182
  }
164
183
  function useChecks() {
165
184
  const read = useRpc(onboardingChecksRpc);
166
- return useQuery({ queryKey: checksKey, queryFn: () => read({}), staleTime: 60_000, refetchOnWindowFocus: false, retry: false });
185
+ const pendingSince = useRef(0);
186
+ // While Paseo is still loading a provider, ask again every few seconds (fresh), at most a minute; never otherwise.
187
+ return useQuery({ queryKey: checksKey, queryFn: () => read(pendingSince.current ? { fresh: true } : {}), staleTime: 60_000, refetchOnWindowFocus: false, retry: false,
188
+ refetchInterval: q => {
189
+ const pending = !!(q.state.data as Checks | undefined)?.checks.some(row => row.state === "pending" && row.id.startsWith("provider-"));
190
+ if (!pending) { pendingSince.current = 0; return false; }
191
+ pendingSince.current ||= Date.now();
192
+ return Date.now() - pendingSince.current < 60_000 ? 3000 : false;
193
+ } });
167
194
  }
168
195
 
169
196
  const Panel = ({ c, children }: { c: Colors; children: ReactNode }) =>
@@ -172,7 +199,7 @@ const Panel = ({ c, children }: { c: Colors; children: ReactNode }) =>
172
199
  // ---------- 1. what it is ----------
173
200
 
174
201
  const EXAMPLE = [
175
- { glyph: "CircleX", tone: "danger", line: "Checks failed on #418", caption: "Follow-up notices" },
202
+ { glyph: "CircleX", tone: "danger", line: "Checks failed on #418", caption: "Follow-up notices the failed checks" },
176
203
  { glyph: "spinner", tone: "running", line: "Repair sent to the agent · 2m", caption: "and sends it as a repair to the agent that made the PR" },
177
204
  { glyph: "CircleCheck", tone: "success", dot: "warning", line: "#418 approved", caption: "then asks you only for the decision" },
178
205
  ] as const;
@@ -261,17 +288,19 @@ function ChecksStep({ theme, compact, checks, deps }: { theme: Theme; compact: b
261
288
  const GLYPH: Record<Check["state"], string> = { ok: "CircleCheck", warn: "CircleAlert", fail: "CircleX", pending: "CircleDashed", off: "CircleMinus" };
262
289
  function CheckRow({ theme, compact, row, first, checking, deps }: { theme: Theme; compact: boolean; row: Check; first: boolean; checking: boolean; deps: SetupDeps }) {
263
290
  const c = theme.colors; const t = text(c); const toast = useToast();
264
- const [open, setOpen] = useState(false);
291
+ // The row that blocks everything (no provider at all) opens with its fix; optional and note rows fold theirs.
292
+ const [open, setOpen] = useState(row.id === "providers");
293
+ const folds = row.state === "warn" || row.state === "off";
265
294
  const color = row.state === "ok" ? c.statusSuccess : row.state === "warn" ? c.statusWarning : row.state === "fail" ? c.statusDanger : c.foregroundMuted;
266
295
  return <View accessibilityLabel={`${row.label}: ${row.detail}`} style={{ flexDirection: "row", gap: 10, paddingHorizontal: compact ? 14 : 16, paddingVertical: 12, borderTopWidth: first ? 0 : 1, borderTopColor: c.border }}>
267
296
  <View style={{ paddingTop: 1 }}>{checking ? <Spinner color={c.foregroundMuted} size={16} /> : <Icon name={GLYPH[row.state]} size={16} color={color} />}</View>
268
297
  <View style={{ flex: 1, minWidth: 0, gap: 3 }}>
269
298
  <Text style={t.label}>{row.label}</Text>
270
299
  <Text style={t.meta}>{row.detail}</Text>
271
- {row.fix && row.state === "warn" && !open && <Pressable accessibilityRole="button" accessibilityState={{ expanded: false }} onPress={() => setOpen(true)} style={{ minHeight: compact ? 44 : 28, justifyContent: "center", alignSelf: "flex-start" }}>
272
- <Text style={[t.meta, { color: c.foreground, textDecorationLine: "underline" }]}>How to fix</Text>
300
+ {row.fix && folds && !open && <Pressable accessibilityRole="button" accessibilityState={{ expanded: false }} onPress={() => setOpen(true)} style={{ minHeight: compact ? 44 : 28, justifyContent: "center", alignSelf: "flex-start" }}>
301
+ <Text style={[t.meta, { color: c.foreground, textDecorationLine: "underline" }]}>{row.state === "off" ? "How to turn it on" : "How to fix"}</Text>
273
302
  </Pressable>}
274
- {row.fix && (row.state !== "warn" || open) && <View style={{ gap: 6, marginTop: 4 }}>
303
+ {row.fix && (!folds || open) && <View style={{ gap: 6, marginTop: 4 }}>
275
304
  <Text style={[t.meta, { color: c.foreground }]}>{row.fix.text}</Text>
276
305
  {row.fix.url && <Button theme={theme} compact={compact} kind="ghost" icon="ExternalLink" title="Get the GitHub CLI" accessibilityLabel={`Get the GitHub CLI at ${row.fix.url}`} onPress={() => { void openExternalUrl(row.fix!.url!).catch(() => toast.error("Couldn't open the link here")); }} />}
277
306
  {row.fix.command && <View style={{ flexDirection: "row", alignItems: "center", gap: 6, alignSelf: "flex-start", maxWidth: "100%", paddingLeft: 10, borderRadius: 6, backgroundColor: c.surface2 }}>
@@ -327,7 +356,7 @@ function DefaultsStep({ theme, compact, held }: { theme: Theme; compact: boolean
327
356
  return <View style={{ gap: 10 }}>
328
357
  {follow.error && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusDanger }]}>{errorText(follow.error)}</Text>}
329
358
  <Panel c={c}>
330
- <SwitchRow first theme={theme} compact={compact} label="Follow every workspace" hint="New and existing workspaces, except any you turn off below." value={data?.enable_follow_every ?? null} disabled={change.isPending}
359
+ <SwitchRow first theme={theme} compact={compact} label="Follow every workspace" hint={list.length ? "New and existing workspaces, except any you turn off below." : "Every workspace, from the first one you create."} value={data?.enable_follow_every ?? null} disabled={change.isPending}
331
360
  onChange={v => change.mutate([{ enable_follow_every: v }])}>
332
361
  {list.length > 0 && <View style={{ paddingLeft: compact ? 14 : 16, paddingBottom: 6 }}>
333
362
  {shown.map(w => {
@@ -364,7 +393,7 @@ function DefaultsStep({ theme, compact, held }: { theme: Theme; compact: boolean
364
393
  function HelpersStep({ theme, compact, deps }: { theme: Theme; compact: boolean; deps: SetupDeps }) {
365
394
  const c = theme.colors; const t = text(c);
366
395
  return <View style={{ gap: 12 }}>
367
- <Panel c={c}><JobRows theme={theme} compact={compact} order={SETUP_ORDER} preselect /></Panel>
396
+ <Panel c={c}><JobRows theme={theme} compact={compact} order={SETUP_ORDER} preselect brief /></Panel>
368
397
  <View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center" }}>
369
398
  <Text style={t.meta}>Permissions and limits are in </Text>
370
399
  <Pressable accessibilityRole="link" accessibilityLabel="Open Follow-up settings, Agents" onPress={() => deps.openSettings("agents")} hitSlop={8} style={{ minHeight: compact ? 44 : 20, justifyContent: "center" }}>
@@ -382,6 +411,20 @@ function TourStep({ theme, compact }: { theme: Theme; compact: boolean }) {
382
411
  line={compact ? "Tap Follow-up at the top of any workspace: its PRs, tasks and what the agent is doing." : "The Follow-up button in a workspace's header docks its PRs, tasks and what the agent is doing beside the chat."} />
383
412
  <TourRow theme={theme} thumb={<ThumbNeeds c={theme.colors} />} title="Needs you" line="The decisions only you can make, one button each. A pill above the chat shows the same." />
384
413
  <TourRow theme={theme} thumb={<ThumbAbout c={theme.colors} />} title="Summary" line="One sentence under a workspace's title saying what it's for." />
414
+ <TourRow theme={theme} thumb={<ThumbNew c={theme.colors} />} title={NEW_NAME} line="Starts work from an issue, a PR, a link or your words: a workspace and an agent, already briefed." />
415
+ <NewRowChoice theme={theme} compact={compact} />
416
+ </View>;
417
+ }
418
+
419
+ /** The sidebar's Dispatch row (new-row-is-optional): the same switch and tip as Settings → Dispatch. */
420
+ function NewRowChoice({ theme, compact }: { theme: Theme; compact: boolean }) {
421
+ const c = theme.colors; const t = text(c);
422
+ const row = useNewRowSetting();
423
+ return <View style={{ gap: 6, paddingTop: 6 }}>
424
+ <Panel c={c}>
425
+ <SwitchRow first theme={theme} compact={compact} label={NEW_ROW.label} hint={NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value} disabled={row.saving} onChange={row.set} />
426
+ </Panel>
427
+ {row.value !== false && <Text style={t.meta}>{NEW_ROW.paseoShort}</Text>}
385
428
  </View>;
386
429
  }
387
430
 
@@ -399,6 +442,8 @@ const ThumbPanel = ({ c }: { c: Colors }) => <>{bar(c, "55%", c.foregroundMuted)
399
442
  const ThumbNeeds = ({ c }: { c: Colors }) => <View style={{ flex: 1, borderRadius: 4, borderWidth: 1, borderColor: c.statusWarning, padding: 4, gap: 3 }}>{bar(c, "70%")}<View style={{ width: 16, height: 5, borderRadius: 2, backgroundColor: c.accent }} /></View>;
400
443
  // The Summary: the title, then one quiet line under it.
401
444
  const ThumbAbout = ({ c }: { c: Colors }) => <>{bar(c, "60%", c.foregroundMuted, 4)}{bar(c, "90%")}{bar(c, "70%")}</>;
445
+ // New: a + row at the top of a sidebar, then the list under it.
446
+ const ThumbNew = ({ c }: { c: Colors }) => <><View style={{ flexDirection: "row", alignItems: "center", gap: 3 }}><Icon name="Plus" size={8} color={c.foreground} />{bar(c, "45%", c.foregroundMuted, 4)}</View>{bar(c, "80%")}{bar(c, "65%")}</>;
402
447
 
403
448
  // ---------- existing installs ----------
404
449
 
@@ -5,7 +5,7 @@ import { useRpc } from "@getpaseo/plugin/client";
5
5
  import { Icon, Modal, ScrollView } from "@getpaseo/plugin/client/ui";
6
6
  import { useQuery, useQueryClient } from "@tanstack/react-query";
7
7
  import { releaseNotesRpc, whatsNewSeenRpc } from "../shared/contracts";
8
- import { LAST_SEEN_KEY, deviceSeenFrom, recentNotes, whatsNew, type NoteBlock, type ReleaseNote, type ReleaseNotesView } from "../shared/changelog";
8
+ import { LAST_SEEN_KEY, deviceSeenFrom, inlineRuns, plainInline, recentNotes, whatsNew, type InlineRun, type NoteBlock, type ReleaseNote, type ReleaseNotesView } from "../shared/changelog";
9
9
  import { deviceStorage, viewStatus } from "../shared/settings-nav";
10
10
  import { useViewVersion } from "./view-store";
11
11
  import { Button, text, type Theme } from "./kit";
@@ -37,12 +37,16 @@ const Dot = ({ style }: { style: object }) => <Text style={style} accessibilityE
37
37
  const MeasureContext = createContext<number | undefined>(undefined);
38
38
  const useMeasure = () => { const m = useContext(MeasureContext); return m ? { maxWidth: m } : null; };
39
39
 
40
+ /** A line's text with its bold runs semibold (the weight headings use), or the plain text when nothing is bold. */
41
+ const inline = (line: string, runs?: InlineRun[]): ReactNode =>
42
+ runs ? runs.map((r, i) => r.bold ? <Text key={i} style={{ fontWeight: "600" }}>{r.text}</Text> : r.text) : line;
43
+
40
44
  /** One bullet: a small dot and its text. */
41
- function Bullet({ text: line, theme, compact }: { text: string; theme: Theme; compact: boolean }) {
45
+ function Bullet({ text: line, runs, theme, compact }: { text: string; runs?: InlineRun[]; theme: Theme; compact: boolean }) {
42
46
  const c = theme.colors; const t = text(c, compact);
43
47
  return <View style={[{ flexDirection: "row", gap: 8 }, useMeasure()]}>
44
48
  <View style={{ width: 4, height: 4, borderRadius: 2, marginTop: compact ? 8 : 7, backgroundColor: c.foregroundMuted }} />
45
- <Text style={[t.body, { flex: 1 }]}>{line}</Text>
49
+ <Text style={[t.body, { flex: 1 }]}>{inline(line, runs)}</Text>
46
50
  </View>;
47
51
  }
48
52
 
@@ -94,14 +98,14 @@ export function VersionNotes({ note, theme, compact = false, max = 8 }: { note:
94
98
  if (b.kind === "rule") return <View key={i} style={{ height: 1, backgroundColor: c.border, marginTop: 16, marginBottom: 4 }} />;
95
99
  // Section headings: semibold, one step above body (body 13/14, heading 15/17, the title role), clearly headings.
96
100
  if (b.kind === "heading") return <Text key={i} accessibilityRole="header" style={[quiet ? [t.meta, { fontWeight: "600" }] : [t.title, { fontWeight: "600", marginTop: i ? 16 : 0 }], measure]}>{b.text}</Text>;
97
- if (b.kind === "text") return <Text key={i} style={[quiet ? t.meta : i === 0 ? [t.body, lead] : t.body, measure]}>{b.text}</Text>;
98
- return <Bullet key={i} text={b.text} theme={theme} compact={compact} />;
101
+ if (b.kind === "text") return <Text key={i} style={[quiet ? t.meta : i === 0 ? [t.body, lead] : t.body, measure]}>{inline(b.text, b.runs)}</Text>;
102
+ return <Bullet key={i} text={b.text} runs={b.runs} theme={theme} compact={compact} />;
99
103
  })}
100
104
  </View>;
101
105
  }
102
106
  const items = all ? note.items : note.items.slice(0, max);
103
107
  return <View style={{ gap: 6 }}>
104
- {items.map((item, i) => <Bullet key={i} text={item} theme={theme} compact={compact} />)}
108
+ {items.map((item, i) => { const runs = inlineRuns(item); return <Bullet key={i} text={plainInline(item)} runs={runs.some(r => r.bold) ? runs : undefined} theme={theme} compact={compact} />; })}
105
109
  {!all && note.items.length > max && <Pressable accessibilityRole="button" onPress={() => setAll(true)} hitSlop={compact ? { top: 14, bottom: 14, left: 8, right: 8 } : 6}
106
110
  style={{ minHeight: compact ? 44 : undefined, justifyContent: "center", alignSelf: "flex-start" }}>
107
111
  <Text style={[t.label, { color: c.foreground, fontWeight: "600" }]}>{`Show all ${note.items.length}`}</Text>
@@ -131,7 +135,7 @@ function FoldedVersion({ note, theme, compact }: { note: ReleaseNote; theme: The
131
135
  <Icon name={open ? "ChevronDown" : "ChevronRight"} size={14} color={c.foregroundMuted} />
132
136
  <Text accessibilityRole="header" style={[t.label, { fontVariant: ["tabular-nums"], flexShrink: 0 }]}>{note.version}</Text>
133
137
  {note.date && <Text style={[t.meta, { flexShrink: 0 }]}>{fmtDate(note.date)}</Text>}
134
- {!open && <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{note.items[0] ?? note.blocks?.find(b => b.kind === "text" || b.kind === "bullet")?.text ?? ""}</Text>}
138
+ {!open && <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{note.items[0] !== undefined ? plainInline(note.items[0]) : note.blocks?.find(b => b.kind === "text" || b.kind === "bullet")?.text ?? ""}</Text>}
135
139
  </Pressable>
136
140
  {open && <View style={{ paddingLeft: 22, paddingBottom: 12 }}><VersionNotes note={note} theme={theme} compact={compact} /></View>}
137
141
  </View>;
@@ -127,7 +127,7 @@ export function ReviewerSettings({ theme, compact = false }: { theme: Theme; com
127
127
  const fallback = data.config.defaults.length ? `Uses the default: ${data.config.defaults.map(reviewerLabel).join(", ")}` : null;
128
128
  return <View style={{ gap: 8 }}>
129
129
  <View style={{ borderRadius: 10, borderWidth: 1, borderColor: c.border, backgroundColor: c.surface1, overflow: "hidden" }}>
130
- <ReviewerList first repo={null} list={data.config.defaults} theme={theme} compact={compact} fallback="Nobody. Repositories without their own list open the picker." />
130
+ <ReviewerList first repo={null} list={data.config.defaults} theme={theme} compact={compact} fallback="Nobody yet. Without a list, Add reviewers asks you who each time." />
131
131
  </View>
132
132
  {data.repos.length > 0 ? <Disclosure id="reviewers.repos" title="Repositories" summary={reposSummary(data.repos, data.config)}
133
133
  defaultOpen={!reviewersConfigured(data.config)} theme={theme} compact={compact}>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "paseo-follow-up",
3
3
  "private": false,
4
- "version": "2.4.0-rc.0",
4
+ "version": "2.4.0",
5
5
  "description": "Follows every workspace your coding agents work in until it's done: one list of what needs you.",
6
6
  "type": "module",
7
7
  "files": [
package/server/memory.ts CHANGED
@@ -131,7 +131,7 @@ export function writeHeartbeat(file: string, patch: Record<string, unknown>): Pr
131
131
  return run;
132
132
  }
133
133
 
134
- export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; sampleMs?: number; beatMs?: number }): { settler: HeapSettler; stop(): void } {
134
+ export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; sampleMs?: number; beatMs?: number }): { settler: HeapSettler; stop(): Promise<void> } {
135
135
  const settler = o.settler ?? new HeapSettler();
136
136
  let elu = performance.eventLoopUtilization();
137
137
  settler.observe(process.memoryUsage().rss / 1048576);
@@ -140,7 +140,9 @@ export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; s
140
140
  settler.observe(process.memoryUsage().rss / 1048576, performance.eventLoopUtilization(next, elu).utilization);
141
141
  elu = next;
142
142
  }, o.sampleMs ?? 5_000);
143
- const beat = setInterval(() => void writeHeartbeat(o.heartbeatFile, { memory: memoryBeat(settler) }).catch(() => undefined), o.beatMs ?? 60_000);
143
+ // The beat being written, so stop() resolves only once nothing more touches the heartbeat's folder.
144
+ let writing: Promise<unknown> = Promise.resolve();
145
+ const beat = setInterval(() => { writing = writeHeartbeat(o.heartbeatFile, { memory: memoryBeat(settler) }).catch(() => undefined); }, o.beatMs ?? 60_000);
144
146
  sample.unref?.(); beat.unref?.();
145
- return { settler, stop: () => { clearInterval(sample); clearInterval(beat); } };
147
+ return { settler, stop: async () => { clearInterval(sample); clearInterval(beat); await writing; } };
146
148
  }
@@ -90,7 +90,7 @@ export const ROLE_INFO: Record<AgentRole, { title: string; does: string }> = {
90
90
  about: { title: "Summaries", does: "One sentence under each workspace's title saying what it's for." },
91
91
  overseer: { title: "Overseer", does: "One agent you ask about all your workspaces, from Home's search. Starts only when you click Start on Home." },
92
92
  recovery: { title: "Recovery", does: "Rebuilds a workspace's tracking when Follow-up lost track of it. Runs only when you ask." },
93
- ranker: { title: "AI priority", does: "Sorts Home by what matters most, from Linear, Slack and review requests. About hourly on workdays." },
93
+ ranker: { title: "AI priority", does: "Sorts Home by what matters most, from the sources you connect (Linear, Slack, GitHub review requests). About hourly on workdays." },
94
94
  dispatch: { title: NEW_WORK, does: `Starts the work you begin from ${NEW_NAME}, unless an action picks its own agent.` },
95
95
  };
96
96
 
@@ -169,6 +169,13 @@ export function roleSummary(c: RoleConfig, labels?: { provider?: string | null;
169
169
  export type CatalogModel = { id: string; label: string; isDefault: boolean; description?: string; thinking: { id: string; label: string; isDefault: boolean }[] };
170
170
  export type CatalogProvider = { id: string; label: string; available: boolean; reason: string | null; models: CatalogModel[]; modes: { id: string; label: string }[]; defaultMode: string | null; acp?: boolean };
171
171
  export type Catalog = { providers: CatalogProvider[]; error: string | null; fetchedAt: string | null };
172
+ /** Paseo's reasons for a provider that isn't there at all; any other reason means it's there and hasn't answered yet. */
173
+ const ABSENT = /not installed|turned off|disabled|not found|doesn't have/i;
174
+ /**
175
+ * A provider Paseo hasn't settled on: still loading, or installed but not answering yet (a slow start, a timeout).
176
+ * Unknown is not off, so nothing says it's missing while it settles (setup's checks and its Helper agents step alike).
177
+ */
178
+ export const providerSettling = (p: { available: boolean; reason: string | null }) => !p.available && (p.reason === "Still loading" || (!!p.reason && !ABSENT.test(p.reason)));
172
179
 
173
180
  export const roleConfigSchema = z.object({
174
181
  role: z.enum(AGENT_ROLES), provider: z.string(), model: z.string().nullable(), thinking: z.string().nullable(), mode: z.string().nullable(), same: z.boolean(),
@@ -26,7 +26,9 @@ export const isMajorRc = (version: string): boolean => notesVersion(version) !==
26
26
  /**
27
27
  * A note's content in order. `items` keeps the bullets alone (what betas and older notes are); `blocks` adds a curated
28
28
  * section's `###` headings, paragraphs, images and rules, so an announcement (2.0.0) reads as written. Inline markdown
29
- * is reduced to its text (links to their label, no backticks or bold).
29
+ * is reduced to its text (links to their label, no backticks or italics). Bold stays bold: a paragraph or bullet with
30
+ * `**bold**` in it carries `runs` beside its plain `text`, so What's new shows the bold leads the curated notes are
31
+ * written with (2026-11-26: 2.4.0's bullets showed as plain text, and a bullets-only note showed the asterisks).
30
32
  *
31
33
  * An image's `text` is its alt text and `url` where it loads from: the app may run on a phone away from the daemon's
32
34
  * host, so images load by URL, pinned to a commit (tests/changelog.test.ts). A `#<width>x<height>` fragment on the URL
@@ -35,7 +37,7 @@ export const isMajorRc = (version: string): boolean => notesVersion(version) !==
35
37
  * it shows.
36
38
  */
37
39
  export type NoteBlock =
38
- | { kind: "heading" | "text" | "bullet" | "rule"; text: string }
40
+ | { kind: "heading" | "text" | "bullet" | "rule"; text: string; runs?: InlineRun[] }
39
41
  | { kind: "image"; text: string; url: string; aspect: number | null; width: number | null };
40
42
  const IMAGE = /^\s*!\[([^\]]*)\]\(\s*(\S+?)\s*\)\s*$/;
41
43
  /** An image line's block, or null. Only http(s) URLs: a relative path means nothing to the app. */
@@ -47,9 +49,29 @@ export function imageBlock(line: string): NoteBlock | null {
47
49
  return { kind: "image", text: plainInline(m[1]!), url: m[2]!.replace(/#.*$/, ""), aspect, width: size && aspect ? +size[1]! : null };
48
50
  }
49
51
  export type ReleaseNote = { version: string; date: string | null; items: string[]; blocks?: NoteBlock[] };
52
+ /** Links to their label, no backticks or italics markers (bold is left to the caller). */
53
+ const stripInline = (s: string): string =>
54
+ s.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/`([^`]*)`/g, "$1").replace(/(^|\W)_([^_]+)_(?=\W|$)/g, "$1$2");
55
+ const BOLD = /\*\*([^*]+)\*\*/g;
50
56
  /** Inline markdown to plain text: `[label](url)` to label, no backticks, bold or italics markers. */
51
- export const plainInline = (s: string): string =>
52
- s.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/`([^`]*)`/g, "$1").replace(/\*\*([^*]+)\*\*/g, "$1").replace(/(^|\W)_([^_]+)_(?=\W|$)/g, "$1$2").trim();
57
+ export const plainInline = (s: string): string => stripInline(s).replace(BOLD, "$1").trim();
58
+ /** A stretch of a line's text, bold or not. */
59
+ export type InlineRun = { text: string; bold?: true };
60
+ /** Inline markdown to runs: `**bold**` keeps its weight, everything else reads as plainInline has it. */
61
+ export function inlineRuns(s: string): InlineRun[] {
62
+ const runs: InlineRun[] = []; const src = s.trim(); let last = 0;
63
+ const push = (text: string, bold: boolean) => { if (text) runs.push(bold ? { text, bold: true } : { text }); };
64
+ for (const m of src.matchAll(BOLD)) { push(stripInline(src.slice(last, m.index)), false); push(stripInline(m[1]!), true); last = m.index! + m[0].length; }
65
+ push(stripInline(src.slice(last)), false);
66
+ return runs;
67
+ }
68
+ /** Sets a paragraph's or bullet's text from its markdown: plain `text`, and `runs` only when something in it is bold. */
69
+ function setInline(block: Exclude<NoteBlock, { kind: "image" }>, md: string): NoteBlock {
70
+ block.text = plainInline(md);
71
+ const runs = inlineRuns(md);
72
+ if (runs.some(r => r.bold)) block.runs = runs; else delete block.runs;
73
+ return block;
74
+ }
53
75
  const HEADING = /^##\s+v?(\S+)(?:\s+\((\d{4}-\d{2}-\d{2})\))?\s*$/;
54
76
 
55
77
  export function parseChangelog(text: string): ReleaseNote[] {
@@ -57,6 +79,8 @@ export function parseChangelog(text: string): ReleaseNote[] {
57
79
  let current: ReleaseNote | null = null;
58
80
  /** The block a continuation line joins: the last bullet, or a paragraph still open (no blank line since). */
59
81
  let open: NoteBlock | null = null;
82
+ /** The open block's markdown so far, so a wrapped line keeps its bold. */
83
+ let md = "";
60
84
  /** Inside a <details> list (a section's "Full changelog", the 1.x archive): never shown, headings in it included. */
61
85
  let folded = false;
62
86
  for (const line of text.replace(/\r\n?/g, "\n").split("\n")) {
@@ -82,12 +106,12 @@ export function parseChangelog(text: string): ReleaseNote[] {
82
106
  const bullet = /^[-*]\s+(.*)$/.exec(line);
83
107
  if (bullet) {
84
108
  current.items.push(bullet[1]!.trim());
85
- blocks.push(open = { kind: "bullet", text: plainInline(bullet[1]!) } as NoteBlock);
109
+ blocks.push(open = setInline({ kind: "bullet", text: "" }, md = bullet[1]!));
86
110
  } else if (/^\s+\S/.test(line) && open?.kind === "bullet") {
87
111
  current.items[current.items.length - 1] += ` ${line.trim()}`;
88
- open.text = `${open.text} ${plainInline(line)}`;
89
- } else if (open?.kind === "text") open.text = `${open.text} ${plainInline(line)}`;
90
- else blocks.push(open = { kind: "text", text: plainInline(line) });
112
+ setInline(open, md = `${md.trim()} ${line.trim()}`);
113
+ } else if (open?.kind === "text") setInline(open, md = `${md.trim()} ${line.trim()}`);
114
+ else blocks.push(open = setInline({ kind: "text", text: "" }, md = line));
91
115
  }
92
116
  for (const n of notes) if (!n.blocks!.some(b => b.kind !== "bullet")) delete n.blocks; // bullets only: items says it all
93
117
  return notes.sort((a, b) => compareVersions(b.version, a.version));
@@ -1,4 +1,4 @@
1
- import { EMPTY_AGENT_SETTINGS, ROLE_DEFAULTS, guardedProvider, needsGuard, ROLE_INFO, SAME_LABEL, hasSame, isJobRole, labelsFor, resolveRole, roleSummary, type AgentRole, type AgentSettingsView, type Catalog, type RoleConfig, type SavedRole } from "./agent-settings";
1
+ import { providerSettling, EMPTY_AGENT_SETTINGS, ROLE_DEFAULTS, guardedProvider, needsGuard, ROLE_INFO, SAME_LABEL, hasSame, isJobRole, labelsFor, resolveRole, roleSummary, type AgentRole, type AgentSettingsView, type Catalog, type RoleConfig, type SavedRole } from "./agent-settings";
2
2
  import { ROLE_NEED, isRecommended, recommend, type Recommendation } from "./recommend";
3
3
  import { guardAction } from "./provider-support";
4
4
  import { NEW_NAME } from "./new-name";
@@ -55,7 +55,8 @@ export function recLabel(rec: Recommendation, catalog: Catalog | null | undefine
55
55
  export function jobRow(r: RoleView, catalog: Catalog | null | undefined): JobRowModel {
56
56
  const role = r.role;
57
57
  const providers = catalog?.providers ?? [];
58
- const known = providers.length > 0 && !catalog?.error;
58
+ // A provider Paseo is still loading (or hasn't reached yet) makes the whole catalog unknown, and unknown is not off: no "can't run" yet.
59
+ const known = providers.length > 0 && !catalog?.error && !stillLoading(catalog);
59
60
  const rec = known ? recommend(role, providers) : null;
60
61
  const usable = rec && rec.source !== "none" ? rec : null;
61
62
  const recommended = !!usable && isRecommended(r, usable);
@@ -119,11 +120,16 @@ export function isReset(r: RoleView, catalog: Catalog | null | undefined): boole
119
120
  return jobRow(r, catalog).recommended && r.dailyCap === d.dailyCap && r.maxPromptChars === d.maxPromptChars && r.cadenceMinutes === d.cadenceMinutes;
120
121
  }
121
122
 
123
+ const stillLoading = (catalog: Catalog | null | undefined) => !!catalog?.providers.some(providerSettling);
124
+
122
125
  export type JobsHeader = { text: string; tone: "muted" | "warning"; action: "use" | "retry" | "check" | null; differ: number };
123
126
  /** The line above the rows, and its one action. */
124
127
  export function jobsHeader(rows: readonly JobRowModel[], catalog: Catalog | null | undefined, loading: boolean): JobsHeader {
125
128
  if (loading && !catalog) return { text: "Reading your providers…", tone: "muted", action: null, differ: 0 };
126
129
  if (catalog?.error && !catalog.providers.length) return { text: "Couldn't read Paseo's providers. The current picks still work.", tone: "warning", action: "retry", differ: 0 };
130
+ if (catalog?.providers.some(p => p.reason === "Still loading")) return { text: "Paseo is still checking your providers…", tone: "muted", action: null, differ: 0 };
131
+ const unreached = catalog?.providers.filter(providerSettling) ?? [];
132
+ if (unreached.length) return { text: `Paseo hasn't reached ${unreached.map(p => p.label).join(" or ")} yet, so these picks may change. Check again in a moment.`, tone: "muted", action: "check", differ: 0 };
127
133
  // Recovery and New work copy another agent, so they never decide whether any provider is ready.
128
134
  const picks = rows.filter(r => !hasSame(r.role));
129
135
  if (picks.length && picks.every(r => !r.rec)) return { text: "No provider in Paseo is ready, so these helpers can't run yet. Following PRs and Needs you still work.", tone: "warning", action: "check", differ: 0 };
@@ -85,9 +85,10 @@ export function listEntries({ model, closed, openProjects, pages, briefLine, res
85
85
  if (f.items.length > shown) out.push({ type: "more", key: `m:${f.project}`, project: f.project, left: f.items.length - shown });
86
86
  }
87
87
  }
88
- // Phones: nothing followed yet says so and what fills the list, instead of a blank screen under the pinned rows.
88
+ // Nothing followed yet says so and how to start, instead of a blank list under the pinned rows (a first run lands here).
89
89
  if (hits && !out.some(e => e.type === "row")) out.push({ type: "label", key: "l:none", text: "No workspace matches." });
90
- else if (touch && !filter && !hits && model.groups.every(g => !g.items.length)) out.push({ type: "empty", key: "l:nothing" });
90
+ // Only when the list has nothing at all: raised issues (Needs you's own rows) are something.
91
+ else if (!filter && !hits && model.groups.every(g => !g.items.length) && !raised) out.push({ type: "empty", key: "l:nothing" });
91
92
  return out;
92
93
  if (filter && !out.length) out.push({ type: "label", key: "l:empty", text: `Nothing in ${GROUP_TITLE[filter as HomeGroupId]} right now.` });
93
94
  return out;
@@ -21,5 +21,7 @@ export const NEW_ROW = {
21
21
  * 0.17 keeps which sidebar rows show per device in its own settings and gives plugins no way to change them or to
22
22
  * open that page (docs/dispatch.md#paseos-new-workspace), so this names the place instead of a button.
23
23
  */
24
+ /** Setup's tour: the same tip as one line (Q163). */
25
+ paseoShort: "To hide Paseo's own New workspace row, switch it off in Paseo Settings → Sidebar → Header.",
24
26
  paseo: `Paseo's own New workspace row starts an empty workspace; ${NEW_NAME} starts one from an issue, a PR or your words. To hide Paseo's row, switch off New workspace in Paseo Settings → Sidebar → Header, on each device.`,
25
27
  } as const;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { providerName } from "./agent-settings";
2
+ import { ROLE_INFO, guardedProvider, needsGuard, providerName, providerSettling as unsettled, type AgentRole } from "./agent-settings";
3
3
  import { GITHUB_ADDS, GITHUB_CLI_URL, GITHUB_LOGIN_COMMAND } from "./github-setup";
4
4
 
5
5
  /**
@@ -14,6 +14,40 @@ export const ONBOARDING_STEPS = ["intro", "checks", "defaults", "shipping", "rev
14
14
  export type OnboardingStep = typeof ONBOARDING_STEPS[number];
15
15
  export const isStep = (v: unknown): v is OnboardingStep => typeof v === "string" && (ONBOARDING_STEPS as readonly string[]).includes(v);
16
16
 
17
+ /**
18
+ * What this host has, for the steps that only mean something with it. `null` is not known yet, which keeps the step
19
+ * (unknown is not off, invariant 7).
20
+ */
21
+ export type StepFacts = { github: boolean | null; repos: number | null; npm: boolean | null; providers?: boolean | null };
22
+ /**
23
+ * The steps a developer walks on this host (every-setup-step-has-something-to-do): without the GitHub CLI signed in
24
+ * there's no PR to ship or review, so Shipping and Reviewers go; with no repository seen yet Shipping has nothing to
25
+ * pick; a copy not installed from npm updates from its checkout, so Updates goes; with no provider in Paseo there's no
26
+ * helper to pick a model for, so Helper agents goes (the checks step says what to set up). Everything a skipped step
27
+ * sets stays in Settings.
28
+ */
29
+ export function setupSteps(facts: StepFacts): OnboardingStep[] {
30
+ return ONBOARDING_STEPS.filter(step => {
31
+ if (step === "shipping") return facts.github !== false && facts.repos !== 0;
32
+ if (step === "reviewers") return facts.github !== false;
33
+ if (step === "updates") return facts.npm !== false;
34
+ if (step === "helpers") return facts.providers !== false;
35
+ return true;
36
+ });
37
+ }
38
+ /** Whether Paseo has a provider ready, from the checks: the "Agents" row means none; any ready provider means yes. */
39
+ export function providersReady(checks: readonly Check[] | null | undefined): boolean | null {
40
+ if (!checks) return null;
41
+ if (checks.some(c => c.id === "providers" && c.state !== "pending")) return false;
42
+ return checks.some(c => c.id.startsWith("provider-") && c.state === "ok") ? true : null;
43
+ }
44
+ /** Where a resumed or Back-ed flow lands when its saved step isn't shown here: the next one that is. */
45
+ export function shownStep(step: OnboardingStep, steps: readonly OnboardingStep[]): OnboardingStep {
46
+ if (steps.includes(step)) return step;
47
+ const at = ONBOARDING_STEPS.indexOf(step);
48
+ return steps.find(s => ONBOARDING_STEPS.indexOf(s) > at) ?? steps.at(-1) ?? step;
49
+ }
50
+
17
51
  /**
18
52
  * - `fresh`: no Follow-up data on this host when the worker first started with onboarding.
19
53
  * - `existing`: Follow-up ran here before (state, inbox, reviewers or agent settings on disk). Never forced on them.
@@ -186,6 +220,7 @@ export function providerChecks(catalog: { providers: ProviderInfo[]; error: stri
186
220
  const ready = catalog.providers.filter(p => p.available).map(p => p.id).sort((x, y) => rank(x) - rank(y));
187
221
  const ids = [...new Set([...KNOWN_PROVIDERS.filter(id => use[id]?.length || catalog.providers.some(p => p.id === id)), ...Object.keys(use).filter(id => use[id]?.length), ...ready])];
188
222
  const rows: Check[] = [];
223
+ const pendingAny = catalog.providers.some(unsettled);
189
224
  for (const id of ids) {
190
225
  const p = catalog.providers.find(x => x.id === id);
191
226
  const label = nameOf(catalog, id);
@@ -193,16 +228,34 @@ export function providerChecks(catalog: { providers: ProviderInfo[]; error: stri
193
228
  const usedBy = users.length ? `Used by ${joinNames(users)}.` : "Not used by any helper right now.";
194
229
  if (p?.available) { rows.push({ id: `provider-${id}`, label, state: "ok", detail: `Available. ${usedBy}`, fix: null }); continue; }
195
230
  if (p?.reason === "Still loading") { rows.push({ id: `provider-${id}`, label, state: "pending", detail: "Paseo is still checking this provider.", fix: fix("Check again in a few seconds.") }); continue; }
196
- const why = p?.reason ? ` (${p.reason})` : p ? "" : " (Paseo doesn't have it)";
197
- if (!users.length) { rows.push({ id: `provider-${id}`, label, state: "off", detail: `Not available${why}. Optional: no helper uses it.`, fix: null }); continue; }
231
+ // Installed but not answering yet (a slow start, a timeout): not missing. Never "no provider", never optional.
232
+ if (p && unsettled(p)) { rows.push({ id: `provider-${id}`, label, state: "pending", detail: `Paseo couldn't reach it yet${p.reason ? ` (${p.reason})` : ""}.`, fix: fix("Check again in a moment. If it stays, check it in Paseo's settings.") }); continue; }
233
+ // Paseo's own reason when it gives one ("Not installed", "Turned off in Paseo"), said as the sentence it is.
234
+ const why = p?.reason ? sentenceStart(p.reason) : p ? "Not available" : "Paseo doesn't have it";
235
+ // No provider at all: the one "Agents" row says what to set up, so no provider gets a row of its own (never a second alarm).
236
+ if (!ready.length && !pendingAny) continue;
237
+ if (!users.length) { rows.push({ id: `provider-${id}`, label, state: "off", detail: `${why}. Optional: no helper uses it.`, fix: null }); continue; }
198
238
  const setup = PROVIDER_FIX[id] ?? { text: `Set up ${label} on the computer running Paseo, then check again.`, command: null };
199
- const other = ready.find(x => x !== id);
200
- rows.push({ id: `provider-${id}`, label, state: "fail", detail: `Not available${why}. ${sentenceStart(joinNames(users))} won't run until it is.`,
201
- fix: other ? fix(`${setup.text} Or switch those helpers to ${nameOf(catalog, other)} in Settings → Agents.`, setup.command, "agents") : fix(setup.text, setup.command) });
239
+ // A job that runs only on Claude Code or Codex (AI priority) can't move to another provider, so it never offers to.
240
+ const guarded = users.filter(u => GUARDED_TITLES.includes(u));
241
+ const movable = users.filter(u => !GUARDED_TITLES.includes(u));
242
+ const other = ready.find(x => x !== id && (guarded.length && !movable.length ? guardedProvider(x) : true));
243
+ // Another provider runs everything else: missing this one only costs the guarded job, an optional extra.
244
+ if (!movable.length && ready.length && !ready.some(guardedProvider)) {
245
+ rows.push({ id: `provider-${id}`, label, state: "off", detail: `${why}. Optional: ${joinNames(guarded)} runs only on Claude Code or Codex.`, fix: fix(setup.text, setup.command) });
246
+ continue;
247
+ }
248
+ const switchable = guarded.length && other && !guardedProvider(other) ? movable : users;
249
+ rows.push({ id: `provider-${id}`, label, state: "fail", detail: `${why}. ${sentenceStart(joinNames(users))} won't run until it is.`,
250
+ fix: other && switchable.length ? fix(`${setup.text} Or switch ${switchable.length === users.length ? "those helpers" : joinNames(switchable)} to ${nameOf(catalog, other)} in Settings → Agents.`, setup.command, "agents") : fix(setup.text, setup.command) });
202
251
  }
203
- if (!ready.length) rows.unshift({ id: "providers", label: "Helper agents", state: "fail", detail: "No provider in Paseo is ready, so the Overseer, Summaries and AI priority can't run. Following PRs and Needs you still work.", fix: null });
252
+ // A provider Paseo is still loading isn't missing: the rows say "still checking" and the step checks again.
253
+ if (rows.some(r => r.state === "pending")) return rows;
254
+ // None at all: Paseo itself has nothing to run agents on yet. Said as the next step, not as a failure of Follow-up.
255
+ if (!ready.length) rows.unshift({ id: "providers", label: "Agents", state: "warn", detail: "Paseo has no agent provider set up yet, so there are no agents to follow and the helper agents can't run.", fix: fix("Set one up in Paseo's settings (Claude Code, Codex or any other provider Paseo runs), then check again.") });
204
256
  return rows;
205
257
  }
258
+ const GUARDED_TITLES = (Object.keys(ROLE_INFO) as AgentRole[]).filter(needsGuard).map(r => ROLE_INFO[r].title);
206
259
  const rank = (id: string) => { const i = KNOWN_PROVIDERS.indexOf(id); return i < 0 ? KNOWN_PROVIDERS.length : i; };
207
260
 
208
261
  export type ToolsInput = {
@@ -224,17 +277,20 @@ export function toolsCheck({ config, nativeAgents, hookError }: ToolsInput): Che
224
277
  row = { id: "tools", label, state: "warn", detail: `${why}, so each agent gets Follow-up's tools through a small extra process. It works, and uses a little more memory.`,
225
278
  fix: mcpOff ? fix("Optional. To serve them through Paseo instead, set this in Paseo's config.json (in Paseo's home folder) and restart Paseo.", `"daemon": { "mcp": { "enabled": true } }`) : fix("Optional. Turn Paseo tools back on for that provider in Paseo's config.json, under agents.providers.") };
226
279
  } else if (!nativeAgents) {
227
- row = { id: "tools", label, state: "pending", detail: "Checked when your first agent starts. Nothing to do.", fix: null };
280
+ // Nothing to check or do until the first agent starts: no row (every row on the checks step says something).
281
+ return hookError ? [hooksRow(hookError)] : [];
228
282
  } else row = { id: "tools", label, state: "ok", detail: `Agents get Follow-up's tools through Paseo.${seen}`, fix: null };
229
283
  const rows = [row];
230
- if (hookError) rows.push({ id: "hooks", label: "Agent instructions", state: "warn", detail: "Follow-up couldn't add its instructions for every provider. Following still works; agents just aren't reminded to report PRs.", fix: fix("Check your providers' hook settings (Claude Code and Codex have them), then restart Follow-up from Paseo's plugin settings.") });
284
+ if (hookError) rows.push(hooksRow(hookError));
231
285
  return rows;
232
286
  }
287
+ const hooksRow = (_error: string): Check => ({ id: "hooks", label: "Agent instructions", state: "warn", detail: "Follow-up couldn't add its instructions for every provider. Following still works; agents just aren't reminded to report PRs.", fix: fix("Check your providers' hook settings (Claude Code and Codex have them), then restart Follow-up from Paseo's plugin settings.") });
233
288
 
234
289
  /** The rows the checks step leads with: the worst state first is the one to fix. */
235
290
  export function checksSummary(checks: readonly Check[]): { state: CheckState; line: string } {
236
291
  const fails = checks.filter(c => c.state === "fail").length;
237
292
  const warns = checks.filter(c => c.state === "warn").length;
293
+ if (checks.some(c => c.id === "providers")) return { state: "warn", line: "Set up an agent provider in Paseo to start" };
238
294
  if (fails) return { state: "fail", line: warns ? `${fails} to fix, ${warns} to look at` : `${fails} thing${fails === 1 ? "" : "s"} to fix` };
239
295
  if (warns) return { state: "warn", line: `Ready, with ${warns} note${warns === 1 ? "" : "s"}` };
240
296
  if (checks.some(c => c.state === "pending")) return { state: "pending", line: "Ready so far" };
@@ -257,6 +313,7 @@ export const CHOICE_WRITES = {
257
313
  overseer: { settings: "display", field: "enable_overseer" },
258
314
  ranker: { settings: "display", field: "enable_ranker" },
259
315
  trustBypass: { settings: "display", field: "enable_trust_bypass" },
316
+ newSidebarRow: { settings: "display", field: "enable_new_sidebar_row" },
260
317
  updatesMode: { rpc: "follow.set-updates", field: "mode" },
261
318
  updatesChannel: { rpc: "follow.set-updates", field: "channel" },
262
319
  } as const;