paseo-follow-up 1.4.0-beta.26 → 1.4.0-beta.28
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 +11 -0
- package/OVERVIEW.md +3 -3
- package/README.md +6 -6
- package/client/about.tsx +70 -118
- package/client/agents.tsx +3 -3
- package/client/chat.tsx +7 -20
- package/client/header.tsx +6 -4
- package/client/home.tsx +4 -3
- package/client/onboarding.tsx +5 -4
- package/client/panel.tsx +5 -6
- package/client/settings.tsx +44 -6
- package/index.client.tsx +3 -2
- package/index.server.ts +2 -2
- package/package.json +1 -1
- package/server/about.ts +32 -26
- package/server/agent-actions.ts +9 -8
- package/server/ai-jobs.ts +1 -1
- package/server/mcp-source.ts +1 -1
- package/server/mcp.mjs +3 -3
- package/server/transcript.ts +1 -1
- package/shared/about.ts +34 -29
- package/shared/agent-settings.ts +2 -2
- package/shared/chat.ts +65 -0
- package/shared/contracts.ts +1 -1
- package/shared/onboarding.ts +29 -2
- package/shared/settings-nav.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of Follow-up, newest first. Follow-up shows these in "What's new" after an update, and in full from Home's last line.
|
|
4
4
|
|
|
5
|
+
## 1.4.0-beta.28 (2026-11-10)
|
|
6
|
+
|
|
7
|
+
- "What's this about?" is now the Summary: one short sentence under the workspace's name saying what it's for. Rewrite it from the panel's Spec, agent and recovery section.
|
|
8
|
+
- The list of linked issues and threads under it is gone for now.
|
|
9
|
+
- Settings has a new General section first, with Set up Follow-up again and the installed version's release notes.
|
|
10
|
+
|
|
11
|
+
## 1.4.0-beta.27 (2026-11-10)
|
|
12
|
+
|
|
13
|
+
- Follow-up's routine bookkeeping now sits inside Paseo's grouped tool calls instead of breaking them into loose rows.
|
|
14
|
+
- Only the moments that matter stand out in the chat: a question asked and the Workspace done card, which now shows once even when the agent declares done twice.
|
|
15
|
+
|
|
5
16
|
## 1.4.0-beta.26 (2026-11-10)
|
|
6
17
|
|
|
7
18
|
- A finished workspace no longer stalls short of Done when Follow-up can't check what production serves. Done goes through with a "Deploy not confirmed by Follow-up" note.
|
package/OVERVIEW.md
CHANGED
|
@@ -7,7 +7,7 @@ Follow-up watches every pull request a Paseo workspace opens until the work is a
|
|
|
7
7
|
- Home: every workspace grouped by what it needs from you (Needs you, Follow-up is fixing, Running, Waiting on others, Quiet), with the selected one beside the list so you can allow a permission, answer, merge, reply or sign off in place, and a brief with what Follow-up did while you were away. Above the list: the status counts, provider limits from Smart Session when it's installed, a search over names, branches, PRs, agents and asks, and a sort menu (Priority, Recent, Oldest waiting, Name, By project).
|
|
8
8
|
- The Overseer (1.4 beta), pinned on Home: one agent you talk to about all your workspaces. It forwards your asks to the agent that owns them, asks you when it isn't sure, and starts a new workspace only when you say so. You can ask it from Home's search box (the last row, "Ask the Overseer: …") or with ⌘K → Follow-up: Ask the Overseer.
|
|
9
9
|
- AI priority (1.4 beta): Home's Priority sort ranked from your Linear issues, Slack DMs and mentions, GitHub review requests and the weekly plan, each row with a one-line reason that names its source. It runs hourly on workdays, only when something changed, and Re-rank now is in the sort menu.
|
|
10
|
-
-
|
|
10
|
+
- Summary, a collapsible section at the top of Home's detail pane and the workspace panel: a one-line gist, a short AI overview of what the workspace is for and where it stands, and its linked Linear issues, PRs, Slack threads and docs.
|
|
11
11
|
- A workspace panel for the open workspace only, with a Home button: PRs merged, what needs you, what needs fixing, a bar with one segment per PR, and what the agent is doing now. "Open full" on Home docks it beside the agent's chat.
|
|
12
12
|
- A Needs you card with one button per decision: Send repairs, Merge, Resume, Retry, or Answer.
|
|
13
13
|
- Questions from the main agent, each with a permanent ref (Q1, Q2…), lettered options, the agent's recommendation and what it does while it waits. Pick an option, add a note and Send it to the agent, or Copy it instead. Answered questions stay listed under their ref, and the question mode setting (Stop, Work around, Keep building) tells agents what to do until you answer.
|
|
@@ -45,9 +45,9 @@ The Needs-you inbox (beta) keeps one flag per root agent in `plugin-data/follow-
|
|
|
45
45
|
The brief (beta) is stored on the agent's inbox entry and appended to its timeline as a Follow-up row; re-appending replaces that row, and the restart check ignores the `updatedAt` change the append causes because it never reads `updatedAt`. To build a brief Follow-up reads only what it already has: the agent's `needs_you` call, the permission request's title, the failed turn's error message, Session Guard's note and reset time for a paused agent, and its own PR state. It does not read or quote the agent's reply. While the inbox is on, every root Paseo agent on Claude Code or Codex gets Follow-up's MCP bridge with the `needs_you` tool only (tracked main agents keep their full set), and `plugin-data/follow-through/brief.json` records whether the inbox and the nudge are on and which agents have a permission prompt showing. Clicking an option or Retry sends one message as you; it is logged in the delivery ledger as yours, so it clears the flag. The Stop hook, part of the same reversible provider hooks Follow-up already installs, now also runs for those root Claude Code sessions: if the turn ended without `needs_you`, it blocks the stop once with a one-line request to call it, records that it did in `hook-state`, and never blocks the same turn again. It reads `brief.json`, its own per-turn marker and the time of the agent's last `needs_you` call, and nothing else. Turn it off with *Ask agents to state what they need*; turning the inbox off stops it too.
|
|
46
46
|
|
|
47
47
|
The Overseer (beta) is one Claude agent in a Follow-up workspace under `plugin-data/follow-through/overseer-home`, labelled `follow-up.overseer=1` and created only when you click Start. Its id is kept in `plugin-data/follow-through/overseer.json`. Discovery, tracking, auto-send and Needs you skip its workspace. At the start of each of its turns, the provider hook adds a digest from `plugin-data/follow-through/overseer-digest.json` and records what it showed in `hook-state/overseer-seen-<agent>.json`. The worker builds that file from Paseo's workspace list (metadata only, at most once a minute) and Follow-up's own state. It rewrites the file only when the content changes, and skips it while the resource governor pauses background work. Its tools are `workstreams`, `agent_digest`, `route_candidates`, `send_to_agent` and `start_workspace`. For an agent that isn't loaded, `agent_digest` reads the provider's transcript on disk, read-only (Claude Code's `projects/<cwd>/<session>.jsonl`, Codex's `sessions/**/rollout-*-<thread>.jsonl`; only the last 512 KB, and never the credentials in Paseo's agent record). Without a transcript it uses Follow-up's goal and PR titles. It never reads that agent's timeline. `send_to_agent` writes your words to the delivery ledger first: as yours only when they answer that agent's open ask, otherwise as Follow-up's. It wakes a resting agent only because you asked for it. `start_workspace` runs only after your approval, through a dry run and confirm. The Overseer can't merge, archive or post anywhere.
|
|
48
|
-
|
|
48
|
+
The Summary keeps its overviews in `plugin-data/follow-through/about.json` (gist, overview, linked rows, when and from what; never raw history) and logs each model call's duration and cost to `ai-jobs.jsonl`. To write one it reads the root agent's latest steps from its live timeline only when Paseo already has the agent loaded; otherwise it reads the first and last part of the agent's provider transcript on disk (Claude Code's `~/.claude/projects`, Codex's `~/.codex/sessions`), read-only, and never wakes the agent. It reads subagent titles from Paseo's agent list, PR titles and bodies with `gh pr view`, and only the Linear issues and Slack threads the workspace itself links, through `mcpproxy call tool-read` (`linear:get_issue`, `slack-user:slack_read_thread`); there are no searches. The model is set under Settings → Agents (default Haiku). With Claude it runs as a headless `claude -p` with no tools, no MCP servers, no settings and no saved session. With Codex it runs as `codex exec --ephemeral` with no user config or rules, no shell tool and a read-only sandbox in an empty temporary folder. Either way it gets one turn, a 90-second timeout, and runs one call at a time; on timeout the whole process group is killed. Overviews are written ahead of time only for non-dormant workspaces in Needs you, at most 60 a day by default (Settings → Agents), and not while a Claude account is above 85% of a limit or the resource governor has paused background work; above its higher threshold, opening the section shows the cached overview and writes none.
|
|
49
49
|
|
|
50
|
-
Settings → Agents (`plugin-data/follow-through/agents.json`, its own file) chooses the provider, model, effort and mode for
|
|
50
|
+
Settings → Agents (`plugin-data/follow-through/agents.json`, its own file) chooses the provider, model, effort and mode for Summaries, the Overseer, recovery agents and the priority ranker. Missing or invalid entries use the defaults. The provider and model list comes from Paseo's provider snapshot. It is read only when that settings screen opens, and cached for ten minutes. A changed Overseer setting is never applied mid-conversation: Home offers a restart, and the new Overseer is handed the old one's last steps (read from its transcript on disk when it isn't loaded). The old agent is left as it is. A recovery agent on a different provider than the main agent keeps the main agent's system prompt, MCP servers and tool policy, and drops its provider-specific model, mode and options. `FOLLOW_UP_OVERSEER_PROVIDER` ("provider/model") overrides the Overseer's setting; it exists only for isolated test daemons.
|
|
51
51
|
|
|
52
52
|
The ranker behind AI priority (beta) runs inside Follow-up's worker as bounded one-shot jobs (Claude or Codex, per the ranker role) through the shared job runner (`server/ai-jobs.ts`), one at a time and only while the resource governor allows background work. It reads Follow-up's own state, `mcpproxy call tool-read` for `linear:list_issues` (assigned to you) and `slack-user:slack_search_public_and_private` (DMs and mentions, last 48 hours), `gh search prs --review-requested=@me`, and the planning artifact through one Claude turn limited to the Artifact tool. It hashes those inputs and calls the model only when they changed. It writes only `plugin-data/follow-through/priorities.json` (its ranking, which replaces its previous one) and `ranker.json` (input hash, run count, source health, the day's plan summary, and Linear issues no workspace covers). It never stores raw artifact HTML or share keys. The provider, model, cadence and daily cap come from the ranker role in Settings → Agents; the plan reader always uses Claude, the only provider with the Artifact tool.
|
|
53
53
|
|
package/README.md
CHANGED
|
@@ -32,9 +32,9 @@ The first time you open Follow-up from the sidebar, a short setup takes Home's p
|
|
|
32
32
|
2. **Check your setup.** Whether the GitHub CLI is signed in (and as whom), whether Claude and Codex are available for the helper agents, and whether agents get Follow-up's tools. Anything missing shows the fix, with the command to copy. Checks run only while this step is open.
|
|
33
33
|
3. **What Follow-up does without asking.** Follow every workspace (or turn single ones off), Send repairs automatically, and Trust bypass agents. They are on by default and save as you change them.
|
|
34
34
|
4. **Reviewers.** Who **Add reviewers** asks: a default for every repository, and a list per repository Follow-up has seen. **Skip, set later** leaves it empty.
|
|
35
|
-
5. **Helpers.** The Overseer and AI priority switches, which models they use (change them under Settings → Agents), and where Home, the workspace panel, Needs you and
|
|
35
|
+
5. **Helpers.** The Overseer and AI priority switches, which models they use (change them under Settings → Agents), and where Home, the workspace panel, Needs you and the Summary live.
|
|
36
36
|
|
|
37
|
-
Every switch in setup is the same one Settings shows, so nothing is applied twice and nothing is lost if you stop halfway. Setup remembers its step, so a reload or another device picks up where you left off. Run it again any time from **Set up Follow-up again**
|
|
37
|
+
Every switch in setup is the same one Settings shows, so nothing is applied twice and nothing is lost if you stop halfway. Setup remembers its step, so a reload or another device picks up where you left off. Run it again any time from **Set up Follow-up again** in Settings → **General**, the first category, or ⌘K → **Follow-up: Set up again**. If Follow-up was already installed before this version, it doesn't open on its own: Home shows one dismissible line offering it, for a day.
|
|
38
38
|
|
|
39
39
|
## What's new
|
|
40
40
|
|
|
@@ -147,9 +147,9 @@ The Follow-up sidebar row (and ⌘K → **Follow-up: Home**) opens **Home**: eve
|
|
|
147
147
|
- **Provider limits** under it, from the [Smart Session](https://www.npmjs.com/package/paseo-smart-session) plugin: one line per provider, such as "Claude 5h 62% · 7d 41% · resets 14:10". Amber from 80%, red at the limit; tap a line to see each ZeroSub account. The age shows when the reading is older than 15 minutes. Without Smart Session the line isn't there.
|
|
148
148
|
- **Search** ("Search workspaces, branches, PRs"; `/` or ⌘K → **Follow-up: Search** focuses it) matches workspace names, branches, PR numbers ("#1402" or "1402") and titles, agent and subagent titles, the project, Linear keys such as HER-1312, and the current ask. Words can come in any order, prefixes count and one typo is forgiven. Results are one ranked list (name above branch and PR above the ask, then recency) with the matched words marked and each row's group as a chip; archived workspaces come last. ↑/↓ move, Enter opens the result on the right, Esc clears.
|
|
149
149
|
- **Sort** (the menu beside search, remembered on this device): **Priority** (default), **Recent**, **Oldest waiting**, **Name** and **By project**. It orders rows inside each group; groups stay in place and search ignores it. Priority means urgency: blocking asks, then decisions only you make, then finished turns; inside those, a big open question first, then the nearest task deadline, then the oldest ask. When an agent has ranked workspaces with `set_priorities` in the last 6 hours, Priority uses those scores inside Needs you (blocking asks still first), each row shows the ranker's one-line reason and source, and the menu says "Ranked 12m ago"; otherwise it says "By urgency". Follow-up never writes a reason itself.
|
|
150
|
-
####
|
|
150
|
+
#### Summary
|
|
151
151
|
|
|
152
|
-
When a workspace's name doesn't remind you what it's for, open **
|
|
152
|
+
When a workspace's name doesn't remind you what it's for, open **Summary** at the top of Home's detail pane or the workspace panel (under Home). It's collapsed by default and remembers open or closed on this device. Collapsed, it shows a one-line gist once one is written ("Fix slow vendor-activity query; PR #1352 merged, waiting on Hadar"). Open, it shows:
|
|
153
153
|
|
|
154
154
|
- **An overview**: two to four plain sentences on what the workspace is for, where it stands and what it's waiting on, written by a small model from the root agent's first messages and latest steps, its subagents' titles, its PRs and the linked issues. While it's being written you see "Summarizing…" with the first message.
|
|
155
155
|
- **Linked**: Linear issues (key, title, state, priority, due), PRs (number, title, state), Slack threads (channel, who, a one-line excerpt) and claude.ai or doc links the agent shared, each with a source chip. Links are only ever found in the workspace's own text, never written by the model; with none it says "No linked issues or threads found".
|
|
@@ -197,7 +197,7 @@ Settings → **Agents** has one card for each agent Follow-up runs for you. Each
|
|
|
197
197
|
|
|
198
198
|
| Agent | Default | Notes |
|
|
199
199
|
|---|---|---|
|
|
200
|
-
|
|
|
200
|
+
| Summaries | Claude · Haiku | One small call per summary, no tools. Claude (`claude -p`) or Codex (`codex exec`). Also sets how many overviews are written ahead per day (60). |
|
|
201
201
|
| Overseer | Claude · newest Opus, Bypass | A change applies when you restart it. Its pane on Home offers **Restart with …**, and the new Overseer gets the old one's last steps. |
|
|
202
202
|
| Recovery | Same as main agent | Or pick a provider and model. Switching provider keeps the main agent's tools and instructions. |
|
|
203
203
|
| Priority ranker | Claude · Sonnet, hourly, up to 24 a day | One call per run, no tools. Claude or Codex. |
|
|
@@ -221,7 +221,7 @@ This replaces the separate **Wait** plugin (`paseo-wait`). While that plugin is
|
|
|
221
221
|
Install the beta:
|
|
222
222
|
|
|
223
223
|
```sh
|
|
224
|
-
paseo plugin update follow-through --version 1.4.0-beta.
|
|
224
|
+
paseo plugin update follow-through --version 1.4.0-beta.28
|
|
225
225
|
# or, for a fresh install:
|
|
226
226
|
paseo plugin install npm:paseo-follow-up@beta
|
|
227
227
|
```
|
package/client/about.tsx
CHANGED
|
@@ -1,142 +1,94 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
1
|
+
import { useEffect, useRef, useState } from "react";
|
|
2
|
+
import { Animated, Easing, Platform, Text, View } from "react-native";
|
|
3
|
+
import { useRpc } from "@getpaseo/plugin/client";
|
|
5
4
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
6
5
|
import { workspaceAboutRpc } from "../shared/contracts";
|
|
7
|
-
import {
|
|
6
|
+
import { shortFooter, summaryDisplay, summaryLine, type AboutView } from "../shared/about";
|
|
8
7
|
import { errorText } from "../shared/errors";
|
|
9
8
|
import { Button, text, type Theme } from "./kit";
|
|
10
|
-
import {
|
|
9
|
+
import { useReducedMotion } from "./motion";
|
|
11
10
|
import { useTick } from "./home-data";
|
|
12
|
-
import type { Colors } from "./theme";
|
|
13
|
-
|
|
14
|
-
const OPEN_KEY = "follow-up.about.open";
|
|
15
|
-
/** Open/closed is per device (web and desktop storage). Native or blocked storage: this session only. */
|
|
16
|
-
let memoryOpen: boolean | null = null;
|
|
17
|
-
const readOpen = (): boolean => {
|
|
18
|
-
try { const v = (globalThis as { localStorage?: Storage }).localStorage?.getItem(OPEN_KEY); if (v === "1" || v === "0") return v === "1"; } catch { /* memory only */ }
|
|
19
|
-
return memoryOpen ?? false;
|
|
20
|
-
};
|
|
21
|
-
const writeOpen = (open: boolean) => {
|
|
22
|
-
memoryOpen = open;
|
|
23
|
-
try { (globalThis as { localStorage?: Storage }).localStorage?.setItem(OPEN_KEY, open ? "1" : "0"); } catch { /* memory only */ }
|
|
24
|
-
};
|
|
25
11
|
|
|
26
12
|
export const aboutKey = (workspaceId: string) => ["follow-through", "about", workspaceId] as const;
|
|
27
13
|
|
|
28
14
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
15
|
+
* The Summary: one sentence under the workspace's title saying what it's for (Tom, 2026-11-10). One read shape for
|
|
16
|
+
* every place that shows it (the panel header, Home's detail header, the panel's Summary row), so they share one cache
|
|
17
|
+
* entry. Reading asks the server to write one when none is current; its TTL, back-off, budgets and the memory check
|
|
18
|
+
* decide whether it actually does. Polls only while one is being written.
|
|
31
19
|
*/
|
|
32
|
-
export function
|
|
33
|
-
const c = theme.colors; const t = text(c, compact);
|
|
34
|
-
// Phones start every pane collapsed and keep the choice for this mount only: one tap mustn't push the ask below the
|
|
35
|
-
// fold in every workspace. Desktop keeps the per-device choice.
|
|
36
|
-
const [open, setOpenState] = useState(() => compact ? false : readOpen());
|
|
37
|
-
const [refreshing, setRefreshing] = useState(false);
|
|
20
|
+
export function useSummary(workspaceId: string) {
|
|
38
21
|
const read = useRpc(workspaceAboutRpc);
|
|
39
22
|
const client = useQueryClient();
|
|
40
23
|
const query = useQuery({
|
|
41
|
-
queryKey:
|
|
42
|
-
queryFn: () => read({ workspaceId, open }),
|
|
43
|
-
// Polls only while an overview is being written; otherwise one read per open (and per Refresh).
|
|
24
|
+
queryKey: aboutKey(workspaceId),
|
|
25
|
+
queryFn: () => read({ workspaceId, open: true }),
|
|
44
26
|
refetchInterval: q => (q.state.data as AboutView | undefined)?.status === "pending" ? 3000 : false,
|
|
45
27
|
staleTime: 60_000,
|
|
46
28
|
});
|
|
47
|
-
|
|
48
|
-
const
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
setRefreshing(true);
|
|
54
|
-
try { const next = await read({ workspaceId, open: true, refresh: true }); client.setQueryData([...aboutKey(workspaceId), true], next); }
|
|
55
|
-
catch { /* the query's error shows */ } finally { setRefreshing(false); }
|
|
29
|
+
const [rewriting, setRewriting] = useState(false);
|
|
30
|
+
const rewrite = async () => {
|
|
31
|
+
if (rewriting) return;
|
|
32
|
+
setRewriting(true);
|
|
33
|
+
try { client.setQueryData(aboutKey(workspaceId), await read({ workspaceId, open: true, refresh: true })); }
|
|
34
|
+
catch { /* the query's error shows */ } finally { setRewriting(false); }
|
|
56
35
|
};
|
|
57
|
-
|
|
58
|
-
const peek = compact && !open && !!d.gist;
|
|
59
|
-
|
|
60
|
-
const failedKinds = new Set(view?.record?.failed ?? []);
|
|
61
|
-
|
|
62
|
-
// Collapsed it's a plain disclosure row; open, a hairline frame with no fill so the ask stays the raised block.
|
|
63
|
-
return <View style={{ borderRadius: 10, borderWidth: open ? 1 : 0, borderColor: c.border, marginHorizontal: flush ? 0 : compact ? 16 : 12, marginTop: flush ? 0 : 8 }}>
|
|
64
|
-
<Pressable accessibilityRole="button" aria-expanded={open} accessibilityState={{ expanded: open }} accessibilityLabel={`${open ? "Hide" : "Show"} what this workspace is about`}
|
|
65
|
-
accessibilityHint={d.gist && !open ? d.gist : undefined} onPress={toggle}
|
|
66
|
-
style={state => ({ flexDirection: "row", alignItems: peek ? "flex-start" : "center", gap: 8, paddingHorizontal: open ? 12 : 8, marginHorizontal: open ? 0 : -8, minHeight: compact ? 48 : 32, paddingVertical: compact ? 8 : 6, borderRadius: 8,
|
|
67
|
-
backgroundColor: state.pressed ? c.surface2 : (state as { hovered?: boolean }).hovered ? c.surface1 : "transparent" })}>
|
|
68
|
-
<View style={peek ? { paddingTop: 3 } : undefined}><Icon name={open ? "ChevronDown" : "ChevronRight"} size={14} color={c.foregroundMuted} /></View>
|
|
69
|
-
{/* Phones: the gist wraps under the label (two lines) instead of being cut to a few words beside it. */}
|
|
70
|
-
{peek ? <View style={{ flex: 1, minWidth: 0, gap: 2 }}>
|
|
71
|
-
<Text style={t.label}>What's this about?</Text>
|
|
72
|
-
<Text numberOfLines={2} style={[t.meta, { fontSize: 13, lineHeight: 18 }]}>{d.gist}</Text>
|
|
73
|
-
</View> : <>
|
|
74
|
-
<Text style={[t.label, { flexShrink: 0 }]}>What's this about?</Text>
|
|
75
|
-
{!open && d.gist ? <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{d.gist}</Text> : <View style={{ flex: 1 }} />}
|
|
76
|
-
</>}
|
|
77
|
-
{!open && view?.status === "pending" && !d.gist && <Spinner color={c.foregroundMuted} size={11} label="Summarizing" />}
|
|
78
|
-
</Pressable>
|
|
79
|
-
{open && <View style={{ paddingHorizontal: 12, paddingBottom: 10, gap: 12 }}>
|
|
80
|
-
<Overview d={d} view={view} c={c} compact={compact} loading={query.isPending} error={query.error ? errorText(query.error) : null} />
|
|
81
|
-
{/* Nothing is claimed about links until an overview exists: "none found" only after a finished write. */}
|
|
82
|
-
{d.body === "overview" && <View style={{ gap: 4 }}>
|
|
83
|
-
<Text accessibilityRole="header" style={compact ? t.section : [t.small, { fontWeight: "600", letterSpacing: 0.5, textTransform: "uppercase" }]}>Linked</Text>
|
|
84
|
-
{d.links.length ? d.links.map(l => <LinkRow key={l.key} l={l} c={c} compact={compact} failed={failedKinds.has(SOURCE_LABEL[l.kind])} />)
|
|
85
|
-
: <Text style={t.meta}>{d.empty}</Text>}
|
|
86
|
-
</View>}
|
|
87
|
-
{view?.record && <View style={{ flexDirection: "row", alignItems: "center", gap: 8 }}>
|
|
88
|
-
{/* Phones: one meta line ("Haiku · 2m ago"); what it was built from goes to Refresh's hint. */}
|
|
89
|
-
<Text numberOfLines={compact ? 1 : undefined} style={[t.small, { flex: 1, minWidth: 0 }]}>{compact ? shortFooter(d.footer) : d.footer}</Text>
|
|
90
|
-
<Button theme={theme} compact={compact} kind="ghost" icon="RefreshCw" title={busy ? "Summarizing…" : "Refresh"} accessibilityLabel="Summarize again" accessibilityHint={compact ? d.footer ?? undefined : undefined} disabled={busy} onPress={() => void refresh()} />
|
|
91
|
-
</View>}
|
|
92
|
-
{!view?.record && view?.status === "failed" && <View style={{ flexDirection: "row" }}>
|
|
93
|
-
<Button theme={theme} compact={compact} kind="ghost" icon="RefreshCw" title={busy ? "Summarizing…" : "Try again"} disabled={busy} onPress={() => void refresh()} />
|
|
94
|
-
</View>}
|
|
95
|
-
</View>}
|
|
96
|
-
</View>;
|
|
36
|
+
return { query, view: query.data ?? null, rewrite, rewriting };
|
|
97
37
|
}
|
|
98
38
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (
|
|
120
|
-
return <Text style={t.meta}>
|
|
39
|
+
/**
|
|
40
|
+
* Under the title: the sentence, or the goal when there's no sentence yet, or "Writing a summary…" when there's
|
|
41
|
+
* neither. Plain, selectable, muted, at most three lines. No label, no control, no spinner.
|
|
42
|
+
*/
|
|
43
|
+
export function SummaryLine({ workspace, theme, compact, lead = false }: { workspace: { id: string; title: string; goal: string }; theme: Theme; compact: boolean; lead?: boolean }) {
|
|
44
|
+
const c = theme.colors; const t = text(c, compact);
|
|
45
|
+
const { view } = useSummary(workspace.id);
|
|
46
|
+
const line = summaryLine(summaryDisplay(view, Date.now()), workspace);
|
|
47
|
+
const reduced = useReducedMotion();
|
|
48
|
+
const fade = useRef(new Animated.Value(1)).current;
|
|
49
|
+
const shown = line?.kind === "summary" ? line.text : null;
|
|
50
|
+
const seen = useRef(shown);
|
|
51
|
+
// A sentence arriving fades in once; no height animation, and nothing with reduced motion.
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (!shown || shown === seen.current) return;
|
|
54
|
+
seen.current = shown;
|
|
55
|
+
if (reduced) return;
|
|
56
|
+
fade.setValue(0);
|
|
57
|
+
Animated.timing(fade, { toValue: 1, duration: 200, easing: Easing.out(Easing.quad), useNativeDriver: Platform.OS !== "web" }).start();
|
|
58
|
+
}, [shown, reduced, fade]);
|
|
59
|
+
if (!line) return null;
|
|
60
|
+
if (line.kind === "writing") return <Text numberOfLines={1} style={t.meta}>{line.text}</Text>;
|
|
61
|
+
// `lead`: the large view, where this line stands in for the title, keeps the goal's foreground lead style.
|
|
62
|
+
const style = [t.body, { color: lead ? c.foreground : c.foregroundMuted }];
|
|
63
|
+
return <Animated.View style={{ opacity: fade }}>
|
|
64
|
+
<Text selectable numberOfLines={3} style={style}
|
|
65
|
+
accessibilityLabel={line.kind === "summary" ? `Summary: ${line.text}` : undefined}
|
|
66
|
+
{...(Platform.OS === "web" ? { title: line.text } as object : {})}>{line.text}</Text>
|
|
67
|
+
</Animated.View>;
|
|
121
68
|
}
|
|
122
69
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
70
|
+
/**
|
|
71
|
+
* The panel's Summary row (inside "Spec, agent and recovery"): who wrote it and when, and Rewrite. The agent tool
|
|
72
|
+
* `workspace_about` with refresh=true does the same.
|
|
73
|
+
*/
|
|
74
|
+
export function SummaryRow({ workspaceId, theme, compact }: { workspaceId: string; theme: Theme; compact: boolean }) {
|
|
75
|
+
const c = theme.colors; const t = text(c, compact);
|
|
76
|
+
const { query, view, rewrite, rewriting } = useSummary(workspaceId);
|
|
77
|
+
useTick(60_000);
|
|
78
|
+
const d = summaryDisplay(view, Date.now());
|
|
79
|
+
const busy = rewriting || d.pending;
|
|
80
|
+
const line = query.error ? `Couldn't load the summary: ${errorText(query.error)}`
|
|
81
|
+
: d.footer ? shortFooter(d.footer)
|
|
82
|
+
: d.failed ? "Couldn't write a summary"
|
|
83
|
+
: d.pending ? "Writing a summary…" : "No summary yet";
|
|
84
|
+
const action = busy ? "Rewriting…" : d.failed ? "Try again" : d.sentence ? "Rewrite" : "Write summary";
|
|
85
|
+
return <View style={{ flexDirection: "row", alignItems: "center", gap: 8, minHeight: compact ? 48 : 36 }}>
|
|
133
86
|
<View style={{ flex: 1, minWidth: 0, gap: 1 }}>
|
|
134
|
-
<Text
|
|
135
|
-
|
|
136
|
-
{
|
|
137
|
-
</Text>
|
|
138
|
-
{!!meta.length && <Text numberOfLines={1} style={t.small}>{meta.join(" · ")}</Text>}
|
|
87
|
+
<Text style={t.label}>Summary</Text>
|
|
88
|
+
<Text numberOfLines={1} accessibilityRole={d.failed || query.error ? "alert" : undefined} style={t.meta}
|
|
89
|
+
{...(Platform.OS === "web" && d.footer ? { title: d.footer } as object : {})}>{line}</Text>
|
|
139
90
|
</View>
|
|
140
|
-
|
|
141
|
-
|
|
91
|
+
<Button theme={theme} compact={compact} kind="secondary" icon="RefreshCw" title={action}
|
|
92
|
+
accessibilityHint={d.footer ?? undefined} disabled={busy} onPress={() => void rewrite()} />
|
|
93
|
+
</View>;
|
|
142
94
|
}
|
package/client/agents.tsx
CHANGED
|
@@ -39,7 +39,7 @@ export function AgentSettings({ theme, compact, toggles = {} }: Pick<PluginSurfa
|
|
|
39
39
|
onError: error => toast.error(errorText(error)),
|
|
40
40
|
});
|
|
41
41
|
const data = query.data;
|
|
42
|
-
const info = "Which agent Follow-up uses for each of its own jobs. Defaults: Claude Haiku for
|
|
42
|
+
const info = "Which agent Follow-up uses for each of its own jobs. Defaults: Claude Haiku for summaries, Claude Opus for the Overseer, the main agent's own setup for recovery, Claude Sonnet for priority ranking. Summaries and the ranker are one-shot jobs, so they run on Claude or Codex only; the Overseer and recovery can use any provider Paseo has. Changes apply from the next call; the Overseer switches when you restart it.";
|
|
43
43
|
return <SettingsSection title="Models" info={info}>
|
|
44
44
|
{query.isPending && <ActivityIndicator accessibilityLabel="Loading agent settings" color={c.foregroundMuted} style={{ alignSelf: "flex-start", marginVertical: 8 }} />}
|
|
45
45
|
{query.error && <SettingsCard><SettingsAction label="Couldn't load agent settings" hint={errorText(query.error)} actionLabel="Retry" onPress={() => void query.refetch()} /></SettingsCard>}
|
|
@@ -130,7 +130,7 @@ function RoleCard({ r, invalid, catalog, busy, save, theme, compact, toggle }: {
|
|
|
130
130
|
</View>
|
|
131
131
|
<Text style={t.meta}>{ROLE_INFO[role].does}{role === "overseer" ? " A running Overseer keeps its model until you restart it from Home." : ""}</Text>
|
|
132
132
|
{invalid && <Text style={t.meta}>Part of the saved setting wasn't valid, so its default is used.</Text>}
|
|
133
|
-
{blocked && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusWarning }]}>{`${providerLabel} isn't available (${blockedReason}). ${role === "about" ? "
|
|
133
|
+
{blocked && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusWarning }]}>{`${providerLabel} isn't available (${blockedReason}). ${role === "about" ? "Summaries will fail" : role === "ranker" ? "Ranking will fail" : role === "overseer" ? "Starting or restarting the Overseer will fail" : "Recovery agents won't start"} until you pick another provider or reset.`}</Text>}
|
|
134
134
|
</View>
|
|
135
135
|
{/* The role's own on/off (Overseer, AI priority) leads its card; the model rows follow. */}
|
|
136
136
|
{toggle}
|
|
@@ -143,7 +143,7 @@ function RoleCard({ r, invalid, catalog, busy, save, theme, compact, toggle }: {
|
|
|
143
143
|
{!jobs && !r.same && modes.length > 0 && <SettingsSelect label="Permissions" hint="It runs unattended, so pick a mode that doesn't prompt." value={r.mode ?? DEFAULT}
|
|
144
144
|
options={[{ value: DEFAULT, label: modeDefault ? `Default (${modeLabel(modeDefault)})` : "Default" }, ...modes.map(m => ({ value: m.id, label: modeLabel(m) }))]} disabled={busy}
|
|
145
145
|
onValueChange={value => set({ mode: value === DEFAULT ? null : value })} />}
|
|
146
|
-
{role === "about" && <SettingsSelect label="Written ahead per day" hint="
|
|
146
|
+
{role === "about" && <SettingsSelect label="Written ahead per day" hint="Summaries written in the background for workspaces in Needs you. Opening a workspace always writes one when needed."
|
|
147
147
|
value={String(r.dailyCap ?? 60)} options={withCurrent([0, 20, 60, 120, 200], r.dailyCap ?? 60).map(n => ({ value: String(n), label: n === 0 ? "None" : String(n) }))} disabled={busy}
|
|
148
148
|
onValueChange={value => set({ dailyCap: Number(value) })} />}
|
|
149
149
|
{role === "ranker" && <SettingsSelect label="Ranks every" value={String(r.cadenceMinutes ?? 60)} disabled={busy}
|
package/client/chat.tsx
CHANGED
|
@@ -2,7 +2,7 @@ import { useState } from "react";
|
|
|
2
2
|
import { Platform, Pressable, Text, View } from "react-native";
|
|
3
3
|
import type { PluginClientContext, PluginTimelineItemProps } from "@getpaseo/plugin/client";
|
|
4
4
|
import { Icon, ScrollView } from "@getpaseo/plugin/client/ui";
|
|
5
|
-
import { answerCardSchema, batchCardSchema,
|
|
5
|
+
import { answerCardSchema, batchCardSchema, createMomentLedger, followTimelineItem, parseBatchPrompt, toolRowSchema, type AnswerCard, type BatchCard, type ToolRow } from "../shared/chat";
|
|
6
6
|
import { parseAnswerMessage, parseAnswersMessage } from "../shared/questions";
|
|
7
7
|
import { Reveal } from "./motion";
|
|
8
8
|
import { tint, withAlpha } from "./theme";
|
|
@@ -11,9 +11,7 @@ const mono = () => (Platform.OS === "ios" ? "Menlo" : "monospace");
|
|
|
11
11
|
const TOOL_KIND = "tool-row";
|
|
12
12
|
const BATCH_KIND = "batch-card";
|
|
13
13
|
const ANSWER_KIND = "answer-card";
|
|
14
|
-
const TOOL_ICON: Partial<Record<ToolRow["tool"], string>> = { ask_question: "MessageCircleQuestion"
|
|
15
|
-
|
|
16
|
-
function record(value: unknown): value is Record<string, unknown> { return typeof value === "object" && value !== null && !Array.isArray(value); }
|
|
14
|
+
const TOOL_ICON: Partial<Record<ToolRow["tool"], string>> = { ask_question: "MessageCircleQuestion" };
|
|
17
15
|
|
|
18
16
|
/** Expandable full text below a row, scrolling on its own so long output never moves the chat. */
|
|
19
17
|
function Expanded({ text, color, border }: { text: string; color: string; border: string }) {
|
|
@@ -132,26 +130,15 @@ function AnswerCardView({ item, theme }: PluginTimelineItemProps<AnswerCard>) {
|
|
|
132
130
|
}
|
|
133
131
|
|
|
134
132
|
export function contributeChat(client: PluginClientContext) {
|
|
133
|
+
const moments = createMomentLedger();
|
|
135
134
|
const removers = [
|
|
135
|
+
// Routine bookkeeping stays Paseo's own tool call so it groups with the turn's other calls (a plugin item always
|
|
136
|
+
// seals Paseo's group); only the Done card and a question asked leave the group. See TOOL_PRESENTATION.
|
|
136
137
|
client.addTimelineTransformer({
|
|
137
138
|
id: "follow-tool-calls", query: { itemType: "tool_call" },
|
|
138
139
|
transform({ item }) {
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
let input: Record<string, unknown> = {};
|
|
142
|
-
let output: string | undefined;
|
|
143
|
-
if (tool) {
|
|
144
|
-
if (record(detail) && record(detail.input)) input = detail.input;
|
|
145
|
-
output = record(detail) && "output" in detail ? readText(detail.output) : undefined;
|
|
146
|
-
} else if (record(detail) && detail.type === "shell" && typeof detail.command === "string") {
|
|
147
|
-
const call = followShellCall(detail.command);
|
|
148
|
-
if (!call) return undefined;
|
|
149
|
-
tool = call.tool; input = call.input; output = typeof detail.output === "string" ? detail.output : undefined;
|
|
150
|
-
} else return undefined;
|
|
151
|
-
const error = item.status === "failed" ? readText(item.error) ?? "" : undefined;
|
|
152
|
-
if (item.status === "completed" && record(detail) && record(detail.output) && detail.output.isError === true)
|
|
153
|
-
return { items: [{ type: "plugin" as const, kind: TOOL_KIND, version: 1, data: toolRow(tool, "failed", input, undefined, output) }] };
|
|
154
|
-
return { items: [{ type: "plugin" as const, kind: TOOL_KIND, version: 1, data: toolRow(tool, item.status, input, output, error) }] };
|
|
140
|
+
const row = followTimelineItem(item, moments);
|
|
141
|
+
return row ? { items: [{ type: "plugin" as const, kind: TOOL_KIND, version: 1, data: row }] } : undefined;
|
|
155
142
|
},
|
|
156
143
|
}),
|
|
157
144
|
client.addTimelineTransformer({
|
package/client/header.tsx
CHANGED
|
@@ -6,6 +6,7 @@ import { Button, IconButton, Switch, text, type Theme } from "./kit";
|
|
|
6
6
|
import { IconSwap, Spinner } from "./motion";
|
|
7
7
|
import { segmentPaint, type Colors } from "./theme";
|
|
8
8
|
import { SpecChip } from "./spec";
|
|
9
|
+
import { SummaryLine } from "./about";
|
|
9
10
|
|
|
10
11
|
/** PR status older than this means the poll has stopped working; say so instead of looking current. */
|
|
11
12
|
export const STALE_MS = 10 * 60_000;
|
|
@@ -83,13 +84,13 @@ export function WorkspaceHeader({ workspace: w, theme, compact, now, onSettings,
|
|
|
83
84
|
</>;
|
|
84
85
|
if (compact && onHome) return <View style={{ paddingHorizontal: pad, paddingTop: 4, paddingBottom: 12, gap: 8, borderBottomWidth: 1, borderBottomColor: c.border }}>
|
|
85
86
|
{/* One bar: Home on the left, the Spec chip and settings on the right. The host header above names the workspace,
|
|
86
|
-
so the goal
|
|
87
|
+
so the Summary (or the goal, until there is one) is the first line under it. */}
|
|
87
88
|
<View style={{ flexDirection: "row", alignItems: "center", minHeight: 44, marginLeft: -14 }}>
|
|
88
89
|
<Button theme={theme} compact kind="ghost" icon="House" title="Home" accessibilityHint="Opens Follow-up Home with every workspace" onPress={onHome} />
|
|
89
90
|
<View style={{ flex: 1 }} />
|
|
90
91
|
<View style={{ marginVertical: 12 }}>{controls}</View>
|
|
91
92
|
</View>
|
|
92
|
-
|
|
93
|
+
<SummaryLine workspace={w} theme={theme} compact />
|
|
93
94
|
<Text accessibilityLiveRegion="polite" style={[t.ask, { color: c.foregroundMuted }]}>
|
|
94
95
|
{parts.map((part, i) => <Text key={part.text} style={toneOf(part.tone) ? { color: toneOf(part.tone) } : { color: c.foreground }}>{i ? <Text style={{ color: c.foregroundMuted, fontWeight: "400" }}>{" · "}</Text> : null}{part.text}</Text>)}
|
|
95
96
|
</Text>
|
|
@@ -99,11 +100,12 @@ export function WorkspaceHeader({ workspace: w, theme, compact, now, onSettings,
|
|
|
99
100
|
return <View style={{ paddingHorizontal: pad, paddingTop: compact ? 14 : 12, paddingBottom: 10, gap: 6, borderBottomWidth: 1, borderBottomColor: c.border }}>
|
|
100
101
|
<View style={{ flexDirection: "row", alignItems: "flex-start", gap: 8 }}>
|
|
101
102
|
{/* On phones the host header right above already shows the workspace name. */}
|
|
102
|
-
{compact || hideTitle ? <
|
|
103
|
+
{compact || hideTitle ? <View style={{ flex: 1, minWidth: 0, paddingTop: 2 }}><SummaryLine workspace={w} theme={theme} compact={compact} lead={hideTitle && !compact} /></View>
|
|
103
104
|
: <Text accessibilityRole="header" style={[t.title, { flex: 1 }]}>{w.title}</Text>}
|
|
104
105
|
{controls}
|
|
105
106
|
</View>
|
|
106
|
-
{
|
|
107
|
+
{/* The Summary takes the goal's place; the goal shows until there is one. */}
|
|
108
|
+
{!compact && !hideTitle && <SummaryLine workspace={w} theme={theme} compact={false} />}
|
|
107
109
|
<Text accessibilityLiveRegion="polite" style={[t.meta, { color: c.foregroundMuted, marginTop: 2 }]}>
|
|
108
110
|
{parts.map((part, i) => <Text key={part.text} style={toneOf(part.tone) ? { color: toneOf(part.tone), fontWeight: "600" } : { color: c.foreground }}>{i ? <Text style={{ color: c.foregroundMuted, fontWeight: "400" }}>{" · "}</Text> : null}{part.text}</Text>)}
|
|
109
111
|
</Text>
|
package/client/home.tsx
CHANGED
|
@@ -11,7 +11,7 @@ import { age, snoozeUntil, type InboxRow } from "../shared/inbox";
|
|
|
11
11
|
import { errorText } from "../shared/errors";
|
|
12
12
|
import { isLoaded, type LoadSignals } from "../shared/agent-load";
|
|
13
13
|
import { BriefCard, type BriefDeps } from "./brief";
|
|
14
|
-
import {
|
|
14
|
+
import { SummaryLine } from "./about";
|
|
15
15
|
import { bottomGap, bottomInset, Button, IconButton, space, text, type Theme } from "./kit";
|
|
16
16
|
import { NeedsYouList } from "./needs-you";
|
|
17
17
|
import { PrSheet } from "./pr-sheet";
|
|
@@ -291,6 +291,8 @@ function DetailPane({ s, model, theme, compact, deps, openFull, signOffNext, onB
|
|
|
291
291
|
// line (state, age, project, PRs as text) that ellipsizes instead of wrapping, with Open full as an icon at its end.
|
|
292
292
|
const header = compact ? <View style={{ paddingHorizontal: 16, paddingTop: 10, paddingBottom: 6, gap: 2, borderBottomWidth: 1, borderBottomColor: c.border }}>
|
|
293
293
|
<Text accessibilityRole="header" numberOfLines={3} style={t.title}>{s.title}</Text>
|
|
294
|
+
{/* The Summary: what this workspace is for, right under its name. */}
|
|
295
|
+
{s.workspaceId && w && <View style={{ marginTop: 4 }}><SummaryLine key={s.workspaceId} workspace={w} theme={theme} compact /></View>}
|
|
294
296
|
<View style={{ flexDirection: "row", alignItems: "center", gap: 6, minHeight: 44 }}>
|
|
295
297
|
<Icon name={s.icon} size={14} color={color} />
|
|
296
298
|
<Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>
|
|
@@ -307,6 +309,7 @@ function DetailPane({ s, model, theme, compact, deps, openFull, signOffNext, onB
|
|
|
307
309
|
<Text accessibilityRole="header" numberOfLines={2} style={[t.title, { flex: 1, fontSize: 16 }]}>{s.title}{s.agent ? <Text style={{ color: c.foregroundMuted, fontWeight: "400" }}>{` › ${s.agent}`}</Text> : null}</Text>
|
|
308
310
|
<Button theme={theme} compact={compact} icon="PanelRightOpen" title="Open full" accessibilityHint="Opens the agent's chat and docks this list beside it" onPress={() => openFull(s)} />
|
|
309
311
|
</View>
|
|
312
|
+
{s.workspaceId && w && <SummaryLine key={s.workspaceId} workspace={w} theme={theme} compact={false} />}
|
|
310
313
|
<View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center", gap: 6 }}>
|
|
311
314
|
{!!s.word && <Text style={{ color, fontSize: 12, fontWeight: "600" }}>{s.word}</Text>}
|
|
312
315
|
<Text style={t.meta}>{[s.at ? age(s.at, Date.now()) === "now" ? "just now" : `${age(s.at, Date.now())} ago` : "", s.project].filter(Boolean).join(" · ")}</Text>
|
|
@@ -375,8 +378,6 @@ function DetailPane({ s, model, theme, compact, deps, openFull, signOffNext, onB
|
|
|
375
378
|
return <View style={{ flex: 1, backgroundColor: c.surface0 }}>
|
|
376
379
|
{header}
|
|
377
380
|
<ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: compact ? 16 : 20, gap: 16, paddingBottom: 24 }} keyboardShouldPersistTaps="handled">
|
|
378
|
-
{/* What's this about? comes first on every size, directly under the header and above the ask. */}
|
|
379
|
-
{s.workspaceId && w && <AboutSection key={s.workspaceId} workspaceId={s.workspaceId} theme={theme} compact={compact} flush />}
|
|
380
381
|
{agent.permissions.map(p => <PermissionBlock key={p.id} p={p} theme={theme} compact={compact} busy={busy === `perm:${p.id}`} primary={plan.primary === "allow"} onRespond={r => void respond(p, r)} />)}
|
|
381
382
|
{showBrief ? <BriefCard {...({ embedded: true, item: { data: b }, theme, layout: { compact }, agentId: s.agentId, deps: deps.briefDeps } as unknown as Parameters<typeof BriefCard>[0])} />
|
|
382
383
|
: echoed || (b && compact && b.source === "none" && asks.length) ? null
|
package/client/onboarding.tsx
CHANGED
|
@@ -69,7 +69,7 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
|
|
|
69
69
|
const n = follow.data?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? 0;
|
|
70
70
|
toast.show(n ? `Set up. Following ${n} workspace${n === 1 ? "" : "s"}.` : "Set up. Follow-up starts with your next workspace.", { variant: "success" });
|
|
71
71
|
} });
|
|
72
|
-
const skip = () => move.mutate({ action: "skip" }, { onSuccess: () => toast.show("Setup skipped. Set it up any time from Follow-up settings,
|
|
72
|
+
const skip = () => move.mutate({ action: "skip" }, { onSuccess: () => toast.show("Setup skipped. Set it up any time from Follow-up settings, General.") });
|
|
73
73
|
const last = index === ONBOARDING_STEPS.length - 1;
|
|
74
74
|
const keyboard = useKeyboardUp(compact);
|
|
75
75
|
const failing = step === "checks" && checks.data ? checksSummary(checks.data.checks).state === "fail" : false;
|
|
@@ -381,7 +381,7 @@ function HelpersStep({ theme, compact, deps, checks }: { theme: Theme; compact:
|
|
|
381
381
|
<SwitchRow theme={theme} compact={compact} label="AI priority" value={values?.enable_ranker ?? null} onChange={v => save({ enable_ranker: v })}
|
|
382
382
|
hint={`Sorts Home by what matters most, from your Linear issues, Slack mentions and review requests. About once an hour on workdays.${on(role("ranker"))}`} />
|
|
383
383
|
<View style={{ flexDirection: compact ? "column" : "row", alignItems: compact ? "flex-start" : "center", gap: 8, paddingHorizontal: compact ? 14 : 16, paddingVertical: 10, borderTopWidth: 1, borderTopColor: c.border }}>
|
|
384
|
-
<Text style={[t.meta, { flex: compact ? undefined : 1 }]}>{`
|
|
384
|
+
<Text style={[t.meta, { flex: compact ? undefined : 1 }]}>{`Summaries use ${role("about") ?? "a small model"}.${claudeDown ? " Claude isn't available here; switch the helpers to Codex in Settings." : ""}`}</Text>
|
|
385
385
|
{compact
|
|
386
386
|
? <Pressable accessibilityRole="link" accessibilityLabel="Change models in Follow-up settings, Agents" onPress={() => deps.openSettings("agents")} style={{ minHeight: 44, justifyContent: "center" }}>
|
|
387
387
|
<Text style={[t.label, { textDecorationLine: "underline" }]}>Change models</Text>
|
|
@@ -395,7 +395,7 @@ function HelpersStep({ theme, compact, deps, checks }: { theme: Theme; compact:
|
|
|
395
395
|
<TourRow theme={theme} thumb={<ThumbPanel c={c} />} title="Workspace panel"
|
|
396
396
|
line={compact ? "Tap Follow-up at the top of any workspace: its PRs, tasks and what the agent is doing." : "The Follow-up button in a workspace's header docks its PRs, tasks and what the agent is doing beside the chat."} />
|
|
397
397
|
<TourRow theme={theme} thumb={<ThumbNeeds c={c} />} title="Needs you" line="The decisions only you can make, one button each. A pill above the chat shows the same." />
|
|
398
|
-
<TourRow theme={theme} thumb={<ThumbAbout c={c} />} title="
|
|
398
|
+
<TourRow theme={theme} thumb={<ThumbAbout c={c} />} title="Summary" line="One sentence under a workspace's title saying what it's for." />
|
|
399
399
|
</View>
|
|
400
400
|
</View>;
|
|
401
401
|
}
|
|
@@ -412,7 +412,8 @@ const bar = (c: Colors, w: `${number}%`, color = c.border, h = 3) => <View style
|
|
|
412
412
|
const ThumbHome = ({ c }: { c: Colors }) => <>{bar(c, "60%", c.statusWarning)}{bar(c, "90%")}{bar(c, "75%")}{bar(c, "85%")}</>;
|
|
413
413
|
const ThumbPanel = ({ c }: { c: Colors }) => <>{bar(c, "55%", c.foregroundMuted)}<View style={{ flexDirection: "row", gap: 2 }}>{bar(c, "30%", c.foregroundMuted, 4)}{bar(c, "30%", c.border, 4)}{bar(c, "30%", c.border, 4)}</View>{bar(c, "80%")}</>;
|
|
414
414
|
const ThumbNeeds = ({ c }: { c: Colors }) => <View style={{ flex: 1, borderRadius: 4, borderWidth: 1, borderColor: c.statusWarning, padding: 4, gap: 3 }}>{bar(c, "70%")}<View style={{ width: 16, height: 5, borderRadius: 2, backgroundColor: c.accent }} /></View>;
|
|
415
|
-
|
|
415
|
+
// The Summary: the title, then one quiet line under it.
|
|
416
|
+
const ThumbAbout = ({ c }: { c: Colors }) => <>{bar(c, "60%", c.foregroundMuted, 4)}{bar(c, "90%")}{bar(c, "70%")}</>;
|
|
416
417
|
|
|
417
418
|
// ---------- existing installs ----------
|
|
418
419
|
|
package/client/panel.tsx
CHANGED
|
@@ -26,7 +26,7 @@ import { PrSheet } from "./pr-sheet";
|
|
|
26
26
|
import { ActivityCard, QuestionSheet } from "./questions";
|
|
27
27
|
import { SpecRow, SpecSheet } from "./spec";
|
|
28
28
|
import { mergedColor, tint } from "./theme";
|
|
29
|
-
import {
|
|
29
|
+
import { SummaryRow } from "./about";
|
|
30
30
|
import { WhatsNewGate } from "./release-notes";
|
|
31
31
|
|
|
32
32
|
export { overviewKey, workspaceKey };
|
|
@@ -151,9 +151,8 @@ function PanelWorkspace(props: PanelProps & { workspace: Workspace; loadError?:
|
|
|
151
151
|
const { openLarge } = props;
|
|
152
152
|
const compact = props.layout.compact;
|
|
153
153
|
const top = <PanelTop theme={props.theme} compact={compact} openOverview={props.openOverview} />;
|
|
154
|
-
const about = <AboutSection key={props.workspaceId} workspaceId={props.workspaceId} theme={props.theme} compact={compact} />;
|
|
155
154
|
const ask = props.inbox && props.briefDeps ? <MainAsk w={props.workspace} theme={props.theme} compact={compact} inbox={props.inbox} briefDeps={props.briefDeps} /> : null;
|
|
156
|
-
return <WorkspaceView {...props} top={top}
|
|
155
|
+
return <WorkspaceView {...props} top={top} ask={ask} folds={{ isOpen, toggle }} resize={openLarge ? { icon: "Maximize2", label: "Open the larger view", onPress: () => openLarge(props.workspaceId) } : null} />;
|
|
157
156
|
}
|
|
158
157
|
|
|
159
158
|
|
|
@@ -219,6 +218,7 @@ function WorkspaceCard({ workspace: w, theme, compact, open, toggle, openAgent,
|
|
|
219
218
|
<View style={{ marginTop: -1 }}><FoldRow theme={theme} compact={compact} open={shown} onPress={() => toggle("workspace")} icon="SlidersHorizontal" iconColor={c.foregroundMuted} label="Spec, agent and recovery" /></View>
|
|
220
219
|
{shown && <>
|
|
221
220
|
<SpecRow workspace={w} theme={theme} compact={compact} onEdit={editSpec} />
|
|
221
|
+
<CardRow theme={theme} compact={compact}><SummaryRow workspaceId={w.id} theme={theme} compact={compact} /></CardRow>
|
|
222
222
|
<CardRow theme={theme} compact={compact}>
|
|
223
223
|
<View style={{ flexDirection: "row", alignItems: "center", gap: 10, flexWrap: "wrap" }}>
|
|
224
224
|
<View style={{ flex: 1, minWidth: 160, gap: 2 }}>
|
|
@@ -345,8 +345,8 @@ const folds = z.object({ open: z.array(z.string()) });
|
|
|
345
345
|
/** Two columns from this content width: actions on the left, the stacks on the right. */
|
|
346
346
|
export const WIDE_MIN = 820;
|
|
347
347
|
|
|
348
|
-
export function WorkspaceView({ theme, layout, workspace: w, navigation, loadError, openSettings, openOverview, folds: { isOpen, toggle }, resize, large = false, top,
|
|
349
|
-
navigation?: PluginWorkspacePanelProps["navigation"]; workspace: Workspace; loadError?: string | null; openSettings: () => void; openOverview: () => void; top?: ReactNode;
|
|
348
|
+
export function WorkspaceView({ theme, layout, workspace: w, navigation, loadError, openSettings, openOverview, folds: { isOpen, toggle }, resize, large = false, top, ask }: PluginHostProps & {
|
|
349
|
+
navigation?: PluginWorkspacePanelProps["navigation"]; workspace: Workspace; loadError?: string | null; openSettings: () => void; openOverview: () => void; top?: ReactNode; ask?: ReactNode;
|
|
350
350
|
folds: Folds; resize: { icon: "Maximize2" | "Minimize2"; label: string; onPress: () => void } | null; large?: boolean;
|
|
351
351
|
}) {
|
|
352
352
|
const control = useRpc(controlRpc); const refresh = useRpc(refreshRpc); const browserRead = useRpc(browserStatusRpc);
|
|
@@ -385,7 +385,6 @@ export function WorkspaceView({ theme, layout, workspace: w, navigation, loadErr
|
|
|
385
385
|
{!compact && top}
|
|
386
386
|
<ScrollView style={{ flex: 1 }} contentContainerStyle={{ paddingBottom: 20, ...(large ? { maxWidth: 1240, width: "100%", alignSelf: "center", paddingHorizontal: 12 } : null) }}>
|
|
387
387
|
{header}
|
|
388
|
-
{about}
|
|
389
388
|
{ask}
|
|
390
389
|
{wide ? <View style={{ flexDirection: "row", alignItems: "flex-start" }}>
|
|
391
390
|
<View style={{ flex: 5, minWidth: 0 }}>{shipped}{needs}{agent}{history}{tasks}</View>
|