paseo-follow-up 2.6.0-beta.11 → 2.6.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/client/action-row.tsx +16 -9
  2. package/client/agents.tsx +31 -8
  3. package/client/brief.tsx +10 -7
  4. package/client/card-blocks.tsx +622 -0
  5. package/client/card-data.ts +118 -0
  6. package/client/card-viewer.tsx +106 -0
  7. package/client/catch-up.tsx +36 -14
  8. package/client/dialog-frame.tsx +41 -0
  9. package/client/dismiss.tsx +2 -1
  10. package/client/header.tsx +7 -9
  11. package/client/hint.tsx +10 -5
  12. package/client/home-chrome.tsx +86 -21
  13. package/client/home-list.tsx +59 -26
  14. package/client/home.tsx +71 -101
  15. package/client/kept.ts +47 -0
  16. package/client/kit.tsx +30 -14
  17. package/client/linked.tsx +5 -2
  18. package/client/messages.tsx +5 -1
  19. package/client/more-context.tsx +18 -9
  20. package/client/morning-brief-settings.tsx +3 -1
  21. package/client/motion.tsx +12 -0
  22. package/client/needs-you.tsx +28 -13
  23. package/client/new.tsx +74 -28
  24. package/client/now-lines.tsx +7 -5
  25. package/client/onboarding.tsx +1 -1
  26. package/client/open-steps.ts +9 -0
  27. package/client/panel-menu.tsx +6 -3
  28. package/client/panel.tsx +57 -31
  29. package/client/pill.tsx +40 -27
  30. package/client/pr-sheet.tsx +11 -8
  31. package/client/pr-stats-settings.tsx +9 -8
  32. package/client/pr-stats.tsx +2 -1
  33. package/client/question-context.tsx +9 -3
  34. package/client/questions.tsx +15 -11
  35. package/client/rename.tsx +20 -17
  36. package/client/report-issue.tsx +31 -20
  37. package/client/reviewers.tsx +2 -2
  38. package/client/rich-text.tsx +188 -7
  39. package/client/row-actions.ts +31 -3
  40. package/client/settings-screens.ts +28 -2
  41. package/client/settings.tsx +8 -7
  42. package/client/shown-cards.tsx +254 -0
  43. package/client/sidebar-view.tsx +41 -21
  44. package/client/slash-commands.tsx +194 -0
  45. package/client/spec.tsx +7 -4
  46. package/client/stacks.tsx +6 -5
  47. package/client/tasks.tsx +14 -3
  48. package/client/text-image.tsx +146 -0
  49. package/client/theme.ts +11 -0
  50. package/client/turn-view.tsx +8 -6
  51. package/client/updates.tsx +56 -3
  52. package/client/workspace-data.ts +22 -5
  53. package/client/your-questions.tsx +35 -17
  54. package/index.client.tsx +16 -4
  55. package/index.server.ts +134 -27
  56. package/package.json +1 -1
  57. package/server/agent-actions.ts +4 -2
  58. package/server/agent-commands.ts +96 -0
  59. package/server/agent-hooks.ts +11 -0
  60. package/server/agent-parity.ts +13 -1
  61. package/server/cards.ts +287 -0
  62. package/server/check-watches.ts +20 -1
  63. package/server/codex-hooks.ts +142 -0
  64. package/server/daemon.ts +3 -0
  65. package/server/discovery.ts +2 -2
  66. package/server/dismiss.ts +5 -2
  67. package/server/dispatch.ts +7 -4
  68. package/server/hook-source.ts +5 -5
  69. package/server/image-store.ts +35 -2
  70. package/server/mcp-source.ts +23 -21
  71. package/server/mcp.mjs +18 -16
  72. package/server/outside-answers.ts +0 -5
  73. package/server/outside-runs/index.ts +34 -4
  74. package/server/pr-owner.ts +4 -3
  75. package/server/questions.ts +5 -5
  76. package/server/session-prompt.ts +28 -4
  77. package/server/spec.ts +0 -10
  78. package/server/turn-end.ts +33 -6
  79. package/shared/activity.ts +8 -2
  80. package/shared/agent-commands.ts +99 -0
  81. package/shared/agent-settings.ts +1 -1
  82. package/shared/agent-text.mjs +5 -5
  83. package/shared/attention.ts +44 -10
  84. package/shared/card-md.ts +46 -0
  85. package/shared/card-view.ts +273 -0
  86. package/shared/cards.ts +228 -0
  87. package/shared/catch-up.ts +10 -3
  88. package/shared/chat.ts +9 -3
  89. package/shared/compass.ts +2 -2
  90. package/shared/contracts.ts +30 -6
  91. package/shared/dialog-fit.ts +18 -0
  92. package/shared/dispatch.ts +28 -0
  93. package/shared/display.ts +24 -0
  94. package/shared/finished.ts +2 -1
  95. package/shared/headline.ts +40 -9
  96. package/shared/home-arrange.ts +14 -2
  97. package/shared/home.ts +79 -19
  98. package/shared/images.ts +25 -0
  99. package/shared/list-entries.ts +14 -6
  100. package/shared/list.ts +27 -0
  101. package/shared/markdown.ts +230 -0
  102. package/shared/model.ts +16 -6
  103. package/shared/new-view.ts +12 -6
  104. package/shared/now.ts +10 -5
  105. package/shared/onboarding.ts +14 -4
  106. package/shared/outside-run.ts +86 -2
  107. package/shared/overseer.ts +7 -2
  108. package/shared/peek.ts +10 -0
  109. package/shared/pr-actions.ts +10 -6
  110. package/shared/presentation.ts +3 -2
  111. package/shared/provider-support.ts +7 -3
  112. package/shared/questions.ts +11 -3
  113. package/shared/report-send.ts +1 -1
  114. package/shared/reviewers.ts +3 -1
  115. package/shared/row-menu.ts +15 -3
  116. package/shared/search.ts +25 -12
  117. package/shared/send-shortcut.ts +35 -0
  118. package/shared/settings-nav.ts +7 -2
  119. package/shared/status-invariants.ts +29 -1
  120. package/shared/task-rows.ts +5 -2
  121. package/shared/turn-clamp.ts +3 -1
  122. package/shared/turn.ts +9 -0
  123. package/skills/follow-up/SKILL.md +1 -1
