paseo-follow-up 2.3.0-beta.4 → 2.3.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,6 +2,61 @@
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.3.0 (2026-11-22)
6
+
7
+ Clear what doesn't need you, find the workspace you meant, and spend far less of GitHub's limit.
8
+
9
+ - **Dismiss anything in Needs you**, questions included, with the small × in its corner. Remove and Keep sit side by side, the agent isn't messaged, and Undo brings it back. A removed item returns by itself when something about it changes.
10
+ - **Search finds what you meant**, even typed on the wrong keyboard layout, in any language. Search from anywhere is now ⌘⇧K (Ctrl+Shift+K), since Paseo 0.17 uses ⌘/.
11
+ - **Ask for More context anywhere:** the panel, Home, the question dialog, the chat pill or your phone.
12
+ - **Repairs reach your main agent as soon as it's free**, even while its subagents keep working, and a waiting repair says what it's waiting for.
13
+ - **Far less of GitHub's limit:** Follow-up reads a PR in full only when something on it changed, and pauses its checks if the limit runs low.
14
+ - **Settings are tabs** on Follow-up's own settings page on Paseo 0.16 and later, and Home lists its keys when you press S. Plus many smaller fixes.
15
+
16
+ <details><summary>Full changelog since 2.2.0</summary>
17
+
18
+ ### Home and Needs you
19
+
20
+ - Dismiss anything in Needs you with the small x in its corner: an agent's ask, a merge or reviewers ask, repairs waiting on you, and the rest. The agent isn't messaged, and Undo brings it back.
21
+ - On Home, Enter opens the selected workspace's chat however you picked it, including pressing Enter again right after a search. O does the same, as in Catch up.
22
+ - Press S on Home (or the keyboard button by settings) to see every Home key.
23
+ - Ask for more context on a question from the panel, Home, the question dialog, the chat pill or your phone, not only in Catch up. The answer shows on the question wherever you look at it.
24
+ - Search finds workspaces typed on the wrong keyboard layout, with a quiet hint and your text kept intact. Desktop uses physical keys; Hebrew and Russian also work on phones and pasted text.
25
+ - On Paseo 0.16 and later, Follow-up's settings categories (General, Following, Reviewers, Agents, Inbox & display) are Paseo's own tabs on the Follow-up settings page, and every Settings link opens the right one.
26
+ - When the agent says only a person can move something, such as a stale review the reviewer must re-review, Needs you shows it as that PR waiting on its reviewer, with Ask for re-review, instead of "The tasks didn't finish".
27
+ - Search from anywhere is now ⌘⇧K (Ctrl+Shift+K): Paseo 0.17 uses ⌘/ for its model picker. If you picked ⌘/, you’re moved to ⌘⇧K; change it in Settings → Display.
28
+
29
+ ### Questions and answers
30
+
31
+ - A dismissed item comes back by itself when something about it changes, like a new push or a new failure. In Catch up, Shift+D dismisses any card.
32
+ - The card for a new agent or workspace stays after it's created and opens it.
33
+ - With Claude agents, the Done card and a question's number now show in the chat.
34
+ - When the limit runs low, Follow-up pauses its checks and leaves the rest to your agents. The Pull requests card says when it updates again.
35
+
36
+ ### Repairs and PRs
37
+
38
+ - Repairs reach your main agent as soon as it's free, even while its subagents keep working.
39
+ - A waiting repair says what it's waiting for, like the main agent's turn, a permission prompt or Session Guard, and Send now still sends it the moment the main agent is free.
40
+ - Follow-up checks your PRs with a small fraction of GitHub's hourly limit, even with lots of PRs: it reads a PR in full only when something on it changed.
41
+
42
+ ### Setup, Settings and updates
43
+
44
+ - The panel's Project settings button now opens Following.
45
+
46
+ ### More
47
+
48
+ - Keep is where the keyboard lands, so pressing Enter twice never removes anything, and neither does a double-click on the x.
49
+ - Dismissing asks for a second click on the same spot, so a stray click doesn't dismiss anything. The first click turns the x into a small red Dismiss button; clicking elsewhere, Esc, or waiting a few seconds puts the x back.
50
+
51
+ ### Fixes
52
+
53
+ - Dismiss a question that no longer matters. The agent isn't messaged, and Undo brings it back. In Catch up, Shift+D does it.
54
+ - Removing an item from Needs you now shows Remove and Keep side by side, so backing out is one obvious click.
55
+ - A removed item now says Removed everywhere you see it, on its card and in question history, matching the toast.
56
+ - Needs you no longer shows a repair that stopped mattering: once its PR merges or the problem is gone, it clears on its own.
57
+
58
+ </details>
59
+
5
60
  ## 2.2.0 (2026-11-18)
6
61
 
7
62
  Catch up walks you through everything that needs you, one card at a time.
package/README.md CHANGED
@@ -2,239 +2,82 @@
2
2
 
