arco-workbench 0.1.5 → 0.1.7

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 (188) hide show
  1. package/CONTRIBUTING.md +9 -0
  2. package/README.md +17 -5
  3. package/client/dist/assets/{PhosphorBackdrop-D6cbmLNY.js → PhosphorBackdrop-DVQdBrTw.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-2dyerOi4.js → ThemedBackgroundShaderImpl-BfSs2tB4.js} +1 -1
  5. package/client/dist/assets/{XtermView-AIwo7O3D.js → XtermView-DaMjC8Ny.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-DXAuxS8D.js → galleryEditor-BCQnXj7R.js} +1 -1
  7. package/client/dist/assets/{index-8j6p-pmQ.js → index-COfbHCYv.js} +245 -243
  8. package/client/dist/index.html +1 -1
  9. package/client/src/alerts/desktopAlerts.ts +13 -0
  10. package/client/src/buildCheck.ts +3 -1
  11. package/client/src/components/AppUpdateNotice.tsx +2 -1
  12. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +46 -11
  13. package/client/src/components/ClusterRightPanel/MemberRow.tsx +1 -1
  14. package/client/src/components/ClusterRightPanel/index.tsx +2 -1
  15. package/client/src/components/ClusterTaskBoardTab.tsx +54 -3
  16. package/client/src/components/ContextMeter.tsx +7 -0
  17. package/client/src/components/HeaderVersionBox.tsx +7 -4
  18. package/client/src/components/Home/HomeView.tsx +1 -1
  19. package/client/src/components/NeedsYouBadge.tsx +31 -16
  20. package/client/src/components/OperatorQuestionNotice.tsx +10 -1
  21. package/client/src/components/ProvidersPopover.tsx +23 -12
  22. package/client/src/components/TabBar.tsx +11 -8
  23. package/client/src/components/TabStatusChip.tsx +8 -7
  24. package/client/src/components/UpdateAction.tsx +18 -4
  25. package/client/src/components/UpdateResultNotice.tsx +3 -1
  26. package/client/src/components/clusterNeedsYou.ts +27 -8
  27. package/client/src/help/content/cluster.tsx +50 -27
  28. package/client/src/help/content/composer.tsx +8 -1
  29. package/client/src/help/content/header.tsx +25 -14
  30. package/client/src/help/content/misc.tsx +8 -0
  31. package/client/src/help/content/rightPanel.tsx +1 -1
  32. package/client/src/help/content/settings.tsx +1 -1
  33. package/client/src/help/content/tabbar.tsx +2 -1
  34. package/client/src/help/manualSections/clusters.tsx +78 -19
  35. package/client/src/help/manualSections/configuration.tsx +20 -4
  36. package/client/src/help/manualSections/gettingStarted.tsx +10 -0
  37. package/client/src/help/manualSections/maintenance.tsx +50 -8
  38. package/client/src/help/manualSections/plans.tsx +5 -1
  39. package/client/src/help/manualSections/providers.tsx +10 -3
  40. package/client/src/help/manualSections/reference.tsx +1 -1
  41. package/client/src/help/manualSections/workflows.tsx +20 -0
  42. package/client/src/help/manualSections/workspace.tsx +7 -1
  43. package/client/src/questions/waitingQuestion.ts +3 -2
  44. package/client/src/stores/appStore.ts +1 -1
  45. package/client/src/stores/appStore.types.ts +1 -0
  46. package/client/src/stores/appUpdateStore.ts +29 -8
  47. package/client/src/stores/notificationStore.ts +2 -0
  48. package/client/src/utils/activityPresentation.ts +1 -1
  49. package/client/src/utils/tabStatus.ts +8 -0
  50. package/client/src/utils/wsSession.ts +2 -1
  51. package/client/src/voice/commands.ts +4 -3
  52. package/client/src/voice/executor.ts +3 -3
  53. package/client/src/ws/handleServerMessage.ts +22 -2
  54. package/client/src/ws/operatorQuestions.ts +2 -0
  55. package/docs/CLIENT.md +3 -3
  56. package/docs/FEATURES.md +1 -1
  57. package/docs/GETTING_STARTED.md +16 -6
  58. package/docs/GLOSSARY.md +6 -2
  59. package/docs/GOTCHAS.md +17 -5
  60. package/docs/OPERATIONS.md +207 -5
  61. package/docs/PERSISTENCE.md +22 -1
  62. package/docs/PRIMITIVES.md +1 -1
  63. package/docs/PROTOCOL.md +1 -1
  64. package/docs/PROTOCOL_CLUSTER.md +18 -7
  65. package/docs/PROVIDERS.md +10 -5
  66. package/docs/SETTINGS.md +4 -2
  67. package/docs/TASK_LEDGER.md +6 -0
  68. package/docs/VOICE.md +2 -0
  69. package/native/darwin-arm64/manifest.json +1 -1
  70. package/native/win32-arm64/manifest.json +1 -1
  71. package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
  72. package/node_modules/@arco/shared/dist/clusterRolePresets.js +10 -0
  73. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
  74. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
  75. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +2 -2
  76. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -0
  77. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +4 -0
  78. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  79. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +9 -3
  80. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  81. package/node_modules/@arco/shared/package.json +1 -1
  82. package/package.json +2 -2
  83. package/scripts/packaging/arco.mjs +1 -0
  84. package/scripts/packaging/native-repair.mjs +46 -8
  85. package/scripts/packaging/update.mjs +5 -1
  86. package/server/dist/attention.d.ts +1 -1
  87. package/server/dist/attention.js +6 -4
  88. package/server/dist/capabilities.d.ts +9 -8
  89. package/server/dist/capabilities.js +71 -102
  90. package/server/dist/cliUpdateDecision.d.ts +34 -0
  91. package/server/dist/cliUpdateDecision.js +152 -0
  92. package/server/dist/clusterAutoTurn.d.ts +4 -0
  93. package/server/dist/clusterAutoTurn.js +29 -25
  94. package/server/dist/clusterBusyReminder.js +1 -1
  95. package/server/dist/clusterDirector.js +1 -0
  96. package/server/dist/clusterPeerOps.js +2 -2
  97. package/server/dist/clusterStore.d.ts +3 -0
  98. package/server/dist/clusterStore.js +22 -0
  99. package/server/dist/defaults/models.md +1 -1
  100. package/server/dist/fileAccessPolicy.js +7 -5
  101. package/server/dist/http/workflowDataRoutes.js +1 -1
  102. package/server/dist/index.js +5 -1
  103. package/server/dist/primitives/seedWorker.d.ts +1 -0
  104. package/server/dist/primitives/seedWorker.js +2 -1
  105. package/server/dist/providerConversation.d.ts +9 -0
  106. package/server/dist/providerConversation.js +80 -0
  107. package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
  108. package/server/dist/providers/claude-native/retainedContext.js +20 -0
  109. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  110. package/server/dist/providers/claude-native/worker.js +34 -6
  111. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
  112. package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
  113. package/server/dist/providers/codex-appserver/worker.js +9 -4
  114. package/server/dist/providers/ollama.js +2 -3
  115. package/server/dist/server/broadcast.d.ts +1 -1
  116. package/server/dist/smartPickup.d.ts +2 -1
  117. package/server/dist/smartPickup.js +28 -1
  118. package/server/dist/smartPickupAdapters.d.ts +1 -0
  119. package/server/dist/smartPickupAdapters.js +18 -5
  120. package/server/dist/smartPickupLedger.js +6 -4
  121. package/server/dist/smartPickupObserver.d.ts +1 -0
  122. package/server/dist/smartPickupObserver.js +69 -23
  123. package/server/dist/workers/WorkerManager.d.ts +1 -0
  124. package/server/dist/workers/WorkerManager.js +1 -0
  125. package/server/dist/workers/limits.js +6 -2
  126. package/server/dist/workflowMeta.d.ts +11 -1
  127. package/server/dist/workflowMeta.js +132 -6
  128. package/server/dist/workflows/types.d.ts +1 -0
  129. package/server/dist/ws/clusterHandlers.d.ts +1 -0
  130. package/server/dist/ws/clusterHandlers.js +2 -1
  131. package/server/dist/ws/compactHandlers.d.ts +1 -1
  132. package/server/dist/ws/compactHandlers.js +11 -4
  133. package/server/dist/ws/handoffHandlers.js +16 -6
  134. package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
  135. package/server/dist/ws/operatorQuestionHandlers.js +9 -1
  136. package/server/dist/ws/turnEngine.d.ts +2 -4
  137. package/server/dist/ws/turnEngine.js +88 -129
  138. package/server/package.json +1 -1
  139. package/server/src/attention.ts +5 -4
  140. package/server/src/capabilities.ts +70 -111
  141. package/server/src/cliUpdateDecision.ts +159 -0
  142. package/server/src/clusterAutoTurn.ts +26 -21
  143. package/server/src/clusterBusyReminder.ts +1 -1
  144. package/server/src/clusterDirector.ts +1 -0
  145. package/server/src/clusterPeerOps.ts +2 -2
  146. package/server/src/clusterStore.ts +26 -1
  147. package/server/src/defaults/models.md +1 -1
  148. package/server/src/fileAccessPolicy.ts +7 -5
  149. package/server/src/http/workflowDataRoutes.ts +1 -1
  150. package/server/src/index.ts +5 -1
  151. package/server/src/primitives/seedWorker.ts +3 -1
  152. package/server/src/providerConversation.ts +71 -0
  153. package/server/src/providers/claude-native/retainedContext.ts +22 -0
  154. package/server/src/providers/claude-native/worker.ts +33 -5
  155. package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
  156. package/server/src/providers/codex-appserver/worker.ts +8 -4
  157. package/server/src/providers/ollama.ts +2 -3
  158. package/server/src/smartPickup.ts +27 -3
  159. package/server/src/smartPickupAdapters.ts +19 -5
  160. package/server/src/smartPickupLedger.ts +6 -4
  161. package/server/src/smartPickupObserver.ts +51 -17
  162. package/server/src/workers/WorkerManager.ts +2 -0
  163. package/server/src/workers/limits.ts +7 -2
  164. package/server/src/workflowMeta.ts +139 -5
  165. package/server/src/workflows/types.ts +1 -0
  166. package/server/src/ws/clusterHandlers.ts +3 -2
  167. package/server/src/ws/compactHandlers.ts +9 -3
  168. package/server/src/ws/handoffHandlers.ts +13 -6
  169. package/server/src/ws/operatorQuestionHandlers.ts +10 -2
  170. package/server/src/ws/turnEngine.ts +80 -135
  171. package/shared/dist/clusterRolePresets.d.ts +1 -1
  172. package/shared/dist/clusterRolePresets.js +10 -0
  173. package/shared/dist/protocol/autoPickup.d.ts +3 -0
  174. package/shared/dist/protocol/autoPickup.js +9 -1
  175. package/shared/dist/protocol/clientMessages.d.ts +2 -2
  176. package/shared/dist/protocol/models.d.ts +6 -0
  177. package/shared/dist/protocol/notifications.d.ts +4 -0
  178. package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  179. package/shared/dist/protocol/serverMessages.d.ts +9 -3
  180. package/shared/dist/protocol/workflows.d.ts +1 -0
  181. package/shared/src/clusterRolePresets.ts +11 -1
  182. package/shared/src/protocol/autoPickup.ts +14 -1
  183. package/shared/src/protocol/clientMessages.ts +2 -1
  184. package/shared/src/protocol/models.ts +5 -2
  185. package/shared/src/protocol/notifications.ts +5 -0
  186. package/shared/src/protocol/operatorQuestions.ts +13 -0
  187. package/shared/src/protocol/serverMessages.ts +12 -2
  188. package/shared/src/protocol/workflows.ts +4 -0