@@ -4,7 +4,7 @@ import { Pressable, Text } from "./text";
4
4
  import { Icon } from "@getpaseo/plugin/client/ui";
5
5
  import { isMac } from "../shared/search-key";
6
6
  import type { Bar, BarButton } from "../shared/new-view";
7
- import { withAlpha, type Colors } from "./theme";
7
+ import { disabledPrimary, withAlpha, type Colors } from "./theme";
8
8
 
9
9
  /**
10
10
  * New's action row, on its own so any surface can mount it (New's dialog, the Morning brief's queue): the bar from
@@ -33,29 +33,36 @@ export function Choices<T extends string>({ items, onPick, c, compact }: { items
33
33
  export const focusRing = (c: Colors, focused: boolean | undefined) => focused && Platform.OS === "web" ? { outlineWidth: 2, outlineStyle: "solid", outlineColor: c.accent, outlineOffset: 2 } as object : {};
34
34
 
35
35
  /**
36
- * One bar button. Filled when primary; a disabled primary drops its fill (neutral surface, muted text) so it never
37
- * reads as live. `trailing` draws its icon after the label (More ▾).
36
+ * One bar button. Filled when primary. Disabled (D-P2-2), nothing about it reads as live: a primary takes the one
37
+ * disabled-primary token (`disabledPrimary`, theme.ts: a faint accent tint and a muted label) inside the same light
38
+ * hairline the outlined ones get, so a dark theme's tint never reads as a live green button; an outlined one goes flat
39
+ * (no fill, the light hairline); every disabled label drops to regular weight, and neither shows its key hint, since the key
40
+ * does nothing then. `trailing` draws its icon after the label (More ▾).
38
41
  */
