paseo-follow-up 2.4.0 → 2.4.2

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,6 +2,39 @@
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.2 (2026-11-26)
6
+
7
+ A shorter, current plugin page.
8
+
9
+ - **The plugin page says what Follow-up is today:** one inbox for every agent, what it does, how to install it, and a link to what it reads and writes.
10
+
11
+ <details><summary>Full changelog since 2.4.1</summary>
12
+
13
+ ### More
14
+
15
+ - The plugin page is short and current: what Follow-up does today, how to install it, and a link to what it reads and writes.
16
+
17
+ </details>
18
+
19
+ ## 2.4.1 (2026-11-26)
20
+
21
+ Two fixes for 2.4.0.
22
+
23
+ - **The search key always lands in the search.** Holding it a moment or typing before Home has drawn no longer leaves the cursor outside Home's search, and what you type goes into it.
24
+ - **What's new shows its bold.** The bold leads in release notes now reach the app, on desktop and on the phone.
25
+
26
+ <details><summary>Full changelog since 2.4.0</summary>
27
+
28
+ ### Home and Needs you
29
+
30
+ - The search key now always puts the cursor in Home's search, even when you hold it a moment or start typing before Home has drawn. What you type goes into the search.
31
+
32
+ ### Setup, Settings and updates
33
+
34
+ - What's new shows the bold in release notes. 2.4.0's fix dropped it on the way to the app.
35
+
36
+ </details>
37
+
5
38
  ## 2.4.0 (2026-11-26)
6
39
 
7
40
  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.
package/OVERVIEW.md CHANGED
@@ -1,58 +1,39 @@
1
1
  # Follow-up
2
2
 
