arco-workbench 0.1.6 → 0.1.8

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 (236) hide show
  1. package/CONTRIBUTING.md +52 -12
  2. package/README.md +20 -13
  3. package/client/dist/assets/{PhosphorBackdrop-BR-TgB5x.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DgcFj6JN.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
  5. package/client/dist/assets/{XtermView-CflVBQgC.js → XtermView-BGFujb1e.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-BB-emfmi.js → galleryEditor-D951A2sE.js} +1 -1
  7. package/client/dist/assets/{index-B_EqHDz3.js → index-CsVy3eZm.js} +248 -248
  8. package/client/dist/index.html +1 -1
  9. package/client/src/buildCheck.ts +3 -1
  10. package/client/src/components/AppUpdateNotice.tsx +2 -1
  11. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +24 -12
  12. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
  13. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
  14. package/client/src/components/ClusterRightPanel/index.tsx +6 -1
  15. package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
  16. package/client/src/components/HeaderVersionBox.tsx +7 -4
  17. package/client/src/components/NeedsYouBadge.tsx +3 -3
  18. package/client/src/components/ProviderReleasesModal.tsx +8 -4
  19. package/client/src/components/ProvidersPopover.tsx +28 -23
  20. package/client/src/components/SettingsPanel.tsx +2 -2
  21. package/client/src/components/SkillsSettings.tsx +5 -0
  22. package/client/src/components/TabBar.tsx +91 -9
  23. package/client/src/components/TerminalInput.tsx +12 -10
  24. package/client/src/components/TranscriptSendDialog.tsx +12 -8
  25. package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
  26. package/client/src/components/UpdateAction.tsx +18 -4
  27. package/client/src/components/UpdateResultNotice.tsx +3 -1
  28. package/client/src/components/clusterNeedsYou.ts +11 -18
  29. package/client/src/help/content/cluster.tsx +54 -22
  30. package/client/src/help/content/composer.tsx +22 -0
  31. package/client/src/help/content/header.tsx +19 -1
  32. package/client/src/help/content/misc.tsx +8 -0
  33. package/client/src/help/content/rightPanel.tsx +1 -1
  34. package/client/src/help/content/settings.tsx +19 -5
  35. package/client/src/help/content/tabbar.tsx +5 -0
  36. package/client/src/help/manualSections/actions.tsx +31 -0
  37. package/client/src/help/manualSections/clusters.tsx +58 -21
  38. package/client/src/help/manualSections/configuration.tsx +38 -4
  39. package/client/src/help/manualSections/maintenance.tsx +30 -0
  40. package/client/src/help/manualSections/plans.tsx +5 -1
  41. package/client/src/help/manualSections/providers.tsx +32 -8
  42. package/client/src/help/manualSections/troubleshooting.tsx +2 -1
  43. package/client/src/help/manualSections/workflows.tsx +19 -0
  44. package/client/src/help/manualSections/workspace.tsx +6 -0
  45. package/client/src/stores/appUpdateStore.ts +29 -8
  46. package/client/src/utils/transcriptWorkerRequest.ts +24 -0
  47. package/client/src/utils/wsSession.ts +2 -1
  48. package/client/src/ws/handleServerMessage.ts +8 -2
  49. package/docs/ARCHITECTURE.md +1 -1
  50. package/docs/CLIENT.md +9 -8
  51. package/docs/FEATURES.md +8 -5
  52. package/docs/GETTING_STARTED.md +9 -4
  53. package/docs/GOTCHAS.md +2 -1
  54. package/docs/OPERATIONS.md +37 -4
  55. package/docs/PERSISTENCE.md +25 -3
  56. package/docs/PRIMITIVES.md +42 -0
  57. package/docs/PROTOCOL_CLUSTER.md +51 -5
  58. package/docs/PROTOCOL_PRIMITIVES.md +39 -0
  59. package/docs/PROVIDERS.md +50 -13
  60. package/docs/SETTINGS.md +27 -3
  61. package/docs/TASK_LEDGER.md +7 -15
  62. package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
  63. package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
  64. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
  65. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
  66. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -1
  67. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  68. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  69. package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
  70. package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
  71. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  72. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
  73. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  74. package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
  75. package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
  76. package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
  77. package/node_modules/@arco/shared/package.json +1 -1
  78. package/package.json +2 -2
  79. package/scripts/packaging/arco.mjs +1 -1
  80. package/scripts/packaging/native-repair.mjs +78 -12
  81. package/scripts/packaging/update.mjs +5 -1
  82. package/server/dist/atomicFile.js +1 -2
  83. package/server/dist/capabilities.d.ts +5 -2
  84. package/server/dist/capabilities.js +59 -9
  85. package/server/dist/cliUpdateDecision.d.ts +1 -1
  86. package/server/dist/cliUpdateDecision.js +5 -3
  87. package/server/dist/clusterAutoTurn.d.ts +4 -0
  88. package/server/dist/clusterAutoTurn.js +29 -25
  89. package/server/dist/clusterBusyReminder.js +1 -1
  90. package/server/dist/clusterDirector.js +1 -1
  91. package/server/dist/clusterPeerOps.js +10 -7
  92. package/server/dist/clusterProgress.js +1 -1
  93. package/server/dist/clusterSkills.d.ts +13 -0
  94. package/server/dist/clusterSkills.js +81 -0
  95. package/server/dist/clusterSnapshots.js +2 -0
  96. package/server/dist/clusterStore.d.ts +10 -2
  97. package/server/dist/clusterStore.js +64 -1
  98. package/server/dist/diagnostics/codeSkew.js +1 -0
  99. package/server/dist/eventLog.d.ts +7 -0
  100. package/server/dist/eventLog.js +70 -13
  101. package/server/dist/historyLimits.d.ts +1 -0
  102. package/server/dist/historyLimits.js +3 -0
  103. package/server/dist/http/router.js +1 -1
  104. package/server/dist/index.js +24 -1
  105. package/server/dist/jsonlLines.d.ts +4 -0
  106. package/server/dist/jsonlLines.js +53 -0
  107. package/server/dist/management/identity.js +1 -0
  108. package/server/dist/mcp/clusterMcpTools.js +4 -4
  109. package/server/dist/project/taskLedger.d.ts +4 -0
  110. package/server/dist/project/taskLedger.js +7 -4
  111. package/server/dist/providerConversation.d.ts +1 -0
  112. package/server/dist/providerConversation.js +17 -0
  113. package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
  114. package/server/dist/providers/claude-native/resumeSummary.js +102 -49
  115. package/server/dist/providers/claude-native/worker.js +8 -4
  116. package/server/dist/providers/claude.js +2 -1
  117. package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
  118. package/server/dist/providers/codex-appserver/catalog.js +16 -1
  119. package/server/dist/providers/codex.js +2 -1
  120. package/server/dist/providers/codexCodeMode.d.ts +1 -1
  121. package/server/dist/providers/codexCodeMode.js +4 -3
  122. package/server/dist/providers/cursor/print.js +2 -1
  123. package/server/dist/providers/cursor/worker.js +2 -1
  124. package/server/dist/providers/llamacpp.js +17 -8
  125. package/server/dist/providers/ollamaRecovery.js +6 -6
  126. package/server/dist/providers/ollamaResilience.js +3 -3
  127. package/server/dist/providers/ollamaTokens.js +1 -1
  128. package/server/dist/quota.d.ts +0 -18
  129. package/server/dist/quota.js +0 -44
  130. package/server/dist/replacementHistory.d.ts +19 -0
  131. package/server/dist/replacementHistory.js +49 -0
  132. package/server/dist/server/broadcast.d.ts +2 -1
  133. package/server/dist/server/broadcast.js +1 -0
  134. package/server/dist/server/prompts.d.ts +1 -0
  135. package/server/dist/server/prompts.js +6 -1
  136. package/server/dist/sessionJsonl.d.ts +1 -1
  137. package/server/dist/sessionJsonl.js +115 -40
  138. package/server/dist/smartPickup.d.ts +2 -1
  139. package/server/dist/smartPickup.js +28 -1
  140. package/server/dist/smartPickupAdapters.js +15 -2
  141. package/server/dist/smartPickupLedger.js +6 -4
  142. package/server/dist/smartPickupObserver.d.ts +1 -0
  143. package/server/dist/smartPickupObserver.js +24 -15
  144. package/server/dist/transcriptWorker.d.ts +34 -0
  145. package/server/dist/transcriptWorker.js +201 -0
  146. package/server/dist/workflowStore.d.ts +1 -0
  147. package/server/dist/workflowStore.js +31 -0
  148. package/server/dist/ws/clusterHandlers.d.ts +2 -0
  149. package/server/dist/ws/clusterHandlers.js +64 -27
  150. package/server/dist/ws/handoffHandlers.js +5 -2
  151. package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
  152. package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
  153. package/server/dist/ws/turnEngine.js +23 -9
  154. package/server/dist/ws/updatePrimaryConfig.js +27 -8
  155. package/server/dist/ws/workflowHandlers.d.ts +4 -1
  156. package/server/dist/ws/workflowHandlers.js +3 -1
  157. package/server/package.json +1 -1
  158. package/server/src/atomicFile.ts +1 -2
  159. package/server/src/capabilities.ts +58 -17
  160. package/server/src/cliUpdateDecision.ts +5 -4
  161. package/server/src/clusterAutoTurn.ts +26 -21
  162. package/server/src/clusterBusyReminder.ts +1 -1
  163. package/server/src/clusterDirector.ts +1 -1
  164. package/server/src/clusterPeerOps.ts +11 -8
  165. package/server/src/clusterProgress.ts +1 -1
  166. package/server/src/clusterSkills.ts +79 -0
  167. package/server/src/clusterSnapshots.ts +1 -0
  168. package/server/src/clusterStore.ts +64 -1
  169. package/server/src/diagnostics/codeSkew.ts +1 -0
  170. package/server/src/eventLog.ts +73 -13
  171. package/server/src/historyLimits.ts +2 -0
  172. package/server/src/http/router.ts +1 -1
  173. package/server/src/index.ts +23 -0
  174. package/server/src/jsonlLines.ts +52 -0
  175. package/server/src/management/identity.ts +1 -0
  176. package/server/src/mcp/clusterMcpTools.ts +4 -4
  177. package/server/src/project/taskLedger.ts +7 -5
  178. package/server/src/providerConversation.ts +15 -0
  179. package/server/src/providers/claude-native/resumeSummary.ts +98 -50
  180. package/server/src/providers/claude-native/worker.ts +8 -4
  181. package/server/src/providers/claude.ts +2 -1
  182. package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
  183. package/server/src/providers/codex-appserver/catalog.ts +14 -1
  184. package/server/src/providers/codex.ts +2 -1
  185. package/server/src/providers/codexCodeMode.ts +4 -4
  186. package/server/src/providers/cursor/print.ts +2 -1
  187. package/server/src/providers/cursor/worker.ts +2 -1
  188. package/server/src/providers/llamacpp.ts +18 -7
  189. package/server/src/providers/llamacppRecovery.ts +2 -0
  190. package/server/src/providers/ollamaRecovery.ts +6 -6
  191. package/server/src/providers/ollamaResilience.ts +3 -3
  192. package/server/src/providers/ollamaTokens.ts +1 -1
  193. package/server/src/providers/ollamaToolSubset.ts +3 -3
  194. package/server/src/quota.ts +0 -50
  195. package/server/src/replacementHistory.ts +44 -0
  196. package/server/src/server/broadcast.ts +2 -0
  197. package/server/src/server/prompts.ts +8 -1
  198. package/server/src/sessionJsonl.ts +92 -32
  199. package/server/src/smartPickup.ts +27 -3
  200. package/server/src/smartPickupAdapters.ts +17 -3
  201. package/server/src/smartPickupLedger.ts +6 -4
  202. package/server/src/smartPickupObserver.ts +20 -11
  203. package/server/src/transcriptWorker.ts +182 -0
  204. package/server/src/workflowStore.ts +21 -0
  205. package/server/src/ws/clusterHandlers.ts +46 -27
  206. package/server/src/ws/handoffHandlers.ts +5 -1
  207. package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
  208. package/server/src/ws/turnEngine.ts +20 -8
  209. package/server/src/ws/updatePrimaryConfig.ts +25 -6
  210. package/server/src/ws/workflowHandlers.ts +3 -1
  211. package/shared/dist/clusterCoordination.d.ts +2 -0
  212. package/shared/dist/clusterCoordination.js +5 -1
  213. package/shared/dist/protocol/autoPickup.d.ts +3 -0
  214. package/shared/dist/protocol/clientMessages.d.ts +3 -2
  215. package/shared/dist/protocol/clusters.d.ts +13 -1
  216. package/shared/dist/protocol/index.d.ts +1 -0
  217. package/shared/dist/protocol/index.js +1 -0
  218. package/shared/dist/protocol/models.d.ts +4 -3
  219. package/shared/dist/protocol/models.js +26 -2
  220. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  221. package/shared/dist/protocol/tasks.d.ts +4 -0
  222. package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
  223. package/shared/dist/protocol/transcriptWorker.js +2 -0
  224. package/shared/dist/runtimeVersions.d.ts +1 -0
  225. package/shared/dist/runtimeVersions.js +14 -0
  226. package/shared/src/clusterCoordination.ts +7 -1
  227. package/shared/src/protocol/autoPickup.ts +5 -0
  228. package/shared/src/protocol/clientMessages.ts +5 -0
  229. package/shared/src/protocol/clusters.ts +16 -1
  230. package/shared/src/protocol/index.ts +1 -0
  231. package/shared/src/protocol/models.ts +31 -5
  232. package/shared/src/protocol/serverMessages.ts +2 -0
  233. package/shared/src/protocol/settings.ts +2 -3
  234. package/shared/src/protocol/tasks.ts +4 -7
  235. package/shared/src/protocol/transcriptWorker.ts +49 -0
  236. package/shared/src/runtimeVersions.ts +14 -0
@@ -0,0 +1,119 @@
1
+ import { useEffect, useRef, useState, type CSSProperties } from 'react';
2
+ import { PRIMARY_PROVIDERS, TERMINAL_CODEX_ACCOUNT, type EffortLevel, type ProviderName, type TranscriptWorkerPreview } from '@arco/shared';
3
+ import { useAppStore } from '../stores/appStore';
4
+ import { useCodexCatalogFor } from '../hooks/useCodexCatalog';
5
+ import { defaultModelForProvider, modelsForProvider, useModelCatalogs } from '../utils/modelCatalog';
6
+ import { capDefaultEffort } from '../utils/effortDefaults';
7
+ import { effortsForModel } from '../utils/format';
8
+ import { requestTranscriptWorker } from '../utils/transcriptWorkerRequest';
9
+ import { DialogShell } from './DialogShell';
10
+ import { DirectoryBrowser } from './media/DirectoryPicker';
11
+
12
+ const field: CSSProperties = { width: '100%', minWidth: 0, display: 'block' };
13
+ const button: CSSProperties = { padding: '5px 10px', cursor: 'pointer', fontSize: '11px', letterSpacing: '1px' };
14
+ const labels: Record<ProviderName, string> = { claude: 'Claude', codex: 'Codex', cursor: 'Cursor', ollama: 'Ollama', llamacpp: 'llama.cpp', lmstudio: 'LM Studio', strata: 'Strata', deepseek: 'DeepSeek' };
15
+
16
+ export function TranscriptWorkerDialog({ workflowId, onCancel, onMembers }: { workflowId: string; onCancel: () => void; onMembers?: () => void }) {
17
+ const job = useAppStore(s => s.jobs[workflowId]);
18
+ const connected = useAppStore(s => s.connected);
19
+ const settings = useAppStore(s => s.settings);
20
+ const auth = useAppStore(s => s.authStatus);
21
+ const enabled = useAppStore(s => s.isProviderEnabled);
22
+ const sourceProvider = job?.config.primaryProvider ?? 'claude';
23
+ const [turns, setTurns] = useState(3);
24
+ const [includePartial, setIncludePartial] = useState(false);
25
+ const [preface, setPreface] = useState('');
26
+ const [directory, setDirectory] = useState(job?.config.workingDirectory ?? '');
27
+ const [browse, setBrowse] = useState(false);
28
+ const [name, setName] = useState(`Worker from ${job?.config.name ?? 'conversation'}`);
29
+ const [provider, setProvider] = useState<ProviderName>(sourceProvider);
30
+ const [model, setModel] = useState(String(job?.config.primaryModel ?? ''));
31
+ const [effort, setEffort] = useState<EffortLevel>(capDefaultEffort(job?.config.primaryEffort ?? 'medium'));
32
+ const [account, setAccount] = useState(sourceProvider === 'codex' ? job?.config.providerAccountRef ?? '' : '');
33
+ const [skipPermissions, setSkipPermissions] = useState(false);
34
+ const [preview, setPreview] = useState<TranscriptWorkerPreview | null>(null);
35
+ const [previewInput, setPreviewInput] = useState('');
36
+ const [phase, setPhase] = useState<'preview' | 'create' | null>(null);
37
+ const [error, setError] = useState('');
38
+ const alive = useRef(true);
39
+ useEffect(() => { alive.current = true; return () => { alive.current = false; }; }, []);
40
+ const codexCatalog = useCodexCatalogFor(account || undefined);
41
+ const catalogs = useModelCatalogs({ codex: codexCatalog });
42
+ const models = modelsForProvider(provider, catalogs).map(String);
43
+ if (provider === sourceProvider && job?.config.primaryModel && !models.includes(String(job.config.primaryModel))) models.unshift(String(job.config.primaryModel));
44
+ const effortOptions = effortsForModel(provider, model, catalogs.claude, codexCatalog);
45
+ const offeredEfforts = effortOptions.length ? effortOptions : ['none' as const];
46
+ useEffect(() => {
47
+ if (!offeredEfforts.includes(effort)) setEffort(offeredEfforts.includes('medium') ? 'medium' : offeredEfforts[0]);
48
+ }, [provider, model, offeredEfforts.join('|'), effort]);
49
+ const providers = PRIMARY_PROVIDERS.filter(value => enabled(value) && !!auth?.[value]?.loggedIn);
50
+ const prefaceBytes = new TextEncoder().encode(preface).length;
51
+ const inputKey = JSON.stringify([turns, includePartial, preface]);
52
+ const invalidate = () => { setPreview(null); setError(''); };
53
+ const readPreview = async () => {
54
+ if (!connected || prefaceBytes > 4096 || phase) return;
55
+ setPhase('preview'); setError('');
56
+ try {
57
+ const result = await requestTranscriptWorker({ type: 'transcript_worker_preview', workflowId, turns, includePartial, preface });
58
+ if (alive.current) {
59
+ if (!result.preview) throw new Error('The preview is unavailable. Try again.');
60
+ setPreview(result.preview);
61
+ setPreviewInput(inputKey);
62
+ }
63
+ } catch (reason) { if (alive.current) { setPreview(null); setError(reason instanceof Error ? reason.message : String(reason)); } }
64
+ finally { if (alive.current) setPhase(null); }
65
+ };
66
+ const create = async () => {
67
+ if (!preview || phase || previewInput !== inputKey) return;
68
+ setPhase('create'); setError('');
69
+ try {
70
+ const result = await requestTranscriptWorker({ type: 'transcript_worker_create', token: preview.token,
71
+ destination: { workingDirectory: directory, name, provider, model, effort, ...(provider === 'codex' && account ? { providerAccountRef: account } : {}), skipPermissions } });
72
+ if (alive.current) {
73
+ if (!result.newWorkflowId) throw new Error('The worker could not be created. Refresh the preview.');
74
+ useAppStore.getState().setActiveJob(result.newWorkflowId);
75
+ onCancel();
76
+ }
77
+ } catch (reason) { if (alive.current) { setPreview(null); setError(reason instanceof Error ? reason.message : String(reason)); } }
78
+ finally { if (alive.current) setPhase(null); }
79
+ };
80
+ if (!job) return null;
81
+ return <DialogShell title="Send turns to a new worker" dataHelp="composer.transcript-worker" onClose={onCancel} width={760}
82
+ status={error ? <span role="alert">{error}</span> : phase ? <span role="status">{phase === 'preview' ? 'Reading stored turns...' : 'Creating the worker...'}</span> : undefined}
83
+ actions={<>
84
+ {onMembers && <button type="button" data-help="composer.transcript-worker" style={button} disabled={!!phase} onClick={onMembers}>EXISTING MEMBERS</button>}
85
+ <button type="button" data-help="composer.transcript-worker" style={button} disabled={!!phase} onClick={onCancel}>CANCEL</button>
86
+ <button type="button" data-help="composer.transcript-worker-preview" style={button} disabled={!!phase || !connected || prefaceBytes > 4096} onClick={() => void readPreview()}>PREVIEW</button>
87
+ <button type="button" data-help="composer.transcript-worker-send" style={button} disabled={!!phase || !preview || previewInput !== inputKey || !connected || !directory.trim() || !model || !providers.includes(provider)} onClick={() => void create()}>SEND TO NEW WORKER</button>
88
+ </>}>
89
+ <p>Source: {job.config.name}. Copy exact operator and agent text. Tools and attachments become receipts; attachment files are not copied.</p>
90
+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '10px', alignItems: 'end' }}>
91
+ <label>Last turns<input className="arco-field" data-help="composer.transcript-worker-preview" aria-label="Turns to copy" type="number" min={1} max={50} value={turns} disabled={!!phase} onChange={event => { setTurns(Math.max(1, Math.min(50, Number(event.target.value) || 1))); invalidate(); }} style={{ ...field, width: '80px' }} /></label>
92
+ <label><input type="checkbox" data-help="composer.transcript-worker-preview" checked={includePartial} disabled={!!phase || !job.busy} onChange={event => { setIncludePartial(event.target.checked); invalidate(); }} /> Include the current partial turn</label>
93
+ </div>
94
+ <label>Preface, placed before the copied turns<textarea className="arco-field" data-help="composer.transcript-worker-preview" aria-label="New worker preface" rows={3} value={preface} disabled={!!phase} onChange={event => { setPreface(event.target.value); invalidate(); }} style={{ ...field, resize: 'vertical' }} /></label>
95
+ <div style={{ color: prefaceBytes > 4096 ? 'var(--color-warning)' : 'var(--color-fg-muted)' }}>{prefaceBytes} / 4096 preface bytes; the whole seed must fit 32768 bytes. Content is never silently clipped.</div>
96
+ <label>New worker name<input className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker name" value={name} maxLength={120} disabled={!!phase} onChange={event => setName(event.target.value)} style={field} /></label>
97
+ <label>Working directory<input className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker working directory" value={directory} disabled={!!phase} onChange={event => setDirectory(event.target.value)} style={field} /></label>
98
+ <button type="button" data-help="composer.transcript-worker-target" style={{ ...button, justifySelf: 'start' }} disabled={!!phase} onClick={() => setBrowse(value => !value)}>BROWSE</button>
99
+ {browse && <DirectoryBrowser inline withFilename={false} initialPath={directory} roots={settings?.projectRoots} title="New worker folder" confirmLabel="Use this folder" onDone={result => { if (result) setDirectory(result.dir); setBrowse(false); }} />}
100
+ <div style={{ display: 'flex', flexWrap: 'wrap', gap: '10px' }}>
101
+ <label style={{ flex: '1 1 150px', minWidth: 0 }}>Provider<select className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker provider" value={provider} disabled={!!phase} onChange={event => {
102
+ const next = event.target.value as ProviderName; setProvider(next); setModel(defaultModelForProvider(next, catalogs)); setAccount('');
103
+ }} style={field}>{!providers.includes(provider) && <option value={provider} disabled>{labels[provider] ?? provider} (not ready)</option>}{providers.map(value => <option key={value} value={value}>{labels[value]}</option>)}</select></label>
104
+ <label style={{ flex: '2 1 200px', minWidth: 0 }}>Model<select className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker model" value={model} disabled={!!phase} onChange={event => setModel(event.target.value)} style={field}>{models.map(value => <option key={value} value={value}>{value}</option>)}</select></label>
105
+ <label>Effort<select className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker effort" value={effort} disabled={!!phase} onChange={event => setEffort(event.target.value as EffortLevel)} style={field}>{offeredEfforts.map(value => <option key={value} value={value}>{value.toUpperCase()}</option>)}</select></label>
106
+ </div>
107
+ {!providers.includes(provider) && <p role="status">{providers.length ? `${labels[provider] ?? provider} is not ready. Choose a connected provider.` : 'No connected provider is enabled. Connect or enable one in Settings before sending.'}</p>}
108
+ {!models.length && <p role="status">No models are available for this provider. Choose another provider or configure it in Settings.</p>}
109
+ {provider === 'codex' && <label>Account<select className="arco-field" data-help="composer.transcript-worker-target" aria-label="New worker account" value={account} disabled={!!phase} onChange={event => setAccount(event.target.value)} style={field}>
110
+ <option value="">Default account</option><option value={TERMINAL_CODEX_ACCOUNT}>Terminal Codex account</option>{(settings?.providerAccounts?.codex ?? []).map(value => <option key={value.id} value={value.id}>{value.label}</option>)}
111
+ </select></label>}
112
+ <label><input type="checkbox" data-help="composer.transcript-worker-target" checked={skipPermissions} disabled={!!phase} onChange={event => setSkipPermissions(event.target.checked)} /> Skip permission prompts in the new worker</label>
113
+ <p>The new worker starts a fresh provider conversation in the chosen folder. It inherits no source pins or cluster membership. The destination's own project settings apply.</p>
114
+ {preview ? <>
115
+ <div role="status">{preview.selectedTurns} of {preview.availableTurns} available turns selected; {preview.bytes} / 32768 seed bytes{preview.partialIncluded ? '; includes a partial-turn snapshot' : ''}.</div>
116
+ <textarea className="arco-field" aria-label="New worker seed preview" data-help="composer.transcript-worker-preview" readOnly value={preview.seed} rows={9} style={{ ...field, fontFamily: 'var(--font-code)', resize: 'vertical' }} />
117
+ </> : <p>PREVIEW reads the stored conversation. Review the exact seed before sending. Editing turns or preface requires a new preview.</p>}
118
+ </DialogShell>;
119
+ }
@@ -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>
@@ -2,7 +2,7 @@
2
2
  // Badge semantics are covered by clusterNeedsYou.test.ts. The existing