39
42
  /** `small`: a desktop row's own action (32px, DESIGN's desktop control), not a dialog's bar. Phones stay 44. */
40
43
  export function BarBtn({ b, primary, c, compact, disabled, onPress, grow, trailing, small }: { b: BarButton | { name: string; icon: string; key: string | null }; primary: boolean; c: Colors; compact: boolean; disabled: boolean; onPress: () => void; grow?: boolean; trailing?: boolean; small?: boolean }) {
41
44
  const filled = primary && !disabled;
42
- const fg = filled ? c.accentForeground : disabled ? c.foregroundMuted : c.foreground;
45
+ const off = primary && disabled ? disabledPrimary(c) : null;
46
+ const fg = filled ? c.accentForeground : off ? off.text : disabled ? c.foregroundMuted : c.foreground;
43
47
  const icon = <Icon name={b.icon} size={small && !compact ? 14 : 15} color={fg} />;
44
48
  return <Pressable accessibilityRole="button" accessibilityLabel={b.key && Platform.OS === "web" ? `${b.name} (${b.key})` : b.name} accessibilityState={{ disabled }} disabled={disabled} onPress={onPress}
45
49
  style={(s: Hover & { focused?: boolean }) => ({ flexDirection: "row", alignItems: "center", justifyContent: "center", gap: small && !compact ? 6 : 8, minHeight: compact ? (primary ? 48 : 44) : small ? 32 : 36, paddingHorizontal: small && !compact ? 10 : 14, borderRadius: 8,
46
50
  // A grown button takes the free width but never less than its name: the row wraps instead (an action's name is never cut).
47
51
  ...(grow ? { flexGrow: 1 } : {}),
48
52
  ...(filled ? { backgroundColor: s.pressed ? withAlpha(c.accent, 0.85) : s.hovered ? withAlpha(c.accent, 0.92) : c.accent }
49
- : { borderWidth: 1, borderColor: c.border, backgroundColor: disabled ? c.surface1 : s.pressed ? c.surface2 : s.hovered ? c.surface1 : c.surface0 }),
53
+ : off ? { backgroundColor: off.fill, borderWidth: 1, borderColor: withAlpha(c.border, 0.6) }
54
+ : disabled ? { borderWidth: 1, borderColor: withAlpha(c.border, 0.6), backgroundColor: "transparent" }
55
+ : { borderWidth: 1, borderColor: c.border, backgroundColor: s.pressed ? c.surface2 : s.hovered ? c.surface1 : c.surface0 }),
50
56
  ...focusRing(c, s.focused) })}>
51
57
  {!trailing && icon}
52
- <Text numberOfLines={1} style={{ color: fg, fontSize: compact ? 15 : small ? 12 : 13, fontWeight: "600", flexShrink: 0 }}>{b.name}</Text>
58
+ <Text numberOfLines={1} style={{ color: fg, fontSize: compact ? 15 : small ? 12 : 13, fontWeight: disabled ? "500" : "600", flexShrink: 0 }}>{b.name}</Text>
53
59
  {trailing && icon}
54
- {b.key && !compact && Platform.OS === "web" && <Text style={{ color: fg, opacity: 0.75, fontSize: 12 }}>{b.key === "⌥↵" && !isMac() ? "Alt ↵" : b.key}</Text>}
60
+ {b.key && !disabled && !compact && Platform.OS === "web" && <Text style={{ color: fg, opacity: 0.75, fontSize: 12 }}>{b.key === "⌥↵" && !isMac() ? "Alt ↵" : b.key}</Text>}
55
61
  </Pressable>;
56
62
  }
57
63
 