@@ -1,5 +1,6 @@
1
1
  import { LocalRuntimeRows, enabledLocalRows } from './LocalRuntimeStatus';
2
2
  import { compareLlamacppBuild } from '@arco/shared';
3
+ import type { Capabilities, CliUpdateOutcome } from '@arco/shared';
3
4
  import { useEffect, useLayoutEffect, useRef, useState } from 'react';
4
5
  import { useAppStore } from '../stores/appStore';
5
6
  import { FreeVramButton } from './FreeVramButton';
@@ -62,6 +63,7 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
62
63
  const [releasesRuntime, setReleasesRuntime] = useState<ReleaseRuntime | null>(null);
63
64
  const [checking, setChecking] = useState<CliProvider | null>(null);
64
65
  const [checkResult, setCheckResult] = useState<Record<CliProvider, string | null>>({ claude: null, codex: null });
66
+ const [checkOutcome, setCheckOutcome] = useState<Partial<Record<CliProvider, CliUpdateOutcome>>>({});
65
67
  // The row's result slot is a narrow right-aligned chip, so the displayed
66
68
  // string is truncated hard. Keep the untruncated text for the tooltip —
67
69
  // an update failure ("Missing optional dependency @openai/codex-linux-x64…")
@@ -134,26 +136,32 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
134
136
 