3
3
  // scripts/smoke/task-board.ts checks the board and operator-accept contracts.
4
4
 
5
- import type { LedgerTask, TaskSignoff } from '@arco/shared';
5
+ import type { LedgerTask } from '@arco/shared';
6
6
 
7
7
  export const REVIEW_OLDER_MS = 7 * 24 * 60 * 60 * 1000;
8
8
 
@@ -10,13 +10,12 @@ export const REVIEW_OLDER_MS = 7 * 24 * 60 * 60 * 1000;
10
10
  const OPERATOR_BLOCKED =
11
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;
12
12
 
13
- export type NeedsYouKind = 'review' | 'blocked' | 'question' | 'asked';
13
+ export type NeedsYouKind = 'blocked' | 'question' | 'asked';
14
14
 
15
15
  export const NEEDS_YOU_KIND: Record<NeedsYouKind, { label: string; stopped: boolean; description: string }> = {
16
16
  question: { label: 'WAITING', stopped: true, description: 'An agent is waiting for an answer before it can continue.' },
17
17
  blocked: { label: 'BLOCKED', stopped: true, description: 'A task is blocked on the operator.' },
18
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
19
  };
21
20
 
22
21
  export interface NeedsYouItem {
@@ -32,10 +31,6 @@ export function isOperatorBlockedReason(reason: string | undefined | null): bool
32
31
  return Boolean(reason && OPERATOR_BLOCKED.test(reason.trim()));
33
32
  }
