paseo-follow-up 2.6.0-beta.12 → 2.6.0-beta.14
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 +206 -0
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/client/agent-card.tsx +112 -51
- package/client/brief-since.tsx +3 -2
- package/client/card-blocks.tsx +3 -3
- package/client/card-boundary.tsx +34 -0
- package/client/card-viewer.tsx +20 -15
- package/client/catch-up.tsx +3 -3
- package/client/chat.tsx +1 -1
- package/client/display.tsx +32 -2
- package/client/float-over.ts +14 -0
- package/client/full-window.tsx +24 -0
- package/client/hint.tsx +14 -9
- package/client/home-list.tsx +9 -4
- package/client/home.tsx +16 -10
- package/client/image-attach.tsx +2 -2
- package/client/image-viewer.tsx +9 -20
- package/client/linked.tsx +2 -1
- package/client/new.tsx +6 -4
- package/client/now-lines.tsx +30 -10
- package/client/open-steps.ts +14 -1
- package/client/panel-menu.tsx +4 -3
- package/client/panel.tsx +57 -22
- package/client/questions.tsx +1 -1
- package/client/release-notes.tsx +8 -7
- package/client/rich-text.tsx +111 -28
- package/client/row-menu.tsx +1 -7
- package/client/settings.tsx +4 -3
- package/client/shown-cards.tsx +29 -13
- package/client/sidebar-view.tsx +2 -2
- package/client/slash-commands.tsx +157 -32
- package/client/stacks.tsx +1 -1
- package/client/tab-showing.ts +22 -0
- package/client/text-image.tsx +1 -1
- package/client/theme.ts +7 -0
- package/client/turn-view.tsx +2 -2
- package/index.client.tsx +2 -2
- package/index.server.ts +8 -5
- package/package.json +1 -1
- package/server/agent-hook.mjs +6 -4
- package/server/daemon.ts +30 -7
- package/server/hook-source.ts +27 -11
- package/server/mcp-source.ts +78 -20
- package/server/mcp.d.mts +2 -2
- package/server/mcp.mjs +36 -18
- package/server/native-tools.ts +11 -5
- package/server/outside-runs/progress.ts +34 -16
- package/server/report-issue-adapter.ts +14 -5
- package/server/update-watchdog-source.ts +49 -2
- package/server/update-watchdog.mjs +8 -2
- package/shared/agent-commands.ts +73 -7
- package/shared/agent-text.d.mts +7 -2
- package/shared/agent-text.mjs +17 -4
- package/shared/card-md.ts +13 -12
- package/shared/card-view.ts +7 -0
- package/shared/changelog.ts +11 -10
- package/shared/daemon-url.d.mts +4 -1
- package/shared/daemon-url.mjs +27 -0
- package/shared/display.ts +14 -4
- package/shared/markdown.ts +14 -3
- package/shared/progress-run.mjs +5 -4
- package/shared/tab-showing.ts +55 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,212 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of Follow-up, newest first. Follow-up shows "What's new" after an update that brings new release notes: the curated part of each stable release since you last looked (betas install quietly; Settings → General can turn it off), and every version's notes from Home's version line.
|
|
4
4
|
|
|
5
|
+
## 2.6.0 (2026-11-30)
|
|
6
|
+
|
|
7
|
+
A new workspace view, a redesigned sidebar, agents that show you their work, and lots of fixes.
|
|
8
|
+
|
|
9
|
+
- **Clicking a workspace in the sidebar opens its new workspace view**, with all you need to run it: PRs and checks, what needs you, each agent's chat with a reply box, your questions, tasks and activity.
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
- **The sidebar got a redesign.** It looks like Paseo's own list, with your pins on top and status counts you tap to filter.
|
|
14
|
+
|
|
15
|
+

