paseo-follow-up 2.4.0-beta.1 → 2.4.0-beta.11

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.
Files changed (184) hide show
  1. package/OVERVIEW.md +2 -2
  2. package/README.md +81 -22
  3. package/client/action-row.tsx +97 -0
  4. package/client/agents.tsx +10 -19
  5. package/client/brief-since.tsx +321 -0
  6. package/client/brief.tsx +72 -29
  7. package/client/catch-up.tsx +21 -7
  8. package/client/chat.tsx +1 -1
  9. package/client/compass-settings.tsx +463 -0
  10. package/client/dismiss.tsx +6 -4
  11. package/client/display.tsx +5 -1
  12. package/client/header.tsx +9 -4
  13. package/client/home-chrome.tsx +47 -12
  14. package/client/home-data.ts +12 -4
  15. package/client/home-list.tsx +29 -17
  16. package/client/home-view.ts +61 -15
  17. package/client/home.tsx +125 -28
  18. package/client/host-slot.tsx +114 -0
  19. package/client/image-attach.tsx +276 -0
  20. package/client/inbox.tsx +5 -5
  21. package/client/job-rows.tsx +13 -8
  22. package/client/kit.tsx +19 -12
  23. package/client/list-keys.ts +12 -3
  24. package/client/messages.tsx +165 -0
  25. package/client/more-context.tsx +18 -11
  26. package/client/morning-brief-settings.tsx +450 -0
  27. package/client/needs-you.tsx +57 -29
  28. package/client/new-entry.tsx +61 -0
  29. package/client/new-settings.tsx +239 -0
  30. package/client/new.tsx +731 -0
  31. package/client/onboarding.tsx +7 -6
  32. package/client/panel.tsx +24 -10
  33. package/client/pending-answers.ts +25 -5
  34. package/client/pr-stats-settings.tsx +253 -0
  35. package/client/pr-stats.tsx +360 -0
  36. package/client/questions.tsx +57 -30
  37. package/client/rename.tsx +9 -18
  38. package/client/report-issue.tsx +16 -27
  39. package/client/reviewers-button.tsx +114 -0
  40. package/client/row-actions.ts +23 -9
  41. package/client/row-badges.tsx +37 -0
  42. package/client/row-menu.tsx +19 -2
  43. package/client/search-focus.ts +85 -0
  44. package/client/search-key.ts +30 -16
  45. package/client/settings.tsx +21 -4
  46. package/client/stacks.tsx +9 -2
  47. package/client/tasks.tsx +112 -225
  48. package/client/theme.ts +16 -0
  49. package/client/toast-store.ts +1 -1
  50. package/client/unsent-images.ts +26 -0
  51. package/client/why-it-matters.tsx +194 -0
  52. package/docs/screenshots/follow-up-slide-1-cover.png +0 -0
  53. package/docs/screenshots/follow-up-slide-2-decision.png +0 -0
  54. package/docs/screenshots/follow-up-slide-3-overseer.png +0 -0
  55. package/docs/screenshots/follow-up-slide-4-repairs.png +0 -0
  56. package/docs/screenshots/follow-up-slide-5-deploy.png +0 -0
  57. package/docs/screenshots/follow-up-slide-6-catch-up.png +0 -0
  58. package/index.client.tsx +42 -6
  59. package/index.server.ts +581 -45
  60. package/package.json +6 -2
  61. package/paseo-plugin.json +7 -9
  62. package/server/about.ts +18 -20
  63. package/server/agent-actions.ts +65 -11
  64. package/server/agent-hook.mjs +59 -16
  65. package/server/agent-parity.ts +85 -8
  66. package/server/agent-settings.ts +20 -4
  67. package/server/ai-jobs.ts +23 -9
  68. package/server/ask.ts +62 -0
  69. package/server/brief-sources.ts +217 -0
  70. package/server/compass.ts +753 -0
  71. package/server/daemon.ts +23 -7
  72. package/server/dispatch.ts +471 -0
  73. package/server/engine.ts +107 -22
  74. package/server/github-api.ts +17 -6
  75. package/server/github-setup.ts +126 -0
  76. package/server/github.ts +28 -0
  77. package/server/hook-source.ts +59 -16
  78. package/server/host-features.ts +21 -1
  79. package/server/image-store.ts +100 -0
  80. package/server/image-support.ts +37 -0
  81. package/server/inbox.ts +10 -4
  82. package/server/job-guard.ts +71 -0
  83. package/server/linear-issues.ts +121 -0
  84. package/server/linear-queue.ts +274 -0
  85. package/server/linked.ts +4 -7
  86. package/server/mcp-source.ts +51 -17
  87. package/server/mcp.mjs +51 -17
  88. package/server/memory.ts +43 -17
  89. package/server/message-queue.ts +41 -7
  90. package/server/morning-brief.ts +212 -0
  91. package/server/obligations.ts +44 -3
  92. package/server/onboarding.ts +3 -2
  93. package/server/overseer-prompt-source.ts +1 -1
  94. package/server/overseer-prompt.md +1 -1
  95. package/server/overseer.ts +114 -17
  96. package/server/pr-actions.ts +12 -1
  97. package/server/pr-stats-gate.ts +48 -10
  98. package/server/pr-stats-sync.ts +11 -9
  99. package/server/pr-stats.ts +318 -0
  100. package/server/questions.ts +26 -8
  101. package/server/ranker.ts +130 -95
  102. package/server/report-issue-adapter.ts +1 -1
  103. package/server/reviewer-config.ts +3 -1
  104. package/server/scopes.ts +9 -2
  105. package/server/session-mcp.ts +3 -2
  106. package/server/session-prompt.ts +131 -0
  107. package/server/source-tools.ts +135 -0
  108. package/server/tasks.ts +18 -5
  109. package/server/wait-for-checks.ts +9 -0
  110. package/shared/activity.ts +41 -5
  111. package/shared/agent-load.ts +6 -1
  112. package/shared/agent-settings.ts +31 -9
  113. package/shared/ask.ts +128 -0
  114. package/shared/attention.ts +42 -14
  115. package/shared/brief-since.ts +218 -0
  116. package/shared/brief-sources.ts +431 -0
  117. package/shared/brief.ts +1 -1
  118. package/shared/chat.ts +5 -4
  119. package/shared/compass.ts +927 -0
  120. package/shared/contracts.ts +107 -9
  121. package/shared/dispatch.ts +561 -0
  122. package/shared/display.ts +7 -2
  123. package/shared/github-setup.ts +46 -0
  124. package/shared/headline.ts +10 -6
  125. package/shared/home.ts +35 -11
  126. package/shared/images.ts +95 -0
  127. package/shared/inbox.ts +67 -4
  128. package/shared/issue-workspace.ts +65 -0
  129. package/shared/job-rows.ts +39 -11
  130. package/shared/keep-in-place.ts +22 -0
  131. package/shared/linear-issues.ts +146 -0
  132. package/shared/linear-queue.ts +355 -0
  133. package/shared/list-entries.ts +15 -3
  134. package/shared/list-keys.ts +21 -3
  135. package/shared/list.ts +1 -1
  136. package/shared/model.ts +61 -20
  137. package/shared/morning-brief.ts +442 -0
  138. package/shared/new-name.ts +25 -0
  139. package/shared/new-settings.ts +81 -0
  140. package/shared/new-view.ts +307 -0
  141. package/shared/nobody.ts +233 -0
  142. package/shared/onboarding.ts +12 -7
  143. package/shared/overseer.ts +160 -13
  144. package/shared/pr-stats-page.ts +110 -0
  145. package/shared/pr-stats-settings.ts +244 -0
  146. package/shared/pr-stats.ts +377 -0
  147. package/shared/priorities.ts +2 -2
  148. package/shared/provider-support.ts +70 -0
  149. package/shared/questions.ts +80 -3
  150. package/shared/queue.ts +41 -3
  151. package/shared/ranker.ts +55 -31
  152. package/shared/recommend.ts +7 -5
  153. package/shared/reviewers-click.ts +59 -0
  154. package/shared/row-badges.ts +24 -0
  155. package/shared/row-menu.ts +77 -11
  156. package/shared/search-focus.ts +76 -0
  157. package/shared/search-key.ts +39 -4
  158. package/shared/send-decision.ts +83 -5
  159. package/shared/send-words.ts +21 -0
  160. package/shared/sending.ts +8 -6
  161. package/shared/settings-nav.ts +7 -2
  162. package/shared/status-invariants.ts +135 -3
  163. package/shared/status.ts +5 -4
  164. package/shared/task-due.ts +209 -0
  165. package/shared/task-dup.ts +46 -0
  166. package/shared/task-rows.ts +11 -7
  167. package/shared/task-status.ts +8 -2
  168. package/shared/task-trigger.ts +4 -1
  169. package/shared/task-view.ts +123 -0
  170. package/shared/workweek.ts +24 -0
  171. package/skills/follow-up/SKILL.md +1 -1
  172. package/docs/screenshots/follow-up-home.png +0 -0
  173. package/docs/screenshots/follow-up-linked-items.png +0 -0
  174. package/docs/screenshots/follow-up-notes-home.png +0 -0
  175. package/docs/screenshots/follow-up-notes-panel.png +0 -0
  176. package/docs/screenshots/follow-up-panel.png +0 -0
  177. package/docs/screenshots/follow-up-phone.png +0 -0
  178. package/docs/screenshots/follow-up-pill.png +0 -0
  179. package/docs/screenshots/follow-up-pr-sheet.png +0 -0
  180. package/docs/screenshots/follow-up-questions.png +0 -0
  181. package/docs/screenshots/follow-up-send-to-paseo-dark.png +0 -0
  182. package/docs/screenshots/follow-up-send-to-paseo-light.png +0 -0
  183. package/docs/screenshots/follow-up-setup.png +0 -0
  184. package/docs/screenshots/follow-up-sidebar.png +0 -0