34
33
 
35
- export function reviewNeedsOperator(task: Pick<LedgerTask, 'status' | 'signoff'>): boolean {
36
- return task.status === 'review' && Boolean(task.signoff);
37
- }
38
-
39
34
  export function blockedNeedsOperator(task: Pick<LedgerTask, 'status' | 'blockedReason'>): boolean {
40
35
  return task.status === 'blocked' && isOperatorBlockedReason(task.blockedReason);
41
36
  }
@@ -59,6 +54,13 @@ export function namedCommitsForTask(task: Pick<LedgerTask, 'notes' | 'signoff'>)
59
54
  return namedCommitsInText([task.notes ?? '', task.signoff?.summary ?? ''].join('\n'));
60
55
  }
61
56
 
57
+ export function plainSignoffSummary(signoff?: LedgerTask['signoff']): string | undefined {
58
+ const summary = signoff?.summary?.trim();
59
+ if (!signoff || !summary) return undefined;
60
+ if (signoff.state === 'met') return summary;
61
+ return `Not finished: ${summary.replace(/^(?:partial|not[_ -]met)\s*:\s*/i, '')}`;
62
+ }
63
+
62
64
  export function reviewTasksWithMetSignoff(tasks: readonly LedgerTask[]): LedgerTask[] {
63
65
  return tasks.filter((t) => t.status === 'review' && t.signoff?.state === 'met');
64
66
  }