3
- Follow-up watches every pull request a Paseo workspace opens until the work is actually done. It shows each PR stack at a glance, gathers conflicts, failing required checks and review threads into one repair batch for the workspace's main agent, and tells you when something needs you, such as an approved PR to merge, a question the agent asked or a batch to send. Answer a question in Follow-up and the answer goes straight to the agent's chat.
4
-
5
- ## What you see
6
-
7
- - Home: every workspace grouped by what it needs from you (Needs you, Sending, Running, Waiting on others, Quiet), with the selected one beside the list so you can allow a permission, answer, merge, reply or sign off in place, and a brief with what Follow-up did while you were away. Above the list: the status counts, provider limits from Smart Session when it's installed, a search over names, branches, PRs, agents and asks, and a sort menu (Priority, Recent, Oldest waiting, Name, By project).
8
- - The Overseer (1.4 beta), pinned on Home: one agent you talk to about all your workspaces. It forwards your asks to the agent that owns them, asks you when it isn't sure, and starts a new workspace only when you say so. You can ask it from Home's search box (the last row, "Ask the Overseer: …") or with ⌘K → Follow-up: Ask the Overseer.
9
- - AI priority (1.4 beta): Home's Priority sort ranked from your Linear issues, Slack DMs and mentions, GitHub review requests and the weekly plan, each row with a one-line reason that names its source. It runs hourly on workdays, only when something changed, and Re-rank now is in the sort menu.
10
- - Summary, a collapsible section at the top of Home's detail pane and the workspace panel: a one-line gist, a short AI overview of what the workspace is for and where it stands, and its linked Linear issues, PRs, Slack threads and docs.
11
- - A workspace panel for the open workspace only, with a Home button: PRs merged, what needs you, what needs fixing, a bar with one segment per PR, and what the agent is doing now. "Open full" on Home docks it beside the agent's chat.
12
- - A Needs you card with one button per decision: Send repairs, Merge, Resume, Retry, or Answer.
13
- - Questions from the main agent, each with a permanent ref (Q1, Q2…), lettered options, the agent's recommendation and what it does while it waits. Pick an option, add a note and Send it to the agent, or Copy it instead. Answered questions stay listed under their ref, and the question mode setting (Stop, Work around, Keep building) tells agents what to do until you answer.
14
- - A Spec link in the header to the page that sums up the workspace, usually the Claude artifact the main agent keeps up to date.
15
- - An Activity card: repairs sent and finished with how long they took, merges, PR actions and questions.
16
- - Each stack drawn top to base, merged PRs folded away, and a sheet per PR with checks, reviewers and Merge.
17
- - Tasks for work that outlives a merge. Each comes due by fact: its PRs merged or deployed, or a re-check date. A task can also be sent to the agent as a message after a merge or deploy, with an optional delay.
18
- - A composer pill and a sidebar count that appear only when something needs you; the pill steps through open questions so you can answer without leaving the chat. Home lists every workspace by who is up next, and a larger view opens a workspace in two columns.
19
- - Compact rows for Follow-up's own tool calls in agent chats, a card for each repair batch, and a card when the agent declares Done.
20
-
21
- ## Setup
22
-
23
- Requires Paseo 0.15+ and Node 22+. GitHub is optional: with an authenticated `gh` on the daemon host (or `GH_TOKEN`), Follow-up reads PRs, checks and reviews and can merge and request reviewers; without it, workspaces, Needs you, questions, briefs, Catch up, the Overseer, tasks and Compass work as before, Follow-up makes no GitHub request and runs no `gh`, and each GitHub surface says in one line how to turn it on (installing and signing in is picked up without a restart). Works with plain GitHub; Graphite is optional and picked per repository (Auto chooses Graphite only where the `gt` CLI is installed, signed in and the repository was set up with `gt init`). In Graphite repositories Merge uses saved Graphite CLI authentication; elsewhere it runs `gh pr merge`, and When ready is GitHub auto-merge. Follow-up follows every workspace that has an agent; Settings has per-project and per-workspace exceptions. The optional Send to Paseo browser companion adds Graphite's Merge when ready switch through its existing pairing; it is not needed for anything else.
24
-
25
- ## What it does on its own, and what it never does
26
-
27
- Auto-send ("Send repairs automatically") is on by default for every followed workspace; 1.3.0-beta.2 turned it on once for existing ones after backing up the state file. With it off, each repair batch waits for your click; with it on, Follow-up sends batches once the main agent is idle, after fresh permission and Session Guard checks. Follow-up never merges, turns on merge when ready, requests reviewers or archives on its own, and Merge always re-checks the stack and asks again. Done needs the main agent's declaration, settled PRs and tasks, and no open questions. Answers are sent only when you click Send; an answer the agent can't take yet waits and goes out on the next check, and one Paseo didn't confirm waits for you to Resend. An optional recovery agent can rebuild missed PRs and tasks from a workspace's history; it runs only when you start it and never edits code. Deployment checks and reviewer shortcuts exist only for specifically configured repositories; elsewhere deployment stays unknown.
28
-
29
- ### What agents can do for you
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`, `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), `updates_status` and `check_updates` (Settings → General, Check now), with `set_updates` and `install_update` as confirmed plans (external priorities for Home's Priority sort, kept in `plugin-data/follow-up/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
-
33
- ## Data and access
34
-
35
- This is a trusted, unsandboxed plugin. It reads workspace metadata, saved agent history and configuration, GitHub status and existing CLI authentication, and keeps its state in `plugin-data/follow-up` on the daemon host. It attaches scoped agent tools per session (served by Paseo's own MCP as `follow_*` on Paseo 0.15+, a per-launch stdio bridge otherwise; never a global MCP registration, and it removes the user-scope `follow-up` entry older versions wrote, keeping a `.follow-up-unregister.bak` of each file) and reversible provider hooks for tracked sessions and, while the Needs-you inbox is on, the `needs_you` tool and its Stop-hook nudge for root agents (see below). To find the spec link it reads completed Claude Artifact publish results in the workspace's root sessions, never page content, chat links or the repository; a link you set wins over the agent's, which wins over detection. Repair prompts go to your configured agent and provider. For the provider meters it calls the Smart Session plugin's `smart-session.subscriptions` and `smart-session.budget` RPCs at most once a minute, or reads the newest rows of its `plugin-data/smart-session/accounts-YYYY-MM.jsonl`; it never asks ZeroSub to refresh or switch. It has no Slack identity and no background channel scanning; replies to stakeholders need your authorization and a sent-message receipt from the agent.
36
-
37
- Follow-up reads Paseo's agent, workspace and project lists into one in-memory directory shared by discovery, runtime checks, the Needs-you inbox, the Overseer and every client RPC. It reads the lists once at start, then patches the directory from lifecycle events: turn started or ended, permission requested or resolved, agent created, closed or archived, workspace created or archived. A change marks it dirty, and a dirty directory re-reads at most once a minute; a clean one re-reads every ten minutes. Before anything that would load an agent (a timeline or provider-subagent read), Follow-up re-reads that one agent, because the cached copy may predate Paseo unloading it. Provider subagents are asked about only when a send is due or waiting for acknowledgment, or completion is being checked. The Done label is sent only when it changes. In the app, the panel, the larger view and the pill draw from the client's shared workspace poll, which runs every 15 s plus a refresh shortly after Paseo reports an agent change. The inbox runs the same way and passes the tag of the list it holds, so an unchanged list comes back empty. Display preferences re-read once a minute. None of these poll while the app is hidden.
38
-
39
- The PR workflow setting lives in `plugin-data/follow-up/pr-workflow.json` (owner-only): the default, per-repository overrides, merge methods and the review-fix instruction. Auto-detection reads only files: PATH for a `gt` executable, `<config>/graphite/user_config`, `<config>/graphite/auth`, then `~/.graphite_user_config` for a sign-in token's presence (`<config>` is `$XDG_CONFIG_HOME` or `~/.config`) (never sent anywhere by detection), and `<git dir>/.graphite_repo_config` in the checkout of the repository's Paseo project, then in the working directories of tracked workspaces with PRs in that repository (from the agent list Follow-up already has). It never runs `gt` and caches for ten minutes. Repositories that resolve to GitHub get no Graphite API calls; their readiness, merge method and auto-merge come from the same `gh api graphql` query that already reads each PR, so there is no extra polling. The first start with this setting seeds the review-fix instruction to `/fix-pr` when `~/.claude/commands/fix-pr.md` or `~/.claude/skills/fix-pr/SKILL.md` exists, once.
40
-
41
- Reviewer lists live in `plugin-data/follow-up/reviewers.json` (owner-only), apart from `state.json`. Each list is per repository, plus a default for repositories without one, and each user keeps their own. Collaborator and team suggestions are read with `gh api` only when you open Add reviewer. They are cached for ten minutes, and never polled.
42
-
43
- The Needs-you inbox (beta) keeps one flag per root agent in `plugin-data/follow-up/inbox.json`. When a turn starts it reads the newest user message from the agent's recent timeline to tell your messages from automation, and it reads, never writes, Defer's `plugin-data/defer/queue.json`, Smart Session's `plugin-data/smart-session/compactions.json`, Session Guard's `plugin-data/session-guard/state.json` and Paseo's schedule records. An unknown or unreadable format counts as your message, which clears a flag rather than adding one. Signing off also clears Paseo's own unread dot for that agent. The first-run import and the restart check read only Paseo's agent list: an agent's last activity is its unread time or your last message to it, never Paseo's `updatedAt` (which the daemon rewrites in bulk), and they don't fetch timelines, which would load every agent. Closed and archived agents are never imported. Turning the inbox off stops all of this.
44
-
45
- The brief (beta) is stored on the agent's inbox entry and appended to its timeline as a Follow-up row; re-appending replaces that row, and the restart check ignores the `updatedAt` change the append causes because it never reads `updatedAt`. To build a brief Follow-up reads only what it already has: the agent's `needs_you` call, the permission request's title, the failed turn's error message, Session Guard's note and reset time for a paused agent, and its own PR state. It does not read or quote the agent's reply. While the inbox is on, every root Paseo agent on Claude Code or Codex gets Follow-up's MCP bridge with the `needs_you` tool only (tracked main agents keep their full set), and `plugin-data/follow-up/brief.json` records whether the inbox and the nudge are on and which agents have a permission prompt showing. Clicking an option or Retry sends one message as you; it is logged in the delivery ledger as yours, so it clears the flag. The Stop hook, part of the same reversible provider hooks Follow-up already installs, now also runs for those root Claude Code sessions: if the turn ended without `needs_you`, it blocks the stop once with a one-line request to call it, records that it did in `hook-state`, and never blocks the same turn again. It reads `brief.json`, its own per-turn marker and the time of the agent's last `needs_you` call, and nothing else. Turn it off with *Ask agents to state what they need*; turning the inbox off stops it too.
46
-
47
- The Overseer (beta) is one Claude agent in a Follow-up workspace under `plugin-data/follow-up/overseer-home`, labelled `follow-up.overseer=1` and created only when you click Start. Its id is kept in `plugin-data/follow-up/overseer.json`. Discovery, tracking, auto-send and Needs you skip its workspace. At the start of each of its turns, the provider hook adds a digest from `plugin-data/follow-up/overseer-digest.json` and records what it showed in `hook-state/overseer-seen-<agent>.json`. The worker builds that file when the Overseer's turn starts (and every 10 minutes as a backstop), from Paseo's workspace list (metadata only, at most once a minute) and Follow-up's own state; the hook waits up to 1.5 s for that turn's build. It skips the build while the resource governor pauses background work. Its tools are `workstreams`, `agent_digest`, `route_candidates`, `send_to_agent` and `start_workspace`. For an agent that isn't loaded, `agent_digest` reads the provider's transcript on disk, read-only (Claude Code's `projects/<cwd>/<session>.jsonl`, Codex's `sessions/**/rollout-*-<thread>.jsonl`; only the last 512 KB, and never the credentials in Paseo's agent record). Without a transcript it uses Follow-up's goal and PR titles. It never reads that agent's timeline. `send_to_agent` writes your words to the delivery ledger first: as yours only when they answer that agent's open ask, otherwise as Follow-up's. It wakes a resting agent only because you asked for it. `start_workspace` runs only after your approval, through a dry run and confirm. The Overseer can't merge, archive or post anywhere.
48
- The Summary keeps its overviews in `plugin-data/follow-up/about.json` (gist, overview, linked rows, when and from what; never raw history) and logs each model call's duration and cost to `ai-jobs.jsonl`. To write one it reads the root agent's latest steps from its live timeline only when Paseo already has the agent loaded; otherwise it reads the first and last part of the agent's provider transcript on disk (Claude Code's `~/.claude/projects`, Codex's `~/.codex/sessions`), read-only, and never wakes the agent. It reads subagent titles from Paseo's agent list, PR titles and bodies with `gh pr view`, and only the Linear issues and Slack threads the workspace itself links, through `mcpproxy call tool-read` (`linear:get_issue`, `slack-user:slack_read_thread`); there are no searches. The model is set under Settings → Agents (default Haiku). With Claude it runs as a headless `claude -p` with no tools, no MCP servers, no settings and no saved session. With Codex it runs as `codex exec --ephemeral` with no user config or rules, no shell tool and a read-only sandbox in an empty temporary folder. Either way it gets one turn, a 90-second timeout, and runs one call at a time; on timeout the whole process group is killed. Overviews are written ahead of time only for non-dormant workspaces in Needs you, at most 60 a day by default (Settings → Agents), and not while a Claude account is above 85% of a limit or the resource governor has paused background work; above its higher threshold, opening the section shows the cached overview and writes none.
49
-
50
- Settings → Agents (`plugin-data/follow-up/agents.json`, its own file) chooses the provider, model, effort and mode for Summaries, the Overseer, recovery agents and the priority ranker. Missing or invalid entries use the defaults. The provider and model list comes from Paseo's provider snapshot. It is read only when that settings screen opens, and cached for ten minutes. A changed Overseer setting is never applied mid-conversation: Home offers a restart, and the new Overseer is handed the old one's last steps (read from its transcript on disk when it isn't loaded). The old agent is left as it is. A recovery agent on a different provider than the main agent keeps the main agent's system prompt, MCP servers and tool policy, and drops its provider-specific model, mode and options. `FOLLOW_UP_OVERSEER_PROVIDER` ("provider/model") overrides the Overseer's setting; it exists only for isolated test daemons.
51
-
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-up/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
-
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_UP_WAIT=1`, which makes the provider hook add Wait's guidance once at SessionStart. It keeps job records in `plugin-data/follow-up/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
-
56
- Getting started keeps only its own progress in `plugin-data/follow-up/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.
57
-
58
- Updates (Settings → General) talk to the npm registry Paseo itself uses (`npm_config_registry`, else registry.npmjs.org): one abbreviated-metadata request with an ETag about every six hours (none when updates are Off), at most one a minute when Settings opens, one per Check now, and, once per new version, two for its provenance (the version document and its attestations) and one download of its tarball, checked against the confirmed checksum, to show its release notes before installing. Nothing about the host or its agents is sent. Choices, the waiting update and provenance verdicts live in `updates.json`, the last registry answer in `registry.json`, and each install step in `updates.jsonl`. Installing writes `update-watchdog.mjs` and starts it as a detached `node` process with the daemon's connection details in its environment (never on the command line); it previews and applies the update through Paseo's own plugin-update calls, pinned to the checksum Follow-up checked, then reads Paseo's plugin list every 15 seconds and the new worker's `heartbeat.json` for ten minutes, rolls back the same way if needed, and exits. Waiting for a quiet moment uses the cached agent list and turn events, with one fresh agent list right before installing; it never reads timelines.
3
+ **Every agent, one inbox.**
4
+
5
+ Your agents work in parallel. Your attention doesn't. Agent tools are organised around chats: you visit each one to
6
+ find out whether it needs you. Follow-up is a Paseo plugin organised around your attention instead. The work comes to
7
+ you, in one place, ranked.
8
+
9
+ ## What it does
10
+
11
+ - **Every workspace in one place.** All your workspaces, across every project, on one screen, each with its state, a
12
+ one-line summary, and the issues, threads and docs it's about.
13
+ - **One inbox of what needs you, ranked by AI.** Questions, failed checks, reviews and merges from every workspace in
14
+ one list. Agents ask for decisions as cards with lettered options and a recommendation, so you answer in seconds.
15
+ - **Automatic follow-ups, through merge, deploy and after.** Failed checks, conflicts and review comments go back to
16
+ the agent that made the PR. After the merge, its tasks come due when the PR deploys or on a set day.
17
+ - **Dispatch starts new work** from a Linear issue, a link or a sentence: Follow-up makes the workspace, starts the
18
+ agent and tracks it.
19
+ - **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities, and
20
+ the morning brief shows what moved.
21
+ - **An Overseer that knows all of it.** Ask one agent with every workspace's context anything from Home's search box.
22
+ It answers, or passes your words to the agent doing the work.
23
+ - **Catch up** after a meeting or a morning away, one card at a time, on the desktop or your phone.
24
+ - **PR statistics** show who opens, merges and reviews PRs, and how long PRs wait for a first review.
25
+ - **Any provider:** agents on Claude Code, Codex, OpenCode, Pi, Copilot, Cursor and more get Follow-up's tools.
26
+
27
+ It never merges, requests reviewers, archives, answers a question for you or wakes a resting agent on its own.
28
+
29
+ ## Install
30
+
31
+ ```sh
32
+ paseo plugin install npm:paseo-follow-up
33
+ ```
34
+
35
+ You need Paseo 0.15 or later and Node 22+ on the machine Paseo runs on. A signed-in GitHub CLI there is optional and
36
+ turns on the PR features. Then open Follow-up in Paseo's sidebar: a two-minute setup walks you through the rest.
37
+
38
+ It runs on your machine with your own sign-ins.
39
+ [What it reads and writes](https://github.com/tomgrin10/paseo-follow-up/blob/main/docs/data-access.md).
package/README.md CHANGED
@@ -96,7 +96,7 @@ I built it for myself, to keep up with my own agents, and it made me a lot more
96
96
  - Answer a question for you.
97
97
  - Wake a resting agent. It reads the transcript on disk instead.
98
98
 
99
- It runs on your machine with your own GitHub sign-in. [OVERVIEW.md](OVERVIEW.md) says exactly what it reads and
99
+ It runs on your machine with your own GitHub sign-in. [Data and access](docs/data-access.md) says exactly what it reads and
100
100
  writes.
101
101
 
102
102
  ## On the pull request, too
@@ -82,8 +82,9 @@ export function useOmnibox(model: HomeModel, sources: HomeSources, extraProvider
82
82
  const current = active ?? fallback;
83
83
  const move = useCallback((delta: number) => setActive(a => Math.max(0, Math.min((results?.length ?? 1) - 1, (a ?? fallback) + delta))), [results, fallback]);
84
84
  // every-search-request-lands-in-the-visible-search: this field takes a search request (the key, ⌘K, `/`) while it is
85
- // the one on screen, on mount, on layout, or when focus moves without the developer (client/search-focus.ts).
86
- const onSearchLayout = useSearchFocusField(sources.extras.searchFocus, inputRef);
85
+ // the one on screen, on mount, on layout, or when focus moves without the developer (client/search-focus.ts); what
86
+ // the developer typed before it landed becomes the query.
87
+ const onSearchLayout = useSearchFocusField(sources.extras.searchFocus, inputRef, setQuery);
87
88
  const focusSearch = useCallback(() => { const f = sources.extras.searchFocus; if (!f.shown()) return false; f.request(); return true; }, [sources.extras.searchFocus]);
88
89
  const hint = layoutHint((results ?? []).flatMap(r => r.hit ? [r.hit] : []));
89
90
  return { query, setQuery, setPhysical, layoutHint: hint, results, active: Math.min(current, Math.max(0, (results?.length ?? 1) - 1)), move, inputRef, onSearchLayout, focusSearch, askOn, images };
@@ -1,4 +1,4 @@
1
- import { useEffect } from "react";
1
+ import { useEffect, useRef } from "react";
2
2
  import { Platform } from "react-native";
3
3
  import { overlayOver, surfaceVisible } from "../shared/list-keys";
4
4
  import { OVERLAYS } from "./list-keys";
@@ -11,16 +11,40 @@ import { createSearchFocus, type SearchFocus } from "../shared/search-focus";
11
11
  * handler (that key makes the request after this runs). While it holds, focus moving without the developer tries again
12
12
  * (`focusMoved`), except on a touch screen, where a focus() nobody tapped for would pop the keyboard up unasked. Native
13
13
  * hears none of those events, so there the request ends with the first field that mounts or lays out after it.
14
+ *
15
+ * A key is the developer acting only when it is a new press of a key that does something (`keyActs`): the request's own
16
+ * chord held past the key-repeat delay (a Mac repeats ⌘⇧K while held) and a modifier pressed alone are not. A plain
17
+ * character typed before the caret lands is the query, not an act: it is kept (`typeAhead`) and lands in the field;
18
+ * Enter then is held back, never sent to the screen being left. Only for `TYPE_AHEAD_MS` after the request: past
19
+ * that, with no search on screen, a key is the developer's again (no timer: the key's own time decides).
14
20
  */
15
21
  type Listen = (type: string, listener: (e: { target?: unknown }) => void, capture?: boolean) => void;
16
22
  type Doc = { activeElement?: unknown; visibilityState?: string; querySelectorAll?(selector: string): Iterable<unknown> };
17
23
  type Win = { addEventListener?: Listen; removeEventListener?: Listen; document?: Doc; matchMedia?(q: string): { matches: boolean } };
18
24
  type El = { closest?(selector: string): unknown };
25
+ export type KeyLike = { key?: string; repeat?: boolean; isComposing?: boolean; ctrlKey?: boolean; metaKey?: boolean; altKey?: boolean; getModifierState?(key: string): boolean; target?: unknown; preventDefault?(): void; stopPropagation?(): void };
26
+
27
+ /** Keys that only modify another: pressing one alone (or again, around the request's chord) is not an act. */
28
+ const MODIFIERS = new Set(["Shift", "Control", "Meta", "Alt", "AltGraph", "CapsLock", "Fn", "FnLock", "OS", "Super", "Hyper", "Symbol", "SymbolLock", "NumLock", "ScrollLock"]);
29
+
30
+ /**
31
+ * What a keydown means to a held request: nothing (a chord held down repeating, as a Mac repeats ⌘⇧K; a lone
32
+ * modifier), a key for the search (a character, Backspace, or Enter, held back so it never sends the draft on the
33
+ * screen being left), or an act. AltGr's characters (reported as Ctrl+Alt on Windows) are typing.
34
+ */
35
+ export function keyActs(e: KeyLike, inDialog: boolean): "ignore" | "type" | "act" {
36
+ const altGr = !!e.getModifierState?.("AltGraph");
37
+ const chord = !altGr && (e.ctrlKey || e.metaKey || e.altKey);
38
+ if (MODIFIERS.has(e.key ?? "") || e.repeat && chord) return "ignore";
39
+ if (e.isComposing || chord || inDialog) return "act";
40
+ const key = e.key ?? "";
41
+ return key === "Backspace" || key === "Enter" || [...key].length === 1 ? "type" : "act";
42
+ }
19
43
 
20
44
  /** Where focus went: into a dialog or menu (the request waits for it), or onto a Home search. */
21
45
  const DIALOG = '[role="dialog"],[role="alertdialog"],[aria-modal="true"],[role="menu"]';
22
46
  export const SEARCH_FIELD_ATTR = "data-follow-up-search";
23
- const CANCEL_EVENTS = ["keydown", "pointerdown", "click", "wheel", "touchstart", "input"] as const;
47
+ const CANCEL_EVENTS = ["pointerdown", "click", "wheel", "touchstart", "input"] as const;
24
48
 
25
49
  export function createWebSearchFocus(): SearchFocus & { install(): () => void } {
26
50
  const focus = createSearchFocus();
@@ -36,6 +60,13 @@ export function createWebSearchFocus(): SearchFocus & { install(): () => void }
36
60
  install() {
37
61
  if (!web) return () => undefined;
38
62
  const cancel = () => focus.cancel();
63
+ const onKey = (e: KeyLike) => {
64
+ if (!focus.wanted()) return;
65
+ const what = keyActs(e, !!(e.target as El | null)?.closest?.(DIALOG));
66
+ if (what === "ignore") return;
67
+ if (what === "type" && focus.typeAhead(e.key ?? "")) { e.preventDefault?.(); e.stopPropagation?.(); return; }
68
+ focus.cancel();
69
+ };
39
70
  const coarse = !!win.matchMedia?.("(pointer: coarse)").matches;
40
71
  const moved = (e: { target?: unknown }) => {
41
72
  if (!focus.wanted()) return;
@@ -44,8 +75,9 @@ export function createWebSearchFocus(): SearchFocus & { install(): () => void }
44
75
  focus.focusMoved({ dialog: !!el?.closest?.(DIALOG), search: !!el?.closest?.(`[${SEARCH_FIELD_ATTR}]`) });
45
76
  };
46
77
  for (const t of CANCEL_EVENTS) win.addEventListener!(t, cancel, true);
78
+ win.addEventListener!("keydown", onKey as never, true);
47
79
  win.addEventListener!("focusin", moved, true);
48
- return () => { for (const t of CANCEL_EVENTS) win.removeEventListener?.(t, cancel, true); win.removeEventListener?.("focusin", moved, true); };
80
+ return () => { for (const t of CANCEL_EVENTS) win.removeEventListener?.(t, cancel, true); win.removeEventListener?.("keydown", onKey as never, true); win.removeEventListener?.("focusin", moved, true); };
49
81
  },
50
82
  };
51
83
  }
@@ -59,7 +91,8 @@ type Input = { focus(): void; select?(): void; checkVisibility?(): boolean; getC
59
91
  * selects the query, so typing replaces it, as in a command palette. Returns the field's onLayout, which tries a
60
92
  * waiting request again when the field comes on screen. The field carries SEARCH_FIELD_ATTR (QueryField's `dataSet`).
61
93
  */
62
- export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown }): () => void {
94
+ export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown }, setQuery?: (q: string) => void): () => void {
95
+ const typeRef = useRef(setQuery); typeRef.current = setQuery;
63
96
  useEffect(() => {
64
97
  const doc = (globalThis as Win).document;
65
98
  const web = Platform.OS === "web" && !!doc;
@@ -68,6 +101,7 @@ export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown
68
101
  covered: () => web && overlayOver((doc!.querySelectorAll?.(OVERLAYS) ?? []) as never, ref.current),
69
102
  focused: () => web ? !!ref.current && doc!.activeElement === ref.current : !!(ref.current as { isFocused?(): boolean } | null)?.isFocused?.(),
70
103
  focus: () => { const el = ref.current as Input | null; el?.focus(); if (web) el?.select?.(); },
104
+ type: text => typeRef.current?.(text),
71
105
  });
72
106
  }, [owner, ref]);
73
107
  return () => { if (owner.wanted()) owner.changed(); };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "paseo-follow-up",
3
3
  "private": false,
4
- "version": "2.4.0",
5
- "description": "Follows every workspace your coding agents work in until it's done: one list of what needs you.",
4
+ "version": "2.4.2",
5
+ "description": "Every agent, one inbox. Follow-up brings what all your coding agents need from you into one ranked list, and follows their work through merge, deploy and after.",
6
6
  "type": "module",
7
7
  "files": [
8
8
  "paseo-plugin.json",
package/paseo-plugin.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "follow-up",
3
3
  "name": "Follow-up",
4
4
  "icon": "assets/icon.png",
5
- "description": "Follow every workspace until the work is done: one Home for what needs you, questions you answer anywhere, and repairs that send themselves.",
5
+ "description": "Every agent, one inbox. Follow-up brings what all your coding agents need from you into one ranked list, and follows their work through merge, deploy and after.",
6
6
  "media": [
7
7
  "docs/screenshots/follow-up-slide-1-cover.png",
8
8
  "https://cdn.jsdelivr.net/gh/tomgrin10/paseo-follow-up@635e600d3390e23ea786492780755afda591bb45/docs/screenshots/follow-up-demo-v2.mp4",
@@ -212,7 +212,8 @@ export type InstallKind = typeof INSTALL_KINDS[number];
212
212
 
213
213
  export const releaseNoteSchema = z.object({ version: z.string(), date: z.string().nullable(), items: z.array(z.string()),
214
214
  blocks: z.array(z.union([
215
- z.object({ kind: z.enum(["heading", "text", "bullet", "rule"]), text: z.string() }),
215
+ z.object({ kind: z.enum(["heading", "text", "bullet", "rule"]), text: z.string(),
216
+ runs: z.array(z.object({ text: z.string(), bold: z.literal(true).optional() })).optional() }),
216
217
  z.object({ kind: z.literal("image"), text: z.string(), url: z.string(), aspect: z.number().nullable(), width: z.number().nullable() }),
217
218
  ])).optional() });
218
219
  /** `follow.release-notes`: this host's version record and every shipped note. Read once per app session; never polled. */
@@ -12,6 +12,12 @@
12
12
  * once the caret has landed a focus move elsewhere is taken back at most once (enough for ⌘K handing focus back as it
13
13
  * closes); the next one is the developer's.
14
14
  *
15
+ * Only the developer's own act ends a request, never the request's own key: a held chord's auto-repeat and a modifier
16
+ * pressed or re-pressed around it are not acts (the adapter drops them), and characters typed before the caret lands
17
+ * are typed into the search (`typeAhead`), handed to the field the moment it takes the caret. 2026-11-26, the
18
+ * developer on 2.4.0-rc.0: the key opened Home but the caret never reached the search; a Mac repeats a held ⌘⇧K
19
+ * within its key-repeat delay, and a query typed while a large Home mounted ended the request on its first letter.
20
+ *
15
21
  * A field is shown only when it is on screen. Paseo keeps earlier screens mounted behind the current one, so more
16
22
  * than one Home search can be mounted; only the newest one the developer can see takes the caret. Pure, so tests run
17
23
  * it without a DOM (client/search-focus.ts is the adapter).
@@ -24,9 +30,14 @@ export type FocusField = {
24
30
  focus(): void;
25
31
  /** A menu or modal dialog is drawn over it: the request waits (never fights the dialog for focus). */
26
32
  covered?(): boolean;
33
+ /** Puts text typed ahead of the caret into the field (replacing the query the landing selected). */
34
+ type?(text: string): void;
27
35
  };
28
36
 
29
- export function createSearchFocus() {
37
+ /** How long after a request typed keys are kept for the search; a key later than this, with no caret yet, is an act. */
38
+ export const TYPE_AHEAD_MS = 2000;
39
+
40
+ export function createSearchFocus(now: () => number = Date.now) {
30
41
  const fields: FocusField[] = [];
31
42
  let want = false;
32
43
  /** The caret landed for this request (so a later focus move away may be taken back once). */
@@ -34,6 +45,9 @@ export function createSearchFocus() {
34
45
  let retaken = false;
35
46
  /** A focus() inside a delivery fires focusin, which must not deliver again. */
36
47
  let delivering = false;
48
+ /** Characters typed after the request and before the caret landed: they belong in the search. */
49
+ let ahead = "";
50
+ let askedAt = 0;
37
51
  /** The newest shown field: a screen pushed later sits in front. */
38
52
  const target = () => { for (let i = fields.length - 1; i >= 0; i--) if (fields[i].shown()) return fields[i]; return null; };
39
53
  const deliver = (): boolean => {
@@ -43,12 +57,12 @@ export function createSearchFocus() {
43
57
  delivering = true;
44
58
  try { if (!field.focused()) field.focus(); } finally { delivering = false; }
45
59
  const took = field.focused();
46
- if (took) landed = true;
60
+ if (took) { landed = true; if (ahead) { field.type?.(ahead); ahead = ""; } }
47
61
  return took;
48
62
  };
49
63
  return {
50
64
  /** Asks for the caret in the shown search field; true when it is there now. It keeps asking until `cancel()`. */
51
- request(): boolean { want = true; landed = false; retaken = false; return deliver(); },
65
+ request(): boolean { want = true; landed = false; retaken = false; ahead = ""; askedAt = now(); return deliver(); },
52
66
  /** A Home search field is on screen (so a request needs no navigation). */
53
67
  shown: () => target() !== null,
54
68
  /** A request is waiting for the developer to act. */
@@ -69,8 +83,21 @@ export function createSearchFocus() {
69
83
  if (landed) { if (retaken) { want = false; return; } retaken = true; }
70
84
  deliver();
71
85
  },
86
+ /**
87
+ * A plain character, Backspace or Enter typed while the request waits for its field: kept for the search (Enter
88
+ * only held back), and true when taken (the caller stops the key going anywhere else). Once the caret has landed,
89
+ * with no request, or `TYPE_AHEAD_MS` after it (nothing came on screen: the keys are the developer's again), false.
90
+ */
91
+ typeAhead(key: string): boolean {
92
+ if (!want || landed || now() - askedAt > TYPE_AHEAD_MS) return false;
93
+ if (key === "Enter") return true;
94
+ if (key === "Backspace") { if (!ahead) return false; ahead = ahead.slice(0, -1); return true; }
95
+ if ([...key].length !== 1) return false;
96
+ ahead += key;
97
+ return true;
98
+ },
72
99
  /** The developer acted: the request is theirs to keep or drop, so stop holding it. */
73
- cancel(): void { want = false; },
100
+ cancel(): void { want = false; ahead = ""; },
74
101
  };
75
102
  }
76
103
  export type SearchFocus = ReturnType<typeof createSearchFocus>;