135
137
  const checkForUpdates = async (provider: CliProvider) => {
136
138
  setChecking(provider);
139
+ setCheckOutcome((prev) => ({ ...prev, [provider]: undefined }));
137
140
  setCheckResult((prev) => ({ ...prev, [provider]: null }));
138
141
  setCheckDetail((prev) => ({ ...prev, [provider]: null }));
139
142
  try {
140
143
  const res = await fetch(`/api/check-updates?provider=${provider}`, { method: 'POST' });
141
- const data = await res.json() as { updated?: boolean; previousVersion?: string; currentVersion?: string; error?: string; notice?: string };
144
+ const data = await res.json() as { outcome?: CliUpdateOutcome; currentVersion?: string; message?: string; capabilities?: Capabilities; error?: string; notice?: string };
145
+ const version = data.currentVersion ?? (provider === 'codex' ? capabilities?.codexVersion : capabilities?.cliVersion) ?? 'unknown';
142
146
  let msg: string;
143
- let detail: string | null = data.notice ?? null;
147
+ const detail = data.error ?? data.message ?? data.notice ?? 'The version did not change. Arco could not check whether it is up to date.';
144
148
  // A notice means the server did something the version string alone doesn't
145
149
  // explain — e.g. upstream tagged a new `latest` whose build for this
146
150
  // platform isn't published yet, so it installed the newest one that runs.
147
151
  // Mark the row so the operator knows to hover, and keep it pinned.
148
- if (data.error) { msg = 'FAILED'; detail = data.error; }
149
- else if (data.notice) msg = `v${data.currentVersion} (!)`;
150
- else if (data.updated) msg = `→ v${data.currentVersion}`;
151
- else msg = `v${data.currentVersion} (latest)`;
152
+ if (data.error || data.outcome === 'failed') msg = 'FAILED';
153
+ else if (data.notice) msg = `v${version} (!)`;
154
+ else if (data.outcome === 'updated') msg = `→ v${version}`;
155
+ else if (data.outcome === 'current') msg = `v${version} (latest)`;
156
+ else msg = `v${version} (!)`;
157
+ setCheckOutcome((prev) => ({ ...prev, [provider]: msg === 'FAILED' ? 'failed' : msg.endsWith('(!)') ? 'deferred' : data.outcome }));
158
+ if (data.capabilities) useAppStore.getState().setCapabilities(data.capabilities);
152
159
  setCheckResult((prev) => ({ ...prev, [provider]: msg }));
153
- setCheckDetail((prev) => ({ ...prev, [provider]: detail }));
160
+ setCheckDetail((prev) => ({ ...prev, [provider]: msg === 'FAILED' || msg.endsWith('(!)') ? detail : null }));
154
161
  } catch (e) {
155
162
  const detail = e instanceof Error ? e.message : 'unknown';
156
163
  setCheckResult((prev) => ({ ...prev, [provider]: 'FAILED' }));
164
+ setCheckOutcome((prev) => ({ ...prev, [provider]: 'failed' }));
157
165
  setCheckDetail((prev) => ({ ...prev, [provider]: detail }));
158
166
  } finally {
159
167
  setChecking(null);
@@ -207,7 +215,9 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
207
215
  // CLI has no parseable version either, so skip the compare rather than let
208
216
  // compareSemver read 'broken' as 0.0.0 and call it outdated.
209
217
  const latest = r.provider === 'cursor' || broken ? undefined : r.provider === 'deepseek' ? capabilities?.latestVersions?.xolotl : capabilities?.latestVersions?.[r.provider];
210
- const outdated = !!latest && (r.provider === 'deepseek' ? r.version !== latest : r.provider === 'llamacpp' ? (compareLlamacppBuild(r.version, latest) ?? 0) < 0 : compareSemver(r.version, latest) < 0);
218
+ const outdated = r.provider === 'codex' && capabilities?.codexUpdate
219
+ ? capabilities.codexUpdate.updateAvailable
220
+ : !!latest && (r.provider === 'deepseek' ? r.version !== latest : r.provider === 'llamacpp' ? (compareLlamacppBuild(r.version, latest) ?? 0) < 0 : compareSemver(r.version, latest) < 0);
211
221
  return { ...r, latest, outdated, broken };
212
222
  });
213
223
 
@@ -292,12 +302,13 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
292
302
  const busy = isCli && checking === (provider as CliProvider);
293
303
  const result = isCli ? checkResult[provider as CliProvider] : null;
294
304
  const detail = isCli ? checkDetail[provider as CliProvider] : null;
295
- const versionColor = (broken || detail) ? 'var(--color-danger)' : outdated ? 'var(--color-warning)' : 'var(--color-accent-primary-dim)';
305
+ const outcome = isCli ? checkOutcome[provider as CliProvider] : undefined;
306
+ const versionColor = (broken || outcome === 'failed') ? 'var(--color-danger)' : outdated || outcome === 'manual' || outcome === 'deferred' ? 'var(--color-warning)' : 'var(--color-accent-primary-dim)';
296
307
  // For llama.cpp the lifecycle manager owns the spawned server, so we
297
308
  // know exactly which model is in VRAM — surface it on the row.
298
309
  const llamacppLoadedAlias = isLlamacpp ? (llamacppLive?.loadedModel ?? null) : null;
299
310
  const baseTitle = broken
300
- ? `${label} is installed but is not responding to --version: click to reinstall and see the error`
311
+ ? `${label} is installed but is not responding to --version: click for update options and the error`
301
312
  : isDeepSeek
302
313
  ? `Xolotl checkout ${version}${outdated ? ' · upstream revision differs' : ''}. Click for source changes inside Arco. This does not update or rebuild the engine.`
303
314
  : isStrata
@@ -314,7 +325,7 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
314
325
  ? `cursor-agent ${version} (self-updating: click for changelog)`
315
326
  : outdated
316
327
  ? `${label} CLI outdated: v${version} → v${latest} (click to install)`
317
- : `${label} CLI v${version} (latest: click to re-check)`;
328
+ : `${label} CLI v${version} (click to check for updates)`;
318
329
  const onClick = isDeepSeek
319
330
  ? () => setReleasesRuntime('xolotl')
320
331
  : isStrata
@@ -357,7 +368,7 @@ export function ProvidersPopover({ open: controlledOpen, onOpenChange }: { open?
357
368
  }}
358
369
  >
359
370
  <span style={{ fontSize: '9px', letterSpacing: '1.5px', color: 'var(--color-fg-muted)', whiteSpace: 'nowrap' }}>{label}</span>
360
- <span style={{ fontSize: '10px', color: versionColor, overflowWrap: 'anywhere' }}>{versionDisplay}</span>
371
+ <span style={{ fontSize: '10px', color: versionColor }}>{versionDisplay}</span>
361
372
  </button>
362
373
  </span>
363
374
  );
@@ -1,7 +1,7 @@
1
1
  import { confirmationSurfaceSize, WorkSurfaceControls } from './workSurface/WorkSurfaceControls';
2
2
  import { hasWaitingQuestion } from '../questions/waitingQuestion';
3
3
  import { TabStatusChip, useTabStatus } from './TabStatusChip';
4
- import { clusterHasIdleMail, TAB_STATUS_LABEL } from '../utils/tabStatus';
4
+ import { clusterHasIdleMail, tabStatusPresentation } from '../utils/tabStatus';
5
5
  import { layoutPoint } from '../utils/pointer';
6
6
  import { useMemo, useRef, useState } from 'react';