package/OVERVIEW.md CHANGED
@@ -14,13 +14,13 @@ Follow-up watches every pull request a Paseo workspace opens until the work is a
14
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
15
  - An Activity card: repairs sent and finished with how long they took, merges, PR actions and questions.
16
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, manual or scheduled after a merge or deploy, with an optional delay.
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
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
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
20
 
21
21
  ## Setup
22
22
 
23
- Requires Paseo 0.15+, Node 22+ and an authenticated `gh` on the daemon host. 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.
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
24
 
25
25
  ## What it does on its own, and what it never does
26
26
 
package/README.md CHANGED
@@ -6,10 +6,17 @@
6
6
  [![Paseo](https://img.shields.io/badge/Paseo-%E2%89%A5%200.15-8A63D2)](https://paseo.sh)
7
7
  [![License](https://img.shields.io/github/license/tomgrin10/paseo-follow-up?color=2563eb)](LICENSE)
8
8
 
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.
9
+ **Every agent, one inbox.**
11
10
 
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">
11
+ Your agents work in parallel. Your attention span doesn't. Agent tools, Paseo included, are organised around chats:
12
+ you visit each one to find out whether it needs you. Follow-up is a [Paseo](https://paseo.sh) plugin organised around
13
+ your attention instead. The work comes to you, in one place, ranked.
14
+
15
+ <img alt="Follow-up: Every agent, one inbox. Home lists every workspace by what it needs from you, with an agent's question and its lettered options open beside the list" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-slide-1-cover.png">
16
+
17
+ [![Follow-up in 36 seconds: Home, Catch up, automatic follow-ups, the Overseer](https://cdn.jsdelivr.net/gh/tomgrin10/paseo-follow-up@63f56fb59efa73f2005c785e6879406ad1bf5185/docs/screenshots/follow-up-demo-v2-poster.png)](https://cdn.jsdelivr.net/gh/tomgrin10/paseo-follow-up@63f56fb59efa73f2005c785e6879406ad1bf5185/docs/screenshots/follow-up-demo-v2.mp4)
18
+
19
+ 36 seconds: Home, Catch up, automatic follow-ups, the Overseer.
13
20
 
14
21
  ## Install
15
22
 
@@ -17,32 +24,72 @@ One list shows which agents are waiting on you and why.
17
24
  paseo plugin install npm:paseo-follow-up
18
25
  ```
19
26
 
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
27
+ You need Paseo 0.15 or later and Node 22+ on the machine Paseo runs on; a signed-in GitHub CLI (`gh`) there is optional and turns on PR tracking. Then open
21
28
  Follow-up in Paseo's sidebar. A two-minute setup walks you through the rest.
22
29
 
23
- ## What you get
30
+ ## What it does
24
31
 
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)).
32
+ ### Every workspace in one place
33
33
 
34
- ## On the pull request, too
34
+ All your workspaces, across every project, on one screen. Each shows its state, a one-line summary, and the Linear
35
+ issues, Slack threads and docs it's about. It's on Home, or always open as Paseo's sidebar.
35
36
 
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.
37
+ <picture>
38
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-sidebar-dark.png">
39
+ <img alt="Follow-up as Paseo's sidebar: workspaces grouped by what they need from you, beside the selected workspace's chat" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-sidebar-light.png">
40
+ </picture>
41
+
42
+ ### Automatic follow-ups, through merge, deploy and after
43
+
44
+ Before the merge, failed checks, merge conflicts and review comments go back to the agent that made the PR by
45
+ themselves. After it, the tasks an agent recorded come due when the PR merges, when it's deployed, or a set number of
46
+ days later, and go back to the agent that owns them: verify it in production, reply in the Slack thread once it's
47
+ live, check the numbers again next week. Work isn't done when the agent stops, or even when the PR merges. Merging
48
+ and answering stay yours: see [what it never does on its own](#what-it-never-does-on-its-own).
40
49
 
41
50
  <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">
51
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-deploy-dark.png">
52
+ <img alt="Invoice PDFs: the chat shows the failed check Follow-up sent back to the agent, and the panel beside it shows that repair sent and the next task, sending a test receipt from staging, waiting until #188 deploys" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-deploy-light.png">
53
+ </picture>
54
+
55
+ ### One inbox of what needs you, ranked by AI
56
+
57
+ Questions, failed checks, reviews and merges from every workspace, in one list. AI orders it by what your Linear
58
+ issues, Slack mentions and review requests say matters most. Agents ask for decisions as cards with lettered options
59
+ and a recommendation, so you answer in seconds without opening the chat or loading its context.
60
+
61
+ <picture>
62
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-home-dark.png">
63
+ <img alt="Home: every workspace grouped by what it needs from you, Needs you first, with Billing retries' decision open beside the list as lettered options, A recommended" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-home-light.png">
64
+ </picture>
65
+
66
+ ### An Overseer that knows all of it
67
+
68
+ One agent with every workspace's context. Ask it anything from Home's search box, like "what's blocked on review?",
69
+ and it answers or passes your words to the agent doing the work. It can re-rank the inbox too.
70
+
71
+ <picture>
72
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-overseer-dark.png">
73
+ <img alt="Home with the Overseer selected: asked what's blocked on review, it names the two workspaces waiting and why" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-frame-overseer-light.png">
44
74
  </picture>
45
75
 
76
+ ### Catch up
77
+
78
+ After a meeting or a morning away, go through everything that needs you one card at a time: answer, next, answer,
79
+ next. On the desktop or your phone.
80
+
81
+ <picture>
82
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-catch-up-phone-dark.png">
83
+ <img alt="Catch up on a phone: one card asks whether failed card_declined charges should retry, with lettered options, A recommended" src="https://raw.githubusercontent.com/tomgrin10/paseo-follow-up/main/docs/screenshots/follow-up-catch-up-phone-light.png" width="300">
84
+ </picture>
85
+
86
+ ## Built with itself
87
+
88
+ Follow-up is built with Follow-up. Its repository went from a first commit on 2026-10-23 to 300 merged pull
89
+ requests a month later, almost all of them made by agents working in parallel.
90
+
91
+ I built it for myself, to keep up with my own agents, and it made me a lot more efficient.
92
+
46
93
  ## What it never does on its own
47
94
 
48
95
  - Merge, request reviewers or archive. Those take your click, or an agent's plan that you confirmed.
@@ -52,10 +99,22 @@ Follow-up can also switch Graphite's **Merge when ready** through it, after you
52
99
  It runs on your machine with your own GitHub sign-in. [OVERVIEW.md](OVERVIEW.md) says exactly what it reads and
53
100
  writes.
54
101
 
102
+ ## On the pull request, too
103
+
104
+ Add the [Send to Paseo](https://chromewebstore.google.com/detail/send-to-paseo/blflbbgkckbabbkoigpocilbkkmfijfg)
105
+ Chrome extension and a pull request on GitHub or Graphite shows the workspace that owns it and what it needs, like
106
+ "Needs you · Merge ready". **Open** jumps to its agent in Paseo, or send that agent an instruction from the same popup.
107
+ Follow-up can also switch Graphite's **Merge when ready** through it, after you confirm in Chrome.
108
+
109
+ <picture>
110
+ <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">
111
+ <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">
112
+ </picture>
113
+
55
114
  ## Docs
56
115
 
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.
116
+ - [Using Follow-up](docs/guide.md): setup, Home, Catch up, the Overseer, the panel, the pill, settings, helper agents,
117
+ updates, reporting a bug, upgrading from 1.x and memory on Linux.
59
118
  - [CHANGELOG.md](CHANGELOG.md): release notes.
60
119
  - [AGENTS.md](AGENTS.md): how it's built and how to work on it.
61
120
 
@@ -0,0 +1,97 @@
1
+ import { useState } from "react";
2
+ import { Platform, View } from "react-native";
3
+ import { Pressable, Text } from "./text";
4
+ import { Icon } from "@getpaseo/plugin/client/ui";
5
+ import { isMac } from "../shared/search-key";
6
+ import type { Bar, BarButton } from "../shared/new-view";
7
+ import { withAlpha, type Colors } from "./theme";
8
+
9
+ /**
10
+ * New's action row, on its own so any surface can mount it (New's dialog, the Morning brief's queue): the bar from
11
+ * `actionBar` (shared/new-view.ts) with the first action filled (↵), the second outlined (⌥↵), the rest under More, or
12
+ * Open it when the source already has a workspace. It starts nothing itself: `onAction(id)` and `onOpen(workspaceId)`
13
+ * are the caller's (New calls follow.dispatch with that action). `more`/`setMore` let a caller control the More
14
+ * list; without them the row keeps its own.
15
+ */
16
+
17
+ type Hover = { hovered?: boolean; pressed?: boolean };
18
+
19
+ /** A tappable list of choices under a control (More's actions; New's pickers). */
20
+ export function Choices<T extends string>({ items, onPick, c, compact }: { items: { id: T; label: string; hint?: string; on?: boolean }[]; onPick: (id: T) => void; c: Colors; compact: boolean }) {
21
+ return <View style={{ borderWidth: 1, borderColor: c.border, borderRadius: 8, backgroundColor: c.surface0, overflow: "hidden", marginTop: 6 }}>
22
+ {items.map((it, i) => <Pressable key={it.id} accessibilityRole="button" accessibilityState={{ selected: !!it.on }} onPress={() => onPick(it.id)}
23
+ style={(s: Hover) => ({ flexDirection: "row", alignItems: "center", gap: 8, minHeight: compact ? 44 : 32, paddingHorizontal: 10, borderTopWidth: i ? 1 : 0, borderTopColor: c.border, backgroundColor: s.hovered || s.pressed ? c.surface2 : "transparent" })}>
24
+ <Text numberOfLines={1} style={{ color: c.foreground, fontSize: compact ? 14 : 13, flexShrink: 1 }}>{it.label}</Text>
25
+ {it.hint && <Text numberOfLines={1} style={{ color: c.foregroundMuted, fontSize: 12, flexShrink: 1 }}>{it.hint}</Text>}
26
+ <View style={{ flex: 1 }} />
27
+ {it.on && <Icon name="Check" size={14} color={c.foreground} />}
28
+ </Pressable>)}
29
+ </View>;
30
+ }
31
+
32
+ /** A keyboard focus ring (web): the accent, offset from the control. */
33
+ export const focusRing = (c: Colors, focused: boolean | undefined) => focused && Platform.OS === "web" ? { outlineWidth: 2, outlineStyle: "solid", outlineColor: c.accent, outlineOffset: 2 } as object : {};
34
+
35
+ /**
36
+ * One bar button. Filled when primary; a disabled primary drops its fill (neutral surface, muted text) so it never
37
+ * reads as live. `trailing` draws its icon after the label (More ▾).
38
+ */
39
+ /** `small`: a desktop row's own action (32px, DESIGN's desktop control), not a dialog's bar. Phones stay 44. */
40
+ export function BarBtn({ b, primary, c, compact, disabled, onPress, grow, trailing, small }: { b: BarButton | { name: string; icon: string; key: string | null }; primary: boolean; c: Colors; compact: boolean; disabled: boolean; onPress: () => void; grow?: boolean; trailing?: boolean; small?: boolean }) {
41
+ const filled = primary && !disabled;
42
+ const fg = filled ? c.accentForeground : disabled ? c.foregroundMuted : c.foreground;
43
+ const icon = <Icon name={b.icon} size={small && !compact ? 14 : 15} color={fg} />;
44
+ return <Pressable accessibilityRole="button" accessibilityLabel={b.key && Platform.OS === "web" ? `${b.name} (${b.key})` : b.name} accessibilityState={{ disabled }} disabled={disabled} onPress={onPress}
45
+ style={(s: Hover & { focused?: boolean }) => ({ flexDirection: "row", alignItems: "center", justifyContent: "center", gap: small && !compact ? 6 : 8, minHeight: compact ? (primary ? 48 : 44) : small ? 32 : 36, paddingHorizontal: small && !compact ? 10 : 14, borderRadius: 8,
46
+ // A grown button takes the free width but never less than its name: the row wraps instead (an action's name is never cut).
47
+ ...(grow ? { flexGrow: 1 } : {}),
48
+ ...(filled ? { backgroundColor: s.pressed ? withAlpha(c.accent, 0.85) : s.hovered ? withAlpha(c.accent, 0.92) : c.accent }
49
+ : { borderWidth: 1, borderColor: c.border, backgroundColor: disabled ? c.surface1 : s.pressed ? c.surface2 : s.hovered ? c.surface1 : c.surface0 }),
50
+ ...focusRing(c, s.focused) })}>
51
+ {!trailing && icon}
52
+ <Text numberOfLines={1} style={{ color: fg, fontSize: compact ? 15 : small ? 12 : 13, fontWeight: "600", flexShrink: 0 }}>{b.name}</Text>
53
+ {trailing && icon}
54
+ {b.key && !compact && Platform.OS === "web" && <Text style={{ color: fg, opacity: 0.75, fontSize: 12 }}>{b.key === "⌥↵" && !isMac() ? "Alt ↵" : b.key}</Text>}
55
+ </Pressable>;
56
+ }
57
+
58
+ export function ActionRow({ bar, c, compact, onAction, onOpen, more: moreProp, setMore: setMoreProp }: { bar: Bar; c: Colors; compact: boolean; onAction: (id: string) => void; onOpen: (workspaceId: string) => void; more?: boolean; setMore?: (v: boolean) => void }) {
59
+ const [ownMore, setOwnMore] = useState(false);
60
+ const more = moreProp ?? ownMore; const setMore = setMoreProp ?? setOwnMore;
61
+ if (bar.kind === "existing") {
62
+ const off = !!bar.disabled;
63
+ const moreOthers = bar.more.length > 0 && <BarBtn c={c} compact={compact} primary={false} disabled={off} trailing b={{ name: "More", icon: more ? "ChevronUp" : "ChevronDown", key: null }} onPress={() => setMore(!more)} />;
64
+ const open = <BarBtn c={c} compact={compact} primary disabled={false} onPress={() => onOpen(bar.workspaceId)} b={{ name: "Open it", icon: "ExternalLink", key: "↵" }} />;
65
+ const others = bar.others.map(b => <BarBtn key={b.id} c={c} compact={compact} primary={false} disabled={off} b={b} grow={compact} onPress={() => onAction(b.id)} />);
66
+ return <View style={{ gap: 8 }}>
67
+ {more && !off && <Choices c={c} compact={compact} items={bar.more.map(b => ({ id: b.id, label: b.name }))} onPick={id => { setMore(false); onAction(id); }} />}
68
+ {compact ? <>
69
+ {open}
70
+ <Text style={{ color: c.foregroundMuted, fontSize: 12 }}>{off ? `Or start another workspace: ${bar.disabled}` : "Or start another workspace:"}</Text>
71
+ <View style={{ flexDirection: "row", flexWrap: "wrap", gap: 8 }}>{others}{moreOthers}</View>
72
+ </> : <View style={{ flexDirection: "row", alignItems: "center", flexWrap: "wrap", gap: 8 }}>
73
+ {open}
74
+ <Text style={{ color: c.foregroundMuted, fontSize: 12, marginLeft: 8 }}>{off ? bar.disabled : "or start another:"}</Text>
75
+ {others}{moreOthers}
76
+ </View>}
77
+ </View>;
78
+ }
79
+ const disabled = !!bar.disabled;
80
+ const moreBtn = bar.more.length > 0 && <BarBtn c={c} compact={compact} primary={false} disabled={disabled} trailing b={{ name: "More", icon: more ? "ChevronUp" : "ChevronDown", key: null }} onPress={() => setMore(!more)} />;
81
+ return <View style={{ gap: 8 }}>
82
+ {more && !disabled && <Choices c={c} compact={compact} items={bar.more.map(b => ({ id: b.id, label: b.name }))} onPick={id => { setMore(false); onAction(id); }} />}
83
+ {bar.disabled && <Text style={{ color: c.foregroundMuted, fontSize: 12 }}>{bar.disabled}</Text>}
84
+ {compact ? <>
85
+ {bar.primary && <BarBtn c={c} compact primary disabled={disabled} b={bar.primary} onPress={() => onAction(bar.primary!.id)} />}
86
+ <View style={{ flexDirection: "row", flexWrap: "wrap", gap: 8 }}>
87
+ {bar.second && <BarBtn c={c} compact primary={false} disabled={disabled} b={bar.second} grow onPress={() => onAction(bar.second!.id)} />}
88
+ {moreBtn}
89
+ </View>
90
+ </> : <View style={{ flexDirection: "row", alignItems: "center", gap: 8 }}>
91
+ {bar.primary && <BarBtn c={c} compact={false} primary disabled={disabled} b={bar.primary} onPress={() => onAction(bar.primary!.id)} />}
92
+ {bar.second && <BarBtn c={c} compact={false} primary={false} disabled={disabled} b={bar.second} onPress={() => onAction(bar.second!.id)} />}
93
+ {moreBtn}
94
+ </View>}
95
+ </View>;
96
+ }
97
+
package/client/agents.tsx CHANGED
@@ -6,8 +6,9 @@ import { SettingsAction, SettingsCard, SettingsSection, SettingsSelect, Settings
6
6
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
7
  import { agentSettingsRpc, setAgentSettingRpc, setWaitRpc } from "../shared/contracts";
8
8
  import { WAIT_HOST_NOTE, WAIT_NOT_ATTACHED, waitNote, waitSwitchCopy } from "../shared/wait";
9
- import { isJobRole, type AgentRole, type AgentSettingsView, type SavedRole } from "../shared/agent-settings";
9
+ import { hasSame, isJobRole, type AgentRole, type AgentSettingsView, type SavedRole } from "../shared/agent-settings";
10
10
  import { NO_PROMPT_MODE, SETTINGS_ORDER, isReset, resetEntry } from "../shared/job-rows";
11
+ import { providerNotes } from "../shared/provider-support";
11
12
  import { JobRows, agentSettingsKey, useAgentSettings, type JobExtra } from "./job-rows";
12
13
  import { Button, errorText, text, type Theme } from "./kit";
13
14
 
@@ -26,6 +27,9 @@ export function AgentSettings({ theme, compact }: Pick<PluginSurfaceProps, "them
26
27
  const c = theme.colors; const t = text(c);
27
28
  const { query } = useAgentSettings();
28
29
  const data = query.data;
30
+ // One block under the rows: what works on other providers, what needs Claude Code or Codex and what to do, then what
31
+ // Paseo doesn't have (an-agent-on-any-provider-gets-follow-up; AI priority says its own case on its row).
32
+ const notes = data?.catalog ? providerNotes(data.catalog.providers, data.roles.find(r => r.role === "about")?.provider ?? null) : null;
29
33
  const more: JobExtra = {
30
34
  // The toggle names what's inside, so nobody opens it to find out.
31
35
  label: r => r.role === "ranker" ? "Schedule, limits and reset" : isJobRole(r.role) ? "Limits and reset" : r.same ? null : "Permissions and reset",
@@ -36,8 +40,9 @@ export function AgentSettings({ theme, compact }: Pick<PluginSurfaceProps, "them
36
40
  <SettingsCard>
37
41
  <JobRows theme={theme} compact={compact} order={SETTINGS_ORDER} extra={more} />
38
42
  </SettingsCard>
39
- {/* Once, after the rows: what can't be picked and why (the pickers only list what can). */}
40
- {!!data?.catalog && unavailableLine(data.catalog.providers) && <Text style={[t.meta, { paddingHorizontal: 4 }]}>{unavailableLine(data.catalog.providers)}</Text>}
43
+ {!!notes?.length && <View style={{ gap: 4, paddingHorizontal: 4, maxWidth: 720 }}>
44
+ {notes.map(line => <Text key={line} style={t.meta}>{line}</Text>)}
45
+ </View>}
41
46
  </SettingsSection>;
42
47
  }
43
48
 
@@ -81,7 +86,7 @@ function RoleMore({ r, save, busy, theme, compact, invalid }: { r: Role; save: (
81
86
  const role = r.role;
82
87
  const jobs = isJobRole(role);
83
88
  const current = catalog.find(p => p.id === r.provider);
84
- const base: SavedRole = { provider: r.provider, model: r.model, thinking: r.thinking, ...(jobs ? {} : { mode: r.mode }), ...(role === "recovery" ? { same: r.same } : {}),
89
+ const base: SavedRole = { provider: r.provider, model: r.model, thinking: r.thinking, ...(jobs ? {} : { mode: r.mode }), ...(hasSame(role) ? { same: r.same } : {}),
85
90
  ...(jobs ? { dailyCap: r.dailyCap ?? undefined, maxPromptChars: r.maxPromptChars ?? undefined } : {}), ...(role === "ranker" ? { cadenceMinutes: r.cadenceMinutes ?? undefined } : {}) };
86
91
  const set = (patch: SavedRole) => save({ ...base, ...patch });
87
92
  const modes = current?.modes ?? [];
@@ -113,19 +118,5 @@ function RoleMore({ r, save, busy, theme, compact, invalid }: { r: Role; save: (
113
118
  </>;
114
119
  }
115
120
 
116
- const roleDefaultText = (role: AgentRole) => role === "recovery" ? "the main agent's setup" : role === "overseer" ? "Claude, newest Opus" : role === "about" ? "Claude Haiku" : "Claude Sonnet, hourly";
117
- /** "Not available in Paseo: Claude and Pi (turned off in Paseo); Antigravity (not installed)." Grouped by reason; a
118
- * provider whose name is also on a ready one isn't listed, so the line never contradicts the rows. */
119
- function unavailableLine(providers: readonly { label: string; available: boolean; reason: string | null }[]): string | null {
120
- const ready = new Set(providers.filter(p => p.available).map(p => p.label));
121
- const groups = new Map<string, string[]>();
122
- for (const p of providers) if (!p.available && !ready.has(p.label)) {
123
- // Paseo's reasons can name binaries and PATH; developers here only need "not installed".
124
- const why = /not found|PATH|not installed/i.test(p.reason ?? "") ? "not installed" : (p.reason ?? "unavailable").replace(/\.$/, "");
125
- groups.set(why, [...(groups.get(why) ?? []), p.label]);
126
- }
127
- if (!groups.size) return null;
128
- const list = (names: string[]) => names.length < 2 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
129
- return `Not available in Paseo: ${[...groups].map(([why, names]) => `${list(names)} (${why[0].toLowerCase()}${why.slice(1)})`).join("; ")}.`;
130
- }
121
+ const roleDefaultText = (role: AgentRole) => role === "recovery" ? "the main agent's setup" : role === "dispatch" ? "the Overseer's agent" : role === "overseer" ? "Claude, newest Opus" : role === "about" ? "Claude Haiku" : "Claude Sonnet, hourly";
131
122
  const withCurrent = (list: number[], value: number) => [...new Set([...list, value])].sort((a, b) => a - b);