@@ -129,16 +131,7 @@ export function buildNeedsYouItems(input: {
129
131
  }): NeedsYouItem[] {
130
132
  const items: NeedsYouItem[] = [];
131
133
  for (const t of input.tasks) {
132
- if (reviewNeedsOperator(t)) {
133
- const so = t.signoff as TaskSignoff;
134
- items.push({
135
- kind: 'review',
136
- id: `review:${t.id}`,
137
- title: t.title,
138
- detail: `${so.state}${so.summary ? `: ${so.summary}` : ''}`,
139
- taskId: t.id,
140
- });
141
- } else if (blockedNeedsOperator(t)) {
134
+ if (blockedNeedsOperator(t)) {
142
135
  items.push({
143
136
  kind: 'blocked',
144
137
  id: `blocked:${t.id}`,
@@ -162,7 +155,7 @@ export function buildNeedsYouItems(input: {
162
155
  }
163
156
 
164
157
  export function needsYouSummary(items: readonly NeedsYouItem[]) {
165
- const groups = (['question', 'blocked', 'asked', 'review'] as const)
158
+ const groups = (['question', 'blocked', 'asked'] as const)
166
159
  .map((kind) => ({ kind, count: items.filter((item) => item.kind === kind).length, ...NEEDS_YOU_KIND[kind] }))
167
160
  .filter((group) => group.count > 0);
168
161
  const stopped = groups.reduce((count, group) => count + (group.stopped ? group.count : 0), 0);
@@ -2,6 +2,16 @@ import { C } from './shared';
2
2
  import type { HelpEntry } from './shared';
3
3
 
4
4
  export const clusterHelp: Record<string, HelpEntry> = {
5
+ 'cluster.skills': {
6
+ title: 'Cluster skill pins',
7
+ body: <><p><C>SKILLS</C> beside EFFICIENCY shows configured cluster pins, including missing or off skills. Open it to see each skill's source and All members or role target. Full text is added each turn for matching members; new and replaced members inherit it.</p><p>Only the operator pins or unpins. Use Settings &gt; SKILLS to add a pin. Tab, cluster and matching role pins share 12 unique skills and 64 KiB of text.</p></>,
8
+ manualSection: 'skills',
9
+ },
10
+ 'cluster.skills.unpin': {
11
+ title: 'Unpin from the cluster',
12
+ body: <p>Removes this skill's cluster or role pin on the next turn. Direct tab pins stay in place. New and replaced members stop inheriting the removed pin. Running turns keep the instructions they started with.</p>,
13
+ manualSection: 'skills',
14
+ },
5
15
  // ----------------------------------------------------- CLUSTERS
6
16
  'cluster.tab': {
7
17
  title: 'Cluster tab',
@@ -312,7 +322,8 @@ export const clusterHelp: Record<string, HelpEntry> = {
312
322
  body: (
313
323
  <>
314
324
  <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>
325
+ <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>
326
+ <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
327
  <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>
317
328
  <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>
318
329
  <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>
@@ -550,19 +561,20 @@ export const clusterHelp: Record<string, HelpEntry> = {
550
561
  manualSection: 'cluster-member-replacement',
551
562
  },
552
563
  'cluster.replace.history': {
553
- title: 'Include prior workflow history',
564
+ title: 'Replacement history',
554
565
  body: (
555
566
  <>
556
- <p>
557
- OFF gives the replacement the same clean start as any fresh cluster
558
- worker. ON copies a transcript and action digest into one explicit,
559
- visible seed turn; it spends a model call and still does not reuse
560
- the old provider session.
561
- </p>
562
- <p>
563
- Leave this OFF for a genuinely context-blind replacement. It is
564
- unavailable for <C>ISOLATED</C>.
565
- </p>
567
+ <p><C>NO HISTORY</C> is the default. <C>RECENT HISTORY</C> copies the last
568
+ 10 whole turns; choose 1 to 50 within 128 KiB. Text stays word for
569
+ word, with receipts for tools and attached files.</p>
570
+ <p><C>FULL HISTORY</C> keeps the prior transcript and action digest when
571
+ they fit 512 KiB. Otherwise the newest whole turns that fit are copied
572
+ with tool/file receipts. The preview gives the count before REPLACE;
573
+ nothing is clipped. A zero-turn preview means no history is copied.</p>
574
+ <p>A partial copy adds one plain line to the new tab. Earlier history
575
+ stays in the previous conversation. A nonempty seed spends a model
576
+ call and never reuses the old provider session. History is unavailable
577
+ for <C>ISOLATED</C>.</p>
566
578
  </>
567
579
  ),
568
580
  manualSection: 'cluster-member-replacement',
@@ -591,6 +603,16 @@ export const clusterHelp: Record<string, HelpEntry> = {
591
603
  ),
592
604
  manualSection: 'cluster-member-replacement',
593
605
  },
606
+ 'cluster.replace.cancel': {
607
+ title: 'Cancel replacement',
608
+ body: (
609
+ <p>
610
+ Closes the REPLACE form without creating a worker or changing the
611
+ roster. Choices in the form are discarded.
612
+ </p>
613
+ ),
614
+ manualSection: 'cluster-member-replacement',
615
+ },
594
616
  'cluster.right-panel.member-focus': {
595
617
  title: 'Focus member',
596
618
  body: <p>Click a member&apos;s name to focus that worker: its chat and controls take over the detail pane. Its status (<C>IDLE</C> or <C>BUSY</C>) and work size sit beside the name. Use PROMOTE or BACK TO CLUSTER to move a member into its own tab and back.</p>,
@@ -743,7 +765,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
743
765
  through the operator path; a plain click (under a 4px drag threshold)
744
766
  opens the card drawer instead. Touch devices drag after a short press.
745
767
  Moving a card to <C>done</C> or <C>archived</C> confirms first: those
746
- terminal statuses stay operator-only.
768
+ direct terminal status changes stay operator-only.
747
769
  </p>
748
770
  ),
749
771
  manualSection: 'cluster-board',
@@ -792,7 +814,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
792
814
  Runs one deterministic dispatch sweep. Only <C>ready</C> tasks with an
793
815
  explicit idle assignee are claimed, moved to <C>in_progress</C>, given a
794
816
  run record, and sent to that member as a normal turn. Skips are logged
795
- with stable reasons; terminal statuses remain operator-only. The current assignment, dependencies, membership and idle worker are checked again before each claim.
817
+ with stable reasons; direct terminal status changes remain operator-only. The current assignment, dependencies, membership and idle worker are checked again before each claim.
796
818
  </p>
797
819
  ),
798
820
  manualSection: 'cluster-board',
@@ -871,9 +893,8 @@ export const clusterHelp: Record<string, HelpEntry> = {
871
893
  <p>
872
894
  Names each kind present: WAITING for a question that pauses an agent,
873
895
  BLOCKED for a task blocked on you, ASKED for a question the agent can
874
- continue past, and TO ACCEPT for a signed-off review task. Stopped
875
- kinds come first and use the warning colour. ASKED and TO ACCEPT are
876
- muted. Accepting is optional; nothing waits on it. The badge is
896
+ continue past. Stopped kinds come first and use the warning colour.
897
+ ASKED is muted. The badge is
877
898
  hidden when there are no items.
878
899
  </p>
879
900
  <p>
@@ -983,7 +1004,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
983
1004
  the existing RECHECK action. Accepting is optional; nothing waits on it.
984
1005
  Edit is below and closed initially for REVIEW only. Other statuses keep
985
1006
  their existing layout. Overview, links, dependencies, comments, recovery
986
- controls and run records remain available. Terminal statuses stay
1007
+ controls and run records remain available. Direct terminal status changes stay
987
1008
  operator-only through the existing ledger update path.
988
1009
  </p>
989
1010
  ),
@@ -1205,6 +1226,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
1205
1226
  <p><C>EFFICIENCY</C> guides coordination and testing each turn. Balanced is the new-cluster default: one test per real fault, at the lowest useful level; changed-area tests per change; the full check once before release. Browser tests cover real-screen journeys, one per journey, without layout, theme or size matrices.</p>
1206
1227
  <p>Balanced asks before adding suites, gates, test tooling or CI checks, using the operator-question tool when available. It aims for a full check of about ten minutes and proposes cuts if longer. Flaky tests are fixed or deleted, not retried. Lean runs changed-area tests and adds tests only for faults found; the full check runs only when requested. Thorough tests new behaviour and faults, neighbouring tests, and the full check before handover.</p>
1207
1228
  <p>Every level sorts product faults from test faults and states what a user would lose before a failure blocks work. Checks stay useful and green: product faults and faulty tests are fixed; cosmetic or momentary faults are noted. A faulty test is fixed or removed, never ignored, and releases do not go out over red checks. Project rules and plans take precedence when they ask for more or less testing. Safety checks, message guards, requested review and landing review stay unchanged.</p>
1229
+ <p>The Director keeps the 60-second wait rule. Other members and standalone agents wait for results their reports need, in steps of at most 120 seconds, checking messages between waits. They report when the result arrives. After a progress report or an answer while assigned work remains, non-Director members and standalone agents continue that work in the same turn; they end the turn only when it is done or with one stated blocker. If blocked or unable to finish within a reasonable time, they name the pending job and say that a nudge is needed before ending the turn. Automatic completion wakes are not added by this guidance.</p>
1208
1230
  <p><C>NOTE</C> adds a standing instruction of your own for the whole cluster. Style and note apply on each member&apos;s next turn. The message guard beside it is a separate setting.</p>
1209
1231
  </>
1210
1232
  ),
@@ -1303,7 +1325,7 @@ export const clusterHelp: Record<string, HelpEntry> = {
1303
1325
  },
1304
1326
  'cluster.auto-pickup-rule-limits': {
1305
1327
  title: 'Rule-based limits',
1306
- 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>,
1328
+ 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>,
1307
1329
  manualSection: 'cluster-auto-pickup',
1308
1330
  },
1309
1331
  'cluster.auto-pickup-rule-reset': {
@@ -1312,13 +1334,23 @@ export const clusterHelp: Record<string, HelpEntry> = {
1312
1334
  manualSection: 'cluster-auto-pickup',
1313
1335
  },
1314
1336
  'cluster.auto-pickup-rule-resume': {
1315
- title: 'Resume Rule-based pickup',
1316
- body: <p>Start a fresh arming budget after the total wake limit pauses pickup. The rolling hourly member limit still applies.</p>,
1337
+ title: 'Reset Rule-based wake budget',
1338
+ 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>,
1339
+ manualSection: 'cluster-auto-pickup',
1340
+ },
1341
+ 'cluster.auto-pickup-pause': {
1342
+ title: 'Pause AUTO-PICKUP',
1343
+ 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>,
1344
+ manualSection: 'cluster-auto-pickup',
1345
+ },
1346
+ 'cluster.auto-pickup-resume': {
1347
+ title: 'Resume AUTO-PICKUP',
1348
+ 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>,
1317
1349
  manualSection: 'cluster-auto-pickup',
1318
1350
  },
1319
1351
  'cluster.auto-pickup-off': {
1320
1352
  title: 'Turn AUTO-PICKUP off',
1321
- 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>,
1353
+ 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>,
1322
1354
  manualSection: 'cluster-auto-pickup',
1323
1355
  },
1324
1356
  'cluster.auto-pickup-dialog': {
@@ -2,6 +2,26 @@ import { C } from './shared';
2
2
  import type { HelpEntry } from './shared';
3
3
 
4
4
  export const composerHelp: Record<string, HelpEntry> = {
5
+ 'composer.transcript-worker': {
6
+ title: 'Copy turns to a new worker',
7
+ body: <><p>TRANSCRIPT can create a fresh Agent tab in any chosen working directory. In a cluster, choose NEW WORKER from the existing-member dialog. Copy 1-50 operator turns, default 3, with a typed preface before them. Spawn keeps its existing summary behavior.</p><p>Operator and visible agent text stay exact. Tools and attachments become receipts; files, hidden thinking and source pins are not copied. It starts a fresh provider conversation. The new folder's own settings apply.</p></>,
8
+ manualSection: 'transcript-worker',
9
+ },
10
+ 'composer.transcript-worker-preview': {
11
+ title: 'Preview the exact copied seed',
12
+ body: <><p>PREVIEW reads the stored source at a fixed point, including history this page has not loaded. Include the running partial turn only when selected. The preface has a 4 KiB limit; the complete seed has a 32 KiB limit. Nothing is silently clipped.</p><p>Review the byte count and selected turns. Editing turns or preface requires another preview. Source appends do not change an accepted snapshot; rewound or changed history requires refreshing it.</p></>,
13
+ manualSection: 'transcript-worker',
14
+ },
15
+ 'composer.transcript-worker-target': {
16
+ title: 'Choose the new worker',
17
+ body: <p>Choose an existing working directory, provider, model, effort and available account. Permission prompts start on. The worker gets a fresh provider conversation with no source cluster membership or standing pins. Existing sign-in files stay in place. Relative paths quoted in the seed belong to the source project.</p>,
18
+ manualSection: 'transcript-worker',
19
+ },
20
+ 'composer.transcript-worker-send': {
21
+ title: 'Send the seed as the first message',
22
+ body: <p>Creates one new worker from the accepted preview and starts its first message with that exact seed. The seed becomes saved conversation history in the chosen project. A stale preview or invalid destination leaves this dialog and its preface available to correct. Existing-member sends and Spawn keep their current behavior.</p>,
23
+ manualSection: 'transcript-worker',
24
+ },
5
25
  'composer.pending-edit': {
6
26
  title: 'Edit a pending message',
7
27
  body: <p>Remove this message from the queue and append its text to this tab&apos;s current draft. Its kind, attachments and selected skills return too. Skill choices merge with the tab&apos;s existing choices without duplicates and stay with that tab across navigation. Resending applies each selected skill once. The server confirms removal first. If delivery won the race, the draft stays unchanged and Arco says Already sent, nothing to edit. Reconnect before editing.</p>,
@@ -523,6 +543,7 @@ export const composerHelp: Record<string, HelpEntry> = {
523
543
  against the live session via a background pty).
524
544
  </p>
525
545
  <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>
546
+ <p>Claude Native limits an uncached reconstruction parse to 1 GiB. A valid summary cache with a small tail can resume a larger history. A refused or failed rebuild adds one notice: the agent continues without earlier context, so include any needed context again. Claude CLI loading handles 2 GB separately; a session-history notice means its saved conversation is intact and new messages will appear when readable. Earlier messages remain in the tab.</p>
526
547
  </>
527
548
  ),
528
549
  manualSection: 'context-window',
@@ -555,6 +576,7 @@ export const composerHelp: Record<string, HelpEntry> = {
555
576
  title: 'Current model & effort',
556
577
  body: (
557
578
  <>
579
+ <p>Codex also refreshes its cached catalog on the next request after its CLI changes the local model list. The browser polls every 30 minutes; reload the page to request it sooner without restarting Arco. The cold fallback includes GPT-6.2 Sol and Astra, with Sol as default; a live account catalog takes precedence.</p>
558
580
  <p>FABLE 5.2 offers low, medium, high, xhigh and max effort. Switching a tab from 5.2 to another model drops its earlier reasoning; the request still works.</p>
559
581
  <p>
560
582
  The model + effort used for the next turn. Live-editable from the
@@ -277,6 +277,11 @@ export const headerHelp: Record<string, HelpEntry> = {
277
277
  Release notes take keyboard focus on opening. Escape dismisses them;
278
278
  closing returns focus to the opening version control when available.
279
279
  </p>
280
+ <p>Click CURSOR to run <C>cursor-agent update</C> and recheck its version. CURSOR CHANGELOG opens the CLI notes separately. The flag reads the dated version from the public installer without running it. If metadata is unavailable or builds on the same date have unordered hashes, no flag appears; the update action still works. Arco never installs a second copy as a fallback.</p>
281
+ <p>llama.cpp checks recent published numeric build tags and flags an
282
+ older installed build. If a build cannot be read, no flag is shown.
283
+ Click its row for upstream releases and update manually; the check
284
+ does not install anything or load a model.</p>
280
285
  <p>Arco checks the matching npm platform binary before installing.
281
286
  An older npm CLI can use a pinned installable version; its self-updater
282
287
  waits when the latest build is missing. A working installation is
@@ -291,6 +296,17 @@ export const headerHelp: Record<string, HelpEntry> = {
291
296
  ),
292
297
  manualSection: 'provider-updates',
293
298
  },
299
+ 'header.cursor-changelog': {
300
+ title: 'CURSOR CHANGELOG',
301
+ manualSection: 'provider-updates',
302
+ body: (
303
+ <p>
304
+ Opens Cursor&apos;s CLI release notes in a new tab. It does not run an
305
+ update. Click the CURSOR version row to run <C>cursor-agent update</C>
306
+ and recheck the installed version.
307
+ </p>
308
+ ),
309
+ },
294
310
  'header.workflow-status': {
295
311
  title: 'Provider throttling',
296
312
  manualSection: 'header',
@@ -458,7 +474,9 @@ export const headerHelp: Record<string, HelpEntry> = {
458
474
  Otherwise it opens the running and latest known version, the last
459
475
  check time, <C>CHECK NOW</C>, a release-notes link and a link to
460
476
  Settings &gt; Advanced &gt; CLI and runtime versions. While an update
461
- runs it reads <C>UPDATING</C>. With release checks off it shows the
477
+ runs it reads <C>UPDATING</C>. A release found with <C>CHECK NOW</C>
478
+ appears here; select <C>UPDATE AND RESTART</C> to open confirmation.
479
+ With release checks off it shows the
462
480
  running version only.
463
481
  </p>
464
482
  </>
@@ -1946,6 +1946,7 @@ export const miscHelp: Record<string, HelpEntry> = {
1946
1946
  'diagnostics.check-row': {
1947
1947
  title: 'Diagnostic check',
1948
1948
  body: (
1949
+ <>
1949
1950
  <p>
1950
1951
  One probe result. The glyph + status colour is the verdict -{' '}
1951
1952
  <strong>OK</strong> (green) the thing works, <strong>WARN</strong>{' '}
@@ -1954,6 +1955,13 @@ export const miscHelp: Record<string, HelpEntry> = {
1954
1955
  <strong>SKIPPED</strong> (grey) not probed on this platform/config. Click
1955
1956
  to expand the detail line, any remediation hint, and the check id.
1956
1957
  </p>
1958
+ <p>
1959
+ Only run <C>arco setup --repair-native</C> when Arco reports that a native
1960
+ part will not load. A failed repair shows the failing build step and
1961
+ decisive error when available. Installed native parts stay unchanged
1962
+ and keep working. The build tools may be missing, out of date or broken.
1963
+ </p>
1964
+ </>
1957
1965
  ),
1958
1966
  manualSection: 'diagnostics',
1959
1967
  },
@@ -360,7 +360,7 @@ export const rightPanelHelp: Record<string, HelpEntry> = {
360
360
  },
361
361
  'rightpanel.config.auto-compaction': {
362
362
  title: 'Auto-compaction',
363
- body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
363
+ body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. After a successful between-turn automatic compaction, the next completed turn at or above the threshold can compact again. If three automatic compactions in a row each leave the context still at or above the threshold at turn end, a notice says automatic compaction keeps running and that large turns make that expected, otherwise raise the threshold or use HANDOFF. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
364
364
  manualSection: 'auto-handoff',
365
365
  },
366
366
  'rightpanel.config.claude-api-compaction': {