paseo-follow-up 2.4.0-beta.10 → 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 (86) hide show
  1. package/OVERVIEW.md +1 -1
  2. package/README.md +81 -22
  3. package/client/agents.tsx +8 -26
  4. package/client/brief-since.tsx +4 -3
  5. package/client/compass-settings.tsx +3 -2
  6. package/client/display.tsx +2 -1
  7. package/client/header.tsx +2 -2
  8. package/client/home-chrome.tsx +24 -13
  9. package/client/home-data.ts +1 -1
  10. package/client/home-view.ts +7 -9
  11. package/client/home.tsx +8 -3
  12. package/client/job-rows.tsx +10 -5
  13. package/client/list-keys.ts +2 -1
  14. package/client/new-entry.tsx +42 -2
  15. package/client/new-settings.tsx +29 -13
  16. package/client/new.tsx +89 -43
  17. package/client/onboarding.tsx +3 -2
  18. package/client/row-badges.tsx +37 -0
  19. package/client/search-focus.ts +85 -0
  20. package/client/search-key.ts +6 -12
  21. package/client/stacks.tsx +9 -2
  22. package/docs/screenshots/follow-up-slide-1-cover.png +0 -0
  23. package/docs/screenshots/follow-up-slide-2-decision.png +0 -0
  24. package/docs/screenshots/follow-up-slide-3-overseer.png +0 -0
  25. package/docs/screenshots/follow-up-slide-4-repairs.png +0 -0
  26. package/docs/screenshots/follow-up-slide-5-deploy.png +0 -0
  27. package/docs/screenshots/follow-up-slide-6-catch-up.png +0 -0
  28. package/index.client.tsx +12 -6
  29. package/index.server.ts +77 -24
  30. package/package.json +4 -3
  31. package/paseo-plugin.json +7 -9
  32. package/server/about.ts +4 -1
  33. package/server/agent-hook.mjs +12 -4
  34. package/server/agent-settings.ts +19 -3
  35. package/server/brief-sources.ts +4 -2
  36. package/server/daemon.ts +11 -3
  37. package/server/dispatch.ts +3 -2
  38. package/server/engine.ts +19 -6
  39. package/server/github-api.ts +17 -6
  40. package/server/github-setup.ts +126 -0
  41. package/server/github.ts +28 -0
  42. package/server/hook-source.ts +12 -4
  43. package/server/host-features.ts +21 -1
  44. package/server/linear-issues.ts +4 -3
  45. package/server/mcp-source.ts +3 -1
  46. package/server/mcp.mjs +3 -1
  47. package/server/memory.ts +43 -17
  48. package/server/onboarding.ts +3 -2
  49. package/server/pr-actions.ts +12 -1
  50. package/server/pr-stats-sync.ts +4 -2
  51. package/server/pr-stats.ts +4 -0
  52. package/server/ranker.ts +4 -2
  53. package/server/reviewer-config.ts +3 -1
  54. package/server/session-mcp.ts +3 -2
  55. package/server/session-prompt.ts +34 -8
  56. package/server/wait-for-checks.ts +9 -0
  57. package/shared/agent-settings.ts +9 -8
  58. package/shared/attention.ts +4 -0
  59. package/shared/brief-sources.ts +4 -3
  60. package/shared/dispatch.ts +61 -6
  61. package/shared/display.ts +4 -1
  62. package/shared/github-setup.ts +46 -0
  63. package/shared/job-rows.ts +33 -5
  64. package/shared/model.ts +6 -0
  65. package/shared/new-name.ts +25 -0
  66. package/shared/new-view.ts +11 -8
  67. package/shared/onboarding.ts +12 -7
  68. package/shared/provider-support.ts +70 -0
  69. package/shared/recommend.ts +3 -2
  70. package/shared/row-badges.ts +24 -0
  71. package/shared/search-focus.ts +76 -0
  72. package/shared/search-key.ts +3 -2
  73. package/shared/settings-nav.ts +2 -1
  74. package/docs/screenshots/follow-up-home.png +0 -0
  75. package/docs/screenshots/follow-up-linked-items.png +0 -0
  76. package/docs/screenshots/follow-up-notes-home.png +0 -0
  77. package/docs/screenshots/follow-up-notes-panel.png +0 -0
  78. package/docs/screenshots/follow-up-panel.png +0 -0
  79. package/docs/screenshots/follow-up-phone.png +0 -0
  80. package/docs/screenshots/follow-up-pill.png +0 -0
  81. package/docs/screenshots/follow-up-pr-sheet.png +0 -0
  82. package/docs/screenshots/follow-up-questions.png +0 -0
  83. package/docs/screenshots/follow-up-send-to-paseo-dark.png +0 -0
  84. package/docs/screenshots/follow-up-send-to-paseo-light.png +0 -0
  85. package/docs/screenshots/follow-up-setup.png +0 -0
  86. package/docs/screenshots/follow-up-sidebar.png +0 -0
package/OVERVIEW.md CHANGED
@@ -20,7 +20,7 @@ Follow-up watches every pull request a Paseo workspace opens until the work is a
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
 
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 { OUTSIDE_READS, guardedProvider, hasSame, 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,13 +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
- {/* A job role on a provider Follow-up can't take tools from: what it no longer reads, and why (invariant 81). */}
40
- {(data?.roles ?? []).filter(r => isJobRole(r.role) && !guardedProvider(r.provider) && OUTSIDE_READS[r.role]).map(r => {
41
- const label = data?.catalog?.providers.find(p => p.id === r.provider)?.label ?? r.provider;
42
- return <Text key={r.role} accessibilityRole="alert" style={[t.meta, { color: c.statusWarning, paddingHorizontal: 4 }]}>{unguardedLine(r.role, label)}</Text>;
43
- })}
44
- {/* Once, after the rows: what can't be picked and why (the pickers only list what can). */}
45
- {!!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>}
46
46
  </SettingsSection>;
47
47
  }