7
7
  import {
@@ -503,7 +503,9 @@ function SortableWorkflowTab({ job, isActive, onActivate, onClose, onContextMenu
503
503
  const isBusy = activeWorkers > 0 || hasStreaming;
504
504
  const accountBadge = accountBadgeForJob(job, settings);
505
505
  const waitingNames = hasWaitingQuestion(job) ? [job.config.name || job.id.slice(0, 8)] : [];
506
- const status = useTabStatus('job', job.id, waitingNames.length > 0, isBusy || !!job.busy);
506
+ const busy = isBusy || !!job.busy;
507
+ const status = useTabStatus('job', job.id, waitingNames.length > 0, busy);
508
+ const statusLabel = tabStatusPresentation(status, busy).label;
507
509
 
508
510
  return (
509
511
  <div
@@ -526,8 +528,8 @@ function SortableWorkflowTab({ job, isActive, onActivate, onClose, onContextMenu
526
528
  >
527
529
  <button
528
530
  onClick={onActivate}
529
- title={TAB_STATUS_LABEL[status]}
530
- aria-label={`${job.config.name || job.id.slice(0, 8)}${accountBadge ? `, ${accountBadge}` : ''}: ${TAB_STATUS_LABEL[status]}`}
531
+ title={statusLabel}
532
+ aria-label={`${job.config.name || job.id.slice(0, 8)}${accountBadge ? `, ${accountBadge}` : ''}: ${statusLabel}`}
531
533
  className="display-font"
532
534
  style={{
533
535
  padding: '8px 4px 8px 16px',
@@ -545,7 +547,7 @@ function SortableWorkflowTab({ job, isActive, onActivate, onClose, onContextMenu
545
547
  >
546
548
  {(job.config.name || job.id.slice(0, 8)).toUpperCase()}
547
549
  {accountBadge && <AccountBadge label={accountBadge} />}
548
- <TabStatusChip status={status} compact />
550
+ <TabStatusChip status={status} busy={busy} compact />
549
551
  </button>
550
552
  <QuestionMark names={waitingNames} />
551
553
  <button
@@ -590,6 +592,7 @@ function SortableClusterTab({ cluster, isActive, onActivate, onClose }: ClusterT
590
592
  const anyBusy = cluster.members.some((m) => m.status === 'busy' || jobs[m.workflowId]?.busy);
591
593
  const status = useTabStatus('cluster', cluster.clusterId, waitingNames.length > 0 || clusterHasIdleMail(cluster, jobs), anyBusy);
592
594
  const label = clusterDisplayName(cluster);
595
+ const statusLabel = tabStatusPresentation(status, anyBusy).label;
593
596
  return (
594
597
  <div
595
598
  ref={setNodeRef}
@@ -610,8 +613,8 @@ function SortableClusterTab({ cluster, isActive, onActivate, onClose }: ClusterT
610
613
  >
611
614
  <button
612
615
  onClick={onActivate}
613
- title={TAB_STATUS_LABEL[status]}
614
- aria-label={`${label}: ${TAB_STATUS_LABEL[status]}`}
616
+ title={statusLabel}
617
+ aria-label={`${label}: ${statusLabel}`}
615
618
  className="display-font"
616
619
  style={{
617
620
  padding: '8px 4px 8px 16px',
@@ -629,7 +632,7 @@ function SortableClusterTab({ cluster, isActive, onActivate, onClose }: ClusterT
629
632
  >
630
633
  {label.toUpperCase()}
631
634
  <span style={{ color: 'var(--color-fg-muted)', fontSize: '10px' }}>[{cluster.members.length}]</span>
632
- <TabStatusChip status={status} compact />
635
+ <TabStatusChip status={status} busy={anyBusy} compact />
633
636
  </button>
634
637
  <QuestionMark names={waitingNames} />
635
638
  <button
@@ -1,5 +1,5 @@
1
1
  import { useTabStatusStore, tabKey } from '../stores/tabStatusStore';
2
- import { tabStatus, TAB_STATUS_HINT, TAB_STATUS_LABEL, type TabStatus } from '../utils/tabStatus';
2
+ import { tabStatus, TAB_STATUS_HINT, tabStatusPresentation, type TabStatus } from '../utils/tabStatus';
3
3
 
4
4
  const COLOR: Record<TabStatus, string> = {
5
5
  'needs-you': 'var(--color-warning)',
@@ -14,7 +14,8 @@ export function useTabStatus(kind: 'job' | 'cluster', id: string, waiting: boole
14
14
  }
15
15
 
16
16
  /** The one status word for a tab or card. Text is always present, never colour alone. */
17
- export function TabStatusChip({ status, compact = false }: { status: TabStatus; compact?: boolean }) {
17
+ export function TabStatusChip({ status, busy = status === 'working', compact = false }: { status: TabStatus; busy?: boolean; compact?: boolean }) {
18
+ const { label, pulsing } = tabStatusPresentation(status, busy);
18
19
  if (compact) {
19
20
  // Tab strip: the colored dot only; the word is the hover text and the accessible name.
20
21
  // Idle shows nothing (the empty marker keeps the status readable by tests and tools).
@@ -23,7 +24,7 @@ export function TabStatusChip({ status, compact = false }: { status: TabStatus;
23
24
  <span
24
25
  data-help="tabbar.status"
25
26
  data-tab-status={status}
26
- {...(shown ? { role: 'img', 'aria-label': TAB_STATUS_LABEL[status], title: TAB_STATUS_LABEL[status] } : { 'aria-hidden': true })}
27
+ {...(shown ? { role: 'img', 'aria-label': label, title: label } : { 'aria-hidden': true })}
27
28
  style={{
28
29
  display: 'inline-block',
29
30
  flexShrink: 0,
@@ -32,7 +33,7 @@ export function TabStatusChip({ status, compact = false }: { status: TabStatus;
32
33
  borderRadius: '50%',
33
34
  background: shown ? COLOR[status] : 'transparent',
34
35
  opacity: status === 'new-reply' ? 0.6 : 1,
35
- animation: status === 'working' ? 'pulse-glow 1.5s ease-in-out infinite' : undefined,
36
+ animation: pulsing ? 'pulse-glow 1.5s ease-in-out infinite' : undefined,
36
37
  }}
37
38
  />
38
39
  );
@@ -41,7 +42,7 @@ export function TabStatusChip({ status, compact = false }: { status: TabStatus;
41
42
  <span
42
43
  data-help="tabbar.status"
43
44
  data-tab-status={status}
44
- title={TAB_STATUS_HINT[status]}
45
+ title={status === 'needs-you' && busy ? 'Needs you - still working.' : TAB_STATUS_HINT[status]}
45
46
  style={{
46
47
  display: 'inline-flex',
47
48
  alignItems: 'center',
@@ -62,10 +63,10 @@ export function TabStatusChip({ status, compact = false }: { status: TabStatus;
62
63
  borderRadius: '50%',
63
64
  background: status === 'idle' ? 'transparent' : COLOR[status],
64
65
  border: `1px solid ${COLOR[status]}`,
65
- animation: status === 'working' ? 'pulse-glow 1.5s ease-in-out infinite' : undefined,
66
+ animation: pulsing ? 'pulse-glow 1.5s ease-in-out infinite' : undefined,
66
67
  }}
67
68
  />
68
- {TAB_STATUS_LABEL[status]}
69
+ {label}
69
70
  </span>
70
71
  );
71
72
  }
@@ -1,5 +1,7 @@
1
+ import { createPortal } from 'react-dom';
2
+ import { checkBuild } from '../buildCheck';
1
3
  import { confirmationSurfaceSize, WorkSurfaceControls } from './workSurface/WorkSurfaceControls';
2
- import { useEffect, useRef, useState } from 'react';
4
+ import { useEffect, useId, useRef, useState } from 'react';
3
5
  import { useAppUpdateStore } from '../stores/appUpdateStore';
4
6
 
5
7
  type State = { mode: 'service' | 'foreground' | 'docker'; platform?: string; packaged?: boolean; result: { outcome: string; message?: string; attemptId?: string } | null };
@@ -11,6 +13,16 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
11
13
  const [message, setMessage] = useState('');
12
14
  const [resultMessage, setResultMessage] = useState('');
13
15
  const [fallback, setFallback] = useState(false);
16
+ const resultSurfaceId = useId();
17
+ const ownsResult = useAppUpdateStore((s) => s.resultSurfaces[0] === resultSurfaceId);
18
+ const hasState = state !== null;
19
+ useEffect(() => {
20
+ if (!hasState) return;
21
+ // An open control owns the result instead of the global notice. Starting an
22
+ // update moves ownership to the exact control whose button was pressed.
23
+ useAppUpdateStore.getState().showResultAt(resultSurfaceId);
24
+ return () => useAppUpdateStore.getState().removeResultSurface(resultSurfaceId);
25
+ }, [hasState, resultSurfaceId]);
14
26
  // null means the start request is in flight; a string fences later polls to
15
27
  // that attempt. A new page can display any result the server still reports.
16
28
  const startedAttempt = useRef<string | null | undefined>(undefined);
@@ -40,6 +52,7 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
40
52
  if (next.result?.outcome === 'running') { setResultMessage(''); setPending(true); }
41
53
  else if (next.result?.outcome === 'updated' || next.result?.outcome === 'failed' || next.result?.outcome === 'unchanged') {
42
54
  if (startedAttempt.current === null || (startedAttempt.current && next.result.attemptId !== startedAttempt.current)) return;
55
+ if (next.result.outcome === 'updated' && startedAttempt.current) void checkBuild();
43
56
  startedAttempt.current = undefined;
44
57
  setPending(false); setMessage(''); setResultMessage(next.result.message || (next.result.outcome === 'updated' ? 'Update complete.' : next.result.outcome === 'unchanged' ? 'Already on the newest release.' : 'Update failed.'));
45
58
  } else setResultMessage('');
@@ -50,6 +63,7 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
50
63
  return () => { live = false; clearInterval(timer); };
51
64
  }, [pending]);
52
65
  const start = async () => {
66
+ useAppUpdateStore.getState().showResultAt(resultSurfaceId, true);
53
67
  startedAttempt.current = null;
54
68
  setConfirm(false); setPending(true); setFallback(false); setResultMessage(''); setMessage('Starting update. Arco will reconnect after restart.');
55
69
  try {
@@ -78,8 +92,8 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
78
92
  </>}
79
93
  {fallback && <div><code>{state.packaged ? 'arco update' : 'npm run arco:update'}</code>{' '}<button type="button" onClick={() => copy(state.packaged ? 'arco update' : 'npm run arco:update')}>COPY COMMAND</button></div>}
80
94
  {message && <div role="status">{message}</div>}
81
- {resultMessage && <div role="status">{resultMessage}</div>}
82
- {confirm && <div role="dialog" aria-modal="true" aria-label="Confirm update" style={{ position: 'fixed', inset: 0, zIndex: 10000, background: 'rgba(0,0,0,.6)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
95
+ {ownsResult && resultMessage && <div role="status">{resultMessage}</div>}
96
+ {confirm && createPortal(<div role="dialog" aria-modal="true" aria-label="Confirm update" style={{ position: 'fixed', inset: 0, zIndex: 10000, background: 'rgba(0,0,0,.6)', display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
83
97
  <div ref={surface} style={{ background: 'var(--color-bg-elevated)', color: 'var(--color-fg)', border: '1px solid var(--color-border)', padding: 20, ...confirmationSurfaceSize }}>
84
98
  <WorkSurfaceControls surface={surface} storageKey="update-confirm" />
85
99
  <p>Update to {latest} and restart Arco? Running turns will stop.</p>
@@ -87,6 +101,6 @@ export function UpdateAction({ latest, url, autoConfirm = false }: { latest: str
87
101
  <button type="button" onClick={() => void start()}>UPDATE AND RESTART</button>{' '}
88
102
  <button type="button" onClick={() => setConfirm(false)}>CANCEL</button>
89
103
  </div>
90
- </div>}
104
+ </div>, document.body)}
91
105
  </div>;
92
106
  }
@@ -1,7 +1,9 @@
1
1
  import { useEffect, useState } from 'react';
2
+ import { useAppUpdateStore } from '../stores/appUpdateStore';
2
3
 
3
4
  interface Result { outcome: string; message?: string; finishedAt?: number; attemptId?: string }
4
5
  export function UpdateResultNotice() {
6
+ const inlineResult = useAppUpdateStore((s) => s.resultSurfaces.length > 0);
5
7
  const [result, setResult] = useState<Result | null>(null);
6
8
  useEffect(() => {
7
9
  let alive = true; let request = 0;
@@ -22,7 +24,7 @@ export function UpdateResultNotice() {
22
24
  void check(); const timer = setInterval(() => { void check(); }, 3000);
23
25
  return () => { alive = false; clearInterval(timer); };
24
26
  }, []);
25
- if (!result) return null;
27
+ if (!result || inlineResult) return null;
26
28
  return <div role="status" data-help="settings.update-result" style={{ pointerEvents: 'auto', padding: 12, color: 'var(--color-fg)', background: 'var(--color-bg-panel)', border: '1px solid var(--color-accent-primary)' }}>
27
29
  <span>{result.message || (result.outcome === 'unchanged' ? 'Already on the newest release.' : 'Update completed.')}</span>{' '}
28
30
  <button type="button" onClick={() => { try { localStorage.setItem('arco-update-result-dismissed', result.attemptId || String(result.finishedAt)); } catch { /* storage is optional */ } setResult(null); }}>DISMISS</button>
@@ -1,5 +1,6 @@
1
1
  // Pure Needs-you counting and board accept/clutter helpers (no React).
2
- // Covered by scripts/smoke/task-board.ts and unit-style asserts there.
2
+ // Badge semantics are covered by clusterNeedsYou.test.ts. The existing
3
+ // scripts/smoke/task-board.ts checks the board and operator-accept contracts.
3
4
 
4
5
  import type { LedgerTask, TaskSignoff } from '@arco/shared';
5
6
 
@@ -9,7 +10,14 @@ export const REVIEW_OLDER_MS = 7 * 24 * 60 * 60 * 1000;
9
10
  const OPERATOR_BLOCKED =
10
11
  /\b(operator|human|you\b|your\s+(?:decision|input|approval|go)|needs?\s+(?:you|operator|human)|awaiting\s+(?:you|operator)|approve|accept|confirm)\b/i;
11
12
 
12
- export type NeedsYouKind = 'review' | 'blocked' | 'question';
13
+ export type NeedsYouKind = 'review' | 'blocked' | 'question' | 'asked';
14
+
15
+ export const NEEDS_YOU_KIND: Record<NeedsYouKind, { label: string; stopped: boolean; description: string }> = {
16
+ question: { label: 'WAITING', stopped: true, description: 'An agent is waiting for an answer before it can continue.' },
17
+ blocked: { label: 'BLOCKED', stopped: true, description: 'A task is blocked on the operator.' },
18
+ asked: { label: 'ASKED', stopped: false, description: 'An agent asked a question and can continue without an answer.' },
19
+ review: { label: 'TO ACCEPT', stopped: false, description: 'Finished and signed off. Accepting is optional; nothing waits on it.' },
20
+ };
13
21
 
14
22
  export interface NeedsYouItem {
15
23
  kind: NeedsYouKind;
@@ -117,7 +125,7 @@ export function releaseSummary(tasks: readonly LedgerTask[], release: string): {
117
125
 
118
126
  export function buildNeedsYouItems(input: {
119
127
  tasks: readonly LedgerTask[];
120
- waitingQuestions: readonly { workflowId: string; displayName: string; label?: string }[];
128
+ waitingQuestions: readonly { workflowId: string; displayName: string; label?: string; mode?: 'blocking' | 'async' }[];
121
129
  }): NeedsYouItem[] {
122
130
  const items: NeedsYouItem[] = [];
123
131
  for (const t of input.tasks) {
@@ -141,17 +149,28 @@ export function buildNeedsYouItems(input: {
141
149
  }
142
150
  }
143
151
  for (const q of input.waitingQuestions) {
152
+ const kind = q.mode === 'async' ? 'asked' : 'question';
144
153
  items.push({
145
- kind: 'question',
146
- id: `question:${q.workflowId}`,
154
+ kind,
155
+ id: `${kind}:${q.workflowId}`,
147
156
  title: q.displayName,
148
- detail: q.label || 'Waiting question',
157
+ detail: q.label || (kind === 'asked' ? 'Agent can continue' : 'Waiting question'),
149
158
  workflowId: q.workflowId,
150
159
  });
151
160
  }
152
161
  return items;
153
162
  }
154
163
 
155
- export function needsYouLabel(count: number): string {
156
- return `${count} NEED YOU`;
164
+ export function needsYouSummary(items: readonly NeedsYouItem[]) {
165
+ const groups = (['question', 'blocked', 'asked', 'review'] as const)
166
+ .map((kind) => ({ kind, count: items.filter((item) => item.kind === kind).length, ...NEEDS_YOU_KIND[kind] }))
167
+ .filter((group) => group.count > 0);
168
+ const stopped = groups.reduce((count, group) => count + (group.stopped ? group.count : 0), 0);
169
+ return {
170
+ groups,
171
+ stopped,
172
+ label: groups.map((group) => `${group.count} ${group.label}`).join(' · '),
173
+ compactLabel: stopped > 0 ? `! ${stopped}` : String(items.length),
174
+ title: groups.map((group) => `${group.count} ${group.label}: ${group.description}`).join('\n'),
175
+ };
157
176
  }
@@ -163,7 +163,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
163
163
  body: (
164
164
  <p>
165
165
  The member's role hint. Preset matches show the preset's UPPERCASE
166
- label (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER); free-form
166
+ label (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER); free-form
167
167
  text shows as <C>CUSTOM</C>. Edit from the MEMBERS sub-tab of the
168
168
  cluster right panel.
169
169
  </p>
@@ -312,8 +312,11 @@ export const clusterHelp: Record<string, HelpEntry> = {
312
312
  body: (
313
313
  <>
314
314
  <p>Chooses whether idle members start a turn on their own when mail arrives. The chip shows the current mode; click it to change it. <strong>Off</strong> is the default, and clusters armed before the modes existed are Rule-based.</p>
315
- <p><strong>Rule-based (recommended)</strong> wakes an idle member for mail that asks for something and leaves plain acknowledgements waiting. Limits stop two members waking each other back and forth and cap wakes per member and per arming. <C>RESUME</C> starts a fresh allowance.</p>
315
+ <p><strong>Rule-based (recommended)</strong> wakes an idle member for mail that asks for something and leaves plain acknowledgements waiting. Limits stop two members waking each other back and forth and cap wakes per member and per arming. <C>RESET BUDGET</C> starts a fresh allowance after the arming total is reached.</p>
316
+ <p><C>PAUSE</C> stops automatic pickup and busy reminders while keeping the mode, session and wake counts. <C>RESUME</C> checks idle members with waiting mail through the same limits, without resetting the budget. NUDGE still works while paused. The Smart session clock freezes, including across a restart; hourly rate limits keep real time.</p>
316
317
  <p><strong>Smart</strong> modes ask a model you choose whether to wake the member, wait, or ask you. <strong>Observe-only</strong> only records the answers. <strong>Automatic</strong> may start the member&apos;s normal turn, but only after Arco checks again that the member is idle, the mail is unchanged and every limit allows it. <C>STOP</C> on a member holds its current mail until new mail arrives. A Smart session ends at its time limit, or after a restart when its limit record cannot be read, and must then be armed again.</p>
318
+ <p>In Automatic, an evaluator error or invalid answer attempts ordinary pickup once through the same guards and budget. Valid wait/ask answers and STOP or expiry never permit fallback. Observe-only never wakes. The last decision, chip hover and accessible description explain failures and fallback.</p>
319
+ <p>Set <strong>Armed session length</strong> under <strong>AUTO-PICKUP &gt; LIMITS</strong> before arming (5 to 240 minutes, default 30). The dialog shows minutes remaining. Expiry turns Smart Off; mail waits for rearming, Rule-based or NUDGE.</p>
317
320
  <p><strong>Also remind busy members</strong> optionally sends busy members the existing NUDGE for actionable unread mail, once per batch with a five-minute gap per member. It is off by default and works only under Rule-based and Smart: Automatic.</p>
318
321
  <p>Pickup messages appear as a folded mailbox line in chat, pending preview and HISTORY. Use + to read the full text; the member receives it in full.</p>
319
322
  <p><strong>Distinct from MAIL ALERTS and NUDGE.</strong> MAIL ALERTS only notify you; NUDGE wakes members you pick by hand.</p>
@@ -601,7 +604,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
601
604
  },
602
605
  'cluster.right-panel.role-set': {
603
606
  title: 'Set role',
604
- body: <><p>Opens the role list: DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER and DOCUMENTER, plus CLEAR and CUSTOM. The current role is highlighted. The Director reads the diff and checks that project-required checks ran, without inventing a gate or permanent incident rule. Before blocking work, it states what a user would lose. A cluster may have only one director, so director choices are unavailable, with the reason shown, while another member holds that role.</p><p>Standard LM Studio, Strata and DeepSeek members receive their assigned role and shared plan. Blind members retain restricted context without the shared plan.</p></>,
607
+ body: <><p>Opens the role list: DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR and DESIGNER, plus CLEAR and CUSTOM. The current role is highlighted. ADVISOR gives a second opinion on request, states uncertainty, changes no files, assigns no work and lands nothing. DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. Both report via peer_send. When an Advisor is present, the Director consults it before a design decision or when evidence is thin; the Director keeps the decision. These hints guide the agent and do not enforce file access.</p><p>The Director reads the diff and checks that project-required checks ran, without inventing a gate or permanent incident rule. Before blocking work, it states what a user would lose. A cluster may have only one director, so director choices are unavailable, with the reason shown, while another member holds that role.</p><p>Standard LM Studio, Strata and DeepSeek members receive their assigned role and shared plan. Blind members retain restricted context without the shared plan.</p></>,
605
608
  manualSection: 'cluster-roles',
606
609
  },
607
610
  'cluster.right-panel.role-preset': {
@@ -863,20 +866,23 @@ export const clusterHelp: Record<string, HelpEntry> = {
863
866
  manualSection: 'cluster-board',
864
867
  },
865
868
  'cluster.needs-you': {
866
- title: 'Needs you badge',
869
+ title: 'Cluster attention',
867
870
  body: (
868
871
  <>
869
872
  <p>
870
- Counts what only you can move: review tasks with a director sign-off
871
- (accept them), tasks blocked on a decision from you, and members
872
- waiting on an answer. It is hidden when the count is zero and sends
873
- nothing.
873
+ Names each kind present: WAITING for a question that pauses an agent,
874
+ BLOCKED for a task blocked on you, ASKED for a question the agent can
875
+ continue past, and TO ACCEPT for a signed-off review task. Stopped
876
+ kinds come first and use the warning colour. ASKED and TO ACCEPT are
877
+ muted. Accepting is optional; nothing waits on it. The badge is
878
+ hidden when there are no items.
874
879
  </p>
875
880
  <p>
876
881
  Click it for the list. Choosing a task opens the BOARD with that task
877
882
  selected; choosing a question focuses that member. In Narrow layout,
878
- the compact ! count badge stays below the member-list button when
879
- the list is closed. Opening the list moves the summary into its header.
883
+ the compact badge stays below the member-list button when the list
884
+ is closed. Its ! count includes only WAITING and BLOCKED; optional
885
+ items alone show a plain muted number. Opening the list moves the summary into its header.
880
886
  A task choice closes that list and opens BOARD.
881
887
  </p>
882
888
  </>
@@ -887,10 +893,11 @@ export const clusterHelp: Record<string, HelpEntry> = {
887
893
  title: 'ACCEPT',
888
894
  body: (
889
895
  <p>
890
- Marks this review task done. It is the same operator action as moving the card
891
- to the done column, without the drawer, and it is logged like any other
892
- status change. Workers cannot do this; only you can. <C>RECHECK</C> asks the
893
- director to verify the task again instead.
896
+ Marks this review task done from its card or drawer. It is the same
897
+ operator action as moving the card to the done column and is logged
898
+ like any other status change. Accepting is optional; nothing waits on
899
+ it. Workers cannot do this; only you can. <C>RECHECK</C> asks the director
900
+ to verify the task again instead.
894
901
  </p>
895
902
  ),
896
903
  manualSection: 'cluster-board',
@@ -963,16 +970,22 @@ export const clusterHelp: Record<string, HelpEntry> = {
963
970
  ),
964
971
  manualSection: 'cluster-board',
965
972
  },
973
+ 'cluster.board-recheck': {
974
+ title: 'RECHECK',
975
+ body: <p>Asks the sign-off author to review the task again through the existing peer mailbox. The task stays in REVIEW with its current verdict until the author updates it. This action is unavailable when no sign-off author or sending member is available. Accepting remains optional.</p>,
976
+ manualSection: 'cluster-board',
977
+ },
966
978
  'cluster.task-drawer': {
967
979
  title: 'Task drawer',
968
980
  body: (
969
981
  <p>
970
- Detail panel for the selected board card. Shows overview fields, links,
971
- dependency parents/children, the durable comment thread, recovery
972
- controls, and run records with heartbeat age/stale status when workers
973
- have emitted heartbeats. Terminal statuses remain operator-only, and
974
- the drawer's status controls use the same ledger update path as the
975
- standalone LEDGER tab.
982
+ Detail panel for the selected board card. REVIEW opens with the sign-off
983
+ author, verdict and summary, or No sign-off yet, followed by ACCEPT and
984
+ the existing RECHECK action. Accepting is optional; nothing waits on it.
985
+ Edit is below and closed initially for REVIEW only. Other statuses keep
986
+ their existing layout. Overview, links, dependencies, comments, recovery
987
+ controls and run records remain available. Terminal statuses stay
988
+ operator-only through the existing ledger update path.
976
989
  </p>
977
990
  ),
978
991
  manualSection: 'cluster-board',
@@ -1291,7 +1304,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
1291
1304
  },
1292
1305
  'cluster.auto-pickup-rule-limits': {
1293
1306
  title: 'Rule-based limits',
1294
- body: <p>Set the alternating wake limit, hourly wakes per member, total wakes per arming and chain depth. Acknowledgement-only mail and mail stopped by the chain-depth limit stay in the mailbox. The hourly cap rolls over; reaching the arming total pauses automatic pickup until RESUME.</p>,
1307
+ body: <p>Set the alternating wake limit, hourly wakes per member, total wakes per arming and chain depth. Acknowledgement-only mail and mail stopped by the chain-depth limit stay in the mailbox. The hourly cap rolls over; reaching the arming total stops automatic pickup until RESET BUDGET.</p>,
1295
1308
  manualSection: 'cluster-auto-pickup',
1296
1309
  },
1297
1310
  'cluster.auto-pickup-rule-reset': {
@@ -1300,13 +1313,23 @@ export const clusterHelp: Record<string, HelpEntry> = {
1300
1313
  manualSection: 'cluster-auto-pickup',
1301
1314
  },
1302
1315
  'cluster.auto-pickup-rule-resume': {
1303
- title: 'Resume Rule-based pickup',
1304
- body: <p>Start a fresh arming budget after the total wake limit pauses pickup. The rolling hourly member limit still applies.</p>,
1316
+ title: 'Reset Rule-based wake budget',
1317
+ body: <p>Start a fresh arming budget after the total wake limit stops pickup. The rolling hourly member limit still applies. This action stays disabled during an operator pause; use RESUME first, then reset the budget separately.</p>,
1318
+ manualSection: 'cluster-auto-pickup',
1319
+ },
1320
+ 'cluster.auto-pickup-pause': {
1321
+ title: 'Pause AUTO-PICKUP',
1322
+ body: <p>Stop automatic pickup, Smart evaluator requests and busy reminders without changing the mode, armed session or wake counts. Mail waits in the mailbox. A turn already running continues, and NUDGE still works. The pause survives a server restart. The Smart session clock freezes at its remaining time; hourly rate limits continue in real time.</p>,
1323
+ manualSection: 'cluster-auto-pickup',
1324
+ },
1325
+ 'cluster.auto-pickup-resume': {
1326
+ title: 'Resume AUTO-PICKUP',
1327
+ body: <p>Continue with the same mode, armed session and wake counts, without confirmation. Smart continues with the time left at PAUSE. Each idle member with waiting mail is checked once through the normal limits. Smart still evaluates the mail; Observe-only only records its answer. RESUME does not reset a spent Rule-based budget; RESET BUDGET is a separate action.</p>,
1305
1328
  manualSection: 'cluster-auto-pickup',
1306
1329
  },
1307
1330
  'cluster.auto-pickup-off': {
1308
1331
  title: 'Turn AUTO-PICKUP off',
1309
- body: <p>One click sets AUTO-PICKUP to Off. A Smart session ends at once, so an evaluator answer still in progress is discarded and starts nothing. A worker turn that already started is not cancelled; use STOP for that. The evaluator choice and limits are kept for the next arming.</p>,
1332
+ body: <p>One click sets AUTO-PICKUP to Off and clears an operator pause. A Smart session ends at once, so an evaluator answer still in progress is discarded and starts nothing. A worker turn that already started is not cancelled; use STOP for that. The evaluator choice and limits are kept for the next arming.</p>,
1310
1333
  manualSection: 'cluster-auto-pickup',
1311
1334
  },
1312
1335
  'cluster.auto-pickup-dialog': {
@@ -1321,17 +1344,17 @@ export const clusterHelp: Record<string, HelpEntry> = {
1321
1344
  },
1322
1345
  'cluster.auto-pickup-evaluator': {
1323
1346
  title: 'Smart evaluator',
1324
- body: <p>Choose the provider and model that judge waiting mail. A provider is offered only while it is enabled, connected and able to answer without tools here: Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, and DeepSeek through Xolotl. LM Studio, llama.cpp, Strata and DeepSeek require the selected model to be loaded first; these requests never load or switch models. Codex runs as a one-shot read-only session with no MCP servers or web search, and any tool use ends the request with no decision. Nothing is chosen in advance, and the last choice is offered again only while it is still offered. The evaluator receives only the waiting mail and short member and task facts and answers wake, wait or ask, so a fast, low-cost model suits it. Fable/Mythos 5.2 uses low effort with extra reasoning headroom and the same answer-size limit. The mail goes to the chosen provider and any cost depends on that provider. USE UTILITY AGENT, shown when a utility agent is saved and usable, only fills in the provider and model from Settings; nothing is armed until you press ARM.</p>,
1347
+ body: <p>Choose the provider and model that judge waiting mail. A provider is offered only while it is enabled, connected and able to answer without tools here: Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, and DeepSeek through Xolotl. LM Studio, llama.cpp, Strata and DeepSeek require the selected model to be loaded first; these requests never load or switch models. Codex runs as a one-shot read-only session with no MCP servers or web search, and any tool use ends the request with no decision. Nothing is chosen in advance, and the last choice is offered again only while it is still offered. The evaluator receives only the waiting mail and short member and task facts and answers wake, wait or ask, so a fast, low-cost model suits it. A failure before the evaluator session is ready retries once with its own allowance; a second startup failure or any other failure takes the failure path. Capped evaluator requests add 8192 tokens of reasoning headroom while keeping the same visible-answer limit. Ollama requests no thinking; other provider thinking settings stay unchanged. The mail goes to the chosen provider and any cost depends on that provider. USE UTILITY AGENT, shown when a utility agent is saved and usable, only fills in the provider and model from Settings; nothing is armed until you press ARM.</p>,
1325
1348
  manualSection: 'cluster-auto-pickup',
1326
1349
  },
1327
1350
  'cluster.auto-pickup-limits': {
1328
1351
  title: 'Smart limits',
1329
- body: <p>Each limit has a default and a range: evaluator requests at once (1), per hour for the cluster (12) and per member (3), automatic wakes per member per hour (3) and per armed session (12), session length (30 minutes), evaluator time limit (30 seconds), mail and context sent per request (12 KiB) and answer length (64 tokens). Limits are counted durably, so a restart never resets them; a request whose result is unknown counts as spent. The Rule-based cooldown, per-minute ceiling and chain limit still apply.</p>,
1352
+ body: <p>Each limit has a default and a range: evaluator requests at once (1), per hour for the cluster (12) and per member (3), automatic wakes per member per hour (3) and per armed session (12), session length (30 minutes, 5 to 240), evaluator time limit (30 seconds), mail and context sent per request (12 KiB) and answer length (64 tokens). Capped evaluator requests add 8192 tokens for reasoning without increasing the visible answer. Limits are counted durably, so a restart never resets them; a request whose result is unknown counts as spent. The Rule-based cooldown, per-minute ceiling and chain limit still apply.</p>,
1330
1353
  manualSection: 'cluster-auto-pickup',
1331
1354
  },
1332
1355
  'cluster.auto-pickup-status': {
1333
1356
  title: 'AUTO-PICKUP status',
1334
- body: <p>Shows the Smart session end time, evaluator requests this session, in the last hour and in progress, automatic wakes against the session limit, and the last decision with its reason. Arming, turning off and session expiry are recorded as decisions too.</p>,
1357
+ body: <p>Shows minutes remaining, the Smart session end time, evaluator requests this session, in the last hour and in progress, automatic wakes against the session limit, and the last decision with its reason. A failure says whether ordinary pickup started, was held or was only observed. Expiry leaves mail waiting and names Armed session length under AUTO-PICKUP &gt; LIMITS. The chip hover and accessible description repeat the explanation. Arming and turning off are recorded too.</p>,
1335
1358
  manualSection: 'cluster-auto-pickup',
1336
1359
  },
1337
1360
  };
@@ -55,6 +55,11 @@ export const composerHelp: Record<string, HelpEntry> = {
55
55
  <C>Esc</C> cancels the turn (asks before dropping queued messages;{' '}
56
56
  <C>Shift+Esc</C> skips the prompt).
57
57
  </p>
58
+ <p>Claude Native keeps a steer queued while web search, web fetch or
59
+ another server tool still awaits its result. One notice says the
60
+ message is held. It arrives at the next safe boundary, or as the next
61
+ turn if the current turn finishes first. The current work keeps its
62
+ results and reasoning.</p>
58
63
  </>
59
64
  ),
60
65
  manualSection: 'composer',
@@ -194,6 +199,7 @@ export const composerHelp: Record<string, HelpEntry> = {
194
199
  tabs. Runs between turns: disabled while a turn is in flight.
195
200
  </p>
196
201
  <p>For Cursor, STOP during compression finishes its cancellation wait when compression settles. A later turn is not affected by the old cancellation timer.</p>
202
+ <p>With earlier history but no saved Codex thread or Cursor session, COMPACT explains that the previous conversation cannot be resumed and the next message starts a new one. Earlier messages remain visible. An empty tab keeps the first-turn guidance.</p>
197
203
  </>
198
204
  ),
199
205
  },
@@ -516,13 +522,14 @@ export const composerHelp: Record<string, HelpEntry> = {
516
522
  Click here to recalibrate on demand (Claude only: runs <C>/context</C>{' '}
517
523
  against the live session via a background pty).
518
524
  </p>
525
+ <p>If a saved provider conversation id was lost, <C>CTX: -</C> explains that the previous conversation cannot be resumed. The next message starts a new conversation and adds one notice; the replacement waits for its own reading. Earlier messages and usage stay in the tab. Missing metadata is recreated, but an already-lost id cannot be recovered.</p>
519
526
  </>
520
527
  ),
521
528
  manualSection: 'context-window',
522
529
  },
523
530
  'composer.questions': {
524
531
  title: 'Pending agent questions',
525
- body: <p>Open questions from Codex app-server without scrolling back through the transcript. Pick an option or type an answer, then SEND ANSWERS. Blocking questions wait for you; async questions let the agent continue. Cancelled or expired questions cannot be answered.</p>,
532
+ body: <p>Open questions from Codex app-server without scrolling back through the transcript. Pick an option or type an answer, then SEND ANSWERS. Blocking questions wait for you; async questions let the agent continue and close when that turn ends. Select DISMISS to close a question without answering. A closed question cannot be answered.</p>,
526
533
  manualSection: 'provider-codex',
527
534
  },
528
535
  'worker.header.tokens': {