paseo-follow-up 1.4.0-beta.22 → 1.4.0-beta.25

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 ADDED
@@ -0,0 +1,122 @@
1
+ # Release notes
2
+
3
+ What changed in each version of Follow-up, newest first. Follow-up shows these in "What's new" after an update, and in full from Home's last line.
4
+
5
+ ## 1.4.0-beta.25 (2026-11-10)
6
+
7
+ - A question an agent asks again no longer shows up twice in Needs you. Agents get the open question back, and existing duplicates close on update.
8
+
9
+ ## 1.4.0-beta.24 (2026-11-10)
10
+
11
+ - Claude agents now keep working while a long command runs, checking on it at least once a minute instead of ending their turn to wait. Turn it off in Settings → Agents → Wait for background jobs.
12
+ - This replaces the separate Wait plugin. While that plugin is installed, Follow-up's own Wait stays off and Settings says so.
13
+
14
+ ## 1.4.0-beta.23 (2026-11-10)
15
+
16
+ - After an update, "What's new" shows the notes for every version since you last looked, once on each device.
17
+ - Home's last line shows your Follow-up version, with the full release notes one tap away.
18
+
19
+ ## 1.4.0-beta.22 (2026-11-10)
20
+
21
+ - An agent can take over as a workspace's main agent when the main one is gone or idle, or when you ask it to. It can hand the role on too, within clear limits.
22
+ - When the main agent changes, the workspace panel shows who took over and why for a day, with Undo, and Home marks the workspace.
23
+
24
+ ## 1.4.0-beta.21 (2026-11-10)
25
+
26
+ - Agents can do everything you can click in Follow-up: read and change its settings, setup, priorities and the Overseer. Changes show a dry run first.
27
+
28
+ ## 1.4.0-beta.20 (2026-11-10)
29
+
30
+ - Follow-up is reworked for phones: Home, the decision card, the composer pill and Settings all fit a phone screen, with real tap targets.
31
+ - On the phone, only Home's search row stays pinned; the status chips and the setup offer scroll with the list.
32
+ - Home on the phone says when nothing is followed yet, and an open question now outranks "Finished".
33
+
34
+ ## 1.4.0-beta.19 (2026-11-10)
35
+
36
+ - Settings → Following → Shipping PRs sets how each repository ships PRs, and setup asks "How do you ship PRs?".
37
+
38
+ ## 1.4.0-beta.18 (2026-11-09)
39
+
40
+ - Graphite is optional: repositories that use plain GitHub PRs work fully, chosen per repository.
41
+ - On plain GitHub, the PR sheet follows GitHub's own review and check verdict.
42
+
43
+ ## 1.4.0-beta.17 (2026-11-09)
44
+
45
+ - The workspace panel names the main agent, and swapping that role has an explicit Undo.
46
+ - A main agent that closes briefly keeps its role instead of handing it to another agent. Make main agent hands it back.
47
+
48
+ ## 1.4.0-beta.16 (2026-11-09)
49
+
50
+ - Review requests are found reliably, and an account that fails to load no longer reads as "no review requests".
51
+
52
+ ## 1.4.0-beta.15 (2026-11-09)
53
+
54
+ - On a fresh install, auto-send waits until you finish or skip setup.
55
+
56
+ ## 1.4.0-beta.14 (2026-11-09)
57
+
58
+ - Getting started: a short first-run setup that checks GitHub, shows what Follow-up does on its own, and sets your defaults.
59
+
60
+ ## 1.4.0-beta.13 (2026-11-09)
61
+
62
+ - Trusted agents no longer wait on permission prompts that were already showing when Follow-up started or updated.
63
+
64
+ ## 1.4.0-beta.12 (2026-11-09)
65
+
66
+ - AI priority gives every ranked workspace a reason, and Re-rank now answers at once while ranking runs in the background.
67
+ - Rankings are steadier: a workspace whose inputs didn't change moves only a little between runs.
68
+ - Changing the ranker's model or effort in Settings re-ranks instead of keeping the old order.
69
+
70
+ ## 1.4.0-beta.11 (2026-11-09)
71
+
72
+ - Settings is split into four categories: Following, Reviewers, Agents, and Inbox & display. Tabs on desktop, a list you tap into on the phone.
73
+ - Reviewers, Projects and Workspaces fold away, with a one-line summary when folded.
74
+ - Trust bypass moved to Following → Permissions, and the phone reopens the category you used last.
75
+
76
+ ## 1.4.0-beta.10 (2026-11-09)
77
+
78
+ - Questions with several decisions let you pick every answer first, then send them all in one message.
79
+ - An answered question stays on the card, folded to what was asked and what you picked.
80
+
81
+ ## 1.4.0-beta.9 (2026-11-09)
82
+
83
+ - Trust bypass: pick agents whose tool permission prompts Follow-up approves for you.
84
+ - Secrets are masked in what it approved, and the list says "None approved yet" until it has approved something.
85
+
86
+ ## 1.4.0-beta.8 (2026-11-09)
87
+
88
+ - What's this about? sits at the top of Home's detail pane on the phone too.
89
+
90
+ ## 1.4.0-beta.7 (2026-11-09)
91
+
92
+ - AI priority: Home's Priority sort can rank workspaces from your Linear issues, Slack DMs and mentions, GitHub review requests and the weekly plan, each with a one-line reason.
93
+
94
+ ## 1.4.0-beta.6 (2026-11-09)
95
+
96
+ - Follow-up puts far less load on Paseo: it keeps one shared list of agents and workspaces instead of asking for them every few seconds.
97
+
98
+ ## 1.4.0-beta.5 (2026-11-09)
99
+
100
+ - After Follow-up updates, agents in the middle of a turn can keep using its tools instead of hitting "tool not found".
101
+
102
+ ## 1.4.0-beta.4 (2026-11-09)
103
+
104
+ - Settings → Agents: choose the provider, model and effort for What's this about?, the Overseer, recovery agents and the priority ranker.
105
+
106
+ ## 1.4.0-beta.3 (2026-11-09)
107
+
108
+ - Ask the Overseer from Home's search box or from ⌘K.
109
+
110
+ ## 1.4.0-beta.2 (2026-11-09)
111
+
112
+ - On Paseo 0.15 and later, agents get Follow-up's tools through Paseo itself, so no extra process starts for each agent.
113
+ - Older versions registered Follow-up for every Claude and Codex session on the machine. That registration is removed, with a backup of each file it touched.
114
+
115
+ ## 1.4.0-beta.1 (2026-11-09)
116
+
117
+ - What's this about?: a short AI overview of each workspace, with its linked Linear issues, PRs, Slack threads and docs.
118
+ - Reviewers per repository, plus a default list, for Add reviewer.
119
+
120
+ ## 1.4.0-beta.0 (2026-11-09)
121
+
122
+ - The Overseer: one agent you talk to about all your workspaces. It passes your asks to the agent that owns them.
package/OVERVIEW.md CHANGED
@@ -28,7 +28,7 @@ Auto-send ("Send repairs automatically") is on by default for every followed wor
28
28
 