|
|
16
|
+
|
|
17
|
+
- **Agents can show you things.** Screenshots, benchmarks, tables or a report show up as cards in the workspace view, by the question they're about.
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
- **Progress runs show up here.** The agent's line shows the Progress ticket, and its questions and stuck tickets land in Needs you, answerable right there.
|
|
22
|
+
- **Ask an agent something** from the panel or Home, or with /ask in its chat; the answer stays in Your questions. Rest the pointer on an agent's line for its latest steps.
|
|
23
|
+
- **Works with any agent Paseo runs**, and repairs reach agents Paseo put to sleep.
|
|
24
|
+
|
|
25
|
+
Agent cards, questions you ask in chat and Follow-up beside the chat can each be turned off in Settings. More in the [full changelog](https://github.com/tomgrin10/paseo-follow-up/releases/tag/v2.6.0).
|
|
26
|
+
|
|
27
|
+
<details><summary>Full changelog since 2.5.1</summary>
|
|
28
|
+
|
|
29
|
+
### Home and Needs you
|
|
30
|
+
|
|
31
|
+
- What an agent shows sits in the workspace view under its own title: a question's evidence right under Needs you, the rest after your questions. Each one folds, can be opened large, kept or removed with Undo.
|
|
32
|
+
- Rest the pointer on an agent's line in the panel or on Home to see what it is doing right now: its current steps, its latest reply and any permission waiting on you. On a phone, tap the line.
|
|
33
|
+
- Double-click a workspace in Home to open its chat, including from search results.
|
|
34
|
+
- Answering is instant: send, copy or put an answer in chat and the question leaves Needs you, with every count. If the send fails, it comes back with your pick, words and images, the reason, and Retry.
|
|
35
|
+
- Progress runs show in Follow-up: the agent line reads the Progress ticket and count, and Progress questions and stuck tickets appear in Needs you, answerable from there.
|
|
36
|
+
- Progress questions answer from Home, the panel, Catch up and the phone with Progress's own reply, and Copy gives that same reply.
|
|
37
|
+
- Follow-up's pill leaves Progress questions to Progress's own pill while Progress is on, and Activity shows when a Progress run started and finished.
|
|
38
|
+
- A one-time line on Home says Progress runs now show here, and Settings → Agents says which plugin's question setting applies to which questions.
|
|
39
|
+
- Every section of the workspace panel now collapses, like Agent's tasks, Needs you included.
|
|
40
|
+
- The sidebar view and Home each remember their own sort, so the sidebar can show Recent while Home shows Priority. Your current sort stays on both until you change one.
|
|
41
|
+
- The sidebar view looks and works like Paseo's sidebar: your Paseo pins are a Pinned section on top, with the Overseer first, and each row adds Follow-up's line under the title.
|
|
42
|
+
- Home and the sidebar view share one Display menu: group by status, project or nothing, sort, show the branch name as the title, pick what each row shows, and filter by project or label.
|
|
43
|
+
- The sidebar view shows a small row of status counts under the filter bar, like "12 Needs you" and "4 Working". Tap one to show only that status, tap it again to show everything.
|
|
44
|
+
- Home's status counts now match the list when a Project or Labels filter is on.
|
|
45
|
+
- Every running workspace says what each agent is working on and what it's doing now, on Home and at the top of the panel: "Capping the retry gap 2 of 4 · working 6m".
|
|
46
|
+
- A first install opens a welcome popup with what Follow-up does and a Set up button, and setup now runs inside it. Close it any time: Home shows Finish setup, which opens it again where you left off.
|
|
47
|
+
- One workspace view in Home's pane, the right side panel and a new main-area tab, laid out from its width (one to three columns). Each agent's Chat section and the reply box sit together, read without waking the agent.
|
|
48
|
+
- Opening a workspace from Follow-up's sidebar list opens its view or its main agent's chat (Settings → Inbox & display → Opening from the sidebar and Home); Cmd/Ctrl-click opens the other.
|
|
49
|
+
- Permissions appear in Needs you with Allow and Deny; amber now marks only what needs you, and section help sits behind a ? icon.
|
|
50
|
+
- Your questions: ask an agent from the panel or Home, or type /ask in its chat, and the answer stays with Done, Reply and Make a task for 30 days.
|
|
51
|
+
- An answer you haven't read shows in Needs you and Catch up. When the agent answers in its chat instead, Follow-up keeps its reply as the answer.
|
|
52
|
+
- An agent you unarchive and talk to again shows up in Follow-up again: its workspace is followed again, a Done workspace goes back to working when you give it new work, and its questions and decisions reach Needs you.
|
|
53
|
+
- When a workspace has an open question, its row, the pill and the pill's popover lead with the question instead of a merged PR, and Sign off steps back below it.
|
|
54
|
+
- Home rows say it once: no chip repeats the row's word ("Asks you" beside Question, "Approved" beside Merged), and in a narrow Home the line keeps its words while a failing check's chip stays whole.
|
|
55
|
+
- On a phone, Home's status counts wrap onto a second line when they don't fit, so the last one is never cut off at the edge. The Later choices in the pill wrap the same way.
|
|
56
|
+
- Agent text shows its formatting everywhere: questions and their titles, agent replies in Needs you, Activity notes, card and PR titles read code and bold instead of raw backticks and asterisks.
|
|
57
|
+
- Menus and popovers stay visible above the sidebar footer and other app chrome, flip at window edges, and scroll when space is tight.
|
|
58
|
+
- The Overseer on Home shows its recent conversation even while it's resting, read from its saved transcript, the same way an agent's chat shows in the workspace view. It is never woken just to show it.
|
|
59
|
+
- The agent peek on Home and in the panel now closes once your pointer is off the line and the peek. Before, it could stay open until you pressed Esc or clicked somewhere else.
|
|
60
|
+
- Later is named in Home's item pane at every width, and Catch up's key hint is one quiet "S keys".
|
|
61
|
+
- "Needs you" stays on one line in the messages strip, and Merge's blockers read as a plain list ("A missing approval, failed required checks").
|
|
62
|
+
- The reply box under Chat keeps your draft per agent through folds, leaving and reloads. On Paseo 0.16 and later its words are the agent's own composer draft, so the chat tab shows the same text; pasted images stay in the box.
|
|
63
|
+
- Opening Follow-up asks the server for less: settings, usage and your Linear queue are each read once when Home opens, not two or three times.
|
|
64
|
+
- Opening Home, Catch up, Settings or a chat is faster: Follow-up works out what needs you once per change instead of once for every place that shows it.
|
|
65
|
+
- Long lists open in pages now. Show all on Activity, tasks, pull requests and the long lists in Home, Settings and What's new shows 25 at a time with Previous and Next, instead of drawing every row and stretching the sidebar.
|
|
66
|
+
- Searching a list still finds matches on every page.
|
|
67
|
+
- Typing in Home's search keeps up with you: each key shows at once, and only the results whose highlight changed are drawn again.
|
|
68
|
+
- A workspace's Follow-up view opens at once, even in a big workspace: it shows what Follow-up already knows right away and fills in the rest, like task notes, in place a moment later.
|
|
69
|
+
- Open chat from the workspace view's More menu (Home's pane and the side panel) and the tab's Open chat now dock Follow-up in the side panel beside the chat, like Home's Enter. Before, they opened the chat alone.
|
|
70
|
+
|
|
71
|
+
### Questions and answers
|
|
72
|
+
|
|
73
|
+
- Agents show you what they want you to see right in the workspace view: before and after renders, options side by side, benchmarks, a test matrix, migration steps or a report. It reads on phones too and stays current.
|
|
74
|
+
- A question can point at what it is about, so the evidence sits right under it.
|
|
75
|
+
- A question you ask an agent in its chat now lands in Your questions by itself: the agent puts it there before it starts answering, and its answer is kept with it.
|
|
76
|
+
- The chat shows one quiet line, "Added to Your questions". An answer that arrives while you're looking at that chat counts as read; otherwise it counts once you write in that chat again.
|
|
77
|
+
- On the card, a chat answer shows its first 3 lines, with Read all for the rest.
|
|
78
|
+
- Brief cards wait until their agent is loaded again, and outdated cards are dropped while waiting.
|
|
79
|
+
- Agent status keeps recent history visible in busy workspaces with many withdrawn or removed questions and cancelled or superseded messages. Closed PRs are included in paged history too.
|
|
80
|
+
- With a Codex agent, an answer Follow-up keeps from its chat is the whole final reply, without a stray line at the top.
|
|
81
|
+
- A question you ask in an agent's chat shows on Your questions without a leading "Also," or similar.
|
|
82
|
+
- Recent workspace history stays visible even when current tasks and questions carry long notes. Complete evidence stays available a page at a time.
|
|
83
|
+
- Activity shows an answer still on its way as "Sending · <answer>", without a "took" time.
|
|
84
|
+
- Question titles start with a capital letter, and a question shows one age everywhere: its row, Catch up and its card agree. On a phone or a narrow panel the age moves under the title so the title keeps its width.
|
|
85
|
+
- Enter in Follow-up's reply and answer boxes now works like Paseo's message box: on desktop it sends and Shift+Enter adds a line, or, if Paseo is set to send with ⌘↵, only ⌘↵ (Ctrl+Enter elsewhere) sends.
|
|
86
|
+
- The brief card drops lines that only say where it came from, such as "Stated by the agent". A line that says where to act stays, and on phones it shows under the header with no ⓘ to tap.
|
|
87
|
+
- Your questions is more compact: Add image and Send are small icons inside the ask field, and the note about where answers land sits behind a ? beside the title.
|
|
88
|
+
- More context matches: Add image is an icon inside its field, and its note about what happens while the agent answers sits behind a ? beside its title.
|
|
89
|
+
- The agent card in the workspace view has one header line: the agent and its state on the left, the chat's help, fold and open buttons on the right.
|
|
90
|
+
- An image you open from an agent's card now covers the whole window, above the other cards, with Previous and Next at the bottom. Before, in the two-column view it opened under the next column's cards, shifted and cropped.
|
|
91
|
+
|
|
92
|
+
### Repairs and PRs
|
|
93
|
+
|
|
94
|
+
- Repairs now go out on their own to any agent you messaged in the last 3 days, even one Paseo has put to sleep. Before, most repairs waited because the agent had been idle for an hour.
|
|
95
|
+
- At most 2 repairs run at once across your workspaces, so waking agents never overloads Paseo. The rest go out as those finish. Change both in Settings → Following → Advanced.
|
|
96
|
+
- A closed pull request now counts as done everywhere: it sits with finished work, fills the progress bar in a muted tone, and the counts say how many merged and how many closed.
|
|
97
|
+
- Codex agents get Follow-up's end-of-turn reminders before you approve its hooks in Codex's /hooks: they come as a message after the turn. Setup's checks say how to approve the hooks.
|
|
98
|
+
- In a short window, such as a phone turned sideways, a dialog's buttons stay on screen. Open on GitHub, Turn on, Rename and Send to agent sit under the content, which scrolls.
|
|
99
|
+
- Dispatch sends a GitHub issue or PR to the project that has its repository, and asks when none does, instead of guessing the last project you used.
|
|
100
|
+
- Dispatch shows the workspace already working on a GitHub issue or link you paste.
|
|
101
|
+
- The Auto-send switch has one name everywhere, and Settings says the default is for new workspaces.
|
|
102
|
+
- A PR whose required checks never started says "Checks not started" instead of "Waiting on CI".
|
|
103
|
+
- Scheduled check-backs and requested checks results now arrive after an hour idle, even when Paseo has unloaded the agent. Archived workspaces and agents still cancel delivery.
|
|
104
|
+
- A workspace waiting on a person says what part waits, such as part of the conflicts on a pull request, instead of repeating "waits on a person".
|
|
105
|
+
- The pull request chip counts every PR with failing checks, including one whose latest GitHub read was incomplete.
|
|
106
|
+
- Agent lines and pull request rows share the same status words and name the repository for PRs outside the workspace’s own repository.
|
|
107
|
+
- Internal: CI's scale check is steadier.
|
|
108
|
+
|
|
109
|
+
### The Overseer and AI priority
|
|
110
|
+
|
|
111
|
+
- Every helper and agent feature now works with any agent provider Paseo runs, not only Claude Code and Codex. With only Pi or OpenCode you get AI priority, Compass, Summaries' linked items, turn-end reminders and waiting for long commands.
|
|
112
|
+
|
|
113
|
+
### Providers and helper agents
|
|
114
|
+
|
|
115
|
+
- Setup lists only the providers you have or use, never Claude and Codex as missing.
|
|
116
|
+
- Settings → Agents → Show Progress runs turns it off.
|
|
117
|
+
|
|
118
|
+
### Agents and tools
|
|
119
|
+
|
|
120
|
+
- When a workspace is still archived, an agent's tools tell it so and what to do instead of quietly doing nothing.
|
|
121
|
+
- An agent that calls a Follow-up action from the command line where it can't run is now told why and where to run it, instead of "Unknown tool".
|
|
122
|
+
- Agents load far fewer of Follow-up's tools: each gets what its role uses and looks up the rest, so a main agent's tool list is about a quarter of its old size.
|
|
123
|
+
- Background jobs reliably report their result after the agent’s shell closes, including on Codex and the desktop app.
|
|
124
|
+
|
|
125
|
+
### Setup, Settings and updates
|
|
126
|
+
|
|
127
|
+
- The plugin listing keeps requirements and setup guidance without repeating installation instructions.
|
|
128
|
+
- The workspace view has one settings gear; Follow-up settings is also in its More menu.
|
|
129
|
+
- On a phone, Settings scrolls the tab you're on into view instead of leaving it cut off at the edge.
|
|
130
|
+
- Settings reads more plainly: the Compass warning says why in everyday words, and a few labels and notes were tidied.
|
|
131
|
+
- Agents can update a task by the short start of its id, and a wrong id now lists the open tasks to pick from instead of a dead end.
|
|
132
|
+
- What's new is wider on desktop, so screenshots in the notes are easier to read. It still fits small windows, and phones keep the full-width sheet.
|
|
133
|
+
- Progress 1.19 runs show correctly: when Progress rewrites its run file to keep only a job's latest report, Follow-up reads the new file again instead of losing the update.
|
|
134
|
+
- A release candidate now opens What's new with its version's notes, as a stable release does. Betas stay quiet.
|
|
135
|
+
|
|
136
|
+
### Performance
|
|
137
|
+
|
|
138
|
+
- Agents spend less of their context on Follow-up: its instructions are given once per session, not again after every compaction, every resume or, on Codex, every turn.
|
|
139
|
+
- Opening a workspace's Follow-up panel downloads its details once instead of two or three times, so a phone does much less work in the seconds after it opens.
|
|
140
|
+
|
|
141
|
+
### Phone
|
|
142
|
+
|
|
143
|
+
- Before and after images compare at a glance on a phone: one switch flips them in place, or press and hold the image.
|
|
144
|
+
- Dispatch on a phone asks for the project above the actions.
|
|
145
|
+
- On a phone, tapping an agent line in the side panel opens what the agent is doing, as it does elsewhere, instead of only selecting it.
|
|
146
|
+
- Catch up's button says what it counts ("Catch up · 6 asks"), and on a phone its bottom bar names each move.
|
|
147
|
+
- On a phone, Report an issue keeps Cancel and Send pinned at the bottom instead of below the fold.
|
|
148
|
+
- Rotating a phone or tablet, or resizing a window past the phone width, keeps open sheets and typed drafts instead of closing and clearing them.
|
|
149
|
+
|
|
150
|
+
### More
|
|
151
|
+
|
|
152
|
+
- You can see at a glance whether it is still current: a live dot while the agent works, an amber note when it stopped, and a thin edge on rows that just changed.
|
|
153
|
+
- Typing `/` in an agent's reply box lists that agent's commands and skills, like Paseo's own composer. Use the arrow keys and Enter or Tab to pick one, or Esc to close the list.
|
|
154
|
+
- Agents on Copilot, Cursor, Kimi, Kiro and other ACP agents now get Follow-up's instructions too.
|
|
155
|
+
- In Paseo's desktop app, a localhost link (such as http://localhost:8787) opens in Paseo's own browser, in its workspace, so it reaches pages served on the machine your agents run on. Other links still open in your browser.
|
|
156
|
+
- A collapsed section still shows its count and a short line, and stays as you left it on this device.
|
|
157
|
+
- Report a bug about a workspace from its ⋯ menu. The agent that files it looks at that workspace to diagnose, and the public issue gets only counts and states, never names or text.
|
|
158
|
+
- Pin to top and Unpin are in each row's menu, and the Running group is now called Working.
|
|
159
|
+
- Agents can name what they're working on, with the steps before and after it, when they sync. Nothing is shown when they haven't, and the line costs no AI.
|
|
160
|
+
- Internal test cleanup waits for Compass reads to finish.
|
|
161
|
+
- Disabled actions look disabled; "which project?" is muted.
|
|
162
|
+
- A project that isn't a Git repo starts in its folder.
|
|
163
|
+
- Bold around inline code at the start of a bullet now reads bold, not wrapped in asterisks.
|
|
164
|
+
- Codex agents are now reminded to say what they need from you when a turn ends, the same as Claude Code agents.
|
|
165
|
+
- A button you can't press yet is grey instead of a faded green, and drops its keyboard hint.
|
|
166
|
+
- Report a bug and Report an issue are one name: Report an issue.
|
|
167
|
+
- Recent steps shows agent replies and your messages as formatted text: inline code, bold and italics, links, lists, quotes and code blocks, instead of raw Markdown marks.
|
|
168
|
+
- Chat has a steady height and scrolls inside: it stays on the newest step (Latest takes you back if you scrolled up), Show earlier messages reads further back without waking the agent, and Show more opens a long message in place.
|
|
169
|
+
- Chat's header has a button that opens the agent's own chat tab. Beside that agent's chat, the side panel leaves Chat out, since the chat is already on screen.
|
|
170
|
+
- The reply box grows with what you write, then scrolls; on desktop you can also drag it taller.
|
|
171
|
+
- Reporting a bug about a busy workspace works again: the agent gets a short view of that workspace (open work in full, finished work as the newest few and a count) instead of a reply too big to read.
|
|
172
|
+
- While a workspace's Follow-up tab is showing, the side panel shows one line (its title and "Showing in the tab") instead of a second copy of the view. Behind another tab, the panel shows the full view.
|
|
173
|
+
- Typing `/` in a reply box no longer stretches the chat card: the command list now floats over the chat just above the box (or below it when there's no room above), and the box keeps its place and its keys.
|
|
174
|
+
- `/` now works mid-message too, after a space or a new line, as in Paseo's own composer: it lists the agent's skills, and picking one replaces just that word and keeps the rest of your message.
|
|
175
|
+
- Code in agent text draws in a monospace font on Linux, where it could fall back to a proportional one.
|
|
176
|
+
- What an agent shows you in the workspace view has a small ? beside its ⋯ menu. Hover or tap it to see which agent made it and that Remove in the ⋯ menu takes it away.
|
|
177
|
+
- Images you attach to a reply and New's dialog open the same way, at the top of the page.
|
|
178
|
+
|
|
179
|
+
### Fixes
|
|
180
|
+
|
|
181
|
+
- An agent that asked through Progress, or only updated its Progress run, no longer gets the turn-end reminder.
|
|
182
|
+
- The larger view no longer fails when Spec, agent and recovery is open.
|
|
183
|
+
- A row that waits on someone else now says who: Reviewer or Person, instead of Blocked.
|
|
184
|
+
- An image attached to a message now shows as a small thumbnail in Chat, Recent steps, Your questions and every other place Follow-up shows an agent's or your words, instead of a raw image link. Click it to see it larger.
|
|
185
|
+
- When the image is no longer on the host, or comes from the web, it shows as a quiet "Image" chip; a web image opens in your browser instead of loading by itself.
|
|
186
|
+
- Waiting for checks no longer reports a result right after a push from the previous commit, or before the new commit's checks start. When a repository runs no checks, it says so.
|
|
187
|
+
- Done no longer waits for the agent to explain why a pull request was closed.
|
|
188
|
+
- When an agent compacts its conversation, Follow-up no longer marks it finished or replaces its last ask. The ask stays open as it was.
|
|
189
|
+
- A suggested project no longer flips after Paseo starts.
|
|
190
|
+
- The amber mark on blocking rows is one per row, so two asks side by side no longer read as one bracket; the sidebar view's group heads match Home's, and the Overseer row has one subtitle everywhere.
|
|
191
|
+
- On a phone, the keyboard no longer covers what you're typing: the Overseer's reply box, Home, the workspace panel and Settings move up above it, like Paseo's own message box.
|
|
192
|
+
- With another plugin that asks you questions, an agent no longer asks the same decision again as a Follow-up card at the end of its turn.
|
|
193
|
+
- A waiting task's line no longer repeats what it waits for when its title already says it.
|
|
194
|
+
- A question in the chat now shows its note, links and task, the same as in the panel.
|
|
195
|
+
- Recent steps is now called Chat, and it no longer collapses and loads again: folding, unfolding and the card moving column keep the messages on screen and refresh them quietly.
|
|
196
|
+
- Reporting an issue through an agent no longer files the same report twice. A repeat points at the issue already filed, and a lost answer from GitHub is checked before anyone is told nothing was filed.
|
|
197
|
+
- Answering, dismissing or scheduling through an agent no longer returns the whole workspace's history.
|
|
198
|
+
- On a phone with a large font size, Home's search hint no longer breaks onto a cut-off second line. A field too narrow for its hint shows a shorter one, like "Search or ask".
|
|
199
|
+
- Opening a workspace on its agent's chat now docks Follow-up in the side panel beside it, from the sidebar list and from Home. Home no longer opens a second Follow-up tab next to the chat.
|
|
200
|
+
- Filtering the sidebar now shows the same results as Home's search: one list, closest match first, archived workspaces included.
|
|
201
|
+
- A repair the agent is already working on now says "Sent", and the line above the repairs names the agent once instead of repeating its name on every row.
|
|
202
|
+
- An agent that asks you something through another plugin's question tool is no longer told to sync Follow-up for that turn on providers without Follow-up's hook.
|
|
203
|
+
- Waiting for checks no longer reports on a commit you already replaced. A result that waited for the agent's turn to end is dropped if a newer commit was pushed meanwhile, and the wait carries on to the new one.
|
|
204
|
+
- Follow-up stays quieter while you read: it no longer resends whole workspaces every time it checks your pull requests, so taps and scrolling no longer stutter when a check lands, most of all on phones and in big workspaces.
|
|
205
|
+
- Busy workspaces load faster: the app no longer downloads a workspace's whole question and message history to draw it.
|
|
206
|
+
- Picking or closing a question in Needs you no longer redraws the whole workspace view on the desktop: only the card you touched changes.
|
|
207
|
+
- A card in the workspace view that can't be drawn now shows "This card couldn't be shown" with the reason, and the rest of the view keeps working, instead of the whole Follow-up tab failing on a phone.
|
|
208
|
+
|
|
209
|
+
</details>
|
|
210
|
+
|
|
5
211
|
## 2.5.1 (2026-11-28)
|
|
6
212
|
|
|
7
213
|
One fix for 2.5.0.
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -8,7 +8,7 @@ options, a recommendation and Copy) and the activity log are adapted from
|
|
|
8
8
|
[Progress](https://github.com/stevecastaneda/paseo-plugins/tree/main/progress) (`@stevecastaneda/paseo-progress`
|
|
9
9
|
1.14.0) by Steve Castaneda.
|
|
10
10
|
|
|
11
|
-
Follow-up's reader of a Progress run (`shared/progress-run.mjs`, docs/outside-runs.md) ports parts of Progress 1.17.1
|
|
11
|
+
Follow-up's reader of a Progress run (`shared/progress-run.mjs`, docs/outside-runs.md) ports parts of Progress 1.17.1 (checked against 1.19.2)
|
|
12
12
|
under the same license: the run file's line format and event checks, the latest-run and per-workspace rules
|
|
13
13
|
(`latestRun`, `workspaceView`, `folderRunLeftBehind`), the stuck rule and the answer message (`answerMessage`).
|
|
14
14
|
|
package/client/agent-card.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from "react";
|
|
1
|
+
import { useContext, useEffect, useRef, useState, type ReactNode } from "react";
|
|
2
2
|
import { View, type NativeScrollEvent, type NativeSyntheticEvent, type ScrollView as NativeScrollView } from "react-native";
|
|
3
3
|
import { Icon, ScrollView } from "@getpaseo/plugin/client/ui";
|
|
4
4
|
import { usePaseo } from "@getpaseo/plugin/client";
|
|
@@ -9,6 +9,7 @@ import { AgentLines } from "./now-lines";
|
|
|
9
9
|
import { FoldButton, PANEL_FOLDS, useFold } from "./fold";
|
|
10
10
|
import { HintBubble, HintIcon, useHint } from "./hint";
|
|
11
11
|
import { ReplyBox } from "./home";
|
|
12
|
+
import { LetListOut, RaiseSlot } from "./float-over";
|
|
12
13
|
import { TurnView, useTurn } from "./turn-view";
|
|
13
14
|
import { useMarkTimelineOnScreen } from "./on-screen";
|
|
14
15
|
import { Spinner } from "./motion";
|
|
@@ -32,15 +33,18 @@ export const STEPS_HINT = "The agent's chat: live while it's awake, or its saved
|
|
|
32
33
|
const HOME_REPLY_HINT = " Sending clears Needs you; Sign off & next moves on without a reply.";
|
|
33
34
|
|
|
34
35
|
/**
|
|
35
|
-
* The agent card (docs/client.md#the-workspace-view): one row per agent (client/now-lines.tsx), then the Chat section
|
|
36
|
-
* peek's rows, client/turn-view.tsx: the developer's messages, the agent's replies, steps grouped) and the reply box
|
|
37
|
-
* right under
|
|
38
|
-
*
|
|
39
|
-
*
|
|
36
|
+
* The agent card (docs/client.md#the-workspace-view): one row per agent (client/now-lines.tsx), then the Chat section's body
|
|
37
|
+
* (the peek's rows, client/turn-view.tsx: the developer's messages, the agent's replies, steps grouped) and the reply box
|
|
38
|
+
* right under it, so reading and replying are one place. The card has one header line: the selected agent's row carries
|
|
39
|
+
* the Chat controls at its right end (the ? hint, the caption, the fold and Open chat), so who and their state lead and
|
|
40
|
+
* what to do with their chat follows on the same line. With several agents every agent keeps its row (each one's state
|
|
41
|
+
* at a glance) and a row switches the body and the box to its agent, its controls moving with the selection; Cmd/Ctrl
|
|
42
|
+
* opens its chat. The body reads live while shown and an unloaded agent's saved transcript otherwise, never waking it
|
|
43
|
+
* (invariant 1). The fold folds the body and the box; the rows stay.
|
|
40
44
|
*
|
|
41
|
-
* The side panel (`place` "panel") sits beside the workspace's chat, so it never draws the reply box and its
|
|
42
|
-
*
|
|
43
|
-
* the selected agent's timeline as on screen while its
|
|
45
|
+
* The side panel (`place` "panel") sits beside the workspace's chat, so it never draws the reply box and its Chat
|
|
46
|
+
* starts folded; the developer's own fold choice wins everywhere (invariant 132). Home's pane and the main tab mark
|
|
47
|
+
* the selected agent's timeline as on screen while its body shows, so its status-line peek stays shut.
|
|
44
48
|
*/
|
|
45
49
|
export function AgentCard({ workspace: w, inbox, theme, compact, steps, now, place, openAgent, onSent, reply }: {
|
|
46
50
|
workspace: Workspace; inbox?: InboxStore; theme: Theme; compact: boolean;
|
|
@@ -59,71 +63,128 @@ export function AgentCard({ workspace: w, inbox, theme, compact, steps, now, pla
|
|
|
59
63
|
useEffect(() => { setSelected(w.mainAgentId); }, [w.mainAgentId]);
|
|
60
64
|
const name = selected === w.mainAgentId ? "the main agent" : rows.find(r => r.agentId === selected)?.title?.trim() || w.taskAgents?.[selected]?.title?.trim() || "the agent";
|
|
61
65
|
const pick = (agentId: string, chat: boolean) => { if (chat && openAgent) openAgent(agentId); else setSelected(agentId); };
|
|
62
|
-
const [hintOpen, setHintOpen] = useState(false);
|
|
63
66
|
// Beside that same agent's chat (the side panel next to Paseo's agent view), Chat would repeat what's on screen, so
|
|
64
67
|
// the card keeps its agent rows and leaves Chat out (a-chat-beside-isn-t-repeated). Another agent's Chat still shows.
|
|
65
68
|
const beside = useChatBeside(place === "panel" ? selected : null);
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
const chat = useChat(selected, place, !beside);
|
|
70
|
+
// The reply box's `/` list open below the box draws past the card's edge, like the hint (client/float-over.ts).
|
|
71
|
+
const [listOut, setListOut] = useState(false);
|
|
72
|
+
const out = chat.hintOpen || listOut;
|
|
73
|
+
// In columns the card sits in its own slot: the slot rises with it, over the cards after it.
|
|
74
|
+
const raise = useContext(RaiseSlot);
|
|
75
|
+
useEffect(() => { raise?.(out); }, [raise, out]);
|
|
76
|
+
const controls = beside ? undefined : (offset: number) => <ChatControls chat={chat} agentId={selected} name={name} theme={theme} compact={compact} openAgent={openAgent} reply={reply} offset={offset} />;
|
|
77
|
+
// No agent has a row (nothing known about it yet): the plain Chat header keeps the controls.
|
|
78
|
+
const plain = beside ? null : <ChatHeader chat={chat} theme={theme} compact={compact}><ChatControls chat={chat} agentId={selected} name={name} theme={theme} compact={compact} openAgent={openAgent} reply={reply} named={false} /></ChatHeader>;
|
|
79
|
+
return <View {...({ dataSet: { followAgentCard: "" } } as object)} style={[{ marginHorizontal: compact ? 16 : 12, marginTop: 12, borderRadius: 8, overflow: out ? "visible" : "hidden", zIndex: out ? 30 : undefined, backgroundColor: c.surface0 }, raised(c)]}>
|
|
80
|
+
<LetListOut.Provider value={setListOut}>
|
|
81
|
+
<View style={{ zIndex: chat.hintOpen ? 30 : undefined }}>
|
|
82
|
+
<AgentLines workspace={w} inbox={inbox} theme={theme} compact={compact} now={now} openAgent={openAgent} peek={place === "panel"} bare selected={selected} onSelect={pick}
|
|
83
|
+
controls={controls} raised={chat.hintOpen} fallback={plain} />
|
|
84
|
+
</View>
|
|
85
|
+
{!beside && chat.open && <View style={{ borderTopWidth: 1, borderTopColor: c.border, paddingTop: 4 }}>
|
|
86
|
+
<ChatBody chat={chat} agentId={selected} name={name} theme={theme} compact={compact} steps={steps} reply={reply} prs={w.prs} onSent={onSent} />
|
|
70
87
|
</View>}
|
|
88
|
+
</LetListOut.Provider>
|
|
71
89
|
</View>;
|
|
72
90
|
}
|
|
73
91
|
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
* lower half, and on its own in Home's pane for a row with no workspace and for the Overseer. Never wakes the agent.
|
|
77
|
-
*/
|
|
78
|
-
export function RecentSteps({ agentId, name, theme, compact, steps, place, reply, prs = [], onSent, onHint, empty, openAgent }: {
|
|
79
|
-
agentId: string | null; name: string; theme: Theme; compact: boolean; steps: number; place: ViewPlace; reply: boolean;
|
|
80
|
-
prs?: Workspace["prs"]; onSent?: () => void;
|
|
81
|
-
/** The ? hint opened or closed (the card lets it draw past its edge). */
|
|
82
|
-
onHint?: (open: boolean) => void;
|
|
83
|
-
/** What an empty turn says; the default points at the reply box or the chat. */
|
|
84
|
-
empty?: string;
|
|
85
|
-
/** Opens the agent's own chat tab (the header's button); the one way the surface already navigates. */
|
|
86
|
-
openAgent?: (agentId: string) => void;
|
|
87
|
-
}) {
|
|
88
|
-
const c = theme.colors;
|
|
92
|
+
/** One agent's Chat state: its fold, its read (never waking it), how far back it reads, and its ? hint. */
|
|
93
|
+
function useChat(agentId: string | null, place: ViewPlace, shown = true, onHint?: (open: boolean) => void) {
|
|
89
94
|
const fold = useFold(PANEL_FOLDS.steps, place !== "panel");
|
|
90
95
|
const open = fold.open;
|
|
91
96
|
useMarkTimelineOnScreen(place !== "panel" && open ? agentId : null);
|
|
92
97
|
// How many turns back it reads (Show earlier messages), per agent for the app session, so a remount keeps it.
|
|
93
98
|
const [turns, setTurns] = useState(() => readBack(agentId));
|
|
94
99
|
useEffect(() => { setTurns(readBack(agentId)); }, [agentId]);
|
|
95
|
-
const turn = useTurn(agentId, open, turns);
|
|
100
|
+
const turn = useTurn(agentId, open && shown, turns);
|
|
96
101
|
const earlier = () => { if (!agentId) return; const next = Math.min(MAX_TURNS, turns + 1); turnsBack.set(agentId, next); setTurns(next); };
|
|
97
|
-
const paseo = usePaseo();
|
|
98
102
|
const [hintOpen, setHintOpen] = useState(false);
|
|
99
103
|
const help = useHint(next => { setHintOpen(next); onHint?.(next); });
|
|
100
104
|
// A failed refresh keeps the rows it has and says so in the caption; with nothing read yet, the error takes their place.
|
|
101
105
|
const stale = !!turn.error && !!turn.turn;
|
|
102
106
|
const caption = stale ? "couldn't refresh" : turn.running ? "live" : turnSource(turn);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
return { fold, open, turn, turns, earlier, help, hintOpen, stale, caption, place };
|
|
108
|
+
}
|
|
109
|
+
type ChatState = ReturnType<typeof useChat>;
|
|
110
|
+
|
|
111
|
+
const chatHint = (chat: ChatState, reply: boolean) => STEPS_HINT + (chat.place === "home" && reply ? HOME_REPLY_HINT : "");
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Chat's controls, at the right end of a header line (the agent card's selected row, or the plain Chat header): the
|
|
115
|
+
* ? hint, the fold (the caption "live", "saved chat" or "couldn't refresh" with its chevron; its name stays "Chat,
|
|
116
|
+
* <caption>") and Open chat. The hint bubble opens under the line they sit on.
|
|
117
|
+
*/
|
|
118
|
+
function ChatControls({ chat, agentId, name, theme, compact, openAgent, reply = false, offset = 0, named = true }: {
|
|
119
|
+
chat: ChatState; agentId: string | null; name: string; theme: Theme; compact: boolean; openAgent?: (agentId: string) => void; reply?: boolean;
|
|
120
|
+
/** Drawn this far down (the agent row's first line). */
|
|
121
|
+
offset?: number;
|
|
122
|
+
/** The fold names its section ("Chat · live"): on an agent's row, where nothing else says what it folds. */
|
|
123
|
+
named?: boolean;
|
|
124
|
+
}) {
|
|
125
|
+
const c = theme.colors;
|
|
126
|
+
const hint = chatHint(chat, reply);
|
|
127
|
+
return <>
|
|
128
|
+
<View style={{ flexShrink: 1, minWidth: 0, flexDirection: "row", alignItems: "center", gap: compact ? 0 : 2, paddingLeft: 8, paddingRight: compact ? 4 : 6, marginTop: offset }}>
|
|
129
|
+
<HintIcon hint={chat.help} text={hint} theme={theme} compact={compact} label="About Chat" />
|
|
130
|
+
<FoldButton open={chat.open} onToggle={chat.fold.toggle} label={chat.caption ? `Chat, ${chat.caption}` : "Chat"} theme={theme} chevron="end"
|
|
131
|
+
style={(hovered, pressed) => ({ flexShrink: 1, minWidth: compact ? 44 : 28, flexDirection: "row", alignItems: "center", justifyContent: "flex-end", gap: 5, paddingHorizontal: compact ? 10 : 6, minHeight: compact ? 44 : 28, borderRadius: 6, backgroundColor: pressed ? c.surface2 : hovered ? c.surface1 : "transparent" })}>
|
|
132
|
+
{named && <Text numberOfLines={1} style={{ flexShrink: 0, color: c.foregroundMuted, fontSize: 12, fontWeight: "500" }}>Chat</Text>}
|
|
133
|
+
{named && !!chat.caption && <Text style={{ flexShrink: 0, color: c.foregroundMuted, fontSize: 12 }}>·</Text>}
|
|
134
|
+
{chat.turn.running && !chat.stale && <View style={{ width: 6, height: 6, borderRadius: 3, backgroundColor: runningColor(c) }} />}
|
|
135
|
+
{!!chat.caption && <Text numberOfLines={1} style={{ flexShrink: 1, color: c.foregroundMuted, fontSize: 12 }}>{chat.caption}</Text>}
|
|
114
136
|
</FoldButton>
|
|
115
|
-
{openAgent && agentId && <
|
|
116
|
-
<IconButton icon="Maximize2" label={`Open ${name}'s chat`} theme={theme} compact={compact} tooltip onPress={() => openAgent(agentId)} />
|
|
117
|
-
</View>}
|
|
118
|
-
<HintBubble hint={help} text={hint} theme={theme} />
|
|
137
|
+
{openAgent && agentId && <IconButton icon="Maximize2" label={`Open ${name}'s chat`} theme={theme} compact={compact} tooltip onPress={() => openAgent(agentId)} />}
|
|
119
138
|
</View>
|
|
120
|
-
|
|
121
|
-
|
|
139
|
+
<HintBubble hint={chat.help} text={hint} theme={theme} align="end" />
|
|
140
|
+
</>;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/** A header line titled "Chat", for where no agent row carries the controls (Home's pane without a workspace, the Overseer). */
|
|
144
|
+
function ChatHeader({ chat, theme, compact, children }: { chat: ChatState; theme: Theme; compact: boolean; children: ReactNode }) {
|
|
145
|
+
const c = theme.colors;
|
|
146
|
+
return <View style={{ zIndex: chat.hintOpen ? 30 : undefined, flexDirection: "row", alignItems: "center", minHeight: compact ? 56 : 40 }}>
|
|
147
|
+
<Text numberOfLines={1} style={{ flex: 1, minWidth: 0, paddingLeft: compact ? 14 : 12, color: c.foreground, fontSize: compact ? 13 : 12, fontWeight: "600" }}>Chat</Text>
|
|
148
|
+
{children}
|
|
149
|
+
</View>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/** Chat's body and (when `reply`) the reply box under it. */
|
|
153
|
+
function ChatBody({ chat, agentId, name, theme, compact, steps, reply, prs = [], onSent, empty }: {
|
|
154
|
+
chat: ChatState; agentId: string | null; name: string; theme: Theme; compact: boolean; steps: number; reply: boolean; prs?: Workspace["prs"]; onSent?: () => void; empty?: string;
|
|
155
|
+
}) {
|
|
156
|
+
const paseo = usePaseo();
|
|
157
|
+
return <>
|
|
158
|
+
<View style={{ paddingHorizontal: compact ? 14 : 12, paddingBottom: reply ? 0 : 12 }}>
|
|
159
|
+
<StepsBody key={agentId ?? ""} height={stepsHeight(steps, compact)} theme={theme} compact={compact} turn={chat.turn.turn} error={chat.turn.turn ? null : chat.turn.error} waiting={!!agentId && !chat.turn.turn && !chat.turn.error}
|
|
122
160
|
empty={empty ?? (reply ? "No messages yet. Write to the agent below, or open its chat." : "No messages yet. Open its chat to write to it.")}
|
|
123
|
-
prs={prs} turns={turns} onEarlier={earlier} />
|
|
124
|
-
</View>
|
|
125
|
-
{
|
|
161
|
+
prs={prs} turns={chat.turns} onEarlier={chat.earlier} />
|
|
162
|
+
</View>
|
|
163
|
+
{reply && agentId && <ReplyBox theme={theme} compact={compact} agentName={name} hint={null} placeholder={`Reply to ${name}`} target={{ kind: "agent", agentId }} draft={agentId}
|
|
126
164
|
onSend={async (text, images) => { await paseo.agents.ref(agentId).send(text, images?.length ? { images } : undefined); onSent?.(); }} />}
|
|
165
|
+
</>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* The Chat section on its own, for one agent, under a plain "Chat" header with the same controls: Home's pane for a
|
|
170
|
+
* row with no workspace and the Overseer. Never wakes the agent.
|
|
171
|
+
*/
|
|
172
|
+
export function RecentSteps({ agentId, name, theme, compact, steps, place, reply, prs = [], onSent, onHint, empty, openAgent }: {
|
|
173
|
+
agentId: string | null; name: string; theme: Theme; compact: boolean; steps: number; place: ViewPlace; reply: boolean;
|
|
174
|
+
prs?: Workspace["prs"]; onSent?: () => void;
|
|
175
|
+
/** The ? hint opened or closed (the owner lets it draw past its edge). */
|
|
176
|
+
onHint?: (open: boolean) => void;
|
|
177
|
+
/** What an empty turn says; the default points at the reply box or the chat. */
|
|
178
|
+
empty?: string;
|
|
179
|
+
/** Opens the agent's own chat tab (the header's button); the one way the surface already navigates. */
|
|
180
|
+
openAgent?: (agentId: string) => void;
|
|
181
|
+
}) {
|
|
182
|
+
const chat = useChat(agentId, place, true, onHint);
|
|
183
|
+
return <View style={{ zIndex: chat.hintOpen ? 30 : undefined }}>
|
|
184
|
+
<ChatHeader chat={chat} theme={theme} compact={compact}>
|
|
185
|
+
<ChatControls chat={chat} agentId={agentId} name={name} theme={theme} compact={compact} openAgent={openAgent} reply={reply} named={false} />
|
|
186
|
+
</ChatHeader>
|
|
187
|
+
{chat.open && <ChatBody chat={chat} agentId={agentId} name={name} theme={theme} compact={compact} steps={steps} reply={reply} prs={prs} onSent={onSent} empty={empty} />}
|
|
127
188
|
</View>;
|
|
128
189
|
}
|
|
129
190
|
|
package/client/brief-since.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { queueMoved } from "../shared/linear-queue";
|
|
2
|
+
import { RichText } from "./rich-text";
|
|
2
3
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
3
4
|
import { PagedRows } from "./paged-list";
|
|
4
5
|
import { Platform, View } from "react-native";
|
|
@@ -186,7 +187,7 @@ function QueueRow({ i, change, c, compact, timeZone, navigation }: { i: QueueIss
|
|
|
186
187
|
<Text style={[t.meta, { color: chip.warn ? c.statusWarning : c.foreground }]}>{chip.text}</Text>
|
|
187
188
|
</View>}
|
|
188
189
|
{/* Phones: the workspace is a word on the meta line; the row itself opens it. */}
|
|
189
|
-
{compact && ws && <View style={{ flexDirection: "row", alignItems: "center", gap: 4 }}><Icon name="Folder" size={12} color={c.foregroundMuted} /><
|
|
190
|
+
{compact && ws && <View style={{ flexDirection: "row", alignItems: "center", gap: 4 }}><Icon name="Folder" size={12} color={c.foregroundMuted} /><RichText plain numberOfLines={1} style={[t.meta, { color: c.foreground }]}>{ws.title}</RichText></View>}
|
|
190
191
|
</View>
|
|
191
192
|
</View>
|
|
192
193
|
</View>;
|
|
@@ -202,7 +203,7 @@ function QueueRow({ i, change, c, compact, timeZone, navigation }: { i: QueueIss
|
|
|
202
203
|
? <Pressable accessibilityRole="button" accessibilityLabel={`Open ${ws.title}`} disabled={!navigation} onPress={open}
|
|
203
204
|
style={(s: Hover) => ({ flexDirection: "row", alignItems: "center", gap: 6, minHeight: 32, paddingHorizontal: 10, borderRadius: 8, borderWidth: 1, borderColor: c.border, backgroundColor: s.pressed ? c.surface2 : s.hovered ? c.surface1 : "transparent", maxWidth: 240, ...focusRing(c, s.focused) })}>
|
|
204
205
|
<Icon name="Folder" size={14} color={c.foregroundMuted} />
|
|
205
|
-
<
|
|
206
|
+
<RichText plain numberOfLines={1} style={[t.small, { fontSize: 12, color: c.foreground, flexShrink: 1 }]}>{ws.title}</RichText>
|
|
206
207
|
<Icon name="ChevronRight" size={14} color={c.foregroundMuted} />
|
|
207
208
|
</Pressable>
|
|
208
209
|
: <Pressable accessibilityRole="button" accessibilityLabel={`Start ${i.key} in ${NEW_NAME}`} onPress={open}
|
package/client/card-blocks.tsx
CHANGED
|
@@ -175,7 +175,7 @@ export function MediaBlock({ block, ctx }: { block: Extract<Block, { type: "medi
|
|
|
175
175
|
? singles.map((it, i) => <SingleImage key={i} item={it} ctx={ctx} onOpen={() => setViewing({ items: singles, index: i })} />)
|
|
176
176
|
: <Grid items={singles} ctx={ctx} onOpen={i => setViewing({ items: singles, index: i })} />)}
|
|
177
177
|
{videos.map((v, i) => <VideoView key={i} item={v} ctx={ctx} />)}
|
|
178
|
-
{viewing && <MediaViewer viewed={viewing} workspaceId={ctx.workspaceId} theme={ctx.theme}
|
|
178
|
+
{viewing && <MediaViewer viewed={viewing} workspaceId={ctx.workspaceId} theme={ctx.theme} onClose={() => setViewing(null)} />}
|
|
179
179
|
</View>;
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -549,7 +549,7 @@ function FilesBlock({ block, ctx }: { block: Extract<Block, { type: "files" }>;
|
|
|
549
549
|
const right = f.gone ? "moved or deleted" : f.url ? (cardMode(ctx.width, ctx.compact).freshInSubtitle ? null : "opens in your browser") : bytesLabel(f.bytes);
|
|
550
550
|
const note = f.gone ? `Not found: ${f.path}. Ask the agent to show it again.` : f.url ? [f.note, shownAddress(f.url)].filter(Boolean).join(" · ") : f.note ?? f.path;
|
|
551
551
|
const act = f.gone ? null : f.url ? () => open(f.url!, ctx)
|
|
552
|
-
: f.media && kind === "image" ? () => setViewing({ items: [{ src: f.media
|
|
552
|
+
: f.media && kind === "image" ? () => setViewing({ items: [{ src: f.media!, label: name, caption: f.note }], index: 0 })
|
|
553
553
|
: f.media && kind === "video" ? () => setPlaying(playing === f ? null : f)
|
|
554
554
|
: () => { void copyText(f.path!).then(() => notice(`Copied ${f.path}`), () => undefined); };
|
|
555
555
|
const hint = f.url ? `Opens ${shownAddress(f.url)} in your browser` : f.media ? "Opens it here" : "Copies its path, to open in your editor";
|
|
@@ -568,7 +568,7 @@ function FilesBlock({ block, ctx }: { block: Extract<Block, { type: "files" }>;
|
|
|
568
568
|
{playing === f && f.media && <View style={{ paddingBottom: 8 }}><VideoView item={{ src: f.media as Extract<MediaSource, { hash: string }>, label: name }} ctx={ctx} /></View>}
|
|
569
569
|
</View>;
|
|
570
570
|
})}
|
|
571
|
-
{viewing && <MediaViewer viewed={viewing} workspaceId={ctx.workspaceId} theme={ctx.theme}
|
|
571
|
+
{viewing && <MediaViewer viewed={viewing} workspaceId={ctx.workspaceId} theme={ctx.theme} onClose={() => setViewing(null)} />}
|
|
572
572
|
</View>;
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Component, type ReactNode } from "react";
|
|
2
|
+
import { View } from "react-native";
|
|
3
|
+
import { Icon } from "@getpaseo/plugin/client/ui";
|
|
4
|
+
import { Text } from "./text";
|
|
5
|
+
import { errorText } from "../shared/errors";
|
|
6
|
+
import type { Theme } from "./kit";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* One card of the workspace view that fails to draw stays one card (`one-card-never-takes-the-view-down`, invariant
|
|
10
|
+
* 189). A JS error thrown while a card or sheet renders is caught here and the card becomes one line, "This card
|
|
11
|
+
* couldn't be shown", with the error, so every other card still works. Paseo's own boundary sits around the whole
|
|
12
|
+
* plugin surface, so without this one throw blanked the tab ("Plugin failed: …"). `resetKey` (the workspace's
|
|
13
|
+
* `updatedAt`) clears it, so new data tries again. Invariant 51's native crashes (an Android role parsed on the UI
|
|
14
|
+
* thread) happen outside JS and no boundary catches them.
|
|
15
|
+
*/
|
|
16
|
+
export class CardBoundary extends Component<{ theme: Theme; compact: boolean; name: string; resetKey?: string | number | null; children?: ReactNode }, { error: unknown; key: string | number | null | undefined }> {
|
|
17
|
+
state: { error: unknown; key: string | number | null | undefined } = { error: null, key: this.props.resetKey };
|
|
18
|
+
static getDerivedStateFromError(error: unknown) { return { error: error ?? new Error("Unknown error") }; }
|
|
19
|
+
static getDerivedStateFromProps(props: { resetKey?: string | number | null }, state: { error: unknown; key: string | number | null | undefined }) {
|
|
20
|
+
return props.resetKey !== state.key ? { error: null, key: props.resetKey } : null;
|
|
21
|
+
}
|
|
22
|
+
componentDidCatch(error: unknown) { console.warn(`[follow-up] the ${this.props.name} card couldn't be drawn: ${errorText(error)}`); }
|
|
23
|
+
render() {
|
|
24
|
+
if (!this.state.error) return this.props.children ?? null;
|
|
25
|
+
const { theme, compact, name } = this.props; const c = theme.colors;
|
|
26
|
+
return <View accessible accessibilityLabel={`This card couldn't be shown: ${errorText(this.state.error)}`} testID={`card-failed-${name}`}
|
|
27
|
+
style={{ flexDirection: "row", alignItems: "center", gap: 8, marginHorizontal: compact ? 16 : 12, marginTop: 12, paddingHorizontal: 12, paddingVertical: 10, minHeight: compact ? 44 : undefined, borderRadius: 8, borderWidth: 1, borderColor: c.border }}>
|
|
28
|
+
<Icon name="CircleAlert" size={14} color={c.foregroundMuted} />
|
|
29
|
+
<Text numberOfLines={2} style={{ flex: 1, color: c.foregroundMuted, fontSize: compact ? 14 : 13, lineHeight: compact ? 20 : 18 }}>
|
|
30
|
+
<Text style={{ color: c.foreground, fontWeight: "600" }}>This card couldn't be shown</Text>{` · ${errorText(this.state.error)}`}
|
|
31
|
+
</Text>
|
|
32
|
+
</View>;
|
|
33
|
+
}
|
|
34
|
+
}
|