58
- export function ActionRow({ bar, c, compact, onAction, onOpen, more: moreProp, setMore: setMoreProp }: { bar: Bar; c: Colors; compact: boolean; onAction: (id: string) => void; onOpen: (workspaceId: string) => void; more?: boolean; setMore?: (v: boolean) => void }) {
64
+ /** `reason: false` drops the "why disabled" line when the caller already asks the question above the row (New's phone dock). */
65
+ export function ActionRow({ bar, c, compact, onAction, onOpen, more: moreProp, setMore: setMoreProp, reason = true }: { bar: Bar; c: Colors; compact: boolean; onAction: (id: string) => void; onOpen: (workspaceId: string) => void; more?: boolean; setMore?: (v: boolean) => void; reason?: boolean }) {
59
66
  const [ownMore, setOwnMore] = useState(false);
60
67
  const more = moreProp ?? ownMore; const setMore = setMoreProp ?? setOwnMore;
61
68
  if (bar.kind === "existing") {
@@ -80,7 +87,7 @@ export function ActionRow({ bar, c, compact, onAction, onOpen, more: moreProp, s
80
87
  const moreBtn = bar.more.length > 0 && <BarBtn c={c} compact={compact} primary={false} disabled={disabled} trailing b={{ name: "More", icon: more ? "ChevronUp" : "ChevronDown", key: null }} onPress={() => setMore(!more)} />;
81
88
  return <View style={{ gap: 8 }}>
82
89
  {more && !disabled && <Choices c={c} compact={compact} items={bar.more.map(b => ({ id: b.id, label: b.name }))} onPick={id => { setMore(false); onAction(id); }} />}
83
- {bar.disabled && <Text style={{ color: c.foregroundMuted, fontSize: 12 }}>{bar.disabled}</Text>}
90
+ {bar.disabled && reason && <Text style={{ color: c.foregroundMuted, fontSize: 12 }}>{bar.disabled}</Text>}
84
91
  {compact ? <>
85
92
  {bar.primary && <BarBtn c={c} compact primary disabled={disabled} b={bar.primary} onPress={() => onAction(bar.primary!.id)} />}
86
93
  <View style={{ flexDirection: "row", flexWrap: "wrap", gap: 8 }}>
package/client/agents.tsx CHANGED
@@ -1,7 +1,10 @@
1
1
  import { ActivityIndicator, View } from "react-native";
2
- import { Text } from "./text";
2
+ import { Pressable, Text } from "./text";
3
+ import { OUTSIDE_RUNS_GUIDE, runsSettingsCopy } from "../shared/outside-run";
4
+ import { outsideRunsKey, useOutsideRuns } from "./updates";
3
5
  import type { PluginSurfaceProps } from "@getpaseo/plugin/client";
4
6
  import { useRpc } from "@getpaseo/plugin/client";
7
+ import { openLink } from "./open-link";
5
8
  import { SettingsAction, SettingsCard, SettingsSection, SettingsSelect, SettingsSwitch, useToast } from "@getpaseo/plugin/client/ui";
6
9
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
10
  import { agentSettingsRpc, setAgentSettingRpc, setOutsideRunsRpc, setWaitRpc } from "../shared/contracts";
@@ -71,7 +74,8 @@ export function WaitSettings({ theme }: Pick<PluginSurfaceProps, "theme">) {
71
74
  {wait && <SettingsCard>
72
75
  {/* Paseo 0.16 (reason "host"): what the host does comes first and stays whether the switch is on or off; it's
73
76
  information, not a problem, so no alert. */}
74
- {wait.host && <Text style={[t.body, { color: c.foreground, paddingHorizontal: 16, paddingVertical: 14 }]}>{WAIT_HOST_NOTE}</Text>}
77
+ {/* A note, not a setting (P3-21): muted meta text, the card's switch below is the setting. */}
78
+ {wait.host && <Text style={[t.meta, { paddingHorizontal: 16, paddingTop: 12, paddingBottom: 4 }]}>{WAIT_HOST_NOTE}</Text>}
75
79
  <SettingsSwitch label={copy.title} hint={copy.hint} value={wait.enable_wait} disabled={change.isPending} onValueChange={value => change.mutate(value)} />
76
80
  {note && wait.enable_wait && wait.reason !== "host" && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusWarning, paddingHorizontal: 16, paddingBottom: 12 }]}>{`${WAIT_NOT_ATTACHED} ${note}`}</Text>}
77
81
  </SettingsCard>}
@@ -79,25 +83,44 @@ export function WaitSettings({ theme }: Pick<PluginSurfaceProps, "theme">) {
79
83
  }
80
84
 
81
85
  /**
82
- * Settings → Agents → Show Progress runs (docs/outside-runs.md): one switch, on by default, shown only once a Progress
83
- * file was seen on this host. Shares the Agents screen's query. An unknown format says Follow-up stopped reading it.
86
+ * Settings → Agents → "Show <plugin> runs" (docs/outside-runs.md, docs/progress.md): one switch, on by default, shown only
87
+ * once a run file was seen on this host. Off: Follow-up stops reading it and drops every item and agent line from it; the
88
+ * owner is untouched either way. An unknown format turns the switch off and disabled, and its hint says why. The hint's
89
+ * link opens the guide page. Every word comes from the owner's name (runsSettingsCopy).
84
90
  */
85
- export function OutsideRunsSettings() {
91
+ export function OutsideRunsSettings({ theme }: Pick<PluginSurfaceProps, "theme">) {
92
+ const c = theme.colors; const t = text(c);
86
93
  const read = useRpc(agentSettingsRpc); const write = useRpc(setOutsideRunsRpc); const cache = useQueryClient(); const toast = useToast();
87
94
  const query = useQuery({ queryKey: key, queryFn: () => read({ catalog: true }), staleTime: 5 * 60_000 });
88
95
  const change = useMutation({
89
96
  mutationFn: (progress: boolean) => write({ progress }),
90
- onSuccess: value => { cache.setQueryData(key, value); toast.show(`Show Progress runs: ${value.outsideRuns?.enabled ? "on" : "off"}`, { variant: "success" }); },
97
+ onSuccess: value => { cache.setQueryData(key, value); cache.setQueryData(outsideRunsKey, value.outsideRuns ?? null);
98
+ if (value.outsideRuns) toast.show(`${runsSettingsCopy(value.outsideRuns).label}: ${value.outsideRuns.enabled ? "on" : "off"}`, { variant: "success" }); },
91
99
  onError: error => toast.error(errorText(error)),
92
100
  });
93
101
  const status = query.data?.outsideRuns;
94
102
  if (!status?.seen) return null;
95
- const hint = status.unknownFormat ? "Progress's file format changed, so Follow-up stopped reading it." : "Progress's tickets, questions and stuck items on the agent line and in Needs you. Progress itself is never changed.";
103
+ const copy = runsSettingsCopy(status);
96
104
  return <SettingsSection title="Other plugins">
97
- <SettingsCard><SettingsSwitch label="Show Progress runs" hint={hint} value={status.enabled} disabled={change.isPending} onValueChange={value => change.mutate(value)} /></SettingsCard>
105
+ <SettingsCard>
106
+ <SettingsSwitch label={copy.label} hint={copy.hint} value={status.enabled && !status.unknownFormat} disabled={change.isPending || !!status.unknownFormat} onValueChange={value => change.mutate(value)} />
107
+ <Pressable accessibilityRole="link" accessibilityLabel={`${copy.guide} (opens the guide)`} hitSlop={6} onPress={() => void openLink(OUTSIDE_RUNS_GUIDE).catch(() => toast.error("Couldn't open the link here"))}
108
+ style={{ alignSelf: "flex-start", minHeight: 44, justifyContent: "center", paddingHorizontal: 16, paddingBottom: 4 }}>
109
+ <Text style={[t.small, { color: c.accent }]}>{copy.guide}</Text>
110
+ </Pressable>
111
+ </SettingsCard>
98
112
  </SettingsSection>;
99
113
  }
100
114
 
115
+ /** Under Questions while another plugin's runs show: each plugin's mode governs its own questions, and this says whose. */
116
+ export function OwnerQuestionLine({ theme }: Pick<PluginSurfaceProps, "theme">) {
117
+ const t = text(theme.colors);
118
+ const line = useOutsideRuns().data;
119
+ const said = line ? runsSettingsCopy(line).questionLine : null;
120
+ if (!said) return null;
121
+ return <Text style={[t.meta, { paddingHorizontal: 16, paddingTop: 10, paddingBottom: 12 }]}>{said}</Text>;
122
+ }
123
+
101
124
  /** A row's More in Settings: permissions (Paseo agents), limits and schedule (jobs), and Reset to defaults. */
102
125
  function RoleMore({ r, save, busy, theme, compact, invalid }: { r: Role; save: (entry: SavedRole | null) => void; busy: boolean; theme: Theme; compact: boolean; invalid: boolean }) {
103
126
  const c = theme.colors; const t = text(c);
package/client/brief.tsx CHANGED
@@ -1,4 +1,5 @@
1
1
  import { useMemo, useState, useSyncExternalStore, type ReactNode } from "react";
2
+ import { useKept } from "./kept";
2
3
  import { LinkWorkspaceProvider, openLinkQuietly } from "./open-link";
3
4
  import { browserKey, liveBriefKey, LIVE_BRIEF_POLL_MS, workspaceKey } from "./keys";
4
5
  import { Platform, View, useWindowDimensions } from "react-native";
@@ -29,7 +30,7 @@ import { useReviewerButtons } from "./reviewers-button";
29
30
  import { prLinksByNumber } from "../shared/presentation";
30
31
  import { cardStore } from "./card-store";
31
32
  import { PrSheet } from "./pr-sheet";
32
- import { isLight, withAlpha, type Colors } from "./theme";
33
+ import { disabledPrimary, isLight, withAlpha, type Colors } from "./theme";
33
34
  import { dismissToast, notice, runAction, runUndoable } from "./toasts";
34
35
  import { DismissX, RevealScope, useDismiss } from "./dismiss";
35
36
  import { clearPendingAnswer, confirmPendingAnswer, failPendingAnswer, markSentHere, setPendingAnswer } from "./pending-answers";
@@ -69,14 +70,16 @@ const ring = (focused: boolean | undefined, c: Colors) => focusRing(focused, c);
69
70
  const letters = (d: BriefDecision) => { const l = d.options.map(o => o.letter); return l.length > 1 ? `${l.slice(0, -1).join(", ")} or ${l.at(-1)}` : l[0] ?? ""; };
70
71
 
71
72
  function Btn({ label, icon, primary, onPress, c, compact, disabled, shortcut = false, hint }: { label: string; icon?: string; primary?: boolean; onPress: () => void; c: Colors; compact: boolean; disabled?: boolean; shortcut?: boolean; hint?: string }) {
72
- const fg = primary ? c.accentForeground : c.foreground;
73
+ // A disabled primary is neutral (disabledPrimary), the same as kit's Button: no faded accent, no key hint.
74
+ const off = primary && disabled ? disabledPrimary(c) : null;
75
+ const fg = off ? off.text : primary ? c.accentForeground : c.foreground;
73
76
  return <Pressable accessibilityRole="button" accessibilityLabel={label} accessibilityHint={hint} accessibilityState={{ disabled }} disabled={disabled} onPress={onPress}
74
- style={({ hovered, pressed, focused }: { hovered?: boolean; pressed: boolean; focused?: boolean }) => ({ ...ring(focused, c), minHeight: compact ? 44 : 32, paddingHorizontal: compact ? 14 : 12, borderRadius: 6, flexDirection: "row", alignItems: "center", gap: 6, justifyContent: "center", opacity: disabled ? 0.5 : 1,
75
- backgroundColor: primary ? (pressed ? withAlpha(c.accent, 0.85) : hovered ? withAlpha(c.accent, 0.92) : c.accent) : pressed || hovered ? c.surface2 : "transparent",
77
+ style={({ hovered, pressed, focused }: { hovered?: boolean; pressed: boolean; focused?: boolean }) => ({ ...ring(focused, c), minHeight: compact ? 44 : 32, paddingHorizontal: compact ? 14 : 12, borderRadius: 6, flexDirection: "row", alignItems: "center", gap: 6, justifyContent: "center", opacity: disabled && !off ? 0.5 : 1,
78
+ backgroundColor: off ? off.fill : primary ? (pressed ? withAlpha(c.accent, 0.85) : hovered ? withAlpha(c.accent, 0.92) : c.accent) : pressed || hovered ? c.surface2 : "transparent",
76
79
  borderWidth: primary ? 0 : 1, borderColor: c.border, flexGrow: compact ? 1 : 0 })}>
77
80
  {icon ? <Icon name={icon} size={compact ? 16 : 14} color={fg} /> : null}
78
81
  <Text numberOfLines={1} style={{ color: fg, fontSize: compact ? 14 : 13, lineHeight: compact ? 19 : 17, fontWeight: "600" }}>{label}</Text>
79
- {shortcut && !compact && Platform.OS === "web" && <Text accessibilityElementsHidden importantForAccessibility="no" style={{ color: fg, opacity: 0.6, fontSize: 11, lineHeight: 16, fontWeight: "500" }}>{submitHint()}</Text>}
82
+ {shortcut && !disabled && !compact && Platform.OS === "web" && <Text accessibilityElementsHidden importantForAccessibility="no" style={{ color: fg, opacity: 0.6, fontSize: 11, lineHeight: 16, fontWeight: "500" }}>{submitHint()}</Text>}
80
83
  </Pressable>;
81
84
  }
82
85
 
@@ -444,7 +447,7 @@ function BriefCardBody({ item, theme, layout, agentId, deps, embedded = false, s
444
447
  const words = useWords(b.id);
445
448
  const notes = useNotes(b.id);
446
449
  const notesOpen = useNotesOpen(b.id);
447
- const [sheet, setSheet] = useState<{ key: string; intent: "merge" | "reviewers" } | null>(null);
450
+ const [sheet, setSheet] = useKept<{ key: string; intent: "merge" | "reviewers" } | null>(`brief:${b.id}:sheet`, null);
448
451
  // The PR sheet draws review and deploy detail the list form leaves out: one read of the full workspace while it's open.
449
452
  const detail = useWorkspace(undefined, row.workspaceId ?? "", { enabled: !!sheet });
450
453
  useDetailGate(detail.failure, !!sheet, () => setSheet(null));
@@ -617,7 +620,7 @@ function BriefCardBody({ item, theme, layout, agentId, deps, embedded = false, s
617
620
  const sendOther = (decisionId: string) => { const text = words[decisionId]?.trim(); if (text) void run(`${decisionId}:${OTHER}`, async answerId => { await answer([{ decisionId, choice: OTHER, words: text }], answerId); clearCard(b.id); }); };
618
621
  return <RevealScope accessibilityRole="summary" accessibilityLabel={`${acts ? "Needs you" : flaggedAct ? "Later" : word(b.kind)}: ${askText}`}
619
622
  style={[{ marginVertical: embedded ? 0 : 10, borderRadius: 12, borderWidth: 1, borderColor: border, backgroundColor: c.surface1, overflow: "hidden" }, bare && BARE]}>
620
- <SubmitScope enabled={!!keySend && !busy} onSubmit={() => keySend?.()} style={{ paddingHorizontal: pad, paddingTop: compact ? 12 : 14, paddingBottom: 14, gap: tight ? 10 : 12 }}>
623
+ <SubmitScope message compact={compact} enabled={!!keySend && !busy} onSubmit={() => keySend?.()} style={{ paddingHorizontal: pad, paddingTop: compact ? 12 : 14, paddingBottom: 14, gap: tight ? 10 : 12 }}>
621
624
  <View style={{ gap: 4 }}>
622
625
  <View style={{ flexDirection: "row", alignItems: "center", gap: 7 }}>
623
626
  <Icon name={ICON[b.kind]} size={14} color={tone} />