48
48
 
@@ -119,22 +119,4 @@ function RoleMore({ r, save, busy, theme, compact, invalid }: { r: Role; save: (
119
119
  }
120
120
 
121
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";
122
- /** "Not available in Paseo: Claude and Pi (turned off in Paseo); Antigravity (not installed)." Grouped by reason; a
123
- * provider whose name is also on a ready one isn't listed, so the line never contradicts the rows. */
124
- /** "On OpenCode, AI priority doesn't rank, since what it reads was written by other people…" (invariant 81). */
125
- export const unguardedLine = (role: AgentRole, label: string) =>
126
- `On ${label}, ${OUTSIDE_READS[role]}, since what they read was written by other people and Follow-up can't take ${label}'s tools away. Pick Claude or Codex for all of it.`;
127
-
128
- function unavailableLine(providers: readonly { label: string; available: boolean; reason: string | null }[]): string | null {
129
- const ready = new Set(providers.filter(p => p.available).map(p => p.label));
130
- const groups = new Map<string, string[]>();
131
- for (const p of providers) if (!p.available && !ready.has(p.label)) {
132
- // Paseo's reasons can name binaries and PATH; developers here only need "not installed".
133
- const why = /not found|PATH|not installed/i.test(p.reason ?? "") ? "not installed" : (p.reason ?? "unavailable").replace(/\.$/, "");
134
- groups.set(why, [...(groups.get(why) ?? []), p.label]);
135
- }
136
- if (!groups.size) return null;
137
- const list = (names: string[]) => names.length < 2 ? names.join("") : `${names.slice(0, -1).join(", ")} and ${names[names.length - 1]}`;
138
- return `Not available in Paseo: ${[...groups].map(([why, names]) => `${list(names)} (${why[0].toLowerCase()}${why.slice(1)})`).join("; ")}.`;
139
- }
140
122
  const withCurrent = (list: number[], value: number) => [...new Set([...list, value])].sort((a, b) => a - b);
@@ -17,6 +17,7 @@ import { DismissX, RevealScope, useDismiss } from "./dismiss";
17
17
  import { Button, text, type Theme } from "./kit";
18
18
  import { openNew } from "./new";
19
19
  import { withAlpha, type Colors } from "./theme";
20
+ import { NEW_NAME } from "../shared/new-name";
20
21
 
21
22
  /**
22
23
  * The Morning brief's Linear queue on screen (docs/morning-brief.md#in-the-brief): the "Since" block in the brief pane,
@@ -87,7 +88,7 @@ function LineActions({ source, actions, c, compact, onStarted }: { source: strin
87
88
  // Each button keeps its whole label (never squeezed to "Plan as ar…"): a row that doesn't fit wraps instead.
88
89
  return <View style={{ flexDirection: "row", flexWrap: "wrap", gap: 8, marginTop: 6 }}>
89
90
  {actions.slice(0, 2).map(a => <BarBtn key={a.id} c={c} compact={compact} small primary={false} disabled={!!busy} b={{ name: busy === a.id ? `${a.name}…` : a.name, icon: actionIcon(a.icon), key: null }} onPress={() => void start(a)} />)}
90
- <Pressable accessibilityRole="button" accessibilityLabel={`More ways to start ${source} in New`} onPress={() => openNew({ source })}
91
+ <Pressable accessibilityRole="button" accessibilityLabel={`More ways to start ${source} in ${NEW_NAME}`} onPress={() => openNew({ source })}
91
92
  style={(s: Hover) => ({ minHeight: compact ? 44 : 32, minWidth: compact ? 44 : 32, alignItems: "center", justifyContent: "center", borderRadius: 8, backgroundColor: s.pressed ? c.surface2 : s.hovered ? c.surface1 : "transparent", ...focusRing(c, s.focused) })}>
92
93
  <Icon name="Ellipsis" size={16} color={c.foreground} />
93
94
  </Pressable>
@@ -188,7 +189,7 @@ function QueueRow({ i, change, c, compact, timeZone, navigation }: { i: QueueIss
188
189
  </View>
189
190
  </View>;
190
191
  // Phones: the row is the target (44px+), opening the workspace or New on the issue; no column of identical buttons.
191
- if (compact) return <Pressable accessibilityRole="button" accessibilityLabel={label} accessibilityHint={ws ? `Opens ${ws.title}` : "Opens New on this issue"} disabled={!!ws && !navigation} onPress={open}
192
+ if (compact) return <Pressable accessibilityRole="button" accessibilityLabel={label} accessibilityHint={ws ? `Opens ${ws.title}` : `Opens ${NEW_NAME} on this issue`} disabled={!!ws && !navigation} onPress={open}
192
193
  style={(s: Hover) => ({ flexDirection: "row", alignItems: "center", gap: 8, minHeight: 56, paddingVertical: 10, borderBottomWidth: 1, borderBottomColor: withAlpha(c.border, 0.6), backgroundColor: s.pressed ? c.surface2 : "transparent", ...focusRing(c, s.focused) })}>
193
194
  {body}
194
195
  <Icon name={ws ? "ChevronRight" : "Play"} size={15} color={c.foregroundMuted} />
@@ -202,7 +203,7 @@ function QueueRow({ i, change, c, compact, timeZone, navigation }: { i: QueueIss
202
203
  <Text numberOfLines={1} style={[t.small, { fontSize: 12, color: c.foreground, flexShrink: 1 }]}>{ws.title}</Text>
203
204
  <Icon name="ChevronRight" size={14} color={c.foregroundMuted} />
204
205
  </Pressable>
205
- : <Pressable accessibilityRole="button" accessibilityLabel={`Start ${i.key} in New`} onPress={open}
206
+ : <Pressable accessibilityRole="button" accessibilityLabel={`Start ${i.key} in ${NEW_NAME}`} onPress={open}
206
207
  style={(s: Hover) => ({ flexDirection: "row", alignItems: "center", gap: 6, minHeight: 32, paddingHorizontal: 10, borderRadius: 8, backgroundColor: s.pressed ? c.surface2 : s.hovered ? c.surface1 : "transparent", ...focusRing(c, s.focused) })}>
207
208
  <Icon name="Play" size={13} color={c.foregroundMuted} />
208
209
  <Text style={[t.small, { fontSize: 12, color: c.foreground, fontWeight: "500" }]}>Start…</Text>
@@ -13,6 +13,7 @@ import {
13
13
  CADENCES, type CompassSettings, trackerRef,
14
14
  } from "../shared/compass";
15
15
  import { type PlanView } from "../shared/morning-brief";
16
+ import { NEW_NAME, NEW_OF } from "../shared/new-name";
16
17
 
17
18
  export const compassKey = ["follow-up", "compass"];
18
19
 
@@ -124,7 +125,7 @@ export function CompassReading({ theme, compact }: { theme: Theme; compact: bool
124
125
  /** The daytime read's choices (the-brief-has-one-timer): only while Follow-up is open, on workdays 08:00-20:00. */
125
126
  const CADENCE_LABEL: Record<CompassSettings["cadence"], string> = { off: "Mornings only", "1h": "Every hour", "2h": "Every 2 hours", "4h": "Every 4 hours" };
126
127
  /** Where Compass's suggestions go: an issue nobody started that a source said matters. */
127
- const ROUTING_LABEL: Record<CompassSettings["routing"]["suggestions"], string> = { "needs-you-and-new": "Needs you and New", "new-only": "New only", off: "Off" };
128
+ const ROUTING_LABEL: Record<CompassSettings["routing"]["suggestions"], string> = { "needs-you-and-new": `Needs you and ${NEW_NAME}`, "new-only": `${NEW_NAME} only`, off: "Off" };
128
129
 
129
130
  /**
130
131
  * When's Compass rows: the daytime read (Off, 1, 2 or 4 h while the app is open) and where suggestions go. The same
@@ -138,7 +139,7 @@ export function CompassWhen({ theme, compact, part }: { theme: Theme; compact: b
138
139
  // One row each, so the settings card draws its divider between them.
139
140
  if (part === "cadence") return <SettingsSelect label="During the day" hint={s.cadence === "off" ? "Compass reads once, at the morning read. Read now reads at once." : "While Follow-up is open, on workdays from 08:00 to 20:00. Each read takes only what's new, and nothing is read while the app is closed."}
140
141
  value={s.cadence} disabled={change.isPending} options={CADENCES.map(v => ({ value: v, label: CADENCE_LABEL[v] }))} onValueChange={cadence => change.mutate({ cadence: cadence as CompassSettings["cadence"] })} />;
141
- return <SettingsSelect label="Issues nobody's on" hint={s.routing.suggestions === "off" ? "Compass notes still reorder AI priority; none suggests an issue." : s.routing.suggestions === "new-only" ? "Listed first in New's My issues, with why." : `A strong ask due within ${s.routing.urgentWithinWorkdays} workdays goes to Needs you, from a source with Needs you on. The rest are first in New.`}
142
+ return <SettingsSelect label="Issues nobody's on" hint={s.routing.suggestions === "off" ? "Compass notes still reorder AI priority; none suggests an issue." : s.routing.suggestions === "new-only" ? `Listed first in ${NEW_OF} My issues, with why.` : `A strong ask due within ${s.routing.urgentWithinWorkdays} workdays goes to Needs you, from a source with Needs you on. The rest are first in ${NEW_NAME}.`}
142
143
  value={s.routing.suggestions} disabled={change.isPending} options={(Object.keys(ROUTING_LABEL) as CompassSettings["routing"]["suggestions"][]).map(v => ({ value: v, label: ROUTING_LABEL[v] }))}
143
144
  onValueChange={suggestions => change.mutate({ routing: { suggestions: suggestions as CompassSettings["routing"]["suggestions"] } })} />;
144
145
  }
@@ -11,6 +11,7 @@ import { Text } from "./text";
11
11
  import { displayPreferences, displayRpc, trustCountText } from "../shared/display";
12
12
  import { sidebarVisibility } from "./sidebar-visibility";
13
13
  import { appVisible, onVisible } from "./visibility";
14
+ import { NEW_NAME } from "../shared/new-name";
14
15
 
15
16
  type Display = import("zod").infer<typeof displayPreferences.schema>;
16
17
  const listeners = new Set<(values: Display) => void>();
@@ -103,7 +104,7 @@ export function DisplaySections({ theme }: Pick<PluginSurfaceProps, "theme">) {
103
104
  <SettingsSelect label="Search from anywhere" hint="Jumps to Home's search from any screen, even mid-message. On Home, / works too."
104
105
  value={searchShortcutOf(settings.values.search_shortcut)} options={searchShortcutOptions(isMac())} disabled={settings.saving}
105
106
  onValueChange={(search_shortcut: SearchShortcut) => save({ search_shortcut })} />
106
- <SettingsSelect label="New from anywhere" hint={newShortcutHint(isDesktopApp(), isMac())}
107
+ <SettingsSelect label={`${NEW_NAME} from anywhere`} hint={newShortcutHint(isDesktopApp(), isMac())}
107
108
  value={newShortcutPreset(settings.values.new_shortcut, isDesktopApp())} options={newShortcutOptions(isMac())} disabled={settings.saving}
108
109
  onValueChange={(new_shortcut: NewShortcut) => save({ new_shortcut })} />
109
110
  </SettingsCard>
package/client/header.tsx CHANGED
@@ -94,8 +94,8 @@ export function WorkspaceHeader({ workspace: w, theme, compact, now, onSettings,
94
94
  <Text style={[t.meta, { flex: 1, color: c.statusWarning }]}>{notice}</Text>
95
95
  </View>}
96
96
  <View style={{ flexDirection: "row", alignItems: "center", gap: 4, marginTop: 2, minHeight: compact ? 44 : 28 }}>
97
- <Text numberOfLines={1} style={[t.small, { flexShrink: 1 }, stale ? { color: c.statusWarning } : null]}>{checked ? `Checked ${ago(checked, now)}${stale ? " · may be out of date" : ""}` : "Checks GitHub every 15s"}</Text>
98
- <IconButton icon="RefreshCw" label="Refresh PR status" onPress={onRefresh} theme={theme} compact={compact} disabled={refreshing} spinning={refreshing} />
97
+ <Text numberOfLines={1} style={[t.small, { flexShrink: 1 }, stale && !w.githubOff ? { color: c.statusWarning } : null]}>{w.githubOff ? "Not checking GitHub" : checked ? `Checked ${ago(checked, now)}${stale ? " · may be out of date" : ""}` : "Checks GitHub every 15s"}</Text>
98
+ <IconButton icon="RefreshCw" label={w.githubOff ? "Check GitHub again" : "Refresh PR status"} onPress={onRefresh} theme={theme} compact={compact} disabled={refreshing} spinning={refreshing} />
99
99
  <View style={{ flex: 1 }} />
100
100
  <Switch theme={theme} compact={compact} label="Auto-send" accessibilityLabel="Auto-send repairs" hint="Send repairs to the main agent on its own when the agent is idle. Off means each message waits for your click."
101
101
  value={w.enable_auto_sends} disabled={autoPending} onChange={onAuto} />
@@ -18,6 +18,7 @@ import { Spinner } from "./motion";
18
18
  import { withAlpha, type Colors } from "./theme";
19
19
  import { text, type Theme } from "./kit";
20
20
  import { MenuItemContent, menuGlyph, menuItemRow } from "./menu-item";
21
+ import { useSearchFocusField } from "./search-focus";
21
22
  import { useLinkedIndex } from "./linked";
22
23
 
23
24
  /**
@@ -37,6 +38,13 @@ export type Omnibox = {
37
38
  active: number;
38
39
  move(delta: number): void;
39
40
  inputRef: React.RefObject<TextInput | null>;
41
+ /** The search field's onLayout: a waiting search request tries again when the field comes on screen. */
42
+ onSearchLayout: () => void;
43
+ /**
44
+ * Asks for the caret in the search (every-search-request-lands-in-the-visible-search), only when a Home search is on
45
+ * screen: true when it asked. A Home kept mounted behind another screen asks nothing.
46
+ */
47
+ focusSearch(): boolean;
40
48
  /** The Overseer is on, so a query can also be an ask. */
41
49
  askOn: boolean;
42
50
  /** Images pasted or dropped on the search while the Overseer is on: they go with the ask (every-agent-field-takes-images). */
@@ -73,12 +81,12 @@ export function useOmnibox(model: HomeModel, sources: HomeSources, extraProvider
73
81
  const fallback = defaultActive(results);
74
82
  const current = active ?? fallback;
75
83
  const move = useCallback((delta: number) => setActive(a => Math.max(0, Math.min((results?.length ?? 1) - 1, (a ?? fallback) + delta))), [results, fallback]);
76
- // ⌘K "Follow-up: Search".
77
- // A request made before this field mounted (the search key opening Home) is taken on mount.
78
- const token = useSyncExternalStore(sources.extras.subscribe, sources.extras.focusToken, sources.extras.focusToken);
79
- useEffect(() => { if (sources.extras.takeFocus()) inputRef.current?.focus(); }, [token, sources.extras]);
84
+ // every-search-request-lands-in-the-visible-search: this field takes a search request (the key, ⌘K, `/`) while it is
85
+ // the one on screen, on mount, on layout, or when focus moves without the developer (client/search-focus.ts).
86
+ const onSearchLayout = useSearchFocusField(sources.extras.searchFocus, inputRef);
87
+ const focusSearch = useCallback(() => { const f = sources.extras.searchFocus; if (!f.shown()) return false; f.request(); return true; }, [sources.extras.searchFocus]);
80
88
  const hint = layoutHint((results ?? []).flatMap(r => r.hit ? [r.hit] : []));
81
- return { query, setQuery, setPhysical, layoutHint: hint, results, active: Math.min(current, Math.max(0, (results?.length ?? 1) - 1)), move, inputRef, askOn, images };
89
+ return { query, setQuery, setPhysical, layoutHint: hint, results, active: Math.min(current, Math.max(0, (results?.length ?? 1) - 1)), move, inputRef, onSearchLayout, focusSearch, askOn, images };
82
90
  }
83
91
 
84
92
  type DomKey = { key: string; metaKey: boolean; ctrlKey: boolean; altKey: boolean; target: unknown; preventDefault(): void };
@@ -91,19 +99,22 @@ export function useSlashToFocus(omnibox: Omnibox, enabled = true) {
91
99
  if (e.key !== "/" || e.metaKey || e.ctrlKey || e.altKey) return;
92
100
  const target = e.target as { tagName?: string; isContentEditable?: boolean } | null;
93
101
  if (target && (target.isContentEditable || ["INPUT", "TEXTAREA", "SELECT"].includes(target.tagName ?? ""))) return;
94
- e.preventDefault();
95
- omnibox.inputRef.current?.focus();
102
+ // The one owner of search focus: only the Home search on screen takes it, so a Home kept mounted behind
103
+ // another screen neither swallows the key nor focuses a hidden field.
104
+ if (omnibox.focusSearch()) e.preventDefault();
96
105
  };
97
106
  doc.addEventListener("keydown", onKey);
98
107
  return () => doc.removeEventListener("keydown", onKey);
99
- }, [omnibox.inputRef, enabled]);
108
+ }, [omnibox.focusSearch, enabled]);
100
109
  }