29
29
  ### What agents can do for you
30
30
 
31
- Every root agent Paseo launches (tracked or not) gets Follow-up's action tools: `list_prs`, `add_reviewers`, `merge`, `enable_merge_when_ready`, `disable_merge_when_ready`, `send_repairs`, `set_auto_send`, `clear_hold`, `retry_batch`, `track`, `inbox_list`, `sign_off`, `snooze`, `set_finish_flags`, `set_priorities` and the read-only `workspace_about` (a workspace's overview and linked items) (external priorities for Home's Priority sort, kept in `plugin-data/follow-through/priorities.json`). Each runs the server path its button runs, with the same guards (tracked workspace, hold, PR eligibility, merge blockers), across every tracked workspace, so an orchestrating agent can act "on all" when you ask it to. Tools that act on a list, and merge, return a dry run and run only with `confirm: true` and that plan's id; merge is marked destructive and the list tools read-only. Inbox tools act on other agents only: an agent can't sign itself off. Recovery agents, contributors and subagents never get them, and the daemon re-checks the caller on each call. Each agent action is kept in the inbox's delivery ledger as `by: "agent:<id>"`; it never counts as you writing to an agent. A sign-off is still a sign-off made on your behalf, so it clears the flag. There is no tool to untrack or archive a workspace, or to put one on hold, because Follow-up has no button for those either.
31
+ Every root agent Paseo launches (tracked or not) gets Follow-up's action tools: `list_prs`, `add_reviewers`, `merge`, `enable_merge_when_ready`, `disable_merge_when_ready`, `send_repairs`, `set_auto_send`, `clear_hold`, `retry_batch`, `track`, `inbox_list`, `sign_off`, `snooze`, `set_finish_flags`, `set_priorities`, `set_wait_for_jobs` and the read-only `workspace_about` (a workspace's overview and linked items) and `release_notes` (the installed version and its notes) (external priorities for Home's Priority sort, kept in `plugin-data/follow-through/priorities.json`). Each runs the server path its button runs, with the same guards (tracked workspace, hold, PR eligibility, merge blockers), across every tracked workspace, so an orchestrating agent can act "on all" when you ask it to. Tools that act on a list, and merge, return a dry run and run only with `confirm: true` and that plan's id; merge is marked destructive and the list tools read-only. Inbox tools act on other agents only: an agent can't sign itself off. Recovery agents, contributors and subagents never get them, and the daemon re-checks the caller on each call. Each agent action is kept in the inbox's delivery ledger as `by: "agent:<id>"`; it never counts as you writing to an agent. A sign-off is still a sign-off made on your behalf, so it clears the flag. There is no tool to untrack or archive a workspace, or to put one on hold, because Follow-up has no button for those either.
32
32
 
33
33
  ## Data and access
34
34
 
@@ -51,4 +51,6 @@ Settings → Agents (`plugin-data/follow-through/agents.json`, its own file) cho
51
51
 
52
52
  The ranker behind AI priority (beta) runs inside Follow-up's worker as bounded one-shot jobs (Claude or Codex, per the ranker role) through the shared job runner (`server/ai-jobs.ts`), one at a time and only while the resource governor allows background work. It reads Follow-up's own state, `mcpproxy call tool-read` for `linear:list_issues` (assigned to you) and `slack-user:slack_search_public_and_private` (DMs and mentions, last 48 hours), `gh search prs --review-requested=@me`, and the planning artifact through one Claude turn limited to the Artifact tool. It hashes those inputs and calls the model only when they changed. It writes only `plugin-data/follow-through/priorities.json` (its ranking, which replaces its previous one) and `ranker.json` (input hash, run count, source health, the day's plan summary, and Linear issues no workspace covers). It never stores raw artifact HTML or share keys. The provider, model, cadence and daily cap come from the ranker role in Settings → Agents; the plan reader always uses Claude, the only provider with the Artifact tool.
53
53
 
54
+ Wait for background jobs (1.4.0-beta.24, folded in from the standalone paseo-wait plugin) attaches `wait_prepare_job`, `wait_for_job` and `wait_get_job` to every interactive Claude session as native plugin tools, with `CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=0` in that session's environment (Claude Code then never backgrounds a long MCP call, Wait's or another's) and `FOLLOW_THROUGH_WAIT=1`, which makes the provider hook add Wait's guidance once at SessionStart. It keeps job records in `plugin-data/follow-through/wait/jobs/<agentId>/<jobId>/` (`job.json`, a `started` marker and the exit receipt `result.json`) and a shell runner, `wait/run-job.sh`, that the agent's own Bash tool runs; the worker never runs the command. A job is readable only by the agent id and working directory the daemon reports for the caller. A wait holds two timers and refreshes that one agent at most once a second to notice a new message, and only while it waits. It is off when Settings → Agents says so (`enable_wait: false` in `agents.json`), when Paseo's `config.json` lists the standalone `paseo-wait` plugin as installed and not disabled, when the host doesn't serve plugin tools, and for agents labelled `follow-up-wait/enabled=false`, `paseo-wait/enabled=false` or `plugin-tools/enabled=false`. Records are never deleted automatically.
55
+
54
56
  Getting started keeps only its own progress in `plugin-data/follow-through/onboarding.json`: whether this host was a fresh or existing install when this version first started (existing if `state.json`, `inbox.json`, `reviewers.json`, `agents.json` or `brief.json` was already there), the current step, and whether the existing-install offer was shown or dismissed. An unreadable file counts as finished, so setup is never forced. Its choices are written through the same RPCs and display settings the Settings screen uses. The readiness checks run only when setup asks for them, at most once a minute unless you press Check again: `gh api user` on the daemon host, Paseo's provider snapshot (the same cached read Settings → Agents uses), Paseo's `config.json`, and the count of `hook-state/native-*.json` files. They never read an agent's timeline.
package/README.md CHANGED
@@ -36,6 +36,10 @@ The first time you open Follow-up from the sidebar, a short setup takes Home's p
36
36
 
37
37
  Every switch in setup is the same one Settings shows, so nothing is applied twice and nothing is lost if you stop halfway. Setup remembers its step, so a reload or another device picks up where you left off. Run it again any time from **Set up Follow-up again** at the top of Follow-up's settings, or ⌘K → **Follow-up: Set up again**. If Follow-up was already installed before this version, it doesn't open on its own: Home shows one dismissible line offering it, for a day.
38
38
 
39
+ ## What's new
40
+
41
+ After Follow-up updates, the next time you open Paseo it shows **What's new**: the notes for every version since that device last looked, newest open, older ones folded. It shows once per device per version (once per host in the phone app), never on a fresh install and never over setup. Home's last line says which version you run, with **Release notes** for the full list; for three days after an update it reads **Updated to X · What's new** instead. The notes ship inside the package as [CHANGELOG.md](CHANGELOG.md), so they work offline and match the installed version.
42
+
39
43
  ## Use
40
44
 
41
45
  Follow-up follows every workspace as soon as it has an agent; there is nothing to turn on. Open a workspace and click the Follow-up icon in its header (or press ⌘K / Ctrl+K and choose **Follow-up: open for this workspace**) to see that workspace's panel. Its **Home** button opens Home, the list of every workspace. To leave a workspace or a project out, open the settings (**Follow-up: settings** in ⌘K): **Following** has the global switches, **Workspace exceptions** the per-workspace ones.
@@ -200,12 +204,24 @@ Settings → **Agents** has one card for each agent Follow-up runs for you. Each
200
204
 
201
205
  The choices live in `agents.json` in Follow-up's data folder. Anything missing or invalid there falls back to the default. Agents can read the choices with the read-only `agent_settings` tool. The About footer names the model that wrote each overview ("Summarized by Haiku · 2h ago").
202
206
 
207
+ ### Wait for background jobs (1.4.0-beta.24)
208
+
209
+ Claude agents often start a long command in the background (tests, a build, a deploy check) and then end their turn "waiting for a notification", which leaves the workspace looking idle while it isn't done. With **Wait for background jobs** (Settings → Agents, on by default), every Claude agent Paseo starts gets three small tools:
210
+
211
+ 1. `wait_prepare_job({description, command})` records the job and returns a `bashCommand`. It runs nothing.
212
+ 2. The agent runs that exact command with Bash in the background, as it would anyway.
213
+ 3. `wait_for_job({jobId})` keeps the agent Running for up to 60 seconds (30 by default) and returns **completed** or **failed** with the exit code, **still_pending** (the agent checks the output with `wait_get_job` and waits again) or **new_message** (you wrote to it).
214
+
215
+ Only the command's exit receipt counts as done. Stop ends the wait without killing the command, and a new message ends it too. Each agent sees only its own jobs, and the records survive Follow-up updates. Nothing runs while no agent is waiting: no extra process, no port, no polling.
216
+
217
+ This replaces the separate **Wait** plugin (`paseo-wait`). While that plugin is installed and enabled, Follow-up's Wait stays off and Settings says so. Disable or remove it to switch: `paseo plugin disable paseo-wait`. Agents opened afterwards get Follow-up's Wait; already-open sessions switch on their next prompt. Wait needs Paseo 0.15+ with its agent tools on (the default). To leave one agent without it, give the agent the label `follow-up-wait/enabled=false` (the older `paseo-wait/enabled=false` and `plugin-tools/enabled=false` also work).
218
+
203
219
  ![Home with the Overseer selected: the pinned row asks which agent should take a broken export, and the pane shows the conversation, the routed task and the decision with two candidates plus New workspace](docs/media/overseer/overseer-dark.png)
204
220
 
205
221
  Install the beta:
206
222
 
207
223
  ```sh
208
- paseo plugin update follow-through --version 1.4.0-beta.22
224
+ paseo plugin update follow-through --version 1.4.0-beta.25
209
225
  # or, for a fresh install:
210
226
  paseo plugin install npm:paseo-follow-up@beta
211
227
  ```
@@ -239,6 +255,7 @@ Tell an agent "the PRs look good, assign reviewers on all" and it can do it. Eve
239
255
  | `send_repairs`, `set_auto_send`, `clear_hold`, `retry_batch`, `track` | **Send**, the **Auto-send** switch, **Resume**, **Retry**, following a workspace again after an opt-out. |
240
256
  | `set_priorities` | Stores external priorities for Home's Priority sort: per workspace a score 0–100, a one-line reason and sources (Linear, Slack, planning, GitHub, Paseo). Plans first; `confirm: true` with the plan id stores them. Used for 6 hours. |
241
257
  | `inbox_list`, `sign_off`, `snooze`, `set_finish_flags` | The Needs-you list, **Sign off**, **Later** and **Don't flag finishes**, for other agents only. |
258
+ | `agent_settings`, `set_wait_for_jobs` | Reads Settings → Agents; turns **Wait for background jobs** on or off (plans first). |
242
259
 
243
260
  Tools that act on a list, and merge, return a dry run first and act only when called again with `confirm: true` and that plan's id. Their descriptions tell the agent to use them only when you asked. An agent can't sign itself off. Recovery agents, contributors and subagents don't get these tools, and the daemon checks the caller again on every call.
244
261
 
@@ -259,7 +276,11 @@ npm run test:install
259
276
  paseo plugin reload follow-through # after changes
260
277
  ```
261
278
 
262
- Integration checks use a separate Paseo home with synthetic agents. Version tags (`vX.Y.Z`) publish to npm through Trusted Publishing.
279
+ Integration checks use a separate Paseo home with synthetic agents.
280
+
281
+ Release notes: a PR that changes something users see adds `changes/<branch>.md` with one to three plain-language bullets ([rules](changes/README.md)). Before the version bump, `npm run release:notes <version>` moves them into CHANGELOG.md (`-- --allow-empty` for a release with nothing user-facing). `npm run verify` fails if the package version has no notes.
282
+
283
+ Version tags (`vX.Y.Z`) publish to npm through Trusted Publishing.
263
284
 
264
285
  ## License
265
286
 
package/client/agents.tsx CHANGED
@@ -2,9 +2,10 @@ import type { ReactNode } from "react";
2
2
  import { ActivityIndicator, Text, View } from "react-native";
3
3
  import type { PluginSurfaceProps } from "@getpaseo/plugin/client";
4
4
  import { useRpc } from "@getpaseo/plugin/client";
5
- import { SettingsAction, SettingsCard, SettingsSection, SettingsSelect, useToast } from "@getpaseo/plugin/client/ui";
5
+ import { SettingsAction, SettingsCard, SettingsSection, SettingsSelect, SettingsSwitch, useToast } from "@getpaseo/plugin/client/ui";
6
6
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
- import { agentSettingsRpc, setAgentSettingRpc } from "../shared/contracts";
7
+ import { agentSettingsRpc, setAgentSettingRpc, setWaitRpc } from "../shared/contracts";
8
+ import { WAIT_HINT, WAIT_NOT_ATTACHED, WAIT_TITLE, waitNote } from "../shared/wait";
8
9
  import { AGENT_ROLES, JOB_PROVIDERS, ROLE_DEFAULTS, ROLE_INFO, isJobRole, modelName, providerName, type AgentRole, type AgentSettingsView, type CatalogProvider, type SavedRole } from "../shared/agent-settings";
9
10
  import { Button, errorText, text, type Theme } from "./kit";
10
11
 
@@ -54,6 +55,33 @@ export function AgentSettings({ theme, compact, toggles = {} }: Pick<PluginSurfa
54
55
  </SettingsSection>;
55
56
  }
56
57
 
58
+ /**
59
+ * Settings → Agents → Wait for background jobs: one switch, on by default. Shares the Agents screen's query, so it
60
+ * costs no extra read. When the switch is on but Wait isn't attached (the standalone plugin is installed, or the host
61
+ * doesn't serve plugin tools), an amber alert under it says so and what to do; the hint stays.
62
+ */
63
+ export function WaitSettings({ theme }: Pick<PluginSurfaceProps, "theme">) {
64
+ const c = theme.colors; const t = text(c);
65
+ const read = useRpc(agentSettingsRpc); const write = useRpc(setWaitRpc); const cache = useQueryClient(); const toast = useToast();
66
+ const query = useQuery({ queryKey: key, queryFn: () => read({ catalog: true }), staleTime: 5 * 60_000 });
67
+ const change = useMutation({
68
+ mutationFn: (enable_wait: boolean) => write({ enable_wait }),
69
+ onSuccess: value => { cache.setQueryData(key, value); toast.show(`${WAIT_TITLE}: ${value.wait?.enable_wait ? "on" : "off"}`, { variant: "success" }); },
70
+ onError: error => toast.error(errorText(error)),
71
+ });
72
+ const wait = query.data?.wait;
73
+ const note = wait ? waitNote(wait) : null;
74
+ return <SettingsSection title="Background jobs">
75
+ {/* The card's place is kept while loading, so the Models section below doesn't jump. */}
76
+ {query.isPending && <SettingsCard><View style={{ minHeight: 72, justifyContent: "center", paddingHorizontal: 16 }}><ActivityIndicator accessibilityLabel="Loading the Wait setting" color={c.foregroundMuted} style={{ alignSelf: "flex-start" }} /></View></SettingsCard>}
77
+ {query.error && <SettingsCard><SettingsAction label="Couldn't load the Wait setting" hint={errorText(query.error)} actionLabel="Retry" onPress={() => void query.refetch()} /></SettingsCard>}
78
+ {wait && <SettingsCard>
79
+ <SettingsSwitch label={WAIT_TITLE} hint={WAIT_HINT} value={wait.enable_wait} disabled={change.isPending} onValueChange={value => change.mutate(value)} />
80
+ {note && wait.enable_wait && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusWarning, paddingHorizontal: 16, paddingBottom: 12 }]}>{`${WAIT_NOT_ATTACHED} ${note}`}</Text>}
81
+ </SettingsCard>}
82
+ </SettingsSection>;
83
+ }
84
+
57
85
  function RoleCard({ r, invalid, catalog, busy, save, theme, compact, toggle }: { r: Role; invalid: boolean; catalog: CatalogProvider[]; busy: boolean; save: (entry: SavedRole | null) => void; theme: Theme; compact: boolean; toggle?: ReactNode }) {
58
86
  const c = theme.colors; const t = text(c);
59
87
  const role = r.role;
package/client/home.tsx CHANGED
@@ -26,6 +26,7 @@ import { Spinner } from "./motion";
26
26
  import { Setup, SetupOffer, useOnboarding } from "./onboarding";
27
27
  import type { OnboardingView } from "../shared/onboarding";
28
28
  import { withAlpha, isLight, mergedColor, type Colors } from "./theme";
29
+ import { ReleaseNotesSheet, VersionLine, WhatsNewGate } from "./release-notes";
29
30
 
30
31
  export const HOME_SCREEN = "follow-through";
31
32
 
@@ -118,6 +119,13 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
118
119
  setSelected(next?.key ?? null);
119
120
  }, [inbox, model]);
120
121
 
122
+ // null: closed; false: What's new since the previous version; true: every version.
123
+ const [notesOpen, setNotesOpen] = useState<boolean | null>(null);
124
+ const versionLine = <VersionLine theme={theme} compact={compact} onOpen={setNotesOpen} />;
125
+ const updateSheets = <>
126
+ <WhatsNewGate surface="home" theme={theme} compact={compact} />
127
+ {notesOpen != null && <ReleaseNotesSheet theme={theme} compact={compact} all={notesOpen} onClose={() => setNotesOpen(null)} />}
128
+ </>;
121
129
  if (params.view === "log") return <LogView theme={theme} compact={compact} sources={deps.sources} onHome={deps.openHome} onOpen={key => { setSelected(key); deps.openHome(); }} />;
122
130
 
123
131
  const detail = selected === OVERSEER_KEY && overseer
@@ -131,7 +139,9 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
131
139
  results={omnibox.results} activeResult={omnibox.active} onResult={item => void pick(item)} filter={filter} overseer={overseer} asking={asking}
132
140
  // Phones: the host header already says Follow-up, so no "Home" title row; search, sort and settings share one row and
133
141
  // the meters move to the end of the list.
134
- footer={compact ? <View style={{ paddingTop: 16, paddingBottom: 96 }}>{!omnibox.results && !nothing && <UsageMeters theme={theme} sources={deps.sources} dense />}</View> : undefined}
142
+ footer={omnibox.results ? undefined : compact
143
+ ? <View style={{ paddingTop: 16, paddingBottom: 96, gap: 12 }}>{!nothing && <UsageMeters theme={theme} sources={deps.sources} dense />}{versionLine}</View>
144
+ : versionLine}
135
145
  // Phones: the setup offer goes after the Needs-you group when there is one, so the first ask stays high.
136
146
  afterNeeds={compact && model.needs > 0 ? <SetupOffer theme={theme} compact view={props.onboarding} /> : undefined}
137
147
  emptyAction={compact ? <Button theme={theme} compact kind="secondary" icon="Settings" title="Project settings" onPress={deps.openSettings} /> : undefined}
@@ -156,11 +166,13 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
156
166
 
157
167
  if (compact) return <View style={{ flex: 1, backgroundColor: c.surface0 }}>
158
168
  {current || selected === OVERSEER_KEY && overseer || selected === BRIEF_KEY ? detail : list}
169
+ {updateSheets}
159
170
  <View style={{ position: "absolute", left: 12, right: 12, bottom: bottomGap(true) + (current || selected === OVERSEER_KEY ? 132 : 0) }}><UndoBar store={inbox} theme={theme} touch /></View>
160
171
  </View>;
161
172
  return <View style={{ flex: 1, flexDirection: "row", backgroundColor: c.surface0 }}>
162
173
  <View style={{ flex: 1, minWidth: 0, borderRightWidth: 1, borderRightColor: c.border }}>
163
174
  {list}
175
+ {updateSheets}
164
176
  <View style={{ position: "absolute", left: 12, right: 12, bottom: 12 }}><UndoBar store={inbox} theme={theme} touch={false} /></View>
165
177
  </View>
166
178
  <View style={{ width: "42%", minWidth: 380, maxWidth: 680 }}>{detail}</View>
package/client/live.tsx CHANGED
@@ -9,6 +9,7 @@ import { useSidebarViewActive } from "./inbox";
9
9
  import { homeCounts } from "../shared/home";
10
10
  import { useHomeModel, type HomeSources } from "./home-data";
11
11
  import { onVisible, whileVisible } from "./visibility";
12
+ import { WhatsNewGate } from "./release-notes";
12
13
 
13
14
  /** The backstop poll; agent changes `nudge` it sooner (1.4.0). Nothing while the app is hidden. */
14
15
  const POLL_MS = 15_000;
@@ -82,15 +83,16 @@ export function headerIcon(store: LiveStore) {
82
83
  * way into the full screen.
83
84
  */
84
85
  export function sidebarItem(sources: HomeSources, screenId: string) {
85
- return function FollowSidebarItem({ currentScreen, openScreen, theme }: PluginSidebarItemProps) {
86
+ return function FollowSidebarItem({ currentScreen, openScreen, theme, layout }: PluginSidebarItemProps) {
86
87
  // The same counts as Home's status strip and the brief headline.
87
88
  const count = homeCounts(useHomeModel(sources)).needs;
88
89
  const inSidebarView = useSidebarViewActive();
89
90
  const c = theme.colors;
90
91
  const shown = count > 0 && !inSidebarView;
91
- return <SidebarRow icon="GitPullRequest" active={currentScreen?.screenId === screenId} onPress={() => openScreen({ screenId, params: { section: "needs" } })}
92
+ // What's new mounts here too (the sidebar is always there), so it shows even if you live in agent chats.
93
+ return <><WhatsNewGate surface="sidebar" theme={theme} compact={layout.compact} /><SidebarRow icon="GitPullRequest" active={currentScreen?.screenId === screenId} onPress={() => openScreen({ screenId, params: { section: "needs" } })}
92
94
  trailing={shown ? <View accessibilityLabel={`${count} need${count === 1 ? "s" : ""} you`} style={{ minWidth: 18, height: 18, paddingHorizontal: 5, borderRadius: 9, alignItems: "center", justifyContent: "center", backgroundColor: c.statusWarning }}>
93
95
  <Text style={{ color: c.surface0, fontSize: 11, lineHeight: 14, fontWeight: "700", fontVariant: ["tabular-nums"] }}>{count}</Text>
94
- </View> : undefined} />;
96
+ </View> : undefined} /></>;
95
97
  };
96
98
  }
package/client/panel.tsx CHANGED
@@ -27,6 +27,7 @@ import { ActivityCard, QuestionSheet } from "./questions";
27
27
  import { SpecRow, SpecSheet } from "./spec";
28
28
  import { mergedColor, tint } from "./theme";
29
29
  import { AboutSection } from "./about";
30
+ import { WhatsNewGate } from "./release-notes";
30
31
 
31
32
  export { overviewKey, workspaceKey };
32
33
 
@@ -39,6 +40,10 @@ type PanelProps = PluginWorkspacePanelProps & PanelLinks & { inbox?: InboxStore;
39
40
  * tasks, questions, spec, activity and Details. What needs you elsewhere lives on Home.
40
41
  */
41
42
  export function FollowPanel(props: PanelProps) {
43
+ return <><PanelBody {...props} /><WhatsNewGate surface="panel" theme={props.theme} compact={props.layout.compact} /></>;
44
+ }
45
+
46
+ function PanelBody(props: PanelProps) {
42
47
  // Paints from the client's live store; one small read of this workspace on open, no poll (1.4.0).
43
48
  const query = useWorkspace(props.live, props.workspaceId);
44
49
  const c = props.theme.colors;
@@ -0,0 +1,199 @@
1
+ import { useEffect, useMemo, useState, useSyncExternalStore } from "react";
2
+ import { Pressable, Text, View } from "react-native";
3
+ import { useRpc } from "@getpaseo/plugin/client";
4
+ import { Icon, Modal, ScrollView } from "@getpaseo/plugin/client/ui";
5
+ import { useQuery, useQueryClient } from "@tanstack/react-query";
6
+ import { releaseNotesRpc, whatsNewSeenRpc } from "../shared/contracts";
7
+ import { LAST_SEEN_KEY, agoText, recentNotes, recentUpdate, whatsNew, type ReleaseNote, type ReleaseNotesView } from "../shared/changelog";
8
+ import { deviceStorage } from "../shared/settings-nav";
9
+ import { Button, text, useNow, type Theme } from "./kit";
10
+ import { useOnboarding } from "./onboarding";
11
+
12
+ /**
13
+ * Release notes on the client: What's new after an update, the full list, and Home's quiet version line. The notes
14
+ * come from the installed package's CHANGELOG.md through `follow.release-notes`, read once per app session.
15
+ */
16
+
17
+ export const releaseNotesKey = ["follow-through", "release-notes"];
18
+ export function useReleaseNotes() {
19
+ const read = useRpc(releaseNotesRpc);
20
+ return useQuery({ queryKey: releaseNotesKey, queryFn: () => read({}), staleTime: Infinity, retry: 1 });
21
+ }
22
+
23
+ const fmtDate = (iso: string | null) => iso ? new Date(`${iso}T12:00:00`).toLocaleDateString(undefined, { day: "numeric", month: "short" }) : null;
24
+
25
+ /** Hidden from screen readers: a visual separator only. */
26
+ const Dot = ({ style }: { style: object }) => <Text style={style} accessibilityElementsHidden importantForAccessibility="no-hide-descendants" aria-hidden>·</Text>;
27
+
28
+ /** One version's bullets. Shared by What's new, the release notes and Settings. */
29
+ export function VersionNotes({ note, theme, compact = false, max = 8 }: { note: ReleaseNote; theme: Theme; compact?: boolean; max?: number }) {
30
+ const c = theme.colors; const t = text(c, compact);
31
+ const [all, setAll] = useState(false);
32
+ const items = all ? note.items : note.items.slice(0, max);
33
+ const dotTop = compact ? 8 : 7;
34
+ return <View style={{ gap: 6 }}>
35
+ {items.map((item, i) => <View key={i} style={{ flexDirection: "row", gap: 8 }}>
36
+ <View style={{ width: 4, height: 4, borderRadius: 2, marginTop: dotTop, backgroundColor: c.foregroundMuted }} />
37
+ <Text style={[t.body, { flex: 1 }]}>{item}</Text>
38
+ </View>)}
39
+ {!all && note.items.length > max && <Pressable accessibilityRole="button" onPress={() => setAll(true)} hitSlop={compact ? { top: 14, bottom: 14, left: 8, right: 8 } : 6}
40
+ style={{ minHeight: compact ? 44 : undefined, justifyContent: "center", alignSelf: "flex-start" }}>
41
+ <Text style={[t.label, { color: c.foreground, fontWeight: "600" }]}>{`Show all ${note.items.length}`}</Text>
42
+ </Pressable>}
43
+ </View>;
44
+ }
45
+
46
+ /** "1.4.0-beta.14 · Nov 10", a heading for screen readers. `dateOnly` when the title already names the version. */
47
+ function VersionHeader({ note, theme, compact, dateOnly = false }: { note: ReleaseNote; theme: Theme; compact: boolean; dateOnly?: boolean }) {
48
+ const c = theme.colors; const t = text(c, compact);
49
+ const date = fmtDate(note.date);
50
+ if (dateOnly) return date ? <Text style={t.meta}>{date}</Text> : null;
51
+ return <View accessibilityRole="header" accessibilityLabel={`${note.version}${date ? `, ${date}` : ""}`} style={{ flexDirection: "row", alignItems: "baseline", gap: 6 }}>
52
+ <Text style={[t.label, { fontVariant: ["tabular-nums"] }]}>{note.version}</Text>
53
+ {date && <><Dot style={t.meta} /><Text style={t.meta}>{date}</Text></>}
54
+ </View>;
55
+ }
56
+
57
+ /** An older version, folded to its first note; opens in place. */
58
+ function FoldedVersion({ note, theme, compact }: { note: ReleaseNote; theme: Theme; compact: boolean }) {
59
+ const c = theme.colors; const t = text(c, compact);
60
+ const [open, setOpen] = useState(false);
61
+ return <View style={{ borderTopWidth: 1, borderTopColor: c.border }}>
62
+ <Pressable accessibilityRole="button" accessibilityState={{ expanded: open }} aria-expanded={open} accessibilityLabel={`${note.version}${note.date ? `, ${fmtDate(note.date)}` : ""}`} onPress={() => setOpen(o => !o)}
63
+ // Hover fill only with a pointer; on touch a row would otherwise keep the last tap's fill.
64
+ style={state => ({ flexDirection: "row", alignItems: "center", gap: 8, minHeight: compact ? 48 : 36, paddingVertical: 6, marginHorizontal: -8, paddingHorizontal: 8, borderRadius: 6, backgroundColor: state.pressed ? c.surface2 : !compact && (state as { hovered?: boolean }).hovered ? c.surface1 : "transparent" })}>
65
+ <Icon name={open ? "ChevronDown" : "ChevronRight"} size={14} color={c.foregroundMuted} />
66
+ <Text accessibilityRole="header" style={[t.label, { fontVariant: ["tabular-nums"], flexShrink: 0 }]}>{note.version}</Text>
67
+ {note.date && <Text style={[t.meta, { flexShrink: 0 }]}>{fmtDate(note.date)}</Text>}
68
+ {!open && <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{note.items[0] ?? ""}</Text>}
69
+ </Pressable>
70
+ {open && <View style={{ paddingLeft: 22, paddingBottom: 12 }}><VersionNotes note={note} theme={theme} compact={compact} /></View>}
71
+ </View>;
72
+ }
73
+
74
+ /**
75
+ * Newest open, the next ones folded, then "and N older versions" past `cap` (a button only when `onMore` shows them).
76
+ * `titled`: the sheet's title already names the newest version, so its header shows just the date.
77
+ */
78
+ export function NotesList({ notes, theme, compact, cap = 10, onMore, titled = false }: { notes: readonly ReleaseNote[]; theme: Theme; compact: boolean; cap?: number; onMore?: () => void; titled?: boolean }) {
79
+ const c = theme.colors; const t = text(c, compact);
80
+ const [first, ...rest] = notes;
81
+ if (!first) return null;
82
+ const shown = rest.slice(0, cap - 1);
83
+ const hidden = rest.length - shown.length;
84
+ const more = `and ${hidden} older version${hidden === 1 ? "" : "s"}`;
85
+ return <View style={{ gap: 0 }}>
86
+ <View style={{ gap: 8, paddingBottom: 14 }}><VersionHeader note={first} theme={theme} compact={compact} dateOnly={titled} /><VersionNotes note={first} theme={theme} compact={compact} /></View>
87
+ {shown.map(n => <FoldedVersion key={n.version} note={n} theme={theme} compact={compact} />)}
88
+ {hidden > 0 && (onMore
89
+ ? <Pressable accessibilityRole="button" onPress={onMore} style={{ borderTopWidth: 1, borderTopColor: c.border, minHeight: compact ? 48 : 36, justifyContent: "center" }}>
90
+ <Text style={[t.meta, { color: c.foreground, fontWeight: "600" }]}>{more}</Text>
91
+ </Pressable>
92
+ : <View style={{ borderTopWidth: 1, borderTopColor: c.border, minHeight: compact ? 48 : 36, justifyContent: "center" }}><Text style={t.meta}>{more}</Text></View>)}
93
+ </View>;
94
+ }
95
+
96
+ /** The host sheet's own inset on the phone, so our body lines up with its title. */
97
+ const SHEET_INSET = 24;
98
+
99
+ /**
100
+ * "What's new in X": the host's dialog on desktop, its sheet on the phone. On the phone our own scroll body with a
101
+ * pinned footer, so Close stays in thumb reach however long the notes are. "See all release notes" switches the same
102
+ * sheet to every version, so nothing navigates away from under it.
103
+ */
104
+ export function WhatsNewSheet({ open, notes, all, theme, compact, onClose, startAll = false }: { open: boolean; notes: readonly ReleaseNote[]; all: readonly ReleaseNote[]; theme: Theme; compact: boolean; onClose: () => void; startAll?: boolean }) {
105
+ const c = theme.colors; const t = text(c, compact);
106
+ const [full, setFull] = useState(startAll);
107
+ const list = full ? all : notes;
108
+ const newest = list[0];
109
+ if (!newest) return null;
110
+ const meta = !full && list.length > 1 ? `${list.length} versions since you last looked` : null;
111
+ const body = <>
112
+ {meta && <Text style={t.meta}>{meta}</Text>}
113
+ <NotesList notes={list} theme={theme} compact={compact} cap={full ? all.length : 10} onMore={full ? undefined : () => setFull(true)} titled={!full} />
114
+ </>;
115
+ const footer = (pinned: boolean) => <View style={{ borderTopWidth: 1, borderTopColor: c.border, flexDirection: compact ? "column" : "row", alignItems: compact ? "stretch" : "center", justifyContent: full ? "flex-end" : "space-between", gap: compact ? 4 : 8,
116
+ ...(pinned ? { backgroundColor: c.surface1, paddingHorizontal: SHEET_INSET - 8, paddingTop: 8, paddingBottom: 12 } : { paddingTop: 12, marginTop: 4 }) }}>
117
+ {!full && all.length > list.length && <Button title="See all release notes" kind="ghost" theme={theme} compact={compact} grow={compact} onPress={() => setFull(true)} />}
118
+ <Button title="Close" kind="secondary" theme={theme} compact={compact} grow={compact} onPress={onClose} />
119
+ </View>;
120
+ return <Modal title={full ? "Release notes" : `What's new in ${newest.version}`} open={open} onOpenChange={next => { if (!next) onClose(); }}>
121
+ {compact
122
+ ? <Modal.Content scrollable={false} contentContainerStyle={{ padding: 0, gap: 0 }} style={{ flex: 1 }}>
123
+ <ScrollView style={{ flex: 1 }} contentContainerStyle={{ paddingHorizontal: SHEET_INSET, paddingTop: 12, paddingBottom: 16, gap: 12 }}>{body}</ScrollView>
124
+ {footer(true)}
125
+ </Modal.Content>
126
+ // Desktop: the dialog sizes to its notes (up to the host's 85%); Esc and the X close it too.
127
+ : <Modal.Content contentContainerStyle={{ paddingHorizontal: 20, paddingTop: 4, paddingBottom: 16, gap: 12 }}>{body}{footer(false)}</Modal.Content>}
128
+ </Modal>;
129
+ }
130
+
131
+ /**
132
+ * Where "seen" lives. Web and desktop keep it per device (localStorage). The native app has no localStorage, so it
133
+ * falls back to the host's record: What's new then shows once per host there, not on every launch.
134
+ */
135
+ const persistent = () => { try { return typeof (globalThis as { localStorage?: Storage }).localStorage?.getItem === "function"; } catch { return false; } };
136
+ const seenOnDevice = (view: ReleaseNotesView) => persistent() ? deviceStorage.get(LAST_SEEN_KEY) : view.hostSeen;
137
+
138
+ // One What's new per app session: the first mounted Follow-up surface claims it, the rest render nothing.
139
+ let claimedBy: string | null = null;
140
+ const listeners = new Set<() => void>();
141
+ const claimVersion = () => claimedBy;
142
+ const subscribeClaim = (l: () => void) => { listeners.add(l); return () => { listeners.delete(l); }; };
143
+
144
+ /**
145
+ * Shows "What's new" once per device per version, on whichever Follow-up surface mounts first (Home, the workspace
146
+ * panel or the sidebar item). Never on a first install and never while setup is showing or still loading.
147
+ */
148
+ export function WhatsNewGate({ surface, theme, compact }: { surface: string; theme: Theme; compact: boolean }) {
149
+ const query = useReleaseNotes();
150
+ // Pending counts as showing, so What's new never flashes up before the setup flow takes the screen.
151
+ const ob = useOnboarding();
152
+ const onboarding = ob.isPending || !!ob.data?.show;
153
+ const owner = useSyncExternalStore(subscribeClaim, claimVersion, claimVersion);
154
+ const seen = useRpc(whatsNewSeenRpc); const cache = useQueryClient();
155
+ const [closed, setClosed] = useState(false);
156
+ const view = query.data;
157
+ const decision = useMemo(() => view ? whatsNew({ installed: view.version, deviceSeen: seenOnDevice(view), previous: view.previous, onboarding, notes: view.notes }) : null, [view, onboarding]);
158
+ useEffect(() => {
159
+ if (!decision || !view) return;
160
+ if (!decision.show) { if (decision.record && persistent()) deviceStorage.set(LAST_SEEN_KEY, decision.record); return; }
161
+ if (claimedBy == null) { claimedBy = surface; listeners.forEach(l => l()); }
162
+ }, [decision, view, surface]);
163
+ useEffect(() => () => { if (claimedBy === surface) { claimedBy = null; listeners.forEach(l => l()); } }, [surface]);
164
+ if (!view || !decision?.show || owner !== surface || closed) return null;
165
+ const close = () => {
166
+ deviceStorage.set(LAST_SEEN_KEY, view.version); setClosed(true);
167
+ void seen({ version: view.version }).then(v => cache.setQueryData(releaseNotesKey, v), () => undefined);
168
+ };
169
+ return <WhatsNewSheet open notes={decision.notes} all={view.notes} theme={theme} compact={compact} onClose={close} />;
170
+ }
171
+
172
+ /** What's new opened by hand (Home's footer): since the previous version, or every version with `all`. */
173
+ export function ReleaseNotesSheet({ theme, compact, all = false, onClose }: { theme: Theme; compact: boolean; all?: boolean; onClose: () => void }) {
174
+ const view = useReleaseNotes().data;
175
+ if (!view) return null;
176
+ return <WhatsNewSheet open notes={recentNotes(view)} all={view.notes} startAll={all} theme={theme} compact={compact} onClose={onClose} />;
177
+ }
178
+
179
+ /** Home's quiet footer: "Follow-up 1.4.0-beta.21 · Release notes", or "Updated to … 2h ago · What's new" for 3 days. */
180
+ export function VersionLine({ theme, compact, onOpen }: { theme: Theme; compact: boolean; onOpen: (all: boolean) => void }) {
181
+ const c = theme.colors; const t = text(c, compact);
182
+ const now = useNow(60_000);
183
+ const query = useReleaseNotes();
184
+ const view = query.data;
185
+ // Loading: hold the line's height. Failed: nothing, rather than dead space at the end of Home.
186
+ if (!view) return query.isError ? null : <View style={{ height: 32 }} />;
187
+ const recent = recentUpdate(view, now);
188
+ const label = recent ? `Updated to ${view.version} ${agoText(now - view.updatedAt!)}` : `Follow-up ${view.version}`;
189
+ const link = recent ? "What's new" : "Release notes";
190
+ // Phones: meta size (12) rather than 11, and a 44pt target.
191
+ const style = compact ? t.meta : t.small;
192
+ return <View style={{ flexDirection: "row", alignItems: "center", gap: 6, paddingHorizontal: 16, paddingTop: 12, paddingBottom: compact ? 0 : 48 }}>
193
+ <Text style={style}>{label}</Text>
194
+ <Dot style={style} />
195
+ <Pressable accessibilityRole="button" accessibilityLabel={recent ? `What's new in ${view.version}` : "Release notes"} hitSlop={compact ? { top: 15, bottom: 15, left: 8, right: 8 } : 6} onPress={() => onOpen(!recent)}>
196
+ {state => <Text style={[style, { color: c.foreground, textDecorationLine: (state as { hovered?: boolean }).hovered ? "underline" : "none" }]}>{link}</Text>}
197
+ </Pressable>
198
+ </View>;
199
+ }
@@ -9,7 +9,7 @@ import { followSettingsRpc, projectSettingsRpc, setFollowSettingsRpc, setProject
9
9
  import { Switch, bottomInset, errorText, space, text, type Theme } from "./kit";
10
10
  import { DisplaySections, PermissionsSection, PreferenceSwitch } from "./display";
11
11
  import { ReviewerSettings, reviewerSettingsKey } from "./reviewers";
12
- import { AgentSettings, agentSettingsKey } from "./agents";
12
+ import { AgentSettings, WaitSettings, agentSettingsKey } from "./agents";
13
13
  import { ShippingSettings } from "./shipping";
14
14
  import { BackHeader, CategoryList, CategoryTabs, Disclosure } from "./settings-shell";
15
15
  import {
@@ -161,10 +161,11 @@ function WorkspacesFold({ theme, compact, all, autoDefault, busy, set }: { theme
161
161
  </Disclosure>;
162
162
  }
163
163
 
164
- /** Agents: Questions, then the four agent cards. The Overseer and AI priority switches lead their own cards. */
164
+ /** Agents: Questions, Wait for background jobs, then the four agent cards. The Overseer and AI priority switches lead their own cards. */
165
165
  function AgentsCategory({ theme, compact }: { theme: Theme; compact: boolean }) {
166
166
  return <>
167
167
  <QuestionSettings theme={theme} />
168
+ <WaitSettings theme={theme} />
168
169
  <AgentSettings theme={theme} compact={compact} toggles={{ overseer: <PreferenceSwitch field="enable_overseer" theme={theme} />, ranker: <PreferenceSwitch field="enable_ranker" theme={theme} /> }} />
169
170
  </>;
170
171
  }