3
3
  # Follow-up
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/paseo-follow-up?style=for-the-badge&color=cb3837)](https://www.npmjs.com/package/paseo-follow-up)
6
- [![npm downloads](https://img.shields.io/npm/dm/paseo-follow-up?style=for-the-badge&color=cb3837)](https://www.npmjs.com/package/paseo-follow-up)
7
- [![Paseo](https://img.shields.io/badge/Paseo-%E2%89%A5%200.15-8A63D2?style=for-the-badge)](https://paseo.sh)
8
- [![License](https://img.shields.io/github/license/tomgrin10/paseo-follow-up?style=for-the-badge&color=2563eb)](LICENSE)
5
+ [![npm version](https://img.shields.io/npm/v/paseo-follow-up?color=cb3837)](https://www.npmjs.com/package/paseo-follow-up)
6
+ [![Paseo](https://img.shields.io/badge/Paseo-%E2%89%A5%200.15-8A63D2)](https://paseo.sh)
7
+ [![License](https://img.shields.io/github/license/tomgrin10/paseo-follow-up?color=2563eb)](LICENSE)
9
8
 
10
- Follow-up is a [Paseo](https://paseo.sh) plugin that keeps track of every workspace your coding agents work in, until
11
- the work is merged and done. It shows you in one place which agents are waiting on you and why, sends failed checks and
12
- review comments back to the right agent by itself, and lets you answer an agent's question without opening its chat.
9
+ A [Paseo](https://paseo.sh) plugin that follows every workspace your coding agents work in until the work is merged.
10
+ One list shows which agents are waiting on you and why.
13
11
 
14
12
  <img alt="Follow-up Home: every workspace in one list, grouped by what it needs from you, with the selected workspace's question and its options on the right" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-home.png">
15
13
 
16
- Screenshots use synthetic workspaces, people and PRs.
17
-
18
14
  ## Install
19
15
 
20
16
  ```sh
21
17
  paseo plugin install npm:paseo-follow-up
22
18
  ```
23
19
 
24
- Needs Paseo 0.15 or later, Node 22+ and a signed-in GitHub CLI (`gh`) on the machine the Paseo daemon runs on. Then
25
- open **Follow-up** in Paseo's sidebar; a two-minute setup walks you through the rest.
26
-
27
- ## What you can do
28
-
29
- - **See everything that needs you in one list.** Home lists every workspace, grouped by what it needs from you. When
30
- an agent finishes, asks something, hits an error or waits for a permission, it moves to the top, under **Needs you**,
31
- and stays there until you mark it done or reply. You act on it right there, without opening the chat.
32
- - **Answer agents from anywhere.** When an agent needs a decision, it asks in a card with lettered options, its
33
- recommendation and room for your own answer. Answer on Home, in the workspace's side panel, in the bar above the
34
- agent's message box, or on your phone. The answer goes straight into the agent's chat.
35
- - **Let fixes go back to the agent.** When a PR's checks fail, it hits a merge conflict or a reviewer leaves comments,
36
- Follow-up sends them to the agent that made the PR, in one message once it's idle. You're only asked for what's yours
37
- to decide, like merging. Works with plain GitHub; Graphite is optional.
38
- - **Know what each workspace is about.** A one-line description of what it's for, and the Linear issues, Slack threads
39
- and docs it's about.
40
- - **Ask about any workspace.** Type in Home's search box and an agent that knows all your workspaces passes your
41
- question to the one doing the work. Optionally, Follow-up orders the list by what your Linear issues, Slack mentions
42
- and review requests say matters most.
43
- - **Use your own models.** Its small background jobs, like writing those descriptions, run on any model provider Paseo
44
- has. Your agents can do anything you can click in Follow-up, after showing you a plan.
45
- - **Forget about it.** It updates itself when nothing is busy, rolls back if an update fails, and stays light on the
46
- machine.
47
-
48
- ## Setup
49
-
50
- The first time you open Follow-up from the sidebar, a short setup takes Home's place. It takes about two minutes, and
51
- **Skip setup** leaves it at any point.
52
-
53
- <img alt="Follow-up's setup, first step: an example PR going from failed checks to a fix sent to its agent to a merge only you can approve" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-setup.png">
54
-
55
- It shows what Follow-up does, checks GitHub and the helper agents (with the fix to copy for anything missing), and asks
56
- what Follow-up may do without asking you, how you ship PRs, who reviews, how it updates and which helpers to turn on.
57
- Every switch is the same one Settings shows. Run it again from Settings → General → **Set up Follow-up again**.
58
-
59
- ## Using it
60
-
61
- Open **Follow-up** in Paseo's sidebar for Home, or the Follow-up icon in a workspace's header for that workspace's
62
- panel. ⌘K (Ctrl+K) has a Follow-up command for most things.
63
-
64
- On Paseo 0.16 or newer, Follow-up can also be your sidebar: pick **Follow-up: Needs you** in Settings → Sidebar →
65
- View. Follow-up 2.0 still runs on Paseo 0.15; there it simply doesn't offer the view.
66
-
67
- <img alt="Paseo 0.16's sidebar showing Follow-up's view: workspaces grouped by what they need from you, each with its status, beside the selected workspace's chat" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-sidebar.png" width="600">
68
-
69
- <img alt="The workspace panel beside the agent's chat: 1 of 3 PRs merged, a stack bar, a question to answer, a failed check for the agent to fix and a task waiting on a deploy" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-panel.png">
70
-
71
- - **Answer a question.** Pick an option, add a note if you like, and send. Cmd+Enter (Ctrl+Enter) sends. If the agent
72
- is busy or waking up, the card says Sending until it has the answer, and offers Send again if it couldn't deliver.
73
-
74
- <img alt="A question card: three lettered options, A recommended, with a note for the agent" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-questions.png">
75
-
76
- - **The bar above the message box** (the pill) shows what needs you in the chat you're in, with the same actions.
77
-
78
- <img alt="The composer pill opened: a question to answer, tasks ready to send and an approved PR" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-pill.png">
79
-
80
- - **A PR.** Tap a PR, or its segment in the stack bar, for its checks, reviewers and Merge. When Merge isn't available
81
- yet, the sheet says what it's waiting for. Follow-up never merges on its own, and Merge checks the stack again first.
82
-
83
- <img alt="The PR sheet for a PR whose required test check failed" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-pr-sheet.png">
84
-
85
- - **Linked items.** Next to a workspace's Spec: the Linear issues, Slack threads and docs it's about, with who linked
86
- each one and why. Paste a link or a key to add one. Agents link what they start from, and a Linear key counts only
87
- once Linear confirms it.
88
-
89
- <img alt="A workspace's Linked list: a Linear issue, a Slack thread and a doc, each with who linked it" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-linked-items.png">
90
-
91
- - **On a phone**, Home is the list and a row opens its detail. Sheets open from the bottom.
92
-
93
- <img alt="Follow-up on a phone: Home's list, and a workspace's detail with its question" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-phone.png">
94
-
95
- With Updates set to **Tell me**, Home says when any newer stable version is available, including minor and patch
96
- releases. On the Beta channel, betas show only in Settings → General.
97
-
98
- After an update that brings new release notes, Follow-up shows **What's new** once. Betas install quietly.
99
- To stop it, turn off **Show What's new after updates** in Settings → General. Release notes are there too, and in
100
- [CHANGELOG.md](CHANGELOG.md).
101
-
102
- ## Helper agents and providers
103
-
104
- Follow-up runs a few small background jobs ("helpers") for you. Each one is optional, and Settings → **Agents** shows what each uses and
105
- recommends a model from the providers you have, with **Use recommended** in one click.
106
-
107
- | Helper | What it does | Runs on |
108
- | --- | --- | --- |
109
- | Summaries | One sentence under each workspace's title saying what it's for | Any provider Paseo has |
110
- | AI priority | Sorts Home from Linear, Slack and review requests, about hourly on workdays, and only when something changed | Any provider Paseo has |
111
- | Overseer | One agent you ask about all your workspaces. Starts only when you click Start on Home | A Paseo agent, Claude by default |
112
- | Recovery | Rebuilds a workspace's tracking when Follow-up lost track of it. Runs only when you ask | The main agent's provider, or one you pick |
113
-
114
- Claude and Codex run a job directly. Other providers run it as a short hidden agent. AI priority reads Linear and
115
- Slack through read-only tools and never posts anything.
116
-
117
- ## Settings
118
-
119
- Settings (the gear on Home, or ⌘K → **Follow-up: settings**) has five categories:
120
-
121
- - **General.** Updates (Install automatically, Tell me or Off; Stable or Beta), setup, and the release notes.
122
- - **Following.** Which projects and workspaces Follow-up follows, auto-send, how each repository ships PRs (GitHub or
123
- Graphite, the merge method, how agents handle review comments), and Trust bypass for permission prompts.
124
- - **Reviewers.** Who **Add reviewers** asks: a default for every repository and a list per repository.
125
- - **Agents.** The helper agents and their models, what agents do while a question waits, and, on Paseo 0.15, Wait for
126
- background jobs.
127
- - **Inbox & display.** The Needs-you inbox, the sidebar badge and the pills.
128
-
129
- ## What Follow-up never does on its own
130
-
131
- - Merge, turn on merge when ready, request reviewers or archive. Those take your click, or an agent's confirmed plan.
132
- - Answer a question for you. Answers go out only when you send them.
133
- - Wake an agent that's resting to read it. It reads the transcript on disk instead.
134
-
135
- ## Report a bug or request a feature
136
-
137
- Ask any agent in Paseo to "report a bug about Follow-up" (or a feature request, or feedback), or use **Report a bug**
138
- in Settings → General, Command-K, `/report-issue` in the composer, or **Report this** on any error. The agent asks what
139
- it needs, checks what it can, and shows you the exact issue before filing it in this repository with your own GitHub
140
- sign-in. It adds Follow-up's version, Paseo's, your OS and recent errors, and replaces private repository names, PR
141
- titles, hostnames, emails and paths with placeholders. Screenshots are uploaded to a public `paseo-issue-assets`
142
- repository in your account only if you say yes for that report; otherwise you drag them into the issue. Without a
143
- GitHub sign-in you get a prefilled link instead. You can also [open an issue](https://github.com/tomgrin10/paseo-follow-up/issues/new/choose) by hand.
144
-
145
- ## Upgrading from 1.x
146
-
147
- Update as usual. 2.0 copies your data to its new folder and moves itself to the plugin id `follow-up` once, while
148
- nothing is busy; Settings → General says when it's done. 2.0 needs Paseo 0.15 or later. To go back to 1.0.1:
149
-
150
- ```sh
151
- paseo plugin remove follow-up
152
- paseo plugin install npm:paseo-follow-up@1.0.1
153
- ```
154
-
155
- 1.x's data folder is never deleted, so 1.0.1 starts from where it was before the move.
20
+ You need Paseo 0.15 or later, Node 22+ and a signed-in GitHub CLI (`gh`) on the machine Paseo runs on. Then open
21
+ Follow-up in Paseo's sidebar. A two-minute setup walks you through the rest.
156
22
 
157
- Betas are on npm's `beta` dist-tag: `paseo plugin install npm:paseo-follow-up@beta`.
23
+ ## What you get
158
24
 
159
- ## Data and access
25
+ - One list of every workspace, with the ones that need you at the top.
26
+ - Answer an agent's question from the list, the side panel, the chat or your phone, without opening its chat.
27
+ - Failed checks, merge conflicts and review comments go back to the agent that made the PR, by themselves.
28
+ - A one-line summary of each workspace, plus the Linear issues, Slack threads and docs it's about.
29
+ - Ask one agent about all your workspaces from Home's search box.
30
+ - Background jobs run on any model Paseo has, and your agents can do anything you can click.
31
+ - It updates itself when nothing is busy and rolls back if an update fails.
32
+ - On the pull request itself, see which workspace owns it and what it needs ([Send to Paseo](#on-the-pull-request-too)).
160
33
 
161
- Paseo plugins run trusted, unsandboxed code on the daemon's machine. Follow-up reads workspace metadata, agent history
162
- and GitHub PR status with your existing credentials, and keeps its state in `$PASEO_HOME/plugin-data/follow-up`. It
163
- gives agents scoped tools and installs reversible hooks for Claude Code and Codex. [OVERVIEW.md](OVERVIEW.md) has the
164
- full data-access statement.
34
+ ## On the pull request, too
165
35
 
166
- ## Memory on Linux
36
+ Add the [Send to Paseo](https://chromewebstore.google.com/detail/send-to-paseo/blflbbgkckbabbkoigpocilbkkmfijfg)
37
+ Chrome extension and a pull request on GitHub or Graphite shows the workspace that owns it and what it needs, like
38
+ "Needs you · Merge ready". **Open** jumps to its agent in Paseo, or send that agent an instruction from the same popup.
39
+ Follow-up can also switch Graphite's **Merge when ready** through it, after you confirm in Chrome.
167
40
 
168
- On Linux (glibc), a Follow-up that stays up for hours can slowly grow in memory: the allocator keeps memory Follow-up
169
- already freed. macOS isn't affected. Three allocator settings in the Paseo daemon's environment stop most of the idle growth. Every
170
- process Paseo starts inherits them.
41
+ <picture>
42
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-send-to-paseo-dark.png">
43
+ <img alt="Send to Paseo open on a GitHub pull request: a Workspace for this PR section with Follow-up's icon, the workspace webhook-retries marked Needs you · Merge ready · agent idle and an Open button, and below it a box to send the agent an instruction" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-send-to-paseo-light.png">
44
+ </picture>
171
45
 
172
- If a systemd unit runs Paseo, add them to it (the unit name is your own; `paseo` here):
46
+ ## What it never does on its own
173
47
 
174
- ```sh
175
- systemctl --user edit paseo
176
- ```
177
-
178
- ```ini
179
- [Service]
180
- Environment=MALLOC_ARENA_MAX=2 MALLOC_MMAP_THRESHOLD_=131072 MALLOC_TRIM_THRESHOLD_=131072
181
- ```
48
+ - Merge, request reviewers or archive. Those take your click, or an agent's plan that you confirmed.
49
+ - Answer a question for you.
50
+ - Wake a resting agent. It reads the transcript on disk instead.
182
51
 
183
- Then `systemctl --user restart paseo`. If the unit already reads an `EnvironmentFile=` (say `~/.config/paseo/env`),
184
- put the three `NAME=value` lines there instead. If you start the daemon from a shell, stop it and start it with them:
185
-
186
- ```sh
187
- paseo daemon stop
188
- MALLOC_ARENA_MAX=2 MALLOC_MMAP_THRESHOLD_=131072 MALLOC_TRIM_THRESHOLD_=131072 paseo daemon start
189
- ```
190
-
191
- In our test harness (140 workspaces, 45 idle minutes) Follow-up grew about 20 MB without them and 3 to 6 MB with them,
192
- at no measurable CPU cost. On a busy real setup they kept Follow-up flat while idle, but memory still stepped up during
193
- bursts of activity and stayed there: after about 4.7 hours it used 363 MB with them and 375 MB without. To undo it,
194
- remove the settings and restart Paseo.
52
+ It runs on your machine with your own GitHub sign-in. [OVERVIEW.md](OVERVIEW.md) says exactly what it reads and
53
+ writes.
195
54
 
196
55
  ## Docs
197
56
 
57
+ - [Using Follow-up](docs/guide.md): setup, the panel, the pill, settings, helper agents, updates, reporting a bug,
58
+ upgrading from 1.x and memory on Linux.
198
59
  - [CHANGELOG.md](CHANGELOG.md): release notes.
199
- - [AGENTS.md](AGENTS.md): start here to work on Follow-up, with or without an agent. The architecture, invariants and
200
- how to test.
201
- - [docs/](docs/): one page per part, such as [Needs you](docs/needs-you.md), [PRs](docs/prs.md),
202
- [Linked items](docs/linked-items.md), [updates](docs/updates.md), [Wait](docs/wait.md) and
203
- [agent tools](docs/rpcs-and-tools.md).
204
-
205
- ## Development
206
-
207
- ```sh
208
- npm ci
209
- npm run verify
210
- npm run test:install
211
- npm run shots # re-shoots the README images in an isolated daemon
212
- ```
60
+ - [AGENTS.md](AGENTS.md): how it's built and how to work on it.
213
61
 
214
- Checks run against a separate Paseo home with synthetic agents, never your own. A PR that changes something users see
215
- adds a release-note fragment ([rules](changes/README.md)), and releases are described in
216
- [docs/releasing.md](docs/releasing.md).
62
+ Questions or bugs: ask any agent in Paseo to "report a bug about Follow-up", or
63
+ [open an issue](https://github.com/tomgrin10/paseo-follow-up/issues/new/choose).
217
64
 
218
65
  ## Credits
219
66
 
220
- Follow-up borrows ideas from other Paseo plugins. Thank you to their authors.
221
-
222
- - [Progress](https://github.com/stevecastaneda/paseo-plugins/tree/main/progress) by Steve Castaneda: questions with
223
- refs, lettered options and a recommendation, the question modes and the activity log are adapted from it (MIT, see
224
- [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)).
225
- - [Better Paseo](https://github.com/RoundRedDot/better-paseo) by RoundRedDot: its Tasks board, every agent in lanes by
226
- state, shaped Home's grouped list and the reply box in its detail pane.
67
+ Ideas borrowed, with thanks, from [Progress](https://github.com/stevecastaneda/paseo-plugins/tree/main/progress) by
68
+ Steve Castaneda (questions with lettered options; MIT, see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)) and
69
+ [Better Paseo](https://github.com/RoundRedDot/better-paseo) by RoundRedDot (the grouped Home list).
227
70
 
228
71
  ## Other plugins
229
72
 
230
- - [Defer](https://github.com/tomgrin10/paseo-defer): schedule messages for later delivery.
231
- - [Send to Paseo](https://github.com/tomgrin10/send-to-paseo): send GitHub and Graphite PRs to Paseo from Chrome.
232
- - [Session Guard](https://github.com/tomgrin10/paseo-session-guard): pause at session limits and continue after reset.
233
- - [Smart Session](https://github.com/tomgrin10/paseo-smart-session): context compaction and usage insights.
234
- - [Transcript Search](https://github.com/tomgrin10/paseo-transcript-search): search conversations across hosts.
235
- - [Transfer](https://github.com/tomgrin10/paseo-transfer): copy or move workspaces between hosts.
236
- - [Vitals](https://github.com/tomgrin10/paseo-vitals): host, process, agent and Docker monitoring.
237
- - [Workspace Switcher](https://github.com/tomgrin10/paseo-switcher): Arc-style Ctrl+Tab between recent workspaces.
73
+ [Defer](https://github.com/tomgrin10/paseo-defer),
74
+ [Send to Paseo](https://github.com/tomgrin10/send-to-paseo),
75
+ [Session Guard](https://github.com/tomgrin10/paseo-session-guard),
76
+ [Smart Session](https://github.com/tomgrin10/paseo-smart-session),
77
+ [Transcript Search](https://github.com/tomgrin10/paseo-transcript-search),
78
+ [Transfer](https://github.com/tomgrin10/paseo-transfer),
79
+ [Vitals](https://github.com/tomgrin10/paseo-vitals) and
80
+ [Workspace Switcher](https://github.com/tomgrin10/paseo-switcher).
238
81
 
239
82
  ## License
240
83
 
package/client/brief.tsx CHANGED
@@ -6,7 +6,7 @@ import { useQuery, useQueryClient } from "@tanstack/react-query";
6
6
  import { openExternalUrl, useRpc, type PluginClientContext, type PluginTimelineItemProps } from "@getpaseo/plugin/client";
7
7
  import { deliveryStatus } from "../shared/queue";
8
8
  import { Icon, TextInput, copyText, useToast } from "@getpaseo/plugin/client/ui";
9
- import { BRIEF_KIND, BRIEF_VERSION, askedDecisions, cardPicks, notedCount, pickedCount, briefSchema, collapsedLine, extrasFit, hasOriginal, nothingNeededLine, isTight, pastRows, pastTone, selectsFirst, sendBar, shownBrief, pastAsk, liveBrief, newAnswerId, type Brief, type BriefDecision, type BriefMove } from "../shared/brief";
9
+ import { BRIEF_KIND, BRIEF_VERSION, askedDecisions, cardPicks, notedCount, pickedCount, briefSchema, collapsedLine, outcomeLabel, extrasFit, hasOriginal, nothingNeededLine, isTight, pastRows, pastTone, selectsFirst, sendBar, shownBrief, pastAsk, liveBrief, newAnswerId, type Brief, type BriefDecision, type BriefMove } from "../shared/brief";
10
10
  import { age } from "../shared/inbox";
11
11
  import { noReviewReposVersion, onNoReviewRepos } from "../shared/pr-workflow";
12
12
  import { briefKey, HEADLINE_WORD } from "../shared/headline";
@@ -316,7 +316,7 @@ function Past({ b, c, now, compact, height, pending = false, onResend, resending
316
316
  {answered && b.outcome !== "Done"
317
317
  ? <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
318
318
  <RichText linkColor={c.foreground} numberOfLines={expanded ? undefined : 1} style={{ color: c.foregroundMuted, fontSize: 12, lineHeight: 16 }}>{ask}</RichText>
319
- <Text style={{ color: c.foreground, fontSize: 14, lineHeight: 20, fontWeight: "600" }}>{b.outcome}</Text>
319
+ <Text style={{ color: c.foreground, fontSize: 14, lineHeight: 20, fontWeight: "600" }}>{outcomeLabel(b.outcome)}</Text>
320
320
  </View>
321
321
  : <Text numberOfLines={expanded ? undefined : 1} style={{ flex: 1, minWidth: 0, color: c.foregroundMuted, fontSize: 13, lineHeight: 18 }}>{collapsedLine(b)}</Text>}
322
322
  <Text style={{ color: c.foregroundMuted, fontSize: 12, lineHeight: 16, fontVariant: ["tabular-nums"] }}>{right}</Text>
@@ -425,7 +425,7 @@ function BriefCardBody({ item, theme, layout, agentId, deps, embedded = false, s
425
425
  // dismissing-anything-in-needs-you-sends-the-agent-nothing: an ask still in Needs you (or in Later) has the small x
426
426
  // beside its age. It signs the row off as dismissed: the agent is sent nothing, and a restated ask isn't flagged again.
427
427
  const x = flaggedAct && shown.actionable && agentId ? <View style={{ marginVertical: compact ? -8 : -5, marginRight: compact ? -8 : -6 }}>
428
- <DismissX theme={theme} compact={compact} label="Dismiss the agent's ask" disabled={!!sending} onPress={() => dismiss({ agentId }, { onDismissed })} />
428
+ <DismissX theme={theme} compact={compact} label="Remove the agent's ask" disabled={!!sending} onPress={() => dismiss({ agentId }, { onDismissed })} />
429
429
  </View> : null;
430
430
  const border = acts ? withAlpha(attention, isLight(c) ? 0.5 : 0.45) : c.border;
431
431
  // Every send from the card (a pick, Something else, Send answers, the keyboard's Send) goes through runAction: the
@@ -189,7 +189,8 @@ export function CatchUp({ theme, compact, deps, navigation, onExit }: { theme: T
189
189
  }
190
190
  // The card's own Dismiss (QuestionBody), so the key does exactly what the click does.
191
191
  // The card's own x (client/dismiss.tsx), whatever the card is, so the key does exactly what the click does.
192
- case "dismiss": { const d = inCard('[aria-label^="Dismiss"]'); if (!d) return; d.click?.(); break; }
192
+ // Its last button: the x itself, or Remove once armed (so ⇧D twice removes, as two clicks would).
193
+ case "dismiss": { const all = root()?.querySelectorAll('[data-catch-up-card] [data-testid="dismiss-x"] [role="button"]'); const d = all?.length ? all[all.length - 1] : null; if (!d) return; d.click?.(); break; }
193
194
  case "note": { const add = inCard('[aria-label^="Add a note"]'); if (add) add.click?.(); else r.querySelector('[aria-label="Tell the agent something"]')?.focus?.(); break; }
194
195
  // Its sheet or popover takes focus itself (MoveResult).
195
196
  case "later": if (!click('[aria-label="Later (L)"]')) return; break;
@@ -18,16 +18,18 @@ import type { InboxStore } from "./inbox-store";
18
18
  * count at once, the agent is sent nothing, and the toast's Undo brings it back. One control (DismissX), one request
19
19
  * (follow.dismiss), one toast.
20
20
  *
21
- * Where it shows: on a phone (no hover) always, muted, with a 40 px hit area (a real box, since react-native-web ignores hitSlop) rather than a bigger glyph.
21
+ * Where it shows: on a phone (no hover) always, muted, with a 44 px hit area (a real box, since react-native-web ignores hitSlop; DESIGN.md's compact target) rather than a bigger glyph.
22
22
  * On desktop it appears while the pointer is over its card or focus is inside it (RevealScope), and always on the card
23
23
  * that is selected (Catch up's card, Home's detail pane: `DismissReveal` "always"). Hidden is opacity 0, never
24
24
  * unmounted, so the card doesn't move when it appears and the keyboard and screen readers always reach it.
25
25
  *
26
- * Two clicks, in place (dismiss-takes-two-clicks-in-place): the first click (tap, Enter, Space, ⇧D in Catch up) arms the
27
- * x: it turns into a small red-tinted "Dismiss" pill on the same spot (solid red under the pointer), growing leftward over what sits beside it, so the
28
- * card never reflows. The second click on it dismisses. It disarms quietly on a click or tap anywhere else, Esc, focus
29
- * leaving it, the pointer leaving its card (after a short grace), or DISMISS_ARM_MS untouched. Only one x is armed at a
30
- * time, on every surface. No pop-up; Undo stays.
26
+ * Two clicks, in place (dismiss-takes-two-clicks-in-place, armed-dismiss-shows-remove-and-keep): the first click (tap,
27
+ * Enter, Space, ⇧D in Catch up) arms the x: it turns into two small buttons on the same spot, a quiet "Keep" (backs out;
28
+ * first in reading order, and where focus lands, so a second Enter keeps) and a red-tinted "Remove" (confirms; solid
29
+ * red under the pointer), growing leftward over what sits beside it, so the card never reflows. It disarms quietly on
30
+ * Keep, a click or tap anywhere else, Esc (focus goes back to the x), focus leaving the pair, the pointer leaving its
31
+ * card (after a short grace), or DISMISS_ARM_MS untouched. The second click of a double-click never removes. Only one x
32
+ * is armed at a time, on every surface. No pop-up; Undo stays.
31
33
  */
32
34
 
33
35
  /** As long as sign-off's Undo (6 s): the toast holds while the pointer or focus is on it. */
@@ -38,8 +40,8 @@ export const DISMISS_HINT = "it no longer needs you, and the agent isn't message
38
40
  export const DISMISS_ARM_MS = 4_000;
39
41
  /** How long the pointer may be off the armed x's card before it disarms (a wobble isn't leaving). */
40
42
  export const DISMISS_LEAVE_GRACE_MS = 600;
41
- /** What a screen reader hears when the x arms, and the armed x's tooltip. */
42
- export const DISMISS_CONFIRM = "Press again to dismiss";
43
+ /** What a screen reader hears when the x arms. */
44
+ export const DISMISS_CONFIRM = "Remove, or Keep to cancel";
43
45
 
44
46
  /** The one armed x, app-wide: arming another disarms this one. */
45
47
  let armedX: object | null = null;
@@ -67,15 +69,15 @@ export function useDismiss(): (target: DismissTarget, options?: { onDismissed?:
67
69
  void cache.invalidateQueries({ queryKey: overviewKey });
68
70
  };
69
71
  const call = (t: DismissTarget, undo: boolean) => "agentId" in t && inbox ? inbox.dismiss(t.agentId, undo) : rpc({ ...t, ...(undo ? { undo: true } : {}) });
70
- const undo = (t: DismissTarget, name: string) => void runAction({ label: `Undo dismiss ${name}`, toast, run: () => call(t, true), onSuccess: () => refresh(t),
72
+ const undo = (t: DismissTarget, name: string) => void runAction({ label: `Undo remove ${name}`, toast, run: () => call(t, true), onSuccess: () => refresh(t),
71
73
  success: () => `${name.charAt(0).toUpperCase()}${name.slice(1)} is back in Needs you`, failure: `Couldn't bring back ${name}` }, `dismiss:${targetKey(t)}`);
72
74
  return (t, options = {}) => {
73
75
  options.onDismissed?.();
74
- void runAction({ label: "Dismiss", toast, run: () => call(t, false), onSuccess: () => refresh(t), failure: "Couldn't dismiss it",
76
+ void runAction({ label: "Remove", toast, run: () => call(t, false), onSuccess: () => refresh(t), failure: "Couldn't remove it",
75
77
  // Already gone (merged, answered, sent elsewhere): nothing to say, the surface shows what happened.
76
78
  reconcile: () => refresh(t),
77
79
  success: r => {
78
- const message = `Dismissed ${r.name}. The agent wasn't messaged.`;
80
+ const message = `Removed ${r.name}. The agent wasn't messaged.`;
79
81
  if (!hasToastHost()) return message;
80
82
  pushToast("success", message, [{ label: "Undo", onPress: () => undo(t, r.name) }], { durationMs: DISMISS_UNDO_MS, keep: true });
81
83
  return null;
@@ -89,7 +91,7 @@ const Hovered = createContext<boolean>(false);
89
91
  /** Whether the pointer is over the card (desktop web); null outside a RevealScope, where only the x itself knows. */
90
92
  const PointerIn = createContext<boolean | null>(null);
91
93
 
92
- type DomNode = { setAttribute?(k: string, v: string): void; contains?(other: unknown): boolean };
94
+ type DomNode = { setAttribute?(k: string, v: string): void; contains?(other: unknown): boolean; focus?(): void };
93
95
  type Listen = { addEventListener?(type: string, f: (e: DomEvent) => void, capture?: boolean): void; removeEventListener?(type: string, f: (e: DomEvent) => void, capture?: boolean): void };
94
96
  type DomEvent = { key?: string; target?: unknown; preventDefault?(): void; stopPropagation?(): void };
95
97
 
@@ -106,10 +108,18 @@ export function RevealScope({ children, style, ...rest }: { children: ReactNode;
106
108
  return <View style={style} {...rest} {...(web as object)}><PointerIn.Provider value={Platform.OS === "web" ? hovered : null}><Hovered.Provider value={hovered || focused}>{children}</Hovered.Provider></PointerIn.Provider></View>;
107
109
  }
108
110
 
111
+
112
+ /** The armed pair's quiet button names the same item: "Remove Q1" → "Keep Q1". */
113
+ export const keepLabel = (label: string) => /^Remove\b/.test(label) ? label.replace(/^Remove\b/, "Keep") : `Keep ${label}`;
114
+
115
+ type PressEvent = { detail?: number; relatedTarget?: unknown; nativeEvent?: { detail?: number; relatedTarget?: unknown } } | undefined;
116
+ /** The click count of a pointer press (the DOM's `detail`: 2 is a double-click's second click); 0 for keys and native. */
117
+ const clickCount = (e: PressEvent) => e?.nativeEvent?.detail ?? e?.detail ?? 0;
118
+
109
119
  /**
110
- * The small x. `label` names what it dismisses ("Dismiss Q3", "Dismiss #12 is approved"); the hint follows it. Quiet by
120
+ * The small x. `label` names what it removes ("Remove Q1", "Remove #12 is approved"); the hint follows it. Quiet by
111
121
  * design: the muted foreground at 14 px (16 on phones), no fill until hovered, never the size or colour of an action.
112
- * Armed (the first click), it is a red "Dismiss" pill in the same place; the second click calls `onPress`.
122
+ * Armed (the first click), it is a quiet "Keep" and a red "Remove" in the same place; Remove calls `onPress`.
113
123
  */
114
124
  export function DismissX({ theme, compact, label, onPress, disabled = false }: { theme: Theme; compact: boolean; label: string; onPress: () => void; disabled?: boolean }) {
115
125
  const c = theme.colors;
@@ -118,8 +128,8 @@ export function DismissX({ theme, compact, label, onPress, disabled = false }: {
118
128
  const pointerIn = useContext(PointerIn);
119
129
  const [focused, setFocused] = useState(false);
120
130
  const [over, setOver] = useState(false);
121
- // Keyboard focus (focus-visible) holds the timeout too: someone who armed it with Enter and is hearing "Press again
122
- // to dismiss" shouldn't lose it to a timer. A mouse click also focuses; that doesn't count.
131
+ // Keyboard focus (focus-visible) holds the timeout too: someone who armed it with Enter and is hearing "Remove, or
132
+ // Keep to cancel" shouldn't lose it to a timer. A mouse click also focuses; that doesn't count.
123
133
  const [keyed, setKeyed] = useState(false);
124
134
  const reduced = useReducedMotion();
125
135
  const fade = useRef(new Animated.Value(1)).current;
@@ -128,15 +138,32 @@ export function DismissX({ theme, compact, label, onPress, disabled = false }: {
128
138
  const disarm = () => { if (armedX === me) setArmed(null); };
129
139
  const touch = compact || Platform.OS !== "web";
130
140
  const shown = touch || reveal === "always" || hovered || focused || armed;
141
+ const root = useRef<View>(null);
131
142
  const tip = useRef<View>(null);
132
- useEffect(() => { if (Platform.OS === "web") (tip.current as unknown as DomNode | null)?.setAttribute?.("title", armed ? DISMISS_CONFIRM : `Dismiss: ${DISMISS_HINT}`); }, [armed]);
133
- // Gone (dismissed, the card moved on) or disabled: never leave an armed x behind.
143
+ const keep = useRef<View>(null);
144
+ /** A pointer went down inside the pair: the focus it moves (or drops, in Safari) isn't focus leaving. */
145
+ const downInside = useRef(false);
146
+ /** Disarmed from the keyboard (Esc, Keep): focus goes back to the x. */
147
+ const refocus = useRef(false);
148
+ /** Just armed with the pointer still where the x was, which is now Remove: it stays quiet (no solid red) until the
149
+ * pointer leaves it once, so the loudest thing on the card is never one nobody chose to point at. */
150
+ const [fresh, setFresh] = useState(false);
151
+ const dom = (r: { current: View | null }) => r.current as unknown as DomNode | null;
152
+ useEffect(() => { if (Platform.OS === "web" && !armed) dom(tip)?.setAttribute?.("title", `Remove: ${DISMISS_HINT}`); }, [armed]);
153
+ // Gone (removed, the card moved on) or disabled: never leave an armed x behind.
134
154
  useEffect(() => () => disarm(), []);
135
155
  useEffect(() => { if (disabled) disarm(); }, [disabled, armed]);
136
- // The quiet timeout, paused while the pointer rests on the pill (someone about to click it).
156
+ // Armed: focus lands on Keep (the safe default: a second Enter or Space keeps). Disarmed: the pair is gone, so its
157
+ // focus is too, unless Esc or Keep hands it back to the x.
158
+ useEffect(() => {
159
+ if (armed) { setFresh(true); if (Platform.OS === "web") dom(keep)?.focus?.(); return; }
160
+ setFocused(false); setKeyed(false);
161
+ if (refocus.current) { refocus.current = false; dom(tip)?.focus?.(); }
162
+ }, [armed]);
163
+ // The quiet timeout, paused while the pointer rests on the pair (someone about to click it).
137
164
  useEffect(() => { if (!armed || over || keyed) return; const t = setTimeout(disarm, DISMISS_ARM_MS); return () => clearTimeout(t); }, [armed, over, keyed]);
138
- // The pill fades in (140 ms, ease-out, opacity only) from the x; reduced motion swaps at once. Disarming is instant,
139
- // and the second press never waits on it.
165
+ // The pair fades in (140 ms, ease-out, opacity only) from the x; reduced motion swaps at once. Disarming is instant,
166
+ // and Remove never waits on it.
140
167
  useEffect(() => {
141
168
  if (!armed) return;
142
169
  if (reduced) { fade.setValue(1); return; }
@@ -152,56 +179,91 @@ export function DismissX({ theme, compact, label, onPress, disabled = false }: {
152
179
  const t = setTimeout(disarm, DISMISS_LEAVE_GRACE_MS);
153
180
  return () => clearTimeout(t);
154
181
  }, [armed, pointerIn]);
155
- // Web: a click or tap anywhere but this x, or Esc, disarms. Esc is taken (capture, before Catch up's keys and the
156
- // host's interrupt): pressing it here only disarms.
182
+ const back = () => { refocus.current = Platform.OS === "web"; disarm(); };
183
+ // Web: a click or tap anywhere but the pair, or Esc, disarms. Esc is taken (capture, before Catch up's keys and the
184
+ // host's interrupt): pressing it here only disarms, and focus goes back to the x.
157
185
  useEffect(() => {
158
186
  if (!armed) return;
159
187
  const g = globalThis as unknown as Listen & { document?: Listen };
160
188
  const doc = g.document;
161
189
  if (typeof doc?.addEventListener !== "function" || typeof g.addEventListener !== "function") return;
162
- const onDown = (e: DomEvent) => { if (!(tip.current as unknown as DomNode | null)?.contains?.(e.target)) disarm(); };
163
- const onKey = (e: DomEvent) => { if (e.key !== "Escape") return; e.preventDefault?.(); e.stopPropagation?.(); disarm(); };
190
+ const onDown = (e: DomEvent) => { downInside.current = !!dom(root)?.contains?.(e.target); if (!downInside.current) disarm(); };
191
+ const onKey = (e: DomEvent) => { if (e.key !== "Escape") return; e.preventDefault?.(); e.stopPropagation?.(); back(); };
164
192
  doc.addEventListener("pointerdown", onDown, true);
165
193
  g.addEventListener("keydown", onKey, true);
166
194
  return () => { doc.removeEventListener?.("pointerdown", onDown, true); g.removeEventListener?.("keydown", onKey, true); };
167
195
  }, [armed]);
168
- const press = () => {
169
- if (armed) { disarm(); onPress(); return; }
170
- setArmed(me);
171
- AccessibilityInfo.announceForAccessibility?.(DISMISS_CONFIRM);
196
+ const arm = () => { setArmed(me); AccessibilityInfo.announceForAccessibility?.(DISMISS_CONFIRM); };
197
+ // A double-click on the x lands its second click where Remove now is: that click never removes.
198
+ const remove = (e?: PressEvent) => { if (clickCount(e) >= 2) return; disarm(); onPress(); };
199
+ const focusIn = () => { setFocused(true); setKeyed(Platform.OS === "web" && keyboardFocus()); };
200
+ // Focus leaving the pair (Tab past Remove, Shift+Tab before Keep) disarms; moving between Keep and Remove doesn't.
201
+ const focusOut = (e?: PressEvent) => {
202
+ setFocused(false); setKeyed(false);
203
+ const inside = downInside.current; downInside.current = false;
204
+ const to = e?.nativeEvent?.relatedTarget ?? e?.relatedTarget;
205
+ if (inside || (to != null && dom(root)?.contains?.(to))) return;
206
+ disarm();
172
207
  };
173
- // Phones: a real 40 px box (react-native-web ignores hitSlop) pulled in by 6 px each side, so it lays out as 28 px;
174
- // native also gets 4 px of hitSlop, a 48 px target. The glyph stays small and muted.
175
- const box = touch ? 40 : 22;
176
- // Armed: wider by the pill, and the extra width is taken back with a negative left margin, so it lays out exactly as
177
- // the x did: nothing beside it moves, the pill draws over it (solid, so what's under it doesn't show through).
178
- // Desktop's pill keeps a 3 px inset on the right. Phones: a 24 px pill in the same 40 px box, so the target stays and
179
- // the weight doesn't outgrow the card's own age and chips.
180
- const wide = touch ? 80 : 69;
181
- const pull = touch ? -6 : 0;
182
- return <Pressable ref={tip} accessibilityRole="button" accessibilityLabel={armed ? `${label}. ${DISMISS_CONFIRM}` : `${label}: ${DISMISS_HINT}`} disabled={disabled} onPress={press}
183
- hitSlop={4} onFocus={() => { setFocused(true); setKeyed(Platform.OS === "web" && keyboardFocus()); }} onBlur={() => { setFocused(false); setKeyed(false); disarm(); }} onHoverIn={() => setOver(true)} onHoverOut={() => setOver(false)}
184
- style={(state: { hovered?: boolean; pressed: boolean; focused?: boolean }) => armed
185
- ? { ...focusRing(state.focused, c), width: wide, height: box, margin: pull, marginLeft: pull - (wide - box), borderRadius: box / 2, alignItems: "stretch", justifyContent: "center", zIndex: 1 }
186
- : { ...focusRing(state.focused, c), width: box, height: box, margin: pull, borderRadius: box / 2, alignItems: "center", justifyContent: "center",
187
- opacity: shown ? (disabled ? 0.4 : 1) : 0, backgroundColor: state.pressed ? c.surface2 : state.hovered ? withAlpha(c.foreground, 0.06) : "transparent" }}>
188
- {state => {
189
- const hot = state.pressed || !!(state as { hovered?: boolean }).hovered;
190
- // Web screen readers: react-native-web's announceForAccessibility is a no-op, so a polite live region (always
191
- // mounted, empty until armed) says it. Native announces through AccessibilityInfo above.
192
- const live = Platform.OS === "web" ? <Text accessibilityLiveRegion="polite" style={{ position: "absolute", width: 1, height: 1, overflow: "hidden", opacity: 0 }}>{armed ? DISMISS_CONFIRM : ""}</Text> : null;
193
- if (!armed) return <>{live}<Icon name="X" size={touch ? 16 : 14} color={hot ? c.foreground : c.foregroundMuted} /></>;
194
- // Armed at rest: a danger tint with danger ink and a hairline, over the page ground so what it covers doesn't show
195
- // through. It goes solid (white on deepened danger) only under the pointer or finger, the moment it acts. Red,
196
- // quietly: Dismiss is undoable, and a solid red pill at rest read as a new blocker on an amber card.
197
- const ink = isLight(c) ? solidFor(c.statusDanger) : readable(c.statusDanger, c);
198
- return <>{live}<Animated.View style={{ opacity: fade, height: touch ? 24 : 22, marginLeft: touch ? 6 : 0, marginRight: touch ? 6 : 3, borderRadius: touch ? 12 : 11, overflow: "hidden", backgroundColor: c.surface0 }}>
199
- <View style={{ flex: 1, borderRadius: touch ? 12 : 11, borderWidth: 1, alignItems: "center", justifyContent: "center",
200
- borderColor: hot ? "transparent" : withAlpha(c.statusDanger, 0.35),
201
- backgroundColor: hot ? solidFor(c.statusDanger, state.pressed ? 0.82 : 1) : tint(c.statusDanger, c) }}>
202
- <Text numberOfLines={1} style={{ color: hot ? "#ffffff" : ink, fontSize: 12, lineHeight: 14, fontWeight: "600" }}>Dismiss</Text>
203
- </View>
204
- </Animated.View></>;
205
- }}
206
- </Pressable>;
208
+ // Sizes. Phones: every button is a real 44 px tall box (DESIGN.md's compact target; react-native-web ignores hitSlop)
209
+ // pulled in by 8 px top and bottom, so it lays out as 28 px; the x stays a small muted glyph in it, the pair's pills are 28 px, with 8 px
210
+ // between the two targets so a stray tap meant for Keep doesn't land on Remove. Desktop: 22 px, 6 px apart (room
211
+ // for Keep's focus ring).
212
+ const box = touch ? 44 : 22;
213
+ const pull = touch ? -8 : 0;
214
+ const pillH = touch ? 28 : 22;
215
+ const keepW = touch ? 60 : 46, removeW = touch ? 76 : 62, gap = touch ? 8 : 6, inset = touch ? 6 : 3;
216
+ // Armed: wider by the pair, and the extra width is taken back with a negative left margin, so it lays out exactly as
217
+ // the x did: nothing beside it moves, the pair draws over it (solid, so what's under it doesn't show through).
218
+ const wide = keepW + gap + removeW + inset;
219
+ const layout: ViewStyle = armed
220
+ ? { width: wide, height: box, margin: pull, marginLeft: pull - (wide - box), paddingRight: inset, zIndex: 1 }
221
+ : { width: box, height: box, margin: pull };
222
+ // Web screen readers: react-native-web's announceForAccessibility is a no-op, so a polite live region (always
223
+ // mounted, empty until armed) says it. Native announces through AccessibilityInfo above.
224
+ const live = Platform.OS === "web" ? <Text accessibilityLiveRegion="polite" style={{ position: "absolute", width: 1, height: 1, overflow: "hidden", opacity: 0 }}>{armed ? DISMISS_CONFIRM : ""}</Text> : null;
225
+ const hoverWeb = Platform.OS === "web" ? { onMouseEnter: () => setOver(true), onMouseLeave: () => setOver(false) } : {};
226
+ const fontSize = touch ? 13 : 12;
227
+ const pill = (w: number) => ({ width: w, height: box, borderRadius: box / 2, justifyContent: "center" as const });
228
+ return <View ref={root} testID="dismiss-x" style={layout} {...(hoverWeb as object)}>
229
+ {live}
230
+ {!armed ? <Pressable ref={tip} accessibilityRole="button" accessibilityLabel={`${label}: ${DISMISS_HINT}`} disabled={disabled} onPress={arm}
231
+ hitSlop={4} onFocus={focusIn} onBlur={() => { setFocused(false); setKeyed(false); }}
232
+ style={(state: { hovered?: boolean; pressed: boolean; focused?: boolean }) => ({ ...focusRing(state.focused, c), flex: 1, borderRadius: box / 2, alignItems: "center", justifyContent: "center",
233
+ opacity: shown ? (disabled ? 0.4 : 1) : 0, backgroundColor: state.pressed ? c.surface2 : state.hovered ? withAlpha(c.foreground, 0.06) : "transparent" })}>
234
+ {state => <Icon name="X" size={touch ? 16 : 14} color={state.pressed || (state as { hovered?: boolean }).hovered ? c.foreground : c.foregroundMuted} />}
235
+ </Pressable>
236
+ : <Animated.View style={{ flex: 1, flexDirection: "row", alignItems: "center", justifyContent: "flex-end", gap, opacity: fade }}>
237
+ {/* One solid ground under both pills and the gap between them, so the age or title they cover never shows through. */}
238
+ <View style={{ position: "absolute", left: 0, right: 0, top: (box - pillH) / 2, height: pillH, borderRadius: pillH / 2, backgroundColor: c.surface0 }} />
239
+ {/* Keep: the way back, quiet and neutral (the card's own ground, a foreground hairline that still reads as a button
240
+ in dark, body ink), first in reading order. */}
241
+ <Pressable ref={keep} accessibilityRole="button" accessibilityLabel={keepLabel(label)} hitSlop={touch ? 0 : 2} onPress={back} onFocus={focusIn} onBlur={focusOut as () => void}
242
+ style={(state: { pressed: boolean; focused?: boolean }) => ({ ...focusRing(state.focused, c), ...pill(keepW) })}>
243
+ {state => {
244
+ const hot = state.pressed || !!(state as { hovered?: boolean }).hovered;
245
+ return <View style={{ height: pillH, borderRadius: pillH / 2, borderWidth: 1, borderColor: withAlpha(c.foreground, isLight(c) ? 0.18 : 0.28), backgroundColor: hot ? c.surface2 : c.surface0, alignItems: "center", justifyContent: "center" }}>
246
+ <Text numberOfLines={1} style={{ color: c.foreground, fontSize, lineHeight: 14, fontWeight: "500" }}>Keep</Text>
247
+ </View>;
248
+ }}
249
+ </Pressable>
250
+ {/* Remove: a danger tint with danger ink and a hairline at rest, over the page ground so what it covers doesn't
251
+ show through; solid (white on deepened danger) only under the pointer or finger, the moment it acts. Red,
252
+ quietly: removing is undoable, and a solid red pill at rest read as a new blocker on an amber card. */}
253
+ <Pressable accessibilityRole="button" accessibilityLabel={label} hitSlop={touch ? 0 : 2} onPress={remove as () => void} onFocus={focusIn} onBlur={focusOut as () => void} onHoverOut={() => setFresh(false)}
254
+ style={(state: { pressed: boolean; focused?: boolean }) => ({ ...focusRing(state.focused, c), ...pill(removeW) })}>
255
+ {state => {
256
+ const hot = state.pressed || (!fresh && !!(state as { hovered?: boolean }).hovered);
257
+ const ink = isLight(c) ? solidFor(c.statusDanger) : readable(c.statusDanger, c);
258
+ return <View style={{ height: pillH, borderRadius: pillH / 2, overflow: "hidden", backgroundColor: c.surface0 }}>
259
+ <View style={{ flex: 1, borderRadius: pillH / 2, borderWidth: 1, alignItems: "center", justifyContent: "center",
260
+ borderColor: hot ? "transparent" : withAlpha(c.statusDanger, 0.35),
261
+ backgroundColor: hot ? solidFor(c.statusDanger, state.pressed ? 0.82 : 1) : tint(c.statusDanger, c) }}>
262
+ <Text numberOfLines={1} style={{ color: hot ? "#ffffff" : ink, fontSize, lineHeight: 14, fontWeight: "600" }}>Remove</Text>
263
+ </View>
264
+ </View>;
265
+ }}
266
+ </Pressable>
267
+ </Animated.View>}
268
+ </View>;
207
269
  }
@@ -163,7 +163,7 @@ export function NeedsYouList({ workspace: w, theme, compact, actions, now = Date
163
163
  const button = act || link || more ? <>{pair ?? <>{act}{link}</>}{more}</> : null;
164
164
  const said = !!untitled?.has(item.key);
165
165
  // The small x, top right, on every kind (dismissing-anything-in-needs-you-sends-the-agent-nothing).
166
- const x = <DismissX theme={theme} compact={compact} label={`Dismiss ${item.kind === "question" ? item.questionId : item.title}`}
166
+ const x = <DismissX theme={theme} compact={compact} label={`Remove ${item.kind === "question" ? item.questionId : item.title}`}
167
167
  onPress={() => dismiss({ workspaceId: w.id, key: item.key }, { onDismissed: actions.after })} />;
168
168
  // Phones: the action sits at the row's right edge so rows never grow a second line of controls. A send batch
169
169
  // (the primary, with its task list) and Retry's pair keep their buttons full width under the row.
@@ -381,7 +381,7 @@ export function QuestionBody({ workspace: w, question: q, theme, compact, now =
381
381
 
382
382
  /** A question's x: closes it as dismissed (follow.dismiss with "question:Qn"), sends the agent nothing, Undo in the toast. */
383
383
  export function QuestionDismissX({ workspaceId, questionId, theme, compact, disabled, onDismissed, dismiss }: { workspaceId: string; questionId: string; theme: Theme; compact: boolean; disabled?: boolean; onDismissed?: () => void; dismiss: ReturnType<typeof useDismiss> }) {
384
- return <DismissX theme={theme} compact={compact} label={`Dismiss ${questionId}`} disabled={disabled} onPress={() => dismiss({ workspaceId, key: `question:${questionId}` }, { onDismissed })} />;
384
+ return <DismissX theme={theme} compact={compact} label={`Remove ${questionId}`} disabled={disabled} onPress={() => dismiss({ workspaceId, key: `question:${questionId}` }, { onDismissed })} />;
385
385
  }
386
386
 
387
387
  function hostOf(url: string): string {
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "paseo-follow-up",
3
3
  "private": false,
4
- "version": "2.3.0-beta.4",
5
- "description": "A Paseo plugin that follows every workspace until the work is done: one Home for what needs you, questions you answer anywhere, and repairs that send themselves.",
4
+ "version": "2.3.0",
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": [
8
8
  "paseo-plugin.json",
package/shared/brief.ts CHANGED
@@ -326,10 +326,17 @@ export function pastAsk(ask: string): string {
326
326
  return t ? t.charAt(0).toUpperCase() + t.slice(1) : ask;
327
327
  }
328
328
 
329
+ /**
330
+ * A resolved card's outcome as the developer reads it. The stored word stays (a developer's Dismiss is recorded as
331
+ * "Dismissed", which agents and older records read); the screen says "Removed", the same word as the x's Remove and its
332
+ * toast (armed-dismiss-shows-remove-and-keep).
333
+ */
334
+ export const outcomeLabel = (outcome: string | null): string | null => outcome === "Dismissed" ? "Removed" : outcome;
335
+
329
336
  export function collapsedLine(b: Pick<Brief, "state" | "source" | "outcome" | "ask">): string {
330
- if (b.state === "superseded" && b.outcome && OWN_OUTCOMES.includes(b.outcome)) return b.outcome;
337
+ if (b.state === "superseded" && b.outcome && OWN_OUTCOMES.includes(b.outcome)) return outcomeLabel(b.outcome)!;
331
338
  if (b.state === "superseded") return b.source === "none" ? "No ask was stated · the agent kept going" : `Earlier ask, the agent kept going: ${pastAsk(b.ask)}`;
332
- return `${b.outcome} · ${pastAsk(b.ask)}`;
339
+ return `${outcomeLabel(b.outcome)} · ${pastAsk(b.ask)}`;
333
340
  }
334
341
 
335
342
  // ---------- PR facts (S5) ----------
@@ -238,7 +238,7 @@ export const CATCH_UP_KEYS: readonly { key: string; what: string; action: CatchU
238
238
  { key: "⌘↵", what: "Ask the agent", action: "ask", combos: ["Cmd+Enter", "Ctrl+Enter"], when: "more" },
239
239
  { key: "N", what: "Add a note", action: "note", combos: ["N"] },
240
240
  // D alone picks option D, so Dismiss takes Shift, as Skip workspace does beside J.
241
- { key: "⇧D", what: "Dismiss the question (the agent isn't messaged)", action: "dismiss", combos: ["Shift+D"] },
241
+ { key: "⇧D", what: "Remove it (the agent isn't messaged)", action: "dismiss", combos: ["Shift+D"] },
242
242
  { key: "V", what: "Dictate your answer, and stop", action: "dictate", combos: ["V"], needs: "dictation" },
243
243
  { key: "L", what: "Later", action: "later", combos: ["L"] },
244
244
  { key: "O", what: "Open chat", action: "chat", combos: ["O"] },
package/shared/errors.ts CHANGED
@@ -43,7 +43,7 @@ export function mootNote(error: unknown, typed = false): string {
43
43
  const kept = typed ? "Your answer wasn't sent." : "Your pick wasn't sent.";
44
44
  switch (mootKind(error)) {
45
45
  case "withdrawn": return `The agent withdrew this question. ${kept}`;
46
- case "dismissed": return `This question was dismissed. ${kept}`;
46
+ case "dismissed": return `This question was removed. ${kept}`;
47
47
  case "replaced": return `A newer card replaced this one. ${kept}`;
48
48
  default: return `Already answered elsewhere. ${kept}`;
49
49
  }
@@ -107,10 +107,13 @@ export const isOpen = (q: Pick<Question, "answer" | "closed">) => !q.answer && !
107
107
  /** The developer dismissed it (dismissing-a-question-sends-the-agent-nothing): closed, no answer, nothing sent. */
108
108
  export const isDismissed = (q: Pick<Question, "answer" | "closed">) => !q.answer && !!q.closed?.dismissed;
109
109
  export const DISMISS_REASON = "Dismissed by the developer: it no longer matters.";
110
- /** A closed question's line on every surface: "Dismissed by you" (or "for you by an agent"), else why it was withdrawn. */
110
+ /**
111
+ * A closed question's line on every surface: "Removed by you" (or "for you by an agent"), else why it was withdrawn.
112
+ * Display only: the record stays `closed.dismissed`, and agents still read it as dismissed.
113
+ */
111
114
  export function closedLine(q: Pick<Question, "answer" | "closed">): string {
112
115
  if (!q.closed) return "";
113
- if (isDismissed(q)) return q.closed.by?.startsWith("agent:") ? "Dismissed for you by an agent" : "Dismissed by you";
116
+ if (isDismissed(q)) return q.closed.by?.startsWith("agent:") ? "Removed for you by an agent" : "Removed by you";
114
117
  return `Withdrawn: ${q.closed.reason}`;
115
118
  }
116
119