101
110
 
102
111
  /**
103
112
  * The one query field: Home's omnibox (SearchField) and the sidebar view's filter (FilterField) are this with
104
113
  * different words. `dense` is the phone layout: a 44px field with a rounder shape and body-size text.
105
114
  */
106
- export function QueryField({ theme, value, onChange, placeholder, icon, dense, inputRef, slashHint, slashTitle, onSubmit, onArrow, listKeys = false, count, autoFocus = false, onEscape, onLayoutQuery, trailing }: {
115
+ export function QueryField({ theme, value, onChange, placeholder, icon, dense, inputRef, slashHint, slashTitle, onSubmit, onArrow, listKeys = false, count, autoFocus = false, onEscape, onLayoutQuery, trailing, onLayout }: {
116
+ /** The field's own layout (Home's search: a waiting search request tries again). */
117
+ onLayout?: () => void;
107
118
  /** A control at the field's end, before its ✕ (Home's search asking the Overseer: Add image). */
108
119
  trailing?: ReactNode;
109
120
  /** Its arrows step into the list below (client/list-keys.ts): the sidebar filter, and Home's search while empty. */
@@ -146,9 +157,9 @@ export function QueryField({ theme, value, onChange, placeholder, icon, dense, i
146
157
  return <View style={{ flex: 1, minWidth: 0, flexDirection: "row", alignItems: "center", gap: dense ? 8 : 6, height: dense ? 44 : 32, paddingHorizontal: dense ? 12 : 8, borderRadius: dense ? 12 : 6,
147
158
  borderWidth: 1, borderColor: focused ? withAlpha(c.foreground, 0.35) : c.border, backgroundColor: c.surface1 }}>
148
159
  <Icon name={icon as never} size={dense ? 16 : 13} color={c.foregroundMuted} />
149
- <TextInput ref={inputRef} value={value} onChangeText={q => { onLayoutQuery?.(capture.current.change(q)); onChange(q); }} placeholder={placeholder} placeholderTextColor={c.foregroundMuted}
160
+ <TextInput ref={inputRef} onLayout={onLayout} value={value} onChangeText={q => { onLayoutQuery?.(capture.current.change(q)); onChange(q); }} placeholder={placeholder} placeholderTextColor={c.foregroundMuted}
150
161
  accessibilityLabel={placeholder} autoFocus={autoFocus} autoCorrect={false} autoCapitalize="none" spellCheck={false} returnKeyType="go"
151
- {...(listKeys ? { dataSet: { listKeys: "1" } } as object : {})}
162
+ {...(listKeys || onLayout ? { dataSet: { ...(listKeys ? { listKeys: "1" } : {}), ...(onLayout ? { followUpSearch: "1" } : {}) } } as object : {})}
152
163
  onFocus={() => setFocused(true)} onBlur={() => setFocused(false)}
153
164
  onSubmitEditing={onSubmit}
154
165
  // A single-line field blurs on submit by default, which dropped focus on the page after a search pick while the
@@ -181,11 +192,11 @@ export function SearchField({ theme, omnibox, dense, onEnter, anywhereKey }: { t
181
192
  const { query, setQuery, results, active, move, inputRef, askOn } = omnibox;
182
193
  const placeholder = askOn ? dense ? "Search or ask the Overseer" : "Search, or ask the Overseer" : "Search workspaces, branches, PRs";
183
194
  // The bar stays one line: a paste or drop lands here, and Home draws the thumbnails on their own line under it.
184
- if (askOn) return <ImageField model={omnibox.images} theme={theme} compact={dense} row={false} attach="inline" style={{ flex: 1, minWidth: 0 }}><QueryField theme={theme} onLayoutQuery={omnibox.setPhysical} value={query} onChange={setQuery} placeholder={placeholder} icon="Search" dense={dense} inputRef={inputRef} slashHint={anywhereKey || "/"}
195
+ if (askOn) return <ImageField model={omnibox.images} theme={theme} compact={dense} row={false} attach="inline" style={{ flex: 1, minWidth: 0 }}><QueryField theme={theme} onLayoutQuery={omnibox.setPhysical} value={query} onChange={setQuery} placeholder={placeholder} icon="Search" dense={dense} inputRef={inputRef} onLayout={omnibox.onSearchLayout} slashHint={anywhereKey || "/"}
185
196
  trailing={<AttachImageButton model={omnibox.images} theme={theme} compact={dense} label="Add image for the Overseer" />}
186
197
  slashTitle={anywhereKey ? `${anywhereKey} from anywhere · / on Home` : "/ focuses the search"}
187
198
  onSubmit={() => { const item = results?.[active]; if (item || !query.trim()) onEnter(item ?? null); }} onArrow={move} listKeys={!query.trim()} /></ImageField>;
188
- return <QueryField theme={theme} onLayoutQuery={omnibox.setPhysical} value={query} onChange={setQuery} placeholder={placeholder} icon="Search" dense={dense} inputRef={inputRef} slashHint={anywhereKey || "/"}
199
+ return <QueryField theme={theme} onLayoutQuery={omnibox.setPhysical} value={query} onChange={setQuery} placeholder={placeholder} icon="Search" dense={dense} inputRef={inputRef} onLayout={omnibox.onSearchLayout} slashHint={anywhereKey || "/"}
189
200
  slashTitle={anywhereKey ? `${anywhereKey} from anywhere · / on Home` : "/ focuses the search"}
190
201
  onSubmit={() => { const item = results?.[active]; if (item || !query.trim()) onEnter(item ?? null); }} onArrow={move} listKeys={!query.trim()} />;
191
202
  }
@@ -64,7 +64,7 @@ export type HomeSources = { inbox: InboxStore; live: LiveStore; paseo: PaseoWork
64
64
 
65
65
  /** One shared minute clock. Ages subscribe to it themselves, so a tick never re-renders the list rows. */
66
66
  const clock = { now: Date.now(), listeners: new Set<() => void>(), timer: null as ReturnType<typeof setInterval> | null };
67
- function subscribeClock(listener: () => void) {
67
+ export function subscribeClock(listener: () => void) {
68
68
  clock.listeners.add(listener);
69
69
  if (!clock.timer) clock.timer = setInterval(() => { clock.now = Date.now(); for (const l of clock.listeners) l(); }, 60_000);
70
70
  return () => { clock.listeners.delete(listener); if (!clock.listeners.size && clock.timer) { clearInterval(clock.timer); clock.timer = null; } };
@@ -14,6 +14,7 @@ import type { z } from "zod";
14
14
  export type QueueNeeds = z.infer<typeof queueNeedsSchema>;
15
15
  const NO_QUEUE: QueueNeeds = { needs: [], timeZone: "UTC", revision: "" };
16
16
  import { onVisible, whileVisible } from "./visibility";
17
+ import { createWebSearchFocus } from "./search-focus";
17
18
  import type { ContextRequest } from "../shared/catch-up";
18
19
 
19
20
  /**
@@ -67,7 +68,6 @@ export function createHomeExtras(client: PluginClientContext) {
67
68
  const readContext = async () => setContext((await client.rpc(contextListRpc, {})).requests);
68
69
  const agents = new Map<string, AgentLite>();
69
70
  let version = 0;
70
- let focusToken = 0; let focusPending = false;
71
71
  let stopped = false;
72
72
  const listeners = new Set<() => void>();
73
73
  let pending: ReturnType<typeof setTimeout> | null = null;
@@ -94,6 +94,8 @@ export function createHomeExtras(client: PluginClientContext) {
94
94
  void run();
95
95
  return () => { off = true; runs.delete(wake); if (next) { clearTimeout(next); timers.delete(next); next = null; } };
96
96
  };
97
+ const searchFocus = createWebSearchFocus();
98
+ const offSearchFocus = searchFocus.install();
97
99
  const offVisible = onVisible(() => { for (const r of runs) void r(); });
98
100
  const together = (stops: (() => void)[]) => () => { for (const s of stops) s(); };
99
101
  const readRank = async () => {
@@ -288,15 +290,11 @@ export function createHomeExtras(client: PluginClientContext) {
288
290
  return out;
289
291
  },
290
292
  agents: () => [...agents.values()],
291
- /** Bumped by ⌘K "Follow-up: Search" and the search key; the visible search field focuses when it changes. */
292
- focusToken: () => focusToken,
293
293
  /**
294
- * Asks Home's search to take the cursor: now if Home is mounted, else as soon as it mounts (a Home opened by this
295
- * very request mounts after the call, so a bare token bump would be missed).
294
+ * The one owner of "put the caret in Home's search" (every-search-request-lands-in-the-visible-search): the search
295
+ * key, ⌘K "Follow-up: Search" and `/` ask it; the search field on screen takes it (client/search-focus.ts).
296
296
  */
297
- focusSearch() { focusToken++; focusPending = true; emit(); },
298
- /** True once per focusSearch: the search field that takes it focuses. */
299
- takeFocus() { const was = focusPending; focusPending = false; return was; },
297
+ searchFocus,
300
298
  /** Calls `listener` when an agent's status, attention or permissions change (see above). */
301
299
  onActivity(listener: () => void) { activity.add(listener); return () => { activity.delete(listener); }; },
302
300
  /** Each update Paseo sends about one agent (null when it's removed). */
@@ -304,7 +302,7 @@ export function createHomeExtras(client: PluginClientContext) {
304
302
  const set = agentWatchers.get(agentId) ?? new Set(); set.add(listener); agentWatchers.set(agentId, set);
305
303
  return () => { set.delete(listener); if (!set.size) agentWatchers.delete(agentId); };
306
304
  },
307
- async stop() { stopped = true; stopFeeds(); offVisible(); activity.clear(); for (const t of timers) clearTimeout(t); timers.clear(); if (pending) clearTimeout(pending); listeners.clear(); unsubscribe(); await release?.(); },
305
+ async stop() { stopped = true; stopFeeds(); offVisible(); offSearchFocus(); activity.clear(); for (const t of timers) clearTimeout(t); timers.clear(); if (pending) clearTimeout(pending); listeners.clear(); unsubscribe(); await release?.(); },
308
306
  };
309
307
  }
310
308
  export type HomeExtras = ReturnType<typeof createHomeExtras>;
package/client/home.tsx CHANGED
@@ -61,6 +61,7 @@ import { PrLinksProvider, RichText } from "./rich-text";
61
61
  import { TOAST_ANCHOR, ToastHost, useQuestionOpener } from "./toasts";
62
62
  import { openRowCopy, useDetailGate, useWorkspace } from "./workspace-data";
63
63
  import type { ListWorkspace } from "../shared/list";
64
+ import { NEW_NAME } from "../shared/new-name";
64
65
 
65
66
  /** Home without a search key (tests, older wiring): no subscription, no label. */
66
67
  const noSubscribe = () => () => undefined;
@@ -295,7 +296,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
295
296
  strip and meters below if this row sits above them. */}
296
297
  <View style={{ zIndex: 2, flexDirection: "row", alignItems: "center", gap: compact ? 2 : 6, paddingLeft: compact ? 16 : 16, paddingRight: compact ? 6 : 16 }}>
297
298
  <SearchField theme={theme} omnibox={omnibox} dense={compact} onEnter={item => void pick(item)} anywhereKey={anywhereKey} />
298
- {compact && <IconButton theme={theme} compact icon="Plus" label="New" onPress={() => openNew()} />}
299
+ {compact && <IconButton theme={theme} compact icon="Plus" label={NEW_NAME} onPress={() => openNew()} />}
299
300
  {!(compact && nothing) && <SortMenu theme={theme} mode={model.sort} onChange={deps.sources.extras.setSort} rankedAt={model.rankedAt} touch={compact} rank={rank} onRerank={deps.sources.extras.rankNow} />}
300
301
  {compact && openStats && <IconButton theme={theme} compact icon="ChartNoAxesColumn" label="PR stats" onPress={openStats} />}
301
302
  {compact && <IconButton theme={theme} compact icon="Settings" label="Follow-up settings" onPress={deps.openSettings} />}
@@ -389,7 +390,7 @@ function ListHeader({ theme, compact, onSettings, onKeys, onStats, onNew, newLab
389
390
  <VersionMark theme={theme} touch={compact} openSettings={onSettings} />
390
391
  </View>
391
392
  {/* New first, then the other header controls. */}
392
- {onNew && <Button theme={theme} compact={compact} kind="secondary" icon="Plus" title="New" keyHint={newLabel ?? undefined} accessibilityLabel={newLabel ? `New (${newLabel})` : "New"} onPress={onNew} />}
393
+ {onNew && <Button theme={theme} compact={compact} kind="secondary" icon="Plus" title={NEW_NAME} keyHint={newLabel ?? undefined} accessibilityLabel={newLabel ? `${NEW_NAME} (${newLabel})` : `${NEW_NAME}`} onPress={onNew} />}
393
394
  {/* The keys sheet's way in for the mouse (S from the keyboard); desktop web, where the keys are. */}
394
395
  {onKeys && Platform.OS === "web" && <IconButton theme={theme} compact={compact} icon="Keyboard" label="Keys (S)" tooltip onPress={onKeys} />}
395
396
  {/* Shown once a repository has PR statistics (docs/pr-stats.md#where-it-opens-from). */}
@@ -896,6 +897,8 @@ function BriefPane({ theme, compact, pane, onSelect, openLog, sources, catchUp,
896
897
  useTick(30_000);
897
898
  const now = Date.now();
898
899
  const offline = sources.inbox.offlineSince();
900
+ // works-without-github: the worker sets githubOff on every workspace with PRs while GitHub is off.
901
+ const githubOff = sources.live.all().find(w => w.githubOff)?.githubOff ?? null;
899
902
  const observed = sources.live.all().flatMap(w => w.prs.map(p => p.snapshot?.observedAt).filter((x): x is string => !!x)).sort().at(-1) ?? null;
900
903
  const date = new Date(now).toLocaleDateString([], { weekday: "long", day: "numeric", month: "long" });
901
904
  const time = new Date(now).toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", hour12: false });
@@ -935,7 +938,9 @@ function BriefPane({ theme, compact, pane, onSelect, openLog, sources, catchUp,
935
938
  {section("Sources")}
936
939
  <View style={{ flexDirection: "row", flexWrap: "wrap", gap: 14 }}>
937
940
  <View style={{ flexDirection: "row", alignItems: "center", gap: 6 }}>{dot(offline === null)}<Text style={t.meta}>Paseo {offline === null ? "live" : `offline ${age(new Date(offline).toISOString(), now)}`}</Text></View>
938
- <View style={{ flexDirection: "row", alignItems: "center", gap: 6 }}>{dot(!!observed && now - Date.parse(observed) < 15 * 60_000)}<Text style={t.meta}>GitHub {observed ? age(observed, now) : "no PRs yet"}</Text></View>
941
+ {githubOff
942
+ ? <View style={{ flexDirection: "row", alignItems: "center", gap: 6 }}><View style={{ width: 8, height: 8, borderRadius: 4, backgroundColor: c.foregroundMuted }} /><Text style={t.meta}>{githubOff === "missing" ? "GitHub not connected" : "GitHub signed out"}</Text></View>
943
+ : <View style={{ flexDirection: "row", alignItems: "center", gap: 6 }}>{dot(!!observed && now - Date.parse(observed) < 15 * 60_000)}<Text style={t.meta}>GitHub {observed ? age(observed, now) : "no PRs yet"}</Text></View>}
939
944
  </View>
940
945
  </ScrollView>;
941
946
  }
@@ -106,7 +106,8 @@ export function JobRows({ theme, compact, order, extra, preselect = false }: {
106
106
  const on = field && display.status === "ready" ? display.values[field] !== false : null;
107
107
  return <JobRow key={r.role} first={i === 0} row={rows[i]} r={r} catalog={catalog?.providers ?? []} loading={!catalog} theme={theme} compact={compact} busy={busy}
108
108
  open={open === r.role} onToggle={() => setOpen(open === r.role ? null : r.role)}
109
- enabled={field ? on : undefined} onEnable={field && display.status === "ready" ? v => void display.save({ ...display.values, [field]: v }, display.revision).catch(e => toast.error(errorText(e))) : undefined}
109
+ // A job no available provider can run (needsGuard) shows off, and its notice says why; the setting is kept.
110
+ enabled={field ? (rows[i]!.blocked ? false : on) : undefined} onEnable={field && display.status === "ready" && !rows[i]!.blocked ? v => void display.save({ ...display.values, [field]: v }, display.revision).catch(e => toast.error(errorText(e))) : undefined}
110
111
  save={entry => change.mutate({ role: r.role, entry })} extra={extra} />;
111
112
  })}
112
113
  </View>;
@@ -125,12 +126,16 @@ export function JobRow({ row, r, catalog, loading, theme, compact, busy, open, o
125
126
  return <View style={{ borderTopWidth: first ? 0 : 1, borderTopColor: c.border, paddingHorizontal: pad, paddingVertical: 14, gap: 2 }}>
126
127
  <View style={{ flexDirection: "row", alignItems: "center", gap: 10 }}>
127
128
  <Text accessibilityRole="header" style={[t.label, { flex: 1 }]}>{row.title}</Text>
128
- {enabled !== undefined && <Switch theme={theme} compact={compact} label={enabled ? "On" : "Off"} accessibilityLabel={row.title} value={enabled} disabled={!onEnable} onChange={v => onEnable?.(v)} />}
129
+ {enabled !== undefined && <Switch theme={theme} compact={compact} label={row.blocked ? "Unavailable" : enabled ? "On" : "Off"} accessibilityLabel={row.title} hint={row.blocked ? row.notice?.text : undefined} value={enabled} disabled={!onEnable} onChange={v => onEnable?.(v)} />}
129
130
  </View>
130
131
  <Text style={[t.meta, off && { opacity: 0.6 }]}>{row.does}</Text>
131
- <View style={{ opacity: off ? 0.6 : 1, gap: 6, marginTop: 8 }}>
132
+ {/* An off row dims, but never its warning: the one line that says why must stay readable. */}
133
+ <View style={{ opacity: off && row.notice?.tone !== "warning" ? 0.6 : 1, gap: 6, marginTop: 8 }}>
132
134
  <View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 8 }}>
133
- {loading
135
+ {row.blocked && !loading
136
+ // Nothing here can run it: the state as plain text, not a picker that opens onto choices that can't run it.
137
+ ? <Text style={[t.body, { color: c.foregroundMuted, minHeight: compact ? 44 : 32, textAlignVertical: "center", paddingVertical: compact ? 12 : 6 }]}>{row.pick}</Text>
138
+ : loading
134
139
  ? <View style={{ flexDirection: "row", alignItems: "center", gap: 8, minHeight: compact ? 44 : 32 }}><Spinner color={c.foregroundMuted} size={14} /><Text style={t.meta}>Reading your providers…</Text></View>
135
140
  : <Pressable accessibilityRole="button" accessibilityLabel={`${row.title} model: ${row.pick}. Change`} accessibilityState={{ expanded: open, disabled: busy }} aria-expanded={open}
136
141
  disabled={busy && !open} onPress={onToggle}
@@ -140,7 +145,7 @@ export function JobRow({ row, r, catalog, loading, theme, compact, busy, open, o
140
145
  </Pressable>}
141
146
  {row.recommended && <Chip theme={theme} label="Recommended" color={c.foregroundMuted} />}
142
147
  </View>
143
- <Text style={[t.meta, { fontSize: 12, lineHeight: 16 }]}>{row.hint ? `${row.need} ${row.hint}` : row.need}</Text>
148
+ {!row.blocked && <Text style={[t.meta, { fontSize: 12, lineHeight: 16 }]}>{row.hint ? `${row.need} ${row.hint}` : row.need}</Text>}
144
149
  {row.notice && <View style={{ gap: 6, alignItems: "flex-start" }}>
145
150
  <Text accessibilityRole={row.notice.tone === "warning" ? "alert" : undefined} style={[t.meta, { fontSize: 12, lineHeight: 16, color: row.notice.tone === "warning" ? c.statusWarning : c.foregroundMuted }]}>{row.notice.text}</Text>
146
151
  {/* Can't run: a real button, the row's one way back. Only differs: the developer chose it, so a quiet link. */}
@@ -16,7 +16,8 @@ type Doc = { body: unknown; activeElement: unknown; visibilityState?: string; qu
16
16
  * non-modal dialog (Home's keys sheet, which S opens and closes) leaves the page its keys; keys typed inside one stay
17
17
  * its own (the focus check below).
18
18
  */
19
- const OVERLAYS = '[role="menu"],[role="alertdialog"],[aria-modal="true"]';
19
+ /** Menus and modal dialogs drawn over a surface (list keys pause under them; so does a held search request). */
20
+ export const OVERLAYS = '[role="menu"],[role="alertdialog"],[aria-modal="true"]';
20
21
 
21
22
  export type ListKeysOptions = {
22
23
  enabled: boolean;