arco-workbench 0.1.4 → 0.1.5

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 (1363) hide show
  1. package/CONTRIBUTING.md +40 -8
  2. package/README.md +35 -21
  3. package/THIRD_PARTY_NOTICES +789 -0
  4. package/client/dist/assets/{PhosphorBackdrop-CNumba2X.js → PhosphorBackdrop-D6cbmLNY.js} +1 -1
  5. package/client/dist/assets/{ThemedBackgroundShaderImpl-DX5KyCt3.js → ThemedBackgroundShaderImpl-2dyerOi4.js} +1 -1
  6. package/client/dist/assets/{XtermView-DhS5g8Rt.js → XtermView-AIwo7O3D.js} +2 -2
  7. package/client/dist/assets/galleryEditor-DXAuxS8D.js +702 -0
  8. package/client/dist/assets/index-8j6p-pmQ.js +610 -0
  9. package/client/dist/assets/index-DD9kFGsF.css +1 -0
  10. package/client/dist/index.html +2 -2
  11. package/client/src/App.tsx +44 -55
  12. package/client/src/alerts/desktopAlerts.ts +20 -12
  13. package/client/src/alerts/desktopTest.ts +68 -0
  14. package/client/src/alerts/focusNotice.ts +16 -0
  15. package/client/src/buildCheck.ts +42 -2
  16. package/client/src/components/ArchitectureReviewDialog.tsx +98 -0
  17. package/client/src/components/ArtifactModal.tsx +4 -6
  18. package/client/src/components/ArtifactMoveDialog.tsx +11 -7
  19. package/client/src/components/AskUserQuestionNotice.tsx +2 -1
  20. package/client/src/components/AutomaticMessage.tsx +19 -0
  21. package/client/src/components/BriefControl.tsx +4 -2
  22. package/client/src/components/BrowserNotice.tsx +35 -0
  23. package/client/src/components/CatchMeUp.tsx +12 -6
  24. package/client/src/components/ChatMessage.tsx +15 -4
  25. package/client/src/components/ChatModeView.tsx +23 -16
  26. package/client/src/components/ChatPanel.tsx +33 -5
  27. package/client/src/components/CheckpointActions.tsx +91 -26
  28. package/client/src/components/ClusterActivityTab.tsx +4 -2
  29. package/client/src/components/ClusterMemberPicker.tsx +6 -3
  30. package/client/src/components/ClusterPlanTab.tsx +93 -62
  31. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +16 -5
  32. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +25 -14
  33. package/client/src/components/ClusterRightPanel/MailboxModal.tsx +7 -3
  34. package/client/src/components/ClusterRightPanel/MemberRow.tsx +5 -2
  35. package/client/src/components/ClusterRightPanel/MemberSettingsFields.tsx +104 -0
  36. package/client/src/components/ClusterRightPanel/MessageGuardControl.tsx +1 -1
  37. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +85 -7
  38. package/client/src/components/ClusterRightPanel/index.tsx +90 -36
  39. package/client/src/components/ClusterRightPanel/memberSettings.ts +52 -0
  40. package/client/src/components/ClusterRightPanel/panels.ts +18 -0
  41. package/client/src/components/ClusterRightPanel/types.ts +9 -10
  42. package/client/src/components/ClusterTab.tsx +252 -62
  43. package/client/src/components/ClusterTaskBoardTab.tsx +22 -598
  44. package/client/src/components/CommandPalette.tsx +17 -6
  45. package/client/src/components/ComputerAgentPicker.tsx +1 -1
  46. package/client/src/components/ComputerPanel.tsx +4 -2
  47. package/client/src/components/Connections/Connections.tsx +5 -2
  48. package/client/src/components/Connections/EndpointEditor.tsx +2 -2
  49. package/client/src/components/Connections/connections.css +1 -1
  50. package/client/src/components/Connections/model.ts +5 -1
  51. package/client/src/components/ContextMeter.tsx +15 -4
  52. package/client/src/components/DeepSeekControls.tsx +7 -6
  53. package/client/src/components/DiagnosticsTab.tsx +3 -2
  54. package/client/src/components/DialogShell.tsx +19 -11
  55. package/client/src/components/FileExplorer.tsx +8 -9
  56. package/client/src/components/FileViewerModal.tsx +37 -12
  57. package/client/src/components/FirstRun.tsx +8 -7
  58. package/client/src/components/GateApprovalNotice.tsx +4 -2
  59. package/client/src/components/GitDialog.tsx +1 -0
  60. package/client/src/components/GitHubPanel/CodeView.tsx +35 -23
  61. package/client/src/components/GitHubPanel/IssueView.tsx +6 -4
  62. package/client/src/components/GitHubPanel/PullView.tsx +7 -6
  63. package/client/src/components/GitHubPanel/RunView.tsx +7 -5
  64. package/client/src/components/GitHubPanel/shared.tsx +23 -8
  65. package/client/src/components/HandoffSeedPill.tsx +5 -5
  66. package/client/src/components/HandoffSource.tsx +54 -0
  67. package/client/src/components/HeaderAuthChip.tsx +22 -1
  68. package/client/src/components/HeaderDropdown.tsx +5 -0
  69. package/client/src/components/HeaderVersionBox.tsx +3 -0
  70. package/client/src/components/HistoryTab.tsx +59 -32
  71. package/client/src/components/Home/AddProject.tsx +1 -1
  72. package/client/src/components/Home/HomeView.tsx +28 -19
  73. package/client/src/components/Home/LocationDialog.tsx +1 -1
  74. package/client/src/components/Home/ProjectCard.tsx +5 -3
  75. package/client/src/components/Home/home.css +4 -4
  76. package/client/src/components/KeepButton.tsx +22 -0
  77. package/client/src/components/LlamacppCatalogEditor.tsx +12 -3
  78. package/client/src/components/LocalRuntimeStatus.tsx +54 -0
  79. package/client/src/components/MdTuneupDialog.tsx +3 -1
  80. package/client/src/components/MemberCard.tsx +44 -42
  81. package/client/src/components/MemberPane.tsx +11 -10
  82. package/client/src/components/ModelHealthPanel.tsx +5 -4
  83. package/client/src/components/NativeSubagentControls.tsx +64 -0
  84. package/client/src/components/NeedsYouBadge.tsx +13 -6
  85. package/client/src/components/NorthStarBar.tsx +5 -3
  86. package/client/src/components/NotificationCenter.tsx +14 -2
  87. package/client/src/components/NotificationChannelsSettings.tsx +38 -30
  88. package/client/src/components/NotificationToasts.tsx +6 -8
  89. package/client/src/components/PendingQuestionsButton.tsx +4 -1
  90. package/client/src/components/PlanBodyRenderer.tsx +1 -0
  91. package/client/src/components/PlanCandidateBanner.tsx +20 -3
  92. package/client/src/components/PlanReviewPicker.tsx +6 -3
  93. package/client/src/components/PreviewTab.tsx +62 -25
  94. package/client/src/components/PrimaryStatus.tsx +20 -74
  95. package/client/src/components/ProjectsSettings.tsx +28 -2
  96. package/client/src/components/ProviderReleasesModal.tsx +13 -3
  97. package/client/src/components/ProvidersPopover.tsx +81 -23
  98. package/client/src/components/PublicProjectBox.tsx +10 -6
  99. package/client/src/components/PurgeConversationModal.tsx +7 -2
  100. package/client/src/components/QueuedMessagesIndicator.tsx +42 -150
  101. package/client/src/components/Recall/RecallResultRow.tsx +4 -2
  102. package/client/src/components/Recall/RecallView.tsx +12 -9
  103. package/client/src/components/ResearchDialog.tsx +1 -1
  104. package/client/src/components/ReviewDialog.tsx +12 -5
  105. package/client/src/components/RightPanel/ActivityTab.tsx +32 -16
  106. package/client/src/components/RightPanel/CodebaseMemorySection.tsx +3 -1
  107. package/client/src/components/RightPanel/ConfigTab.tsx +129 -140
  108. package/client/src/components/RightPanel/GenesisTab.tsx +67 -24
  109. package/client/src/components/RightPanel/HandoffsTab.tsx +4 -0
  110. package/client/src/components/RightPanel/KnowledgeTab.tsx +1 -1
  111. package/client/src/components/RightPanel/LedgerTab.tsx +1 -1
  112. package/client/src/components/RightPanel/McpRegistrySection.tsx +7 -6
  113. package/client/src/components/RightPanel/MoveTargetModal.tsx +6 -3
  114. package/client/src/components/RightPanel/OutputsPanel.tsx +40 -17
  115. package/client/src/components/RightPanel/PlanTab.tsx +109 -111
  116. package/client/src/components/RightPanel/ReviewTab.tsx +7 -4
  117. package/client/src/components/RightPanel/UsageTab.tsx +18 -5
  118. package/client/src/components/RightPanel/format.ts +3 -1
  119. package/client/src/components/RightPanel/index.tsx +10 -2
  120. package/client/src/components/RightPanel/types.ts +4 -2
  121. package/client/src/components/RunAsPicker.tsx +5 -3
  122. package/client/src/components/RuntimeStateBanner.tsx +13 -3
  123. package/client/src/components/SavedClustersList.tsx +30 -3
  124. package/client/src/components/ServicesTab.tsx +17 -34
  125. package/client/src/components/SettingsPanel.tsx +101 -337
  126. package/client/src/components/ShortcutCheatSheet.tsx +6 -4
  127. package/client/src/components/SkillEditorDialog.tsx +2 -1
  128. package/client/src/components/SkillsSettings.tsx +307 -0
  129. package/client/src/components/SpawnDialog.tsx +3 -3
  130. package/client/src/components/SpawnSeedPill.tsx +5 -4
  131. package/client/src/components/StaleBuildBanner.tsx +3 -1
  132. package/client/src/components/StorageWarnings.tsx +3 -1
  133. package/client/src/components/SystemHeader.tsx +17 -10
  134. package/client/src/components/SystemModal.tsx +6 -5
  135. package/client/src/components/TabBar.tsx +20 -10
  136. package/client/src/components/TabContextMenu.tsx +36 -10
  137. package/client/src/components/TaskCard.tsx +16 -11
  138. package/client/src/components/TasksPanel.tsx +13 -11
  139. package/client/src/components/Terminal/XtermView.tsx +2 -0
  140. package/client/src/components/TerminalInput.tsx +248 -447
  141. package/client/src/components/TerminalSessions.tsx +1 -1
  142. package/client/src/components/TokenBadge.tsx +20 -17
  143. package/client/src/components/ToolCallPill.tsx +5 -3
  144. package/client/src/components/ToolboxMenu.tsx +5 -5
  145. package/client/src/components/TranscriptSendDialog.tsx +1 -1
  146. package/client/src/components/TurnTimer.tsx +21 -0
  147. package/client/src/components/UpdateAction.tsx +4 -1
  148. package/client/src/components/UsageBar.tsx +32 -126
  149. package/client/src/components/UserManual/index.tsx +6 -4
  150. package/client/src/components/VoiceMenu.tsx +5 -1
  151. package/client/src/components/VoiceSetupSettings.tsx +21 -11
  152. package/client/src/components/WorkerCard.tsx +7 -1
  153. package/client/src/components/WorkerDetailModal.tsx +7 -3
  154. package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +6 -6
  155. package/client/src/components/WorkflowCreator/ProjectPicker.tsx +13 -12
  156. package/client/src/components/WorkflowCreator/index.tsx +237 -78
  157. package/client/src/components/WorkflowCreator/types.ts +5 -3
  158. package/client/src/components/WorkflowStatusChip.tsx +93 -13
  159. package/client/src/components/WorkflowView.tsx +55 -24
  160. package/client/src/components/WorkspaceRename.tsx +11 -1
  161. package/client/src/components/activityTime.ts +4 -0
  162. package/client/src/components/compare/CompareDialog.tsx +6 -3
  163. package/client/src/components/compare/CompareOverlay.tsx +10 -3
  164. package/client/src/components/composer/submitComposer.ts +191 -0
  165. package/client/src/components/diff/ChangesPanel.tsx +4 -2
  166. package/client/src/components/diff/LiveChangesPanel.tsx +18 -2
  167. package/client/src/components/editor/CodeEditor.tsx +17 -2
  168. package/client/src/components/headerPopoverState.ts +15 -0
  169. package/client/src/components/help/DocViewer.tsx +6 -4
  170. package/client/src/components/help/HelpCard.tsx +3 -2
  171. package/client/src/components/help/HelpPopover.tsx +3 -1
  172. package/client/src/components/media/AudioEditor/AudioOpsPanel.tsx +16 -2
  173. package/client/src/components/media/DirectoryPicker.tsx +18 -11
  174. package/client/src/components/media/ImageEditor/ImageEditor.tsx +2 -2
  175. package/client/src/components/media/MediaModalHost.tsx +7 -15
  176. package/client/src/components/media/MediaStemsControls.tsx +16 -2
  177. package/client/src/components/media/VideoEditor/VideoOpsPanel.tsx +16 -2
  178. package/client/src/components/media/launchers.ts +4 -0
  179. package/client/src/components/plans/PlanChooser.tsx +135 -0
  180. package/client/src/components/plans/PlanRefsSection.tsx +47 -28
  181. package/client/src/components/plans/planBodySave.ts +17 -0
  182. package/client/src/components/plans/planRefs.ts +21 -11
  183. package/client/src/components/plans/startPlanGenesis.ts +37 -0
  184. package/client/src/components/primitives/Panel.tsx +1 -0
  185. package/client/src/components/providerPanelState.ts +17 -0
  186. package/client/src/components/settings/AppVersionSection.tsx +5 -5
  187. package/client/src/components/settings/AppWindowBrowserSection.tsx +88 -0
  188. package/client/src/components/settings/PreviewPortsSection.tsx +31 -0
  189. package/client/src/components/settings/SettingsLayout.tsx +1 -1
  190. package/client/src/components/settings/appWindowBrowserReport.ts +23 -0
  191. package/client/src/components/settings/navigation.ts +5 -1
  192. package/client/src/components/settings/settings.css +6 -0
  193. package/client/src/components/terminalInput/planDraft.ts +5 -5
  194. package/client/src/components/usageVisibility.ts +3 -2
  195. package/client/src/components/workSurface/WorkSurfaceControls.tsx +125 -10
  196. package/client/src/components/workSurface/workSurface.css +10 -2
  197. package/client/src/explorer/ArtifactsLens.tsx +53 -17
  198. package/client/src/explorer/ExplorerApp.tsx +8 -6
  199. package/client/src/explorer/PlansLens.tsx +80 -20
  200. package/client/src/explorer/RecentsLens.tsx +22 -61
  201. package/client/src/explorer/StorageLens.tsx +10 -4
  202. package/client/src/explorer/changedAttribution.ts +23 -0
  203. package/client/src/explorer/launch.ts +6 -3
  204. package/client/src/explorer/treeReveal.ts +21 -0
  205. package/client/src/explorer/types.ts +3 -3
  206. package/client/src/help/content/chat.tsx +17 -10
  207. package/client/src/help/content/cluster.tsx +135 -104
  208. package/client/src/help/content/composer.tsx +124 -43
  209. package/client/src/help/content/gitOps.tsx +19 -19
  210. package/client/src/help/content/github.tsx +9 -4
  211. package/client/src/help/content/header.tsx +70 -51
  212. package/client/src/help/content/media.tsx +20 -20
  213. package/client/src/help/content/misc.tsx +347 -163
  214. package/client/src/help/content/recall.tsx +12 -12
  215. package/client/src/help/content/rightPanel.tsx +199 -102
  216. package/client/src/help/content/settings.tsx +117 -44
  217. package/client/src/help/content/shared.tsx +1 -1
  218. package/client/src/help/content/tabbar.tsx +1 -1
  219. package/client/src/help/manualSections/actions.tsx +24 -17
  220. package/client/src/help/manualSections/chat.tsx +28 -5
  221. package/client/src/help/manualSections/clusters.tsx +193 -131
  222. package/client/src/help/manualSections/configuration.tsx +232 -48
  223. package/client/src/help/manualSections/deepseek.tsx +7 -5
  224. package/client/src/help/manualSections/gettingStarted.tsx +74 -12
  225. package/client/src/help/manualSections/maintenance.tsx +60 -13
  226. package/client/src/help/manualSections/media.tsx +14 -12
  227. package/client/src/help/manualSections/plans.tsx +108 -25
  228. package/client/src/help/manualSections/powerFeatures.tsx +145 -50
  229. package/client/src/help/manualSections/providers.tsx +237 -42
  230. package/client/src/help/manualSections/reference.tsx +19 -11
  231. package/client/src/help/manualSections/strata.tsx +6 -6
  232. package/client/src/help/manualSections/troubleshooting.tsx +14 -8
  233. package/client/src/help/manualSections/voice.tsx +12 -7
  234. package/client/src/help/manualSections/workflows.tsx +76 -19
  235. package/client/src/help/manualSections/workspace.tsx +173 -46
  236. package/client/src/help/shortcuts.ts +1 -0
  237. package/client/src/hooks/useWebSocket.ts +49 -25
  238. package/client/src/layout/SlideOut.tsx +77 -0
  239. package/client/src/layout/ToolbarOverflow.tsx +97 -0
  240. package/client/src/layout/keepInWindow.ts +216 -0
  241. package/client/src/layout/layoutRange.ts +129 -0
  242. package/client/src/main.tsx +2 -0
  243. package/client/src/phosphor-demo/Demo.tsx +5 -13
  244. package/client/src/phosphor-demo/demo.css +1 -1
  245. package/client/src/stores/appStore.ts +65 -14
  246. package/client/src/stores/appStore.types.ts +35 -16
  247. package/client/src/stores/docEditStore.ts +13 -21
  248. package/client/src/stores/draftStore.ts +28 -4
  249. package/client/src/stores/knowledgeDistillStore.ts +4 -2
  250. package/client/src/stores/mdTuneupStore.ts +10 -5
  251. package/client/src/stores/notificationChannelsStore.ts +21 -11
  252. package/client/src/stores/planGenesisStore.ts +67 -0
  253. package/client/src/stores/recallStore.ts +6 -0
  254. package/client/src/stores/terminalStore.ts +1 -1
  255. package/client/src/styles/global.css +72 -0
  256. package/client/src/styles/matrix.css +7 -0
  257. package/client/src/themes/apply.ts +3 -3
  258. package/client/src/themes/bootstrap.ts +3 -0
  259. package/client/src/utils/activeProject.ts +6 -0
  260. package/client/src/utils/activityPresentation.ts +51 -0
  261. package/client/src/utils/browserFamily.ts +22 -0
  262. package/client/src/utils/chatFileLinks.ts +3 -2
  263. package/client/src/utils/chatText.ts +14 -6
  264. package/client/src/utils/checkedJson.ts +11 -0
  265. package/client/src/utils/checkpointChanges.ts +18 -0
  266. package/client/src/utils/clusterCreation.ts +39 -0
  267. package/client/src/utils/clusterNudge.ts +31 -0
  268. package/client/src/utils/displayMessages.ts +45 -7
  269. package/client/src/utils/effortDefaults.ts +4 -3
  270. package/client/src/utils/format.ts +11 -4
  271. package/client/src/utils/gateArgs.ts +3 -2
  272. package/client/src/utils/handoffSeeds.ts +13 -0
  273. package/client/src/utils/historyEvents.ts +21 -12
  274. package/client/src/utils/homeModel.ts +19 -3
  275. package/client/src/utils/memberReviewScope.ts +6 -0
  276. package/client/src/utils/outputNavigation.ts +16 -0
  277. package/client/src/utils/outputStyleText.ts +8 -0
  278. package/client/src/utils/publicProject.ts +102 -28
  279. package/client/src/utils/queuedMessageEdit.ts +40 -0
  280. package/client/src/utils/requestGeneration.ts +8 -0
  281. package/client/src/utils/rewindSupport.ts +17 -0
  282. package/client/src/utils/settingsRequests.ts +36 -0
  283. package/client/src/utils/settingsResponse.ts +8 -0
  284. package/client/src/utils/wsSession.ts +12 -5
  285. package/client/src/vendor/odysseus-editor/editor/clipboard-and-drop.js +9 -9
  286. package/client/src/vendor/odysseus-editor/editor/keyboard-shortcuts.js +2 -2
  287. package/client/src/vendor/odysseus-editor/editor/state.js +8 -0
  288. package/client/src/vendor/odysseus-editor/editor.css +13 -5
  289. package/client/src/vendor/odysseus-editor/galleryEditor.d.ts +1 -1
  290. package/client/src/vendor/odysseus-editor/galleryEditor.js +16 -5
  291. package/client/src/voice/executor.ts +4 -3
  292. package/client/src/voice/panels.ts +14 -3
  293. package/client/src/voice/screen.ts +48 -6
  294. package/client/src/voice/setupAudio.ts +5 -3
  295. package/client/src/ws/handleServerMessage.ts +154 -36
  296. package/client/src/ws/operatorQuestions.ts +2 -2
  297. package/docs/ARCHITECTURE.md +95 -55
  298. package/docs/ARCHITECTURE_REVIEW.md +47 -0
  299. package/docs/BACKUP.md +5 -2
  300. package/docs/CHAT.md +48 -37
  301. package/docs/CHECKPOINTS.md +43 -16
  302. package/docs/CLIENT.md +218 -82
  303. package/docs/CODEX_GPT56_CLUSTER_INCOMPAT.md +1 -1
  304. package/docs/DEEPSEEK.md +6 -6
  305. package/docs/DIAGNOSTICS.md +12 -7
  306. package/docs/EXTENDING.md +52 -48
  307. package/docs/FEATURES.md +33 -20
  308. package/docs/GENESIS.md +42 -6
  309. package/docs/GETTING_STARTED.md +59 -25
  310. package/docs/GIT_WORKBENCH.md +15 -9
  311. package/docs/GLOSSARY.md +42 -40
  312. package/docs/GOTCHAS.md +70 -57
  313. package/docs/HTTP_API.md +145 -47
  314. package/docs/INDEX.md +3 -4
  315. package/docs/KNOWLEDGE.md +6 -4
  316. package/docs/LOCAL_SERVICES.md +6 -6
  317. package/docs/LSP.md +4 -3
  318. package/docs/MCP_REGISTRY.md +16 -12
  319. package/docs/MEDIA_STUDIO.md +23 -16
  320. package/docs/NOTIFICATIONS.md +50 -17
  321. package/docs/OPERATIONS.md +211 -120
  322. package/docs/OPERATOR_ACTIONS.md +43 -24
  323. package/docs/OUTPUTS.md +27 -10
  324. package/docs/PERSISTENCE.md +88 -34
  325. package/docs/PHOSPHOR_DEMO.md +4 -4
  326. package/docs/PLAN_OR_BOARD.md +9 -4
  327. package/docs/PREVIEW_VERIFY.md +10 -8
  328. package/docs/PRIMITIVES.md +90 -87
  329. package/docs/PROTOCOL.md +100 -29
  330. package/docs/PROTOCOL_CLUSTER.md +77 -14
  331. package/docs/PROTOCOL_PRIMITIVES.md +9 -9
  332. package/docs/PROVIDERS.md +471 -82
  333. package/docs/RECALL.md +17 -12
  334. package/docs/REMOTE_MANAGEMENT.md +69 -8
  335. package/docs/REPO_LAYOUT.md +1 -1
  336. package/docs/RESUME_INDEX.md +16 -17
  337. package/docs/SERVICE_MODE.md +45 -10
  338. package/docs/SETTINGS.md +58 -7
  339. package/docs/STORAGE_PLAN.md +54 -49
  340. package/docs/STRATA.md +4 -4
  341. package/docs/TASK_LEDGER.md +33 -12
  342. package/docs/TERMINAL.md +14 -12
  343. package/docs/THIRD_PARTY.md +1 -3
  344. package/docs/VOICE.md +15 -7
  345. package/native/darwin-arm64/manifest.json +1 -1
  346. package/native/win32-arm64/manifest.json +1 -1
  347. package/node_modules/@arco/shared/dist/clusterCoordination.js +15 -7
  348. package/node_modules/@arco/shared/dist/clusterRolePresets.js +8 -6
  349. package/node_modules/@arco/shared/dist/codexChat.d.ts +2 -0
  350. package/node_modules/@arco/shared/dist/codexChat.js +5 -0
  351. package/node_modules/@arco/shared/dist/folderName.d.ts +1 -0
  352. package/node_modules/@arco/shared/dist/folderName.js +18 -0
  353. package/node_modules/@arco/shared/dist/index.d.ts +6 -0
  354. package/node_modules/@arco/shared/dist/index.js +6 -0
  355. package/node_modules/@arco/shared/dist/localRuntimeStatus.d.ts +23 -0
  356. package/node_modules/@arco/shared/dist/localRuntimeStatus.js +47 -0
  357. package/node_modules/@arco/shared/dist/notificationTitle.d.ts +9 -0
  358. package/node_modules/@arco/shared/dist/notificationTitle.js +23 -0
  359. package/node_modules/@arco/shared/dist/outputStyle.d.ts +10 -0
  360. package/node_modules/@arco/shared/dist/outputStyle.js +28 -0
  361. package/node_modules/@arco/shared/dist/outputs.d.ts +1 -0
  362. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +2 -0
  363. package/node_modules/@arco/shared/dist/protocol/chat.d.ts +4 -0
  364. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +24 -2
  365. package/node_modules/@arco/shared/dist/protocol/checkpoints.js +1 -0
  366. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +9 -14
  367. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +21 -4
  368. package/node_modules/@arco/shared/dist/protocol/clusters.js +3 -3
  369. package/node_modules/@arco/shared/dist/protocol/connections.d.ts +2 -0
  370. package/node_modules/@arco/shared/dist/protocol/diagnostics.js +1 -1
  371. package/node_modules/@arco/shared/dist/protocol/genesis.d.ts +9 -0
  372. package/node_modules/@arco/shared/dist/protocol/mcp.d.ts +1 -0
  373. package/node_modules/@arco/shared/dist/protocol/mcp.js +8 -5
  374. package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +2 -0
  375. package/node_modules/@arco/shared/dist/protocol/models.d.ts +3 -1
  376. package/node_modules/@arco/shared/dist/protocol/models.js +19 -8
  377. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
  378. package/node_modules/@arco/shared/dist/protocol/notifications.js +15 -3
  379. package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -1
  380. package/node_modules/@arco/shared/dist/protocol/remoteManagement.d.ts +6 -0
  381. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +69 -10
  382. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +16 -4
  383. package/node_modules/@arco/shared/dist/protocol/settings.js +17 -1
  384. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +1 -0
  385. package/node_modules/@arco/shared/dist/protocol/usage.d.ts +1 -0
  386. package/node_modules/@arco/shared/dist/protocol/workers.d.ts +1 -0
  387. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +73 -14
  388. package/node_modules/@arco/shared/dist/protocol/workflows.js +66 -0
  389. package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +1 -1
  390. package/node_modules/@arco/shared/dist/publicGuardrails.js +1 -1
  391. package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +2 -0
  392. package/node_modules/@arco/shared/dist/runtimeVersions.js +13 -0
  393. package/node_modules/@arco/shared/dist/shellTool.d.ts +2 -0
  394. package/node_modules/@arco/shared/dist/shellTool.js +9 -0
  395. package/node_modules/@arco/shared/package.json +1 -1
  396. package/node_modules/xlsx/LICENSE +201 -0
  397. package/node_modules/xlsx/dist/cpexcel.js +1506 -0
  398. package/node_modules/xlsx/package.json +69 -0
  399. package/node_modules/xlsx/xlsx.js +28103 -0
  400. package/node_modules/xlsx/xlsx.mjs +28228 -0
  401. package/package.json +22 -3
  402. package/scripts/packaging/arco.mjs +3 -3
  403. package/scripts/packaging/browsers.mjs +366 -0
  404. package/scripts/packaging/launch.mjs +34 -20
  405. package/scripts/packaging/services.mjs +1 -1
  406. package/scripts/packaging/storage.mjs +39 -3
  407. package/server/dist/appBrowsers.d.ts +45 -0
  408. package/server/dist/appBrowsers.js +73 -0
  409. package/server/dist/architectureReview.d.ts +60 -0
  410. package/server/dist/architectureReview.js +347 -0
  411. package/server/dist/architectureSkill.d.ts +8 -0
  412. package/server/dist/architectureSkill.js +70 -0
  413. package/server/dist/arcoHome.d.ts +1 -0
  414. package/server/dist/arcoHome.js +43 -3
  415. package/server/dist/artifactCopy.d.ts +3 -0
  416. package/server/dist/artifactCopy.js +113 -36
  417. package/server/dist/atomicFile.d.ts +1 -1
  418. package/server/dist/atomicFile.js +6 -1
  419. package/server/dist/attention.d.ts +5 -1
  420. package/server/dist/attention.js +27 -16
  421. package/server/dist/auth.d.ts +1 -0
  422. package/server/dist/auth.js +19 -6
  423. package/server/dist/authLoginSession.d.ts +2 -0
  424. package/server/dist/authLoginSession.js +6 -1
  425. package/server/dist/boundedRead.d.ts +26 -0
  426. package/server/dist/boundedRead.js +246 -0
  427. package/server/dist/capabilities.d.ts +4 -1
  428. package/server/dist/capabilities.js +25 -8
  429. package/server/dist/catchUp.d.ts +7 -0
  430. package/server/dist/catchUp.js +20 -1
  431. package/server/dist/checkedFile.d.ts +5 -0
  432. package/server/dist/checkedFile.js +138 -0
  433. package/server/dist/claudeTransport.d.ts +7 -0
  434. package/server/dist/claudeTransport.js +14 -0
  435. package/server/dist/clusterAutoTurn.d.ts +7 -0
  436. package/server/dist/clusterAutoTurn.js +54 -7
  437. package/server/dist/clusterBusyReminder.d.ts +7 -0
  438. package/server/dist/clusterBusyReminder.js +45 -0
  439. package/server/dist/clusterDirector.js +6 -3
  440. package/server/dist/clusterIdleNudger.d.ts +6 -0
  441. package/server/dist/clusterIdleNudger.js +5 -0
  442. package/server/dist/clusterMailbox.d.ts +4 -2
  443. package/server/dist/clusterMailbox.js +104 -24
  444. package/server/dist/clusterPeerOps.js +9 -21
  445. package/server/dist/clusterPlanBridge.d.ts +6 -3
  446. package/server/dist/clusterPlanBridge.js +48 -45
  447. package/server/dist/clusterPresets.js +46 -32
  448. package/server/dist/clusterProgress.js +3 -0
  449. package/server/dist/clusterSnapshots.d.ts +1 -1
  450. package/server/dist/clusterSnapshots.js +17 -2
  451. package/server/dist/clusterStore.d.ts +3 -0
  452. package/server/dist/clusterStore.js +23 -13
  453. package/server/dist/clusterTurnTools.d.ts +4 -0
  454. package/server/dist/clusterTurnTools.js +9 -0
  455. package/server/dist/commandShell.d.ts +56 -0
  456. package/server/dist/commandShell.js +278 -0
  457. package/server/dist/compactionCounter.d.ts +6 -0
  458. package/server/dist/compactionCounter.js +73 -0
  459. package/server/dist/compactionReport.d.ts +8 -0
  460. package/server/dist/compactionReport.js +15 -0
  461. package/server/dist/contentSearch.js +16 -6
  462. package/server/dist/contextCalibrator.js +7 -2
  463. package/server/dist/contextEstimator.d.ts +4 -0
  464. package/server/dist/contextEstimator.js +76 -17
  465. package/server/dist/contextRefs.d.ts +1 -0
  466. package/server/dist/contextRefs.js +44 -9
  467. package/server/dist/conversationActivity.d.ts +3 -0
  468. package/server/dist/conversationActivity.js +27 -0
  469. package/server/dist/cursorUsage.js +15 -4
  470. package/server/dist/diagnostics/checks.js +4 -12
  471. package/server/dist/diagnostics/executableLookup.d.ts +2 -0
  472. package/server/dist/diagnostics/executableLookup.js +28 -0
  473. package/server/dist/diagnostics/modelHealth.js +3 -12
  474. package/server/dist/diagnostics/supportBundle.js +5 -13
  475. package/server/dist/eventLog.d.ts +19 -0
  476. package/server/dist/eventLog.js +299 -99
  477. package/server/dist/existingClusterMembers.d.ts +1 -0
  478. package/server/dist/existingClusterMembers.js +9 -0
  479. package/server/dist/explorerArtifacts.js +46 -12
  480. package/server/dist/explorerChanged.d.ts +7 -0
  481. package/server/dist/explorerChanged.js +116 -80
  482. package/server/dist/explorerDocs.d.ts +11 -0
  483. package/server/dist/explorerDocs.js +46 -48
  484. package/server/dist/explorerLaunch.d.ts +4 -0
  485. package/server/dist/explorerLaunch.js +9 -1
  486. package/server/dist/fileAccessPolicy.d.ts +21 -0
  487. package/server/dist/fileAccessPolicy.js +89 -1
  488. package/server/dist/fileContent/decodeSlots.d.ts +1 -0
  489. package/server/dist/fileContent/decodeSlots.js +50 -0
  490. package/server/dist/fileContent/detect.d.ts +2 -0
  491. package/server/dist/fileContent/detect.js +55 -0
  492. package/server/dist/fileContent/externalImage.d.ts +3 -0
  493. package/server/dist/fileContent/externalImage.js +68 -0
  494. package/server/dist/fileContent/icons.d.ts +4 -0
  495. package/server/dist/fileContent/icons.js +58 -0
  496. package/server/dist/fileContent/images.d.ts +15 -0
  497. package/server/dist/fileContent/images.js +182 -0
  498. package/server/dist/fileContent/legacyText.d.ts +3 -0
  499. package/server/dist/fileContent/legacyText.js +19 -0
  500. package/server/dist/fileContent/notebook.d.ts +2 -0
  501. package/server/dist/fileContent/notebook.js +54 -0
  502. package/server/dist/fileContent/office.d.ts +3 -0
  503. package/server/dist/fileContent/office.js +349 -0
  504. package/server/dist/fileContent/pdf.d.ts +2 -0
  505. package/server/dist/fileContent/pdf.js +76 -0
  506. package/server/dist/fileContent/pngRows.d.ts +4 -0
  507. package/server/dist/fileContent/pngRows.js +118 -0
  508. package/server/dist/fileContent/svg.d.ts +3 -0
  509. package/server/dist/fileContent/svg.js +60 -0
  510. package/server/dist/fileContent/types.d.ts +8 -0
  511. package/server/dist/fileContent/types.js +43 -0
  512. package/server/dist/fileContent/worker.d.ts +1 -0
  513. package/server/dist/fileContent/worker.js +68 -0
  514. package/server/dist/fileContent.d.ts +55 -0
  515. package/server/dist/fileContent.js +81 -0
  516. package/server/dist/fileContextReceipts.d.ts +12 -0
  517. package/server/dist/fileContextReceipts.js +53 -0
  518. package/server/dist/fileFetch.d.ts +17 -0
  519. package/server/dist/fileFetch.js +191 -0
  520. package/server/dist/fileVersion.d.ts +10 -0
  521. package/server/dist/fileVersion.js +43 -0
  522. package/server/dist/genesis/creative.js +28 -36
  523. package/server/dist/genesis/prompts.js +4 -0
  524. package/server/dist/genesis/savePlan.d.ts +5 -0
  525. package/server/dist/genesis/savePlan.js +49 -0
  526. package/server/dist/genesis/stages.js +4 -4
  527. package/server/dist/gitDiff.js +25 -5
  528. package/server/dist/gitSnapshots.d.ts +18 -0
  529. package/server/dist/gitSnapshots.js +280 -149
  530. package/server/dist/gitWorking.js +15 -13
  531. package/server/dist/github.js +5 -1
  532. package/server/dist/goalRun.d.ts +1 -1
  533. package/server/dist/goalRun.js +7 -5
  534. package/server/dist/handoffHistory.d.ts +26 -0
  535. package/server/dist/handoffHistory.js +80 -0
  536. package/server/dist/handoffHistoryProtocol.d.ts +59 -0
  537. package/server/dist/handoffHistoryProtocol.js +20 -0
  538. package/server/dist/handoffHistorySupport.d.ts +2 -0
  539. package/server/dist/handoffHistorySupport.js +11 -0
  540. package/server/dist/handoffHistoryTool.d.ts +29 -0
  541. package/server/dist/handoffHistoryTool.js +235 -0
  542. package/server/dist/handoffPrompts.js +6 -4
  543. package/server/dist/handoffReplay.d.ts +9 -0
  544. package/server/dist/handoffReplay.js +14 -0
  545. package/server/dist/handoffSeedCache.d.ts +3 -0
  546. package/server/dist/handoffSeedCache.js +26 -0
  547. package/server/dist/http/appBrowserRoutes.d.ts +3 -0
  548. package/server/dist/http/appBrowserRoutes.js +16 -0
  549. package/server/dist/http/architectureReviewRoutes.d.ts +3 -0
  550. package/server/dist/http/architectureReviewRoutes.js +117 -0
  551. package/server/dist/http/clusterRoutes.js +13 -1
  552. package/server/dist/http/clusterSnapshotRoutes.js +8 -3
  553. package/server/dist/http/connectionsRoutes.js +3 -1
  554. package/server/dist/http/diffRoutes.js +37 -3
  555. package/server/dist/http/explorerRoot.d.ts +3 -0
  556. package/server/dist/http/explorerRoot.js +22 -0
  557. package/server/dist/http/explorerRoutes.js +65 -12
  558. package/server/dist/http/fileRead.js +2 -3
  559. package/server/dist/http/fileWriteRoutes.js +4 -3
  560. package/server/dist/http/gitCompareRoutes.js +4 -6
  561. package/server/dist/http/gitDiffRoutes.js +3 -3
  562. package/server/dist/http/gitOpRoutes.js +3 -5
  563. package/server/dist/http/gitWorktreeRoutes.js +3 -3
  564. package/server/dist/http/handoffHistoryRoutes.d.ts +4 -0
  565. package/server/dist/http/handoffHistoryRoutes.js +59 -0
  566. package/server/dist/http/imageWriteRoutes.js +6 -2
  567. package/server/dist/http/knowledgeRoutes.js +2 -0
  568. package/server/dist/http/mediaOpsRoutes.js +2 -3
  569. package/server/dist/http/originGuard.d.ts +1 -1
  570. package/server/dist/http/originGuard.js +95 -12
  571. package/server/dist/http/outputRoutes.js +31 -6
  572. package/server/dist/http/projectBinding.d.ts +3 -0
  573. package/server/dist/http/projectBinding.js +133 -0
  574. package/server/dist/http/providerThrottleRoutes.d.ts +8 -0
  575. package/server/dist/http/providerThrottleRoutes.js +96 -0
  576. package/server/dist/http/publicProjectRoutes.js +50 -9
  577. package/server/dist/http/readConfinement.d.ts +2 -1
  578. package/server/dist/http/readConfinement.js +17 -15
  579. package/server/dist/http/router.js +224 -62
  580. package/server/dist/http/searchRoutes.js +4 -4
  581. package/server/dist/http/sessionTransport.d.ts +2 -0
  582. package/server/dist/http/sessionTransport.js +32 -0
  583. package/server/dist/http/skillManagementRoutes.d.ts +5 -0
  584. package/server/dist/http/skillManagementRoutes.js +166 -0
  585. package/server/dist/http/storageRoutes.js +20 -6
  586. package/server/dist/http/utilityAgentRoutes.js +27 -5
  587. package/server/dist/http/workflowDataRoutes.js +75 -14
  588. package/server/dist/http/writeConfinement.d.ts +5 -3
  589. package/server/dist/http/writeConfinement.js +37 -11
  590. package/server/dist/http/wsAuth.d.ts +3 -2
  591. package/server/dist/http/wsAuth.js +26 -8
  592. package/server/dist/imageTokens.d.ts +7 -0
  593. package/server/dist/imageTokens.js +85 -0
  594. package/server/dist/index.js +283 -178
  595. package/server/dist/inputDeliveryHistory.d.ts +21 -0
  596. package/server/dist/inputDeliveryHistory.js +146 -0
  597. package/server/dist/keepStore.d.ts +4 -0
  598. package/server/dist/keepStore.js +48 -0
  599. package/server/dist/knowledge/store.js +28 -20
  600. package/server/dist/legacyTarRestore.d.ts +1 -0
  601. package/server/dist/legacyTarRestore.js +240 -0
  602. package/server/dist/llamacppCatalog.d.ts +8 -1
  603. package/server/dist/llamacppCatalog.js +65 -13
  604. package/server/dist/localRuntimeStatus.d.ts +35 -0
  605. package/server/dist/localRuntimeStatus.js +136 -0
  606. package/server/dist/lsp/client.js +28 -9
  607. package/server/dist/lsp/servers.js +2 -2
  608. package/server/dist/managedPath.d.ts +2 -0
  609. package/server/dist/managedPath.js +47 -0
  610. package/server/dist/management/hubGuard.d.ts +23 -0
  611. package/server/dist/management/hubGuard.js +118 -0
  612. package/server/dist/management/hubLink.d.ts +4 -1
  613. package/server/dist/management/hubLink.js +8 -1
  614. package/server/dist/management/initHubLink.d.ts +12 -0
  615. package/server/dist/management/initHubLink.js +44 -22
  616. package/server/dist/manualCompactCapability.d.ts +2 -0
  617. package/server/dist/manualCompactCapability.js +7 -0
  618. package/server/dist/mcp/arcoMcpServer.js +4 -0
  619. package/server/dist/mcp/client.d.ts +4 -4
  620. package/server/dist/mcp/client.js +31 -10
  621. package/server/dist/mcp/clusterMcpLoopback.d.ts +4 -0
  622. package/server/dist/mcp/clusterMcpLoopback.js +21 -1
  623. package/server/dist/mcp/clusterMcpTools.js +25 -26
  624. package/server/dist/mcp/fileContent.d.ts +8 -0
  625. package/server/dist/mcp/fileContent.js +55 -0
  626. package/server/dist/mcp/fileMcpServer.d.ts +1 -0
  627. package/server/dist/mcp/fileMcpServer.js +13 -0
  628. package/server/dist/mcp/fileMcpTools.d.ts +2 -0
  629. package/server/dist/mcp/fileMcpTools.js +54 -0
  630. package/server/dist/mcp/handoffHistoryMcpTools.d.ts +3 -0
  631. package/server/dist/mcp/handoffHistoryMcpTools.js +27 -0
  632. package/server/dist/mcp/mcpConfigWriter.d.ts +5 -0
  633. package/server/dist/mcp/mcpConfigWriter.js +44 -12
  634. package/server/dist/mcp/planMcpTools.d.ts +6 -14
  635. package/server/dist/mcp/planMcpTools.js +6 -250
  636. package/server/dist/mcp/planReadMcpServer.d.ts +1 -0
  637. package/server/dist/mcp/planReadMcpServer.js +19 -0
  638. package/server/dist/mcp/registry.js +44 -38
  639. package/server/dist/mcp/registryWiring.js +4 -5
  640. package/server/dist/media/demucs.d.ts +5 -0
  641. package/server/dist/media/demucs.js +16 -4
  642. package/server/dist/media/ffmpeg.js +24 -16
  643. package/server/dist/media/scratch.js +24 -9
  644. package/server/dist/noticeSource.d.ts +2 -0
  645. package/server/dist/noticeSource.js +11 -0
  646. package/server/dist/notifications.d.ts +1 -0
  647. package/server/dist/notifications.js +7 -3
  648. package/server/dist/npmPlatformResolve.d.ts +9 -3
  649. package/server/dist/npmPlatformResolve.js +24 -5
  650. package/server/dist/ntfyTransport.d.ts +2 -1
  651. package/server/dist/ntfyTransport.js +15 -4
  652. package/server/dist/outputGrants.d.ts +9 -0
  653. package/server/dist/outputGrants.js +63 -0
  654. package/server/dist/outputs.js +78 -13
  655. package/server/dist/peerRecipientContext.js +22 -5
  656. package/server/dist/planStore.d.ts +11 -2
  657. package/server/dist/planStore.js +236 -64
  658. package/server/dist/planTools.d.ts +41 -0
  659. package/server/dist/planTools.js +259 -0
  660. package/server/dist/previewAutoDetect.js +31 -23
  661. package/server/dist/previewPortConfiguration.d.ts +2 -0
  662. package/server/dist/previewPortConfiguration.js +32 -0
  663. package/server/dist/previewPorts.d.ts +1 -0
  664. package/server/dist/previewPorts.js +3 -0
  665. package/server/dist/previewProxy.d.ts +30 -9
  666. package/server/dist/previewProxy.js +226 -183
  667. package/server/dist/primaryBackgroundTracker.d.ts +15 -2
  668. package/server/dist/primaryBackgroundTracker.js +172 -63
  669. package/server/dist/primitives/exportContext.d.ts +3 -0
  670. package/server/dist/primitives/exportContext.js +77 -15
  671. package/server/dist/primitives/localFileContext.d.ts +3 -0
  672. package/server/dist/primitives/localFileContext.js +38 -0
  673. package/server/dist/primitives/reviewContent.d.ts +2 -0
  674. package/server/dist/primitives/reviewContent.js +53 -6
  675. package/server/dist/primitives/runCompare.js +1 -1
  676. package/server/dist/primitives/runDocEdit.js +1 -1
  677. package/server/dist/primitives/runMdTuneup.d.ts +2 -1
  678. package/server/dist/primitives/runMdTuneup.js +20 -34
  679. package/server/dist/primitives/runResearch.js +1 -1
  680. package/server/dist/primitives/runReviewer.d.ts +2 -0
  681. package/server/dist/primitives/runReviewer.js +5 -2
  682. package/server/dist/primitives/seedWorker.d.ts +11 -2
  683. package/server/dist/primitives/seedWorker.js +26 -12
  684. package/server/dist/project/orchestrationProposals.d.ts +1 -0
  685. package/server/dist/project/orchestrationProposals.js +5 -1
  686. package/server/dist/project/taskLedger.d.ts +1 -0
  687. package/server/dist/project/taskLedger.js +17 -11
  688. package/server/dist/projectGlob.d.ts +1 -0
  689. package/server/dist/projectGlob.js +9 -0
  690. package/server/dist/projectIgnore.d.ts +1 -0
  691. package/server/dist/projectIgnore.js +24 -0
  692. package/server/dist/projectScan.d.ts +24 -0
  693. package/server/dist/projectScan.js +101 -0
  694. package/server/dist/projectStateIgnore.d.ts +13 -0
  695. package/server/dist/projectStateIgnore.js +36 -1
  696. package/server/dist/projects.d.ts +11 -3
  697. package/server/dist/projects.js +141 -40
  698. package/server/dist/prompts.js +7 -8
  699. package/server/dist/proportionateTestingSkill.d.ts +7 -0
  700. package/server/dist/proportionateTestingSkill.js +32 -0
  701. package/server/dist/providers/attachmentLabels.d.ts +4 -0
  702. package/server/dist/providers/attachmentLabels.js +9 -0
  703. package/server/dist/providers/attachments.d.ts +1 -3
  704. package/server/dist/providers/attachments.js +58 -173
  705. package/server/dist/providers/claude-native/apiEndpoint.d.ts +2 -0
  706. package/server/dist/providers/claude-native/apiEndpoint.js +8 -0
  707. package/server/dist/providers/claude-native/appendOnlyPrefix.js +21 -1
  708. package/server/dist/providers/claude-native/catalog.js +17 -15
  709. package/server/dist/providers/claude-native/contentBlocks.d.ts +22 -2
  710. package/server/dist/providers/claude-native/contentBlocks.js +31 -8
  711. package/server/dist/providers/claude-native/contextBudget.d.ts +0 -4
  712. package/server/dist/providers/claude-native/contextBudget.js +0 -2
  713. package/server/dist/providers/claude-native/editApply.js +6 -1
  714. package/server/dist/providers/claude-native/fileContent.d.ts +15 -0
  715. package/server/dist/providers/claude-native/fileContent.js +120 -0
  716. package/server/dist/providers/claude-native/filterConfigs/bash-cargo-test.js +2 -0
  717. package/server/dist/providers/claude-native/filterConfigs/bash-jest-vitest.js +2 -0
  718. package/server/dist/providers/claude-native/filterConfigs/bash-pytest.js +2 -0
  719. package/server/dist/providers/claude-native/filterConfigs/index.js +2 -1
  720. package/server/dist/providers/claude-native/foldDigest.js +10 -2
  721. package/server/dist/providers/claude-native/gateReview.d.ts +1 -1
  722. package/server/dist/providers/claude-native/gateReview.js +0 -0
  723. package/server/dist/providers/claude-native/hookIf.d.ts +28 -0
  724. package/server/dist/providers/claude-native/hookIf.js +590 -0
  725. package/server/dist/providers/claude-native/hooks.d.ts +77 -7
  726. package/server/dist/providers/claude-native/hooks.js +344 -52
  727. package/server/dist/providers/claude-native/imageRead.d.ts +15 -0
  728. package/server/dist/providers/claude-native/imageRead.js +108 -0
  729. package/server/dist/providers/claude-native/index.d.ts +4 -1
  730. package/server/dist/providers/claude-native/index.js +32 -2
  731. package/server/dist/providers/claude-native/mediaLimits.d.ts +6 -0
  732. package/server/dist/providers/claude-native/mediaLimits.js +15 -0
  733. package/server/dist/providers/claude-native/mediaRetention.d.ts +11 -0
  734. package/server/dist/providers/claude-native/mediaRetention.js +66 -0
  735. package/server/dist/providers/claude-native/mediaRetirementNotice.d.ts +1 -0
  736. package/server/dist/providers/claude-native/mediaRetirementNotice.js +12 -0
  737. package/server/dist/providers/claude-native/modelParams.d.ts +6 -0
  738. package/server/dist/providers/claude-native/modelParams.js +21 -3
  739. package/server/dist/providers/claude-native/oauth.js +9 -8
  740. package/server/dist/providers/claude-native/outputAccumulator.d.ts +2 -0
  741. package/server/dist/providers/claude-native/outputAccumulator.js +29 -18
  742. package/server/dist/providers/claude-native/peerTools.js +3 -158
  743. package/server/dist/providers/claude-native/pretoolGuards.js +92 -9
  744. package/server/dist/providers/claude-native/registryTools.js +4 -2
  745. package/server/dist/providers/claude-native/resumeSummary.d.ts +23 -2
  746. package/server/dist/providers/claude-native/resumeSummary.js +135 -28
  747. package/server/dist/providers/claude-native/sandboxExecutor.js +26 -19
  748. package/server/dist/providers/claude-native/taskAdmission.d.ts +21 -0
  749. package/server/dist/providers/claude-native/taskAdmission.js +75 -0
  750. package/server/dist/providers/claude-native/toolChecks.d.ts +38 -0
  751. package/server/dist/providers/claude-native/toolChecks.js +96 -0
  752. package/server/dist/providers/claude-native/toolPosture.js +5 -3
  753. package/server/dist/providers/claude-native/toolResultEviction.d.ts +4 -3
  754. package/server/dist/providers/claude-native/toolResultEviction.js +18 -29
  755. package/server/dist/providers/claude-native/tools.d.ts +17 -4
  756. package/server/dist/providers/claude-native/tools.js +248 -135
  757. package/server/dist/providers/claude-native/usageContext.d.ts +30 -0
  758. package/server/dist/providers/claude-native/usageContext.js +70 -0
  759. package/server/dist/providers/claude-native/wireFingerprint.d.ts +2 -2
  760. package/server/dist/providers/claude-native/wireFingerprint.js +2 -2
  761. package/server/dist/providers/claude-native/worker.d.ts +63 -1
  762. package/server/dist/providers/claude-native/worker.js +1103 -324
  763. package/server/dist/providers/claude-native/workerHelpers.d.ts +13 -0
  764. package/server/dist/providers/claude-native/workerHelpers.js +117 -6
  765. package/server/dist/providers/claude-native/workspaceFacts.js +2 -2
  766. package/server/dist/providers/claude.d.ts +1 -0
  767. package/server/dist/providers/claude.js +69 -85
  768. package/server/dist/providers/clusterTaskToolDefinitions.d.ts +11 -0
  769. package/server/dist/providers/clusterTaskToolDefinitions.js +161 -0
  770. package/server/dist/providers/codex-appserver/catalog.js +26 -20
  771. package/server/dist/providers/codex-appserver/index.js +10 -3
  772. package/server/dist/providers/codex-appserver/jsonRpc.d.ts +2 -1
  773. package/server/dist/providers/codex-appserver/jsonRpc.js +11 -3
  774. package/server/dist/providers/codex-appserver/worker.d.ts +5 -0
  775. package/server/dist/providers/codex-appserver/worker.js +119 -81
  776. package/server/dist/providers/codex.js +55 -58
  777. package/server/dist/providers/codexChatBoundary.d.ts +11 -0
  778. package/server/dist/providers/codexChatBoundary.js +60 -0
  779. package/server/dist/providers/codexCodeMode.js +2 -2
  780. package/server/dist/providers/codexContextWindow.js +2 -2
  781. package/server/dist/providers/codexHome.d.ts +1 -0
  782. package/server/dist/providers/codexHome.js +6 -0
  783. package/server/dist/providers/codexImageTool.d.ts +6 -0
  784. package/server/dist/providers/codexImageTool.js +21 -0
  785. package/server/dist/providers/codexVersion.d.ts +1 -0
  786. package/server/dist/providers/codexVersion.js +14 -0
  787. package/server/dist/providers/codexWebSearch.d.ts +2 -0
  788. package/server/dist/providers/codexWebSearch.js +4 -0
  789. package/server/dist/providers/cursor/acpJsonRpc.d.ts +1 -0
  790. package/server/dist/providers/cursor/acpJsonRpc.js +3 -1
  791. package/server/dist/providers/cursor/authState.d.ts +10 -0
  792. package/server/dist/providers/cursor/authState.js +78 -0
  793. package/server/dist/providers/cursor/catalog.js +22 -14
  794. package/server/dist/providers/cursor/chatSandbox.d.ts +11 -0
  795. package/server/dist/providers/cursor/chatSandbox.js +81 -0
  796. package/server/dist/providers/cursor/filePlugin.d.ts +4 -0
  797. package/server/dist/providers/cursor/filePlugin.js +31 -0
  798. package/server/dist/providers/cursor/index.d.ts +1 -0
  799. package/server/dist/providers/cursor/index.js +30 -4
  800. package/server/dist/providers/cursor/modelMap.d.ts +35 -0
  801. package/server/dist/providers/cursor/modelMap.js +180 -0
  802. package/server/dist/providers/cursor/print.js +95 -30
  803. package/server/dist/providers/cursor/worker.d.ts +4 -1
  804. package/server/dist/providers/cursor/worker.js +169 -89
  805. package/server/dist/providers/errorClassifier.js +6 -2
  806. package/server/dist/providers/handoffHistoryBinding.d.ts +11 -0
  807. package/server/dist/providers/handoffHistoryBinding.js +43 -0
  808. package/server/dist/providers/index.d.ts +1 -1
  809. package/server/dist/providers/index.js +10 -5
  810. package/server/dist/providers/llamacpp.d.ts +1 -0
  811. package/server/dist/providers/llamacpp.js +102 -192
  812. package/server/dist/providers/llamacppManager.d.ts +5 -0
  813. package/server/dist/providers/llamacppManager.js +68 -32
  814. package/server/dist/providers/llamacppVersion.d.ts +1 -0
  815. package/server/dist/providers/llamacppVersion.js +5 -0
  816. package/server/dist/providers/lmstudio.d.ts +3 -3
  817. package/server/dist/providers/lmstudio.js +133 -207
  818. package/server/dist/providers/localFileMedia.d.ts +25 -0
  819. package/server/dist/providers/localFileMedia.js +302 -0
  820. package/server/dist/providers/localMcp.d.ts +17 -0
  821. package/server/dist/providers/localMcp.js +85 -0
  822. package/server/dist/providers/localShellLifecycle.d.ts +7 -0
  823. package/server/dist/providers/localShellLifecycle.js +33 -0
  824. package/server/dist/providers/localToolDispatch.d.ts +28 -0
  825. package/server/dist/providers/localToolDispatch.js +90 -0
  826. package/server/dist/providers/ollama.d.ts +2 -1
  827. package/server/dist/providers/ollama.js +180 -181
  828. package/server/dist/providers/ollamaDurableCompaction.js +5 -4
  829. package/server/dist/providers/ollamaExecutionHistory.d.ts +1 -1
  830. package/server/dist/providers/ollamaExecutionHistory.js +55 -14
  831. package/server/dist/providers/ollamaFencedTools.js +10 -11
  832. package/server/dist/providers/ollamaResilience.js +9 -13
  833. package/server/dist/providers/ollamaTokens.js +3 -4
  834. package/server/dist/providers/ollamaToolSubset.d.ts +2 -0
  835. package/server/dist/providers/ollamaToolSubset.js +11 -40
  836. package/server/dist/providers/ollamaTools.d.ts +13 -0
  837. package/server/dist/providers/ollamaTools.js +225 -219
  838. package/server/dist/providers/outputStyle.d.ts +2 -1
  839. package/server/dist/providers/outputStyle.js +70 -76
  840. package/server/dist/providers/providerFileContent.d.ts +40 -0
  841. package/server/dist/providers/providerFileContent.js +151 -0
  842. package/server/dist/providers/renderedTranscript.d.ts +1 -0
  843. package/server/dist/providers/renderedTranscript.js +3 -0
  844. package/server/dist/providers/requestDeadline.d.ts +1 -0
  845. package/server/dist/providers/requestDeadline.js +26 -0
  846. package/server/dist/providers/sessionScope.d.ts +2 -0
  847. package/server/dist/providers/sessionScope.js +8 -0
  848. package/server/dist/providers/types.d.ts +1 -0
  849. package/server/dist/publicProject.d.ts +10 -2
  850. package/server/dist/publicProject.js +59 -13
  851. package/server/dist/publicProjectChoice.d.ts +4 -0
  852. package/server/dist/publicProjectChoice.js +46 -0
  853. package/server/dist/quota.d.ts +10 -7
  854. package/server/dist/quota.js +49 -19
  855. package/server/dist/recall/search.js +9 -32
  856. package/server/dist/recall/transcriptSearch.d.ts +4 -0
  857. package/server/dist/recall/transcriptSearch.js +29 -0
  858. package/server/dist/recentFilesLedger.js +9 -7
  859. package/server/dist/recentProjectActivity.d.ts +11 -0
  860. package/server/dist/recentProjectActivity.js +69 -0
  861. package/server/dist/scanDeadline.d.ts +4 -0
  862. package/server/dist/scanDeadline.js +48 -0
  863. package/server/dist/searchText.d.ts +1 -0
  864. package/server/dist/searchText.js +22 -0
  865. package/server/dist/server/broadcast.d.ts +2 -2
  866. package/server/dist/server/broadcast.js +130 -58
  867. package/server/dist/sessionJsonl.js +45 -19
  868. package/server/dist/settings.d.ts +6 -1
  869. package/server/dist/settings.js +183 -56
  870. package/server/dist/skillManagement.d.ts +125 -0
  871. package/server/dist/skillManagement.js +709 -0
  872. package/server/dist/skillMutation.d.ts +1 -0
  873. package/server/dist/skillMutation.js +6 -0
  874. package/server/dist/skills.d.ts +75 -1
  875. package/server/dist/skills.js +254 -75
  876. package/server/dist/smartPickup.d.ts +1 -0
  877. package/server/dist/smartPickup.js +2 -1
  878. package/server/dist/smartPickupAdapters.d.ts +1 -0
  879. package/server/dist/smartPickupAdapters.js +31 -8
  880. package/server/dist/storageActions.d.ts +2 -2
  881. package/server/dist/storageArchive.js +55 -24
  882. package/server/dist/storageRoot.d.ts +5 -0
  883. package/server/dist/storageRoot.js +38 -0
  884. package/server/dist/storageTurnWatch.d.ts +6 -0
  885. package/server/dist/storageTurnWatch.js +36 -0
  886. package/server/dist/taskDispatcher.js +69 -41
  887. package/server/dist/templates/store.js +75 -59
  888. package/server/dist/terminal/ptyManager.d.ts +3 -1
  889. package/server/dist/terminal/ptyManager.js +44 -37
  890. package/server/dist/terminal/ptyPidRegistry.d.ts +4 -2
  891. package/server/dist/terminal/ptyPidRegistry.js +9 -63
  892. package/server/dist/thirdPartySkills.d.ts +4 -0
  893. package/server/dist/thirdPartySkills.js +80 -0
  894. package/server/dist/toolPath.d.ts +1 -0
  895. package/server/dist/toolPath.js +38 -0
  896. package/server/dist/toolboxWorkflow.js +2 -1
  897. package/server/dist/uploadImages.d.ts +6 -0
  898. package/server/dist/uploadImages.js +155 -0
  899. package/server/dist/voice/computerContext.js +2 -0
  900. package/server/dist/voice/conditionSchema.d.ts +1 -0
  901. package/server/dist/voice/conditionSchema.js +3 -1
  902. package/server/dist/voice/conditions.js +1 -1
  903. package/server/dist/workers/StreamParser.d.ts +3 -0
  904. package/server/dist/workers/StreamParser.js +45 -11
  905. package/server/dist/workers/WorkerManager.d.ts +9 -2
  906. package/server/dist/workers/WorkerManager.js +18 -18
  907. package/server/dist/workers/durablePidRegistry.d.ts +53 -0
  908. package/server/dist/workers/durablePidRegistry.js +289 -0
  909. package/server/dist/workers/limits.js +1 -1
  910. package/server/dist/workers/pidRegistry.d.ts +6 -9
  911. package/server/dist/workers/pidRegistry.js +13 -101
  912. package/server/dist/workers/processActivity.d.ts +6 -0
  913. package/server/dist/workers/processActivity.js +13 -0
  914. package/server/dist/workers/processKill.d.ts +30 -0
  915. package/server/dist/workers/processKill.js +174 -0
  916. package/server/dist/workers/processStartTime.d.ts +21 -5
  917. package/server/dist/workers/processStartTime.js +127 -50
  918. package/server/dist/workflowMeta.d.ts +15 -12
  919. package/server/dist/workflowMeta.js +42 -10
  920. package/server/dist/workflowStore.d.ts +1 -0
  921. package/server/dist/workflowStore.js +194 -23
  922. package/server/dist/workflows/modelTitles.js +4 -3
  923. package/server/dist/workflows/sessionIndex.d.ts +2 -0
  924. package/server/dist/workflows/sessionIndex.js +24 -2
  925. package/server/dist/workflows/types.d.ts +15 -5
  926. package/server/dist/workspace.d.ts +1 -0
  927. package/server/dist/workspace.js +5 -0
  928. package/server/dist/ws/afterTurn.d.ts +9 -0
  929. package/server/dist/ws/afterTurn.js +25 -0
  930. package/server/dist/ws/clusterHandlers.d.ts +7 -2
  931. package/server/dist/ws/clusterHandlers.js +361 -407
  932. package/server/dist/ws/clusterMembers.d.ts +42 -0
  933. package/server/dist/ws/clusterMembers.js +165 -0
  934. package/server/dist/ws/compactHandlers.js +38 -28
  935. package/server/dist/ws/gateHandlers.js +2 -1
  936. package/server/dist/ws/genesisHandlers.js +171 -116
  937. package/server/dist/ws/handoffHandlers.d.ts +3 -1
  938. package/server/dist/ws/handoffHandlers.js +367 -196
  939. package/server/dist/ws/previewCaptureHandlers.js +1 -4
  940. package/server/dist/ws/taskLedgerHandlers.d.ts +6 -1
  941. package/server/dist/ws/taskLedgerHandlers.js +28 -12
  942. package/server/dist/ws/taskLifecycle.d.ts +15 -0
  943. package/server/dist/ws/taskLifecycle.js +39 -0
  944. package/server/dist/ws/turnEngine.d.ts +27 -8
  945. package/server/dist/ws/turnEngine.js +1790 -1637
  946. package/server/dist/ws/turnPrompt.d.ts +17 -0
  947. package/server/dist/ws/turnPrompt.js +47 -0
  948. package/server/dist/ws/turnSettings.d.ts +41 -0
  949. package/server/dist/ws/turnSettings.js +61 -0
  950. package/server/dist/ws/updatePrimaryConfig.js +63 -40
  951. package/server/dist/ws/workflowHandlers.d.ts +2 -1
  952. package/server/dist/ws/workflowHandlers.js +220 -180
  953. package/server/package.json +1 -1
  954. package/server/src/appBrowsers.ts +95 -0
  955. package/server/src/architectureReview.ts +327 -0
  956. package/server/src/architectureSkill.ts +71 -0
  957. package/server/src/arcoHome.ts +42 -3
  958. package/server/src/artifactCopy.ts +90 -24
  959. package/server/src/atomicFile.ts +6 -1
  960. package/server/src/attention.ts +24 -17
  961. package/server/src/auth.ts +20 -6
  962. package/server/src/authLoginSession.ts +7 -2
  963. package/server/src/boundedRead.ts +172 -0
  964. package/server/src/capabilities.ts +26 -9
  965. package/server/src/catchUp.ts +19 -2
  966. package/server/src/checkedFile.ts +90 -0
  967. package/server/src/claudeTransport.ts +14 -0
  968. package/server/src/clusterAutoTurn.ts +55 -7
  969. package/server/src/clusterBusyReminder.ts +45 -0
  970. package/server/src/clusterDirector.ts +6 -3
  971. package/server/src/clusterIdleNudger.ts +6 -0
  972. package/server/src/clusterMailbox.ts +96 -26
  973. package/server/src/clusterPeerOps.ts +6 -19
  974. package/server/src/clusterPlanBridge.ts +37 -45
  975. package/server/src/clusterPresets.ts +44 -31
  976. package/server/src/clusterProgress.ts +3 -0
  977. package/server/src/clusterSnapshots.ts +16 -2
  978. package/server/src/clusterStore.ts +25 -14
  979. package/server/src/clusterTurnTools.ts +11 -0
  980. package/server/src/commandShell.ts +287 -0
  981. package/server/src/compactionCounter.ts +69 -0
  982. package/server/src/compactionReport.ts +20 -0
  983. package/server/src/contentSearch.ts +8 -3
  984. package/server/src/contextCalibrator.ts +6 -1
  985. package/server/src/contextEstimator.ts +71 -16
  986. package/server/src/contextRefs.ts +41 -11
  987. package/server/src/conversationActivity.ts +26 -0
  988. package/server/src/cursorUsage.ts +13 -3
  989. package/server/src/diagnostics/checks.ts +4 -11
  990. package/server/src/diagnostics/executableLookup.ts +20 -0
  991. package/server/src/diagnostics/modelHealth.ts +3 -11
  992. package/server/src/diagnostics/supportBundle.ts +5 -13
  993. package/server/src/eventLog.ts +228 -81
  994. package/server/src/existingClusterMembers.ts +9 -0
  995. package/server/src/explorerArtifacts.ts +27 -10
  996. package/server/src/explorerChanged.ts +99 -67
  997. package/server/src/explorerDocs.ts +37 -31
  998. package/server/src/explorerLaunch.ts +10 -2
  999. package/server/src/fileAccessPolicy.ts +82 -1
  1000. package/server/src/fileContent/decodeSlots.ts +31 -0
  1001. package/server/src/fileContent/detect.ts +28 -0
  1002. package/server/src/fileContent/externalImage.ts +49 -0
  1003. package/server/src/fileContent/icons.ts +37 -0
  1004. package/server/src/fileContent/images.ts +140 -0
  1005. package/server/src/fileContent/legacyText.ts +16 -0
  1006. package/server/src/fileContent/notebook.ts +37 -0
  1007. package/server/src/fileContent/office.ts +234 -0
  1008. package/server/src/fileContent/pdf.ts +59 -0
  1009. package/server/src/fileContent/pngRows.ts +54 -0
  1010. package/server/src/fileContent/svg.ts +42 -0
  1011. package/server/src/fileContent/types.ts +39 -0
  1012. package/server/src/fileContent/worker.ts +43 -0
  1013. package/server/src/fileContent.ts +108 -0
  1014. package/server/src/fileContextReceipts.ts +44 -0
  1015. package/server/src/fileFetch.ts +167 -0
  1016. package/server/src/fileVersion.ts +36 -0
  1017. package/server/src/genesis/creative.ts +27 -33
  1018. package/server/src/genesis/prompts.ts +3 -0
  1019. package/server/src/genesis/savePlan.ts +45 -0
  1020. package/server/src/genesis/stages.ts +4 -4
  1021. package/server/src/gitDiff.ts +20 -5
  1022. package/server/src/gitSnapshots.ts +288 -191
  1023. package/server/src/gitWorking.ts +11 -11
  1024. package/server/src/github.ts +3 -1
  1025. package/server/src/goalRun.ts +7 -4
  1026. package/server/src/handoffHistory.ts +89 -0
  1027. package/server/src/handoffHistoryProtocol.ts +20 -0
  1028. package/server/src/handoffHistorySupport.ts +10 -0
  1029. package/server/src/handoffHistoryTool.ts +192 -0
  1030. package/server/src/handoffPrompts.ts +6 -4
  1031. package/server/src/handoffReplay.ts +20 -0
  1032. package/server/src/handoffSeedCache.ts +22 -0
  1033. package/server/src/http/appBrowserRoutes.ts +17 -0
  1034. package/server/src/http/architectureReviewRoutes.ts +86 -0
  1035. package/server/src/http/clusterRoutes.ts +13 -1
  1036. package/server/src/http/clusterSnapshotRoutes.ts +8 -3
  1037. package/server/src/http/connectionsRoutes.ts +5 -1
  1038. package/server/src/http/diffRoutes.ts +36 -3
  1039. package/server/src/http/explorerRoot.ts +20 -0
  1040. package/server/src/http/explorerRoutes.ts +59 -12
  1041. package/server/src/http/fileRead.ts +2 -1
  1042. package/server/src/http/fileWriteRoutes.ts +3 -2
  1043. package/server/src/http/gitCompareRoutes.ts +4 -5
  1044. package/server/src/http/gitDiffRoutes.ts +3 -2
  1045. package/server/src/http/gitOpRoutes.ts +3 -4
  1046. package/server/src/http/gitWorktreeRoutes.ts +3 -2
  1047. package/server/src/http/handoffHistoryRoutes.ts +42 -0
  1048. package/server/src/http/imageWriteRoutes.ts +5 -1
  1049. package/server/src/http/knowledgeRoutes.ts +2 -0
  1050. package/server/src/http/mediaOpsRoutes.ts +2 -1
  1051. package/server/src/http/originGuard.ts +71 -14
  1052. package/server/src/http/outputRoutes.ts +26 -5
  1053. package/server/src/http/projectBinding.ts +108 -0
  1054. package/server/src/http/providerThrottleRoutes.ts +76 -0
  1055. package/server/src/http/publicProjectRoutes.ts +40 -8
  1056. package/server/src/http/readConfinement.ts +16 -9
  1057. package/server/src/http/router.ts +173 -60
  1058. package/server/src/http/searchRoutes.ts +4 -4
  1059. package/server/src/http/sessionTransport.ts +27 -0
  1060. package/server/src/http/skillManagementRoutes.ts +120 -0
  1061. package/server/src/http/storageRoutes.ts +19 -6
  1062. package/server/src/http/utilityAgentRoutes.ts +19 -5
  1063. package/server/src/http/workflowDataRoutes.ts +68 -16
  1064. package/server/src/http/writeConfinement.ts +31 -12
  1065. package/server/src/http/wsAuth.ts +27 -9
  1066. package/server/src/imageTokens.ts +60 -0
  1067. package/server/src/index.ts +265 -178
  1068. package/server/src/inputDeliveryHistory.ts +122 -0
  1069. package/server/src/keepStore.ts +37 -0
  1070. package/server/src/knowledge/store.ts +27 -19
  1071. package/server/src/legacyTarRestore.ts +177 -0
  1072. package/server/src/llamacppCatalog.ts +47 -12
  1073. package/server/src/localRuntimeStatus.ts +121 -0
  1074. package/server/src/lsp/client.ts +19 -11
  1075. package/server/src/lsp/servers.ts +2 -2
  1076. package/server/src/managedPath.ts +38 -0
  1077. package/server/src/management/hubGuard.ts +135 -0
  1078. package/server/src/management/hubLink.ts +8 -2
  1079. package/server/src/management/initHubLink.ts +45 -37
  1080. package/server/src/manualCompactCapability.ts +8 -0
  1081. package/server/src/mcp/arcoMcpServer.ts +4 -0
  1082. package/server/src/mcp/client.ts +28 -11
  1083. package/server/src/mcp/clusterMcpLoopback.ts +27 -1
  1084. package/server/src/mcp/clusterMcpTools.ts +24 -25
  1085. package/server/src/mcp/fileContent.ts +34 -0
  1086. package/server/src/mcp/fileMcpServer.ts +12 -0
  1087. package/server/src/mcp/fileMcpTools.ts +51 -0
  1088. package/server/src/mcp/handoffHistoryMcpTools.ts +21 -0
  1089. package/server/src/mcp/mcpConfigWriter.ts +43 -12
  1090. package/server/src/mcp/planMcpTools.ts +9 -285
  1091. package/server/src/mcp/planReadMcpServer.ts +19 -0
  1092. package/server/src/mcp/registry.ts +41 -35
  1093. package/server/src/mcp/registryWiring.ts +4 -5
  1094. package/server/src/media/demucs.ts +11 -4
  1095. package/server/src/media/ffmpeg.ts +21 -16
  1096. package/server/src/media/scratch.ts +17 -10
  1097. package/server/src/noticeSource.ts +11 -0
  1098. package/server/src/notifications.ts +8 -4
  1099. package/server/src/npmPlatformResolve.ts +25 -8
  1100. package/server/src/ntfyTransport.ts +12 -4
  1101. package/server/src/outputGrants.ts +53 -0
  1102. package/server/src/outputs.ts +54 -11
  1103. package/server/src/peerRecipientContext.ts +16 -5
  1104. package/server/src/planStore.ts +201 -55
  1105. package/server/src/planTools.ts +303 -0
  1106. package/server/src/previewAutoDetect.ts +26 -19
  1107. package/server/src/previewPortConfiguration.ts +28 -0
  1108. package/server/src/previewPorts.ts +2 -0
  1109. package/server/src/previewProxy.ts +156 -189
  1110. package/server/src/primaryBackgroundTracker.ts +151 -61
  1111. package/server/src/primitives/exportContext.ts +67 -16
  1112. package/server/src/primitives/localFileContext.ts +31 -0
  1113. package/server/src/primitives/reviewContent.ts +42 -7
  1114. package/server/src/primitives/runCompare.ts +1 -1
  1115. package/server/src/primitives/runDocEdit.ts +1 -1
  1116. package/server/src/primitives/runMdTuneup.ts +17 -27
  1117. package/server/src/primitives/runResearch.ts +1 -1
  1118. package/server/src/primitives/runReviewer.ts +6 -2
  1119. package/server/src/primitives/seedWorker.ts +36 -17
  1120. package/server/src/project/orchestrationProposals.ts +6 -1
  1121. package/server/src/project/taskLedger.ts +17 -11
  1122. package/server/src/projectGlob.ts +9 -0
  1123. package/server/src/projectIgnore.ts +19 -0
  1124. package/server/src/projectScan.ts +76 -0
  1125. package/server/src/projectStateIgnore.ts +40 -1
  1126. package/server/src/projects.ts +114 -36
  1127. package/server/src/prompts.ts +5 -8
  1128. package/server/src/proportionateTestingSkill.ts +31 -0
  1129. package/server/src/providers/attachmentLabels.ts +8 -0
  1130. package/server/src/providers/attachments.ts +52 -174
  1131. package/server/src/providers/claude-native/apiEndpoint.ts +9 -0
  1132. package/server/src/providers/claude-native/appendOnlyPrefix.ts +17 -1
  1133. package/server/src/providers/claude-native/catalog.ts +16 -14
  1134. package/server/src/providers/claude-native/contentBlocks.ts +39 -8
  1135. package/server/src/providers/claude-native/contextBudget.ts +0 -6
  1136. package/server/src/providers/claude-native/editApply.ts +6 -1
  1137. package/server/src/providers/claude-native/fileContent.ts +98 -0
  1138. package/server/src/providers/claude-native/filterConfigs/bash-cargo-test.ts +1 -0
  1139. package/server/src/providers/claude-native/filterConfigs/bash-jest-vitest.ts +1 -0
  1140. package/server/src/providers/claude-native/filterConfigs/bash-pytest.ts +1 -0
  1141. package/server/src/providers/claude-native/filterConfigs/index.ts +2 -1
  1142. package/server/src/providers/claude-native/foldDigest.ts +9 -2
  1143. package/server/src/providers/claude-native/gateReview.ts +0 -0
  1144. package/server/src/providers/claude-native/hookIf.ts +414 -0
  1145. package/server/src/providers/claude-native/hooks.ts +398 -54
  1146. package/server/src/providers/claude-native/imageRead.ts +92 -0
  1147. package/server/src/providers/claude-native/index.ts +32 -1
  1148. package/server/src/providers/claude-native/mediaLimits.ts +14 -0
  1149. package/server/src/providers/claude-native/mediaRetention.ts +49 -0
  1150. package/server/src/providers/claude-native/mediaRetirementNotice.ts +8 -0
  1151. package/server/src/providers/claude-native/modelParams.ts +23 -2
  1152. package/server/src/providers/claude-native/oauth.ts +9 -8
  1153. package/server/src/providers/claude-native/outputAccumulator.ts +29 -17
  1154. package/server/src/providers/claude-native/peerTools.ts +3 -169
  1155. package/server/src/providers/claude-native/pretoolGuards.ts +76 -9
  1156. package/server/src/providers/claude-native/registryTools.ts +4 -2
  1157. package/server/src/providers/claude-native/resumeSummary.ts +138 -28
  1158. package/server/src/providers/claude-native/sandboxExecutor.ts +24 -16
  1159. package/server/src/providers/claude-native/taskAdmission.ts +62 -0
  1160. package/server/src/providers/claude-native/toolChecks.ts +127 -0
  1161. package/server/src/providers/claude-native/toolPosture.ts +5 -3
  1162. package/server/src/providers/claude-native/toolResultEviction.ts +17 -7
  1163. package/server/src/providers/claude-native/tools.ts +228 -130
  1164. package/server/src/providers/claude-native/usageContext.ts +93 -0
  1165. package/server/src/providers/claude-native/wireFingerprint.ts +2 -2
  1166. package/server/src/providers/claude-native/worker.ts +1056 -334
  1167. package/server/src/providers/claude-native/workerHelpers.ts +133 -6
  1168. package/server/src/providers/claude-native/workspaceFacts.ts +2 -2
  1169. package/server/src/providers/claude.ts +65 -93
  1170. package/server/src/providers/clusterTaskToolDefinitions.ts +180 -0
  1171. package/server/src/providers/codex-appserver/catalog.ts +26 -19
  1172. package/server/src/providers/codex-appserver/index.ts +8 -3
  1173. package/server/src/providers/codex-appserver/jsonRpc.ts +9 -2
  1174. package/server/src/providers/codex-appserver/worker.ts +108 -77
  1175. package/server/src/providers/codex.ts +49 -57
  1176. package/server/src/providers/codexChatBoundary.ts +55 -0
  1177. package/server/src/providers/codexCodeMode.ts +2 -2
  1178. package/server/src/providers/codexContextWindow.ts +2 -2
  1179. package/server/src/providers/codexHome.ts +6 -0
  1180. package/server/src/providers/codexImageTool.ts +22 -0
  1181. package/server/src/providers/codexVersion.ts +13 -0
  1182. package/server/src/providers/codexWebSearch.ts +5 -0
  1183. package/server/src/providers/cursor/acpJsonRpc.ts +3 -1
  1184. package/server/src/providers/cursor/authState.ts +72 -0
  1185. package/server/src/providers/cursor/catalog.ts +20 -13
  1186. package/server/src/providers/cursor/chatSandbox.ts +71 -0
  1187. package/server/src/providers/cursor/filePlugin.ts +27 -0
  1188. package/server/src/providers/cursor/index.ts +29 -4
  1189. package/server/src/providers/cursor/modelMap.ts +182 -0
  1190. package/server/src/providers/cursor/print.ts +80 -27
  1191. package/server/src/providers/cursor/worker.ts +156 -84
  1192. package/server/src/providers/errorClassifier.ts +7 -2
  1193. package/server/src/providers/handoffHistoryBinding.ts +40 -0
  1194. package/server/src/providers/index.ts +12 -6
  1195. package/server/src/providers/llamacpp.ts +93 -176
  1196. package/server/src/providers/llamacppManager.ts +62 -33
  1197. package/server/src/providers/llamacppVersion.ts +4 -0
  1198. package/server/src/providers/lmstudio.ts +124 -190
  1199. package/server/src/providers/localFileMedia.ts +229 -0
  1200. package/server/src/providers/localMcp.ts +76 -0
  1201. package/server/src/providers/localShellLifecycle.ts +30 -0
  1202. package/server/src/providers/localToolDispatch.ts +111 -0
  1203. package/server/src/providers/ollama.ts +161 -171
  1204. package/server/src/providers/ollamaCtxFallback.ts +1 -2
  1205. package/server/src/providers/ollamaDurableCompaction.ts +5 -4
  1206. package/server/src/providers/ollamaExecutionHistory.ts +40 -13
  1207. package/server/src/providers/ollamaFencedTools.ts +10 -11
  1208. package/server/src/providers/ollamaResilience.ts +10 -13
  1209. package/server/src/providers/ollamaTokens.ts +4 -7
  1210. package/server/src/providers/ollamaToolSubset.ts +14 -2
  1211. package/server/src/providers/ollamaTools.ts +212 -200
  1212. package/server/src/providers/outputStyle.ts +72 -72
  1213. package/server/src/providers/providerFileContent.ts +133 -0
  1214. package/server/src/providers/renderedTranscript.ts +2 -0
  1215. package/server/src/providers/requestDeadline.ts +27 -0
  1216. package/server/src/providers/sessionScope.ts +9 -0
  1217. package/server/src/providers/types.ts +3 -0
  1218. package/server/src/publicProject.ts +54 -13
  1219. package/server/src/publicProjectChoice.ts +39 -0
  1220. package/server/src/quota.ts +48 -23
  1221. package/server/src/recall/search.ts +9 -32
  1222. package/server/src/recall/transcriptSearch.ts +27 -0
  1223. package/server/src/recentFilesLedger.ts +10 -8
  1224. package/server/src/recentProjectActivity.ts +56 -0
  1225. package/server/src/scanDeadline.ts +26 -0
  1226. package/server/src/searchText.ts +16 -0
  1227. package/server/src/server/broadcast.ts +120 -54
  1228. package/server/src/sessionJsonl.ts +31 -17
  1229. package/server/src/settings.ts +137 -41
  1230. package/server/src/skillManagement.ts +585 -0
  1231. package/server/src/skillMutation.ts +6 -0
  1232. package/server/src/skills.ts +195 -25
  1233. package/server/src/smartPickup.ts +3 -2
  1234. package/server/src/smartPickupAdapters.ts +31 -10
  1235. package/server/src/storageActions.ts +1 -1
  1236. package/server/src/storageArchive.ts +42 -22
  1237. package/server/src/storageRoot.ts +30 -0
  1238. package/server/src/storageTurnWatch.ts +39 -0
  1239. package/server/src/taskDispatcher.ts +22 -2
  1240. package/server/src/templates/store.ts +72 -57
  1241. package/server/src/terminal/ptyManager.ts +37 -27
  1242. package/server/src/terminal/ptyPidRegistry.ts +10 -58
  1243. package/server/src/thirdPartySkills.ts +79 -0
  1244. package/server/src/toolPath.ts +31 -0
  1245. package/server/src/toolboxWorkflow.ts +2 -1
  1246. package/server/src/uploadImages.ts +124 -0
  1247. package/server/src/voice/computerContext.ts +2 -1
  1248. package/server/src/voice/conditionSchema.ts +3 -1
  1249. package/server/src/voice/conditions.ts +1 -1
  1250. package/server/src/workers/StreamParser.ts +42 -11
  1251. package/server/src/workers/WorkerManager.ts +32 -35
  1252. package/server/src/workers/durablePidRegistry.ts +266 -0
  1253. package/server/src/workers/limits.ts +1 -1
  1254. package/server/src/workers/pidRegistry.ts +15 -89
  1255. package/server/src/workers/processActivity.ts +14 -0
  1256. package/server/src/workers/processKill.ts +175 -1
  1257. package/server/src/workers/processStartTime.ts +137 -49
  1258. package/server/src/workflowMeta.ts +59 -19
  1259. package/server/src/workflowStore.ts +177 -22
  1260. package/server/src/workflows/modelTitles.ts +4 -3
  1261. package/server/src/workflows/sessionIndex.ts +24 -3
  1262. package/server/src/workflows/types.ts +20 -10
  1263. package/server/src/workspace.ts +6 -0
  1264. package/server/src/ws/afterTurn.ts +34 -0
  1265. package/server/src/ws/clusterHandlers.ts +198 -276
  1266. package/server/src/ws/clusterMembers.ts +204 -0
  1267. package/server/src/ws/compactHandlers.ts +38 -11
  1268. package/server/src/ws/gateHandlers.ts +2 -1
  1269. package/server/src/ws/genesisHandlers.ts +49 -6
  1270. package/server/src/ws/handoffHandlers.ts +168 -53
  1271. package/server/src/ws/previewCaptureHandlers.ts +1 -4
  1272. package/server/src/ws/taskLedgerHandlers.ts +22 -13
  1273. package/server/src/ws/taskLifecycle.ts +41 -0
  1274. package/server/src/ws/turnEngine.ts +488 -366
  1275. package/server/src/ws/turnPrompt.ts +60 -0
  1276. package/server/src/ws/turnSettings.ts +95 -0
  1277. package/server/src/ws/updatePrimaryConfig.ts +55 -31
  1278. package/server/src/ws/workflowHandlers.ts +187 -158
  1279. package/shared/dist/clusterCoordination.js +15 -7
  1280. package/shared/dist/clusterRolePresets.js +8 -6
  1281. package/shared/dist/codexChat.d.ts +2 -0
  1282. package/shared/dist/codexChat.js +5 -0
  1283. package/shared/dist/folderName.d.ts +1 -0
  1284. package/shared/dist/folderName.js +18 -0
  1285. package/shared/dist/index.d.ts +6 -0
  1286. package/shared/dist/index.js +6 -0
  1287. package/shared/dist/localRuntimeStatus.d.ts +23 -0
  1288. package/shared/dist/localRuntimeStatus.js +47 -0
  1289. package/shared/dist/notificationTitle.d.ts +9 -0
  1290. package/shared/dist/notificationTitle.js +23 -0
  1291. package/shared/dist/outputStyle.d.ts +10 -0
  1292. package/shared/dist/outputStyle.js +28 -0
  1293. package/shared/dist/outputs.d.ts +1 -0
  1294. package/shared/dist/protocol/autoPickup.d.ts +2 -0
  1295. package/shared/dist/protocol/chat.d.ts +4 -0
  1296. package/shared/dist/protocol/checkpoints.d.ts +24 -2
  1297. package/shared/dist/protocol/checkpoints.js +1 -0
  1298. package/shared/dist/protocol/clientMessages.d.ts +9 -14
  1299. package/shared/dist/protocol/clusters.d.ts +21 -4
  1300. package/shared/dist/protocol/clusters.js +3 -3
  1301. package/shared/dist/protocol/connections.d.ts +2 -0
  1302. package/shared/dist/protocol/diagnostics.js +1 -1
  1303. package/shared/dist/protocol/genesis.d.ts +9 -0
  1304. package/shared/dist/protocol/mcp.d.ts +1 -0
  1305. package/shared/dist/protocol/mcp.js +8 -5
  1306. package/shared/dist/protocol/mdTuneup.d.ts +2 -0
  1307. package/shared/dist/protocol/models.d.ts +3 -1
  1308. package/shared/dist/protocol/models.js +19 -8
  1309. package/shared/dist/protocol/notifications.d.ts +2 -1
  1310. package/shared/dist/protocol/notifications.js +15 -3
  1311. package/shared/dist/protocol/plans.d.ts +2 -1
  1312. package/shared/dist/protocol/remoteManagement.d.ts +6 -0
  1313. package/shared/dist/protocol/serverMessages.d.ts +69 -10
  1314. package/shared/dist/protocol/settings.d.ts +16 -4
  1315. package/shared/dist/protocol/settings.js +17 -1
  1316. package/shared/dist/protocol/tasks.d.ts +1 -0
  1317. package/shared/dist/protocol/usage.d.ts +1 -0
  1318. package/shared/dist/protocol/workers.d.ts +1 -0
  1319. package/shared/dist/protocol/workflows.d.ts +73 -14
  1320. package/shared/dist/protocol/workflows.js +66 -0
  1321. package/shared/dist/publicGuardrails.d.ts +1 -1
  1322. package/shared/dist/publicGuardrails.js +1 -1
  1323. package/shared/dist/runtimeVersions.d.ts +2 -0
  1324. package/shared/dist/runtimeVersions.js +13 -0
  1325. package/shared/dist/shellTool.d.ts +2 -0
  1326. package/shared/dist/shellTool.js +9 -0
  1327. package/shared/src/clusterCoordination.ts +12 -7
  1328. package/shared/src/clusterRolePresets.ts +8 -6
  1329. package/shared/src/codexChat.ts +8 -0
  1330. package/shared/src/folderName.ts +11 -0
  1331. package/shared/src/index.ts +8 -0
  1332. package/shared/src/localRuntimeStatus.ts +53 -0
  1333. package/shared/src/notificationTitle.ts +23 -0
  1334. package/shared/src/outputStyle.ts +35 -0
  1335. package/shared/src/outputs.ts +3 -0
  1336. package/shared/src/protocol/autoPickup.ts +2 -0
  1337. package/shared/src/protocol/chat.ts +5 -0
  1338. package/shared/src/protocol/checkpoints.ts +40 -8
  1339. package/shared/src/protocol/clientMessages.ts +11 -11
  1340. package/shared/src/protocol/clusters.ts +40 -10
  1341. package/shared/src/protocol/connections.ts +6 -0
  1342. package/shared/src/protocol/diagnostics.ts +1 -1
  1343. package/shared/src/protocol/genesis.ts +11 -0
  1344. package/shared/src/protocol/mcp.ts +12 -7
  1345. package/shared/src/protocol/mdTuneup.ts +4 -2
  1346. package/shared/src/protocol/models.ts +22 -8
  1347. package/shared/src/protocol/notifications.ts +16 -3
  1348. package/shared/src/protocol/plans.ts +5 -7
  1349. package/shared/src/protocol/remoteManagement.ts +10 -3
  1350. package/shared/src/protocol/serverMessages.ts +88 -7
  1351. package/shared/src/protocol/settings.ts +35 -5
  1352. package/shared/src/protocol/tasks.ts +1 -0
  1353. package/shared/src/protocol/usage.ts +3 -3
  1354. package/shared/src/protocol/workers.ts +5 -0
  1355. package/shared/src/protocol/workflows.ts +133 -21
  1356. package/shared/src/publicGuardrails.ts +1 -1
  1357. package/shared/src/runtimeVersions.ts +15 -0
  1358. package/shared/src/shellTool.ts +9 -0
  1359. package/client/dist/assets/galleryEditor-fPb76Cjv.js +0 -702
  1360. package/client/dist/assets/index-CjkHb-_n.js +0 -592
  1361. package/client/dist/assets/index-DIbh3ae5.css +0 -1
  1362. package/client/src/components/ConversationMenu.tsx +0 -467
  1363. package/client/src/stores/sessionIndexStore.ts +0 -92
package/docs/CLIENT.md CHANGED
@@ -2,12 +2,44 @@
2
2
 
3
3
  **Status:** Stable project identity, organization, creation and removal, and missing-path or relocation recovery remain in progress. See [Development status](DEVELOPMENT_STATUS.md).
4
4
 
5
- The web UI. Vite + React 19 + Zustand. Two-column layout: chat + composer on the left (2/3), tabbed right pane (1/3). Talks to the server over a single persistent WebSocket; HTTP only for file uploads, transcripts, artifact bodies, plan bodies, and auth.
5
+ The web UI. Vite + React 19 + Zustand. Two-column layout: chat + composer on the left (2/3), tabbed right pane (1/3). Uses a persistent WebSocket for workflow events and actions, plus HTTP for authentication, settings, catalogs, file operations, project data, artifacts, plans, media, and other request-response APIs.
6
6
 
7
7
  This doc covers the store, components, render pipeline, theme + shader system, and performance patterns. For the WebSocket protocol see [`PROTOCOL.md`](PROTOCOL.md). For the server side see [`ARCHITECTURE.md`](ARCHITECTURE.md).
8
8
 
9
9
  ---
10
10
 
11
+ ## Connections, activity and terminal recovery
12
+
13
+ In Connections, clear **Model server address** and choose **Save endpoint** to restore the runtime default. The request sends `baseUrl: null`; clearing an Ollama address keeps its other saved options.
14
+
15
+ **ACTIVITY > TOKEN USAGE** counts Codex cached input within its prompt total. Fresh input excludes cache hits. Claude's fresh, cache-read and cache-write counts are separate. Session totals normalize each turn before adding them. The session CTX uses the current context reading, while turn rows name the context at the end of that turn. Claude spawned-worker usage totals remain output usage; they are not context readings, so the context badge shows `-`.
16
+
17
+ A terminal reconnect replaces the old display with the server's bounded scrollback replay. It keeps the live shell and avoids duplicate output. **CREATE WITH FRESH** uses the provider shown in its picker, including when the anchor uses Ollama or llama.cpp.
18
+
19
+ ## Edit pending messages
20
+
21
+ Open PENDING beside the composer, then choose EDIT beside CANCEL. PREVIEW shows one message with the same actions; automatic mailbox reminders start folded. Use + to read the full text; BACK TO LIST returns. The server removes the queued item before its text, kind, attachments and selected skills return to that tab's message box. This works in single and cluster tabs.
22
+
23
+ Existing draft text is kept and the pending text is appended after a blank line. Existing skill choices are kept and merged without duplicates. Choices stay with their tab across navigation. Resending resolves each selected skill once; delivery text already expanded for the removed message is not copied into the draft. If delivery wins the removal race, Arco says `Already sent, nothing to edit` and leaves the draft unchanged. An offline page cannot edit the queue. Reconnect retries the same pending edit request without removing an item twice.
24
+
25
+ While the worker is busy, SEND or Enter preserves the restored kind shown by EDITING. Alt+Enter explicitly chooses follow-up; INTERRUPT & SEND or Ctrl/Cmd+Enter chooses interrupt where available. An idle worker receives an ordinary new turn. Sending or clearing the draft clears the marker.
26
+
27
+
28
+ ## Pending work and navigation
29
+
30
+ Attachment uploads require the configured upload folder to be a real folder, not a link. SEND waits for every pending attachment upload in Agent and Chat composers. Overlapping paste or drop batches cannot release the guard early. Completed files remain staged for the message.
31
+
32
+ HISTORY advances its saved-event cursor even when a page contains no narrative rows. Selecting an older message expands PRIOR SESSIONS when needed before scrolling and highlighting it.
33
+
34
+ Open task drawers use the live ledger row. Snapshot changes refresh comments, runs and dependencies; a new selection clears the previous details while loading.
35
+
36
+ Opening a FILES or CONTENT command-palette result hides the palette while the file viewer is open. Closing the viewer restores the query and selection.
37
+
38
+ PREVIEW fits within its panel at the current interface text size. Cluster CAPTURE SCREENSHOT, CHECK CONSOLE and CHECK NETWORK target the member in view with the selected capture viewport. Capture controls are disabled without a sender.
39
+
40
+ The composer agent-skill section shows discovery progress and errors for supported runtimes. Reopen the menu to retry after a failure.
41
+
42
+
11
43
  ## Topics
12
44
 
13
45
  | Topic |
@@ -28,6 +60,8 @@ This doc covers the store, components, render pipeline, theme + shader system, a
28
60
  | [Utilities](#utilities) |
29
61
  | [Adding a new component](#adding-a-new-component) |
30
62
  | [Cluster tab rendering](#cluster-tab-rendering) |
63
+ | [Layout ranges](#layout-ranges) |
64
+ | [Menus and popovers inside the window](#menus-and-popovers-inside-the-window) |
31
65
  | [ARTIFACTS explorer (`?app=explorer`)](#artifacts-explorer-appexplorer) |
32
66
  | [Cross-references](#cross-references) |
33
67
  | [Workspace Outputs](#workspace-outputs) |
@@ -55,6 +89,8 @@ This doc covers the store, components, render pipeline, theme + shader system, a
55
89
 
56
90
  ## State management (Zustand)
57
91
 
92
+ Session-index and Recall reads keep the newest request in control of results, loading and errors. A terminal-session snapshot reconciles only windows belonging to that workflow.
93
+
58
94
  `client/src/stores/appStore.ts` - the central per-tab store (state shape + action creators). A file-size refactor split the pure helpers out (move-only, no behavior change): the `AppState` / `JobState` types live in **`appStore.types.ts`**, pure read selectors in **`selectors.ts`**, and the memory-cap constants + capping helpers in **`memoryTrim.ts`** (which must not import `appStore`).
59
95
 
60
96
  **Voice transcript follow.** `chatFollowStore` holds one memory-only targeted
@@ -64,14 +100,14 @@ reuses the panel. The existing resize/streaming paths then follow normally.
64
100
  Manual scroll-up detaches again; unrelated recipients and failed sends do not
65
101
  move the pane. This is UI intent, never worker/background activity.
66
102
 
67
- **Standalone feature stores.** Several global, cross-workflow or transient-wizard surfaces keep their state OUT of `appStore` (so they don't touch the load-bearing per-tab store and can mount independent of props) - each a small dedicated Zustand store: `draftStore` (per-workflow composer drafts - a **performance boundary**: a draft in `appStore` triggers the whole subscriber fan-out on every keystroke; `appStore.setDraft` / `clearDraft` remain as delegating wrappers), `terminalStore` (operator PTY windows/sessions), `recallStore` (cross-session search), `compareStore` (Compare primitive), `docEditStore` (A7 AI-edit proposals), `knowledgeDistillStore` (distill-from-session wizard draft), `notificationStore` (notice history + mutes + unread marker), `sessionIndexStore` (resume-index rows + pin/rename/archive mutations), `hubLinkStore` (management-hub link status in the header), `orchestrationAssistStore` (per-cluster orchestration proposals - see below), `clusterSnapshotsStore` (operator-saved whole-cluster snapshots - config + members + conversation histories, over the `cluster_snapshot_*` WS messages), `liveChangesStore` (live working-tree change subscription via `live_changes_subscribe` / `_unsubscribe`, backing the FILES **LIVE** sub-tab (`LiveChangesPanel`)), and `mdTuneupStore` (agent-instruction-file tune-up proposals backing the composer ✎ TUNEUP / `MdTuneupDialog` surface - the file list shows line counts, approximate tokens and deterministic hints, and VIEW opens the current text before a model run; the agent drafts `md_tuneup_proposed` and the operator approves the diff. After ACCEPT, UNDO restores the backup, with CONFIRM UNDO required if the accepted file has changed; undo is available while the review remains open and the server is running). Each is described inline where its UI is covered.
103
+ **Standalone feature stores.** Several global, cross-workflow or transient-wizard surfaces keep their state OUT of `appStore` (so they don't touch the load-bearing per-tab store and can mount independent of props) - each a small dedicated Zustand store: `draftStore` (per-workflow composer drafts - a **performance boundary**: a draft in `appStore` triggers the whole subscriber fan-out on every keystroke; `appStore.setDraft` / `clearDraft` remain as delegating wrappers), `terminalStore` (operator PTY windows/sessions), `recallStore` (cross-session search), `compareStore` (Compare primitive), `docEditStore` (A7 AI-edit proposals), `knowledgeDistillStore` (distill-from-session wizard draft), `notificationStore` (notice history + mutes + unread marker), `hubLinkStore` (management-hub link status in the header), `orchestrationAssistStore` (per-cluster orchestration proposals - see below), `clusterSnapshotsStore` (operator-saved whole-cluster snapshots - config + members + conversation histories, over the `cluster_snapshot_*` WS messages), `liveChangesStore` (live working-tree change subscription via `live_changes_subscribe` / `_unsubscribe`, backing the FILES **LIVE** sub-tab (`LiveChangesPanel`)), and `mdTuneupStore` (agent-instruction-file tune-up proposals backing the composer ✎ TUNEUP / `MdTuneupDialog` surface - the file list shows line counts, approximate tokens and deterministic hints, and VIEW opens the current text before a model run; the agent drafts `md_tuneup_proposed` and the operator approves the diff. After ACCEPT, UNDO restores the backup, with CONFIRM UNDO required if the accepted file has changed; undo is available while the review remains open and the server is running). Each is described inline where its UI is covered.
68
104
 
69
105
  ### Two tiers
70
106
 
71
107
  **Global singletons:**
72
108
 
73
109
  - `connected: boolean`, `sessionId: string | null` - WS state
74
- - `connectionState: 'connecting' | 'online' | 'disconnected' | 'server-down'` - observable connection state (`runtime/runtimeState.ts`); a closed socket probes `/healthz` to split a WS-layer drop from a dead server. Not persisted.
110
+ - `connectionState: 'connecting' | 'online' | 'disconnected' | 'server-down'` - observable connection state (`runtime/runtimeState.ts`); a closed socket probes `/healthz` to split a WS-layer drop from a dead server. Not persisted.
75
111
  - `authStatus: AuthStatusByProvider | null` - per-provider auth snapshot
76
112
  - `capabilities: Capabilities | null` - CLI versions, supported efforts, models
77
113
  - `quotaState: QuotaSnapshot | null` - per-provider throttle snapshot
@@ -79,8 +115,8 @@ move the pane. This is UI intent, never worker/background activity.
79
115
  - `usage: UsageInfo | null` - Claude 5-hour / weekly usage
80
116
  - `codexUsage: CodexUsageInfo | null` - Codex billing snapshot
81
117
  - `cursorUsage: CursorUsageInfo | null` - dashboard-polled Cursor MTD usage (ACP exposes no per-turn tokens)
82
- - `ollamaLive: OllamaLiveStatus | null` / `llamacppLive: LlamacppLiveStatus | null` - live daemon snapshots; null while polling is disabled or the daemon is down
83
- - `claudeNativeCatalog: ClaudeCatalogSnapshot | null` / `codexCatalog: CodexCatalogSnapshot | null` - server-fetched model catalogs (Anthropic / OpenAI), 1-hour lazy cache; pickers fall back to the static `CLAUDE_MODELS` / `CODEX_MODELS` lists when null · `cursorCatalog: CursorCatalogSnapshot | null` - Cursor's ~153-model roster (30-min poll)
118
+ - `localRuntimeStatus: LocalRuntimeSnapshot | null` - enabled-only local status; a cached read-only `GET /api/local-runtime-status` feeds this and the existing `ollamaLive` / `llamacppLive` version snapshots. The browser polls every 15 seconds; the server deduplicates requests and caches results for five seconds. Disabled runtimes are never probed by this route.
119
+ - `claudeNativeCatalog: ClaudeCatalogSnapshot | null` / `codexCatalog: CodexCatalogSnapshot | null` - server-fetched model catalogs (Anthropic / OpenAI), 1-hour lazy cache; pickers fall back to the static `CLAUDE_MODELS` / `CODEX_MODELS` lists when null or unavailable; a missing Codex CLI does not stop the server · `cursorCatalog: CursorCatalogSnapshot | null` - Cursor's ~153-model roster (30-min poll)
84
120
  - `codexCatalogByAccount: Record<profileId, CodexCatalogSnapshot>` - per-Codex-account catalogs (HOME/WORK entitlements differ; read via `useCodexCatalog(accountRef)`)
85
121
  - `settings: ArcoSettings | null` - operator preferences (theme, default provider, font-pack override, tab order, etc.)
86
122
  - `shutdown: boolean` + `shutdownReason: string | null` - server is shutting down/restarting
@@ -88,7 +124,7 @@ move the pane. This is UI intent, never worker/background activity.
88
124
  - `activeClusterId: string | null` - currently focused cluster tab. Mutually exclusive with `activeJobId` - setting one clears the other so the App.tsx routing branch picks deterministically.
89
125
  - `jobs: Record<string, JobState>` - per-workflow state (the workhorse)
90
126
  - `clusters: Record<string, ClusterStatePayload>` - server-authoritative cluster mirror, persisted alongside `jobs`
91
- - `clusterFocusedMember: Record<clusterId, workflowId>` - operator's currently-focused member inside each cluster tab (local UI state, not persisted)
127
+ - `clusterFocusedMember: Record<clusterId, workflowId>` - operator's currently-focused member inside each cluster tab (persisted only while the member still belongs to that saved cluster)
92
128
  - `clusterGridSplit: number` - fraction of `ClusterTab` body width given to the `MemberCard` grid (left); detail `MemberPane` gets the remainder. Default `0.35`; persisted.
93
129
  - `attachments: Record<workflowId, DraftAttachment[]>` - staged composer files, lifted to the store so tab-switch remounts don't drop them (blob-URL revocation lives in the actions). Drafts live in `draftStore`. Neither is persisted.
94
130
  - `clusterMemberLabels`, `clusterCardLayout` (persisted), `handoffLocksByCwd` (`handoff_lock_snapshot` mirror) - cluster/handoff UI mirrors
@@ -245,7 +281,7 @@ Per-tab composer state used to live on `JobState`; attachments were lifted into
245
281
 
246
282
  Actions are split into thematic groups inside `appStore.ts`:
247
283
 
248
- - Connection: `setConnected`, `setConnectionState`, `bumpPrimaryEvent` / `clearRecovered`, `setShutdown`, `setAuthStatus`, `setCapabilities`, `setUsage` / `setCodexUsage`, `setOllamaLive` / `setLlamacppLive`, `setClaudeNativeCatalog` / `setCodexCatalog` / `setCursorCatalog` / `setCodexCatalogForAccount`, `setCursorUsage`, `setSettings`, `setQuotaState`, `setCliChanges`, `acknowledgeCliChange`
284
+ - Connection: `setConnected`, `setConnectionState`, `bumpPrimaryEvent` / `clearRecovered`, `setShutdown`, `setAuthStatus`, `setCapabilities`, `setUsage` / `setCodexUsage`, `setLocalRuntimeStatus` / `setOllamaLive` / `setLlamacppLive`, `setClaudeNativeCatalog` / `setCodexCatalog` / `setCursorCatalog` / `setCodexCatalogForAccount`, `setCursorUsage`, `setSettings`, `setQuotaState`, `setCliChanges`, `acknowledgeCliChange`
249
285
  - Workflow lifecycle: `createJob`, `removeJob`, `setActiveJob`, `showJobCreator`, `applyWorkflowSnapshot`, `changeWorkflowSession`, `updateJobPrimary` (provider / model / effort / autoHandoff / claudeTransport / codexTransport / efficiency flags / outputStyle / goal / pinnedSkills / ultracode / webSearchMaxUses / claudeNativeThinkingDisplay), `setWorkflowName`, `setWorkflowGoal` (on `goal_set` -> syncs the north-star + a GOAL activity row), `setGoalRun`, `setCodebaseMemoryState`, `setSessionMetadata`, genesis (`setGenesisSeed` / `setWorkflowCwd` / `setGenesisScaffold` / `setGenesisAssist*` / `clearGenesisAssist` / `setGenesisCreative`)
250
286
  - Cluster lifecycle: `setClusterState`, `clearCluster`, `setActiveCluster`, `setClusterFocusedMember`, `setClusterGridSplit`, `setClusterCardLayout`, `setHandoffLocks`
251
287
  - Bake-offs / ledger / MCP: `setBakeoffs` / `upsertBakeoff`, `setTaskLedger`, `setMcpRegistry` / `setMcpProbeResult` / `setMcpAllow` / `setMcpMalwareWarning`
@@ -277,6 +313,7 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
277
313
  - `activeJobId` (nulled when it points at an incognito job), `activeClusterId`
278
314
  - `clusters` - restores the cluster tab's `[N]` badge before WS reconnect; overwritten by the authoritative `cluster_state` push on subscribe.
279
315
  - `clusterGridSplit`, `clusterCardLayout`
316
+ - `clusterFocusedMember` - the member in view per cluster, saved only while that member is in the saved cluster and dropped again on load when it is not; `setClusterState` falls back to the director when the member has left.
280
317
  - `showCreator` (forced true when the active tab is incognito, so a reload lands on the creator)
281
318
 
282
319
  **Persisted directly to localStorage (outside the Zustand store):**
@@ -285,9 +322,12 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
285
322
  - `arco.preview.aspect` - preview pane aspect ratio (global)
286
323
  - `arco.gitDialog.prefs.${cwd}` - per-repo GIT dialog choices
287
324
  - `arco.historyFilter.byWorkflow` - HISTORY tab filter strip
288
- - `arco.clusterRightPanelWidth` - outer cluster right-panel splitter
325
+ - `arco.clusterRightPanelWidth` - outer cluster right-panel splitter (Standard layout; Narrow and Compact keep their own saved widths, see [Layout ranges](#layout-ranges))
326
+ - Compact member grid splitter (saved beside the Standard grid split)
327
+ - `arco.sidePanelWidth` - single-tab right-panel splitter, with the same range suffixes
328
+ - `arco.layoutMode` - Settings > Appearance > Layout (`auto`, `standard`, `compact` or `narrow`)
289
329
  - `arco.focusMode` - I3 focus-mode flag (`'1'`/`'0'`); read into the store's `focusMode` at init, written by `setFocusMode`
290
- - splitter widths (per-workflow + cluster) via `usePersistedSplitter`
330
+ - splitter widths (single-tab and cluster) through `readRangeFraction` / `writeRangeFraction` in `client/src/layout/layoutRange.ts`, one key per layout range
291
331
 
292
332
  **NOT persisted** (rebuilt on reconnect):
293
333
  - `sessionChat` - server is the source of truth via `session_entry` stream
@@ -295,7 +335,7 @@ The store uses Zustand's `persist` middleware over `debouncedJSONStorage` (`stor
295
335
  - `connected`, `sessionId` - WS state
296
336
  - `connectionState`, `quotaState`, `capabilities`, `authStatus`, usage snapshots, `cliChanges`, model catalogs, `ollamaLive`, `llamacppLive`, `taskLedger`, `mcp*`, `bakeoffsByWorkflow` - fetched or re-pushed on connect
297
337
  - `snapshotReceived`, `busy`, `turnStartedAt`, `lastTurnEndedAt`, `activity`, `primaryBackgroundJobs`, `turnTokenUsage` - reset on connect; the authoritative snapshot arrives within seconds
298
- - `attachments`, `notifications`, `flashTarget`, `wsSendRaw`, `clusterFocusedMember`, `detailWorker` - session-only UI state
338
+ - `attachments`, `notifications`, `flashTarget`, `wsSendRaw`, `detailWorker` - session-only UI state
299
339
 
300
340
  On rehydrate, `onRehydrateStorage` also strips persisted streaming flags, drops queued optimistic entries older than 30 s, and dedupes any `peer-sent-<msgId>` / `peer-recv-<msgId>` rows that earlier builds (pre-intake-dedup) accidentally duplicated.
301
341
 
@@ -304,7 +344,7 @@ On rehydrate, `onRehydrateStorage` also strips persisted streaming flags, drops
304
344
  - `MAX_WORKER_OUTPUT_BYTES_CLIENT = 256 KB` per worker
305
345
  - `MAX_ACTIVITY_ENTRIES = 500` per job (raised from 80 - tool-heavy turns were truncating the live feed before settle)
306
346
 
307
- These caps prevent a large worker response from exhausting browser memory. The server-side `MAX_WORKER_OUTPUT_BYTES = 5 MB` cap bounds output before it reaches the client.
347
+ These caps prevent a large worker response from exhausting browser memory. The server-side `MAX_WORKER_OUTPUT_BYTES` cap (50 MB by default, `ARCO_MAX_WORKER_OUTPUT_BYTES`) bounds output before it reaches the client.
308
348
 
309
349
  **Store-as-cache model + the MemoryHud ( A1).** The store is a *bounded cache over the server's `events.jsonl`*, not the source of truth: every hot array is capped on its append path (`capMessages`/`capActivityEntry`/`capWorkers`/`trimJobMemory` in `memoryTrim.ts`), `removeJob` drops the whole `JobState` and revokes attachment blob URLs on tab close, and the persist `partialize` strips workers entirely (server re-pushes on reconnect). Because all of that was already in place, an A1 audit of every component interval/observer/listener and the `useWebSocket` reconnect path found **no leak** - so the residual "memory runs away after a while" can only be diagnosed live. `getRetentionStats` (store helper) returns the live footprint - per-tab `messages/sessionChat/activity/historyEvents/workers/toolFiltered/turnTokenUsage` counts, total attachment blob-URL count, and (Chrome only) JS heap. The dev-only `MemoryHud` (`components/dev/MemoryHud.tsx`, enable with `?memhud=1` or `localStorage['arco:memhud']='1'`) polls it every 2 s. Reading the result: **heap climbs while counts stay flat ⇒ non-store leak** (detached DOM, highlight cache, blob URLs, an iframe/webview); **a per-tab count climbs unbounded ⇒ a cap isn't firing on some append path.** Invariants guarded by `client/src/stores/retentionStats.test.ts` (`npm run smoke:mem-retention`).
310
350
 
@@ -363,9 +403,9 @@ App
363
403
  │ │ ├── LongUserMessage (auto-collapsed wall of text)
364
404
  │ │ ├── GateApprovalNotice (DEBAG inline approve/reject card for a parked sensitive Native tool call)
365
405
  │ │ └── AuthReloginNotice
366
- │ ├── NorthStarBar (🎯 always-visible inline-editable north-star chip; click to edit, ⏎ save, GOAL_MAX_BYTES=2048)
367
- │ ├── TerminalInput (composer + REVIEW/HANDOFF/SPAWN/DOCS/GIT/SECOND OPINION/RESEARCH/TUNEUP/REMOTE/COMPACT buttons + inline plan-mode checkbox + FOLD/posture/project-trust pills)
368
- │ │ ├── PrimaryStatus (busy: model · effort · elapsed)
406
+ │ ├── TerminalInput (composer + REVIEW/HANDOFF/SPAWN/DOCS/GIT/SECOND OPINION/RESEARCH/TUNEUP/REMOTE/COMPACT buttons + inline PLAN FIRST button + FOLD/posture/project-trust pills)
407
+ │ │ ├── NorthStarBar (inline-editable north-star chip; GOAL_MAX_BYTES=2048)
408
+ │ ├── PrimaryStatus (current step in the conversation header)
369
409
  │ │ ├── QueuedMessagesIndicator
370
410
  │ │ ├── DragOverlay (file drop hint)
371
411
  │ │ ├── ToolboxMenu (slash-command picker)
@@ -391,9 +431,9 @@ App
391
431
  │ ├── BakeoffTab (BAKE-OFF tab - operator-armed worktree bake-offs)
392
432
  │ ├── KnowledgeTab (KNOWLEDGE tab - per-cwd operator-owned knowledge base; + KnowledgeWizard)
393
433
  │ ├── TasksPanel (TASKS tab; gated on non-empty job.taskChildren)
394
- │ ├── LedgerTab (LEDGER tab - cwd-scoped durable project task ledger)
395
- │ ├── HistoryTab (HISTORY tab; read-only timeline + LABEL / REVIEW-FROM-HERE / SPAWN-FROM-HERE)
396
- │ ├── UsageTab (USAGE tab - Workbench; per-provider/per-day token + cache-ratio trends, hand-rolled SVG)
434
+ │ ├── LedgerTab (MEMORY > LEDGER - single-worker/chat; cwd-scoped durable project task ledger)
435
+ │ ├── HistoryTab (MEMORY > HISTORY; read-only timeline + LABEL / REVIEW-FROM-HERE / SPAWN-FROM-HERE)
436
+ │ ├── UsageTab (MEMORY > USAGE - single-worker, chat and cluster; token trends + MEASURE STORAGE; ARTIFACTS > STORAGE from anywhere)
397
437
  │ ├── PreviewTab (PREVIEW tab - per-workflow dev-server iframe with auto-detect + aspect toggle)
398
438
  │ ├── ConfigTab (CONFIG tab - `RightPanel/ConfigTab.tsx`: transport sections (Claude + sticky ULTRACODE / Codex + MAX/STANDARD context), auto-compaction, auto-handoff + auto-fold, Claude Native knobs (compact, auto-continue, thinking display, interleaved beta, tool filter, web budget, fact-force, config protection, review safe-mode, sandbox), OUTPUT STYLE, NORTH STAR + goal-run control, PROJECT TRUST, Ollama lifecycle/params/VRAM/compaction session, then CodebaseMemorySection + McpRegistrySection)
399
439
  │ └── GitHubPanel (GITHUB tab)
@@ -412,8 +452,7 @@ App
412
452
  ├── FileViewerModal
413
453
  ├── WorkerDetailModal
414
454
  ├── ArtifactModal
415
- ├── ConversationMenu
416
- ├── TabContextMenu (right-click on a Native Claude tab; "Add to cluster with...")
455
+ ├── TabContextMenu (right-click on a Claude, Codex, Ollama or llama.cpp tab)
417
456
  ├── ProviderReleasesModal (in-app Ollama/Strata releases and Xolotl source history)
418
457
  ├── FloatingTerminalWindow (Workbench/; renders N operator-PTY windows, each a draggable/resizable overlay)
419
458
  ├── SyncingOverlay
@@ -422,7 +461,7 @@ App
422
461
  ├── DuplicateTabOverlay
423
462
  ├── ThemedBackgroundShader (the shader canvas)
424
463
  └── Help system (z=9300+)
425
- ├── HelpButton ("?" toggle inline in the top bar, right of the version box; the floating bottom-right form remains only on the pre-workbench gate screens)
464
+ ├── HelpButton (floating bottom-right "?" toggle on the pre-workbench gate screens; in the workbench, POINT AT THINGS in the header HELP menu (HelpMenu) toggles help mode)
426
465
  ├── HelpBanner (top strip while help mode is active)
427
466
  ├── HelpPopover (per-target help content, anchored to the clicked element)
428
467
  ├── HelpCard (movable scoped-snippet card raised by a tool modal's ModalHelpButton)
@@ -450,41 +489,44 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
450
489
  removes Cursor and llama.cpp while strict incognito is armed because neither
451
490
  can meet its no-local-log contract.
452
491
 
453
- - **`SystemHeader`** (I1 - information architecture) - a single Row 1 with the wordmark on the left and, on the right, a **status cluster** followed by **three grouped action rows** separated by thin `GroupDivider` rules. Status cluster (urgent, always visible): `ProvidersPopover` · `WorkflowStatusChip` · `HeaderAuthChip`. Action groups: **Models** (`⌕ RECALL`) · **Tools** (`⌗ MEDIA`, `⌸ ARTIFACTS` - calls `openArchive`, a same-browser popup falling back to `POST /api/explorer/open`, launching the standalone explorer window; `◆ GITHUB`, `>_ TERMINAL`) · **System** (`⚙ SETTINGS`, `ⓘ MANUAL`, connection LED + RECONNECT/RESTART, `⏻` power -> `SystemModal` whose Diagnostics tab is the group's third member). Every button shares the `actionBtn` style constant so the grouping reads off spacing, not per-button drift. `UsageBar` sits inline in Row 1 as a uniform strip of `LIVE` pills - one per authed provider plus an `OLLAMA [LIVE/READY/DOWN]` pill when ollama is enabled; hovering the Claude pill pops Session/Weekly usage bars + reset times, hovering Ollama pops the loaded-model list with VRAM-unload countdown. **Focus mode:** the `◳ FOCUS` toggle (always visible, between connection health and ⏻) flips `appStore.focusMode`; when armed the header collapses to wordmark + `WorkflowStatusChip` + connection health + `◳ EXIT FOCUS` + ⏻, hiding the Providers popover, auth chip, both action groups, Settings/Manual, and the UsageBar row. Also reachable from the command palette (`Enter/Exit focus mode`). Reversible + persisted (`arco.focusMode`).
454
- - **`ProvidersPopover`** - folds the former inline per-provider version-chip strip behind one `▼ PROVIDERS` trigger (click-outside to close, like `ConversationMenu`). The trigger carries a health dot (warning-color when any provider is outdated); the popover lists the chips. Chips are gated on `settings.enabledProviders` (disabled providers don't show) and un-installed CLIs, include an Ollama/llama.cpp row when reachable, and paint warning-color when the installed version is older than `capabilities.latestVersions.<p>`. Click on Claude/Codex runs the upstream installer via `POST /api/check-updates`; Ollama, Strata and Xolotl open `ProviderReleasesModal`; llama.cpp opens GitHub releases. Strata remains visible while stopped using the prepared engine's `BUILD.json`; update comparison uses engine package metadata, separately from the 0.2 app/Terminal release tag. Xolotl displays checkout HEAD as a single-line `XOLOTL` row. Its modal uses recent commits when upstream has no tagged releases, displays matching HEADs as UP TO DATE without a self-comparison request, and compares distinct revisions for source changes. External GitHub links are explicit; these three rows never open a browser or install an update themselves. Self-contained - owns the update-check + modal state that used to live in `SystemHeader`.
455
- - **`WorkflowStatusChip`** - a provider-throttling warning shown only when quota state reports a throttle. Click for affected providers and known reset times. Context usage remains in the worker header.
492
+ - **`SystemHeader`** (I1 - information architecture) - a single Row 1, left to right: the ARCO wordmark, the layout switch (`header.layout`; cycles Automatic, Standard, Compact, Narrow through `setLayoutMode`), `HubLinkChip`, `WorkflowStatusChip` (provider throttling), the provider dots (`UsageBar`, remote provider letters plus one LOCAL indicator; hover/focus for usage; remote dots link to usage pages; the adjacent VERSIONS button opens `ProvidersPopover`), `HeaderAuthChip` (its panel closes on an outside click or Escape, like the other top-bar popovers), then two `HeaderDropdown` menus separated by `GroupDivider` rules: **KNOWLEDGE** (RECALL, PLANS, ARTIFACTS - the last two call `openArchive`, a same-browser popup falling back to `POST /api/explorer/open` for the standalone explorer window) and **TOOLS** (TERMINAL, GITHUB, MEDIA). After them come `VoiceMenu`, the connection light (with RECONNECT/RESTART when offline), `NotificationCenter` (BELL), `◳ FOCUS`, `HelpMenu`, `⚙ SETTINGS`, `HeaderVersionBox` and `⏻` power (`SystemModal`). The header groups wrap as soon as their controls need more room, independently of the layout mode. **Focus mode:** `◳ FOCUS` flips `appStore.focusMode`; when armed the provider dots, auth chip, both menus, HELP and SETTINGS are hidden, while the wordmark, layout switch, VERSIONS button, throttling chip, VOICE, connection light, BELL, `◳ EXIT FOCUS`, the version box and power stay. Also reachable from the command palette (`Enter/Exit focus mode`). Reversible + persisted (`arco.focusMode`). Diagnostics and Model Health reject failed or invalid reads and keep the refresh control available for retry.
493
+ - **Provider letters** - one letter per provider wherever a provider is marked: `A` Claude (Anthropic), `C` Codex, `X` Cursor, `O` Ollama, `L` llama.cpp. Remote letters appear in `UsageBar`; LOCAL groups local runtimes without changing individual provider letters. Letters also appear in `WorkerCard` badges (shown for providers other than Claude) and the `TerminalSessions` list. Hover titles and aria labels name the provider in full (`Claude usage page`, `Codex status details`).
494
+ - **LOCAL status** - one dot groups enabled Ollama, llama.cpp, Strata and Xolotl; LM Studio is excluded. Strata and Xolotl appear only with an installed-version signal, and llama.cpp requires its binary. Ollama retains unload times and daemon-start guidance. Hover, keyboard focus or tap lists each runtime. Confirmed faults are red and take precedence; otherwise a loaded model is green, unknown state is neutral, and ready/idle or deliberately stopped programs use a hollow dot. Managed inactive services and idle llama.cpp say `stopped - starts on demand`. Registered catalog entries do not prove a model is loaded. Escape/outside clicks close the card. VERSIONS suppresses it and exposes the same LOCAL STATUS list, including in focus mode and Settings. Metadata reads never start, stop, load, unload or reconfigure a runtime.
495
+ - **`ProvidersPopover`** - folds the former inline per-provider version-chip strip behind one `VERSIONS` trigger (also in Settings > CLI VERSIONS) (click-outside to close). The trigger carries a health dot (warning-color when any provider is outdated); the popover lists the chips. Chips are gated on `settings.enabledProviders` (disabled providers don't show) and un-installed CLIs, include an Ollama/llama.cpp row when reachable, and paint warning-color when the installed version is older than `capabilities.latestVersions.<p>`. Click on Claude/Codex runs the upstream installer via `POST /api/check-updates`; Ollama, Strata and Xolotl open `ProviderReleasesModal`, which receives keyboard focus on entry so Escape dismisses it. Closing returns focus to the opening chip when it remains mounted; closing VERSIONS returns focus to its button. llama.cpp opens GitHub releases. Strata remains visible while stopped using the prepared engine's `BUILD.json`; update comparison uses engine package metadata, separately from the 0.2 app/Terminal release tag. Xolotl displays checkout HEAD as a single-line `XOLOTL` row. Its modal uses recent commits when upstream has no tagged releases, displays matching HEADs as UP TO DATE without a self-comparison request, and compares distinct revisions for source changes. External GitHub links are explicit; these three rows never open a browser or install an update themselves. LOCAL STATUS labels follow the selected theme foreground while runtime state colors retain their meaning. The viewport-clamped panel is portaled below the entire wrapped header; it suppresses dot hover cards, closes on Escape/outside click, and returns focus. llama.cpp displays both semantic version and build/commit identities, using build numbers whenever latest build metadata is available; semantic versions are never substituted for missing builds. Self-contained - owns the update-check + modal state that used to live in `SystemHeader`.
496
+ - **`WorkflowStatusChip`** - a provider-throttling warning shown only when quota state reports a throttle. Click for affected providers, known reset times, a per-provider Clear control and Codex/Claude Recheck usage. A row stays while its recheck is pending; a recheck that shows headroom clears the notice, keeping its row and result for four seconds; exhausted or unavailable usage leaves it. Focus moves back to the chip or layout control only when it was inside the panel and its control disappeared, never while the user is typing elsewhere. Clear restores future eligibility without re-arming a stopped goal run. Known resets expire without a page refresh; a one-second client tick hides expired rows after two seconds of clock grace. Context usage remains in the worker header.
456
497
  - **`NotificationCenter`** - the header bell (`◔ BELL`) with an unread badge. Dropdown shows the workbench-notice history + a per-category MUTE grid (checkbox -> `set_notification_mutes` via `onSetNotificationMutes`, threaded App -> SystemHeader -> `useWebSocket`). Backed by the standalone `notificationStore` (notices history + server-authoritative `muted` set + `lastSeenTs` unread marker). Always visible - even in I3 focus mode - since notices are the "agent finished / something broke" signal. Incoming `workbench_notice` also raises a transient toast via the existing top-right strip (`NotificationToasts` / `appStore.pushNotification`), not a second stack. See [`NOTIFICATIONS.md`](NOTIFICATIONS.md).
457
498
  - **`TabBar`** - horizontal job list; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question wins, then a running turn, then New reply. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
458
499
  - **`WorkflowView`** - owns the splitter and renders `ChatPanel` + `RightPanel`. Splitter width persists per-workflow. Forwards send/cancel/review/handoff/spawn callbacks to the children. **Focus mode:** when `appStore.focusMode` is true the left (chat) column goes `flex: 1 1 100%` and the splitter + `RightPanel` are unmounted, giving the chat the full width; toggling off restores the persisted split fraction. The chat column `Panel` carries `className="no-frost"` so `html[data-frosted="1"].arco-panel.no-frost { backdrop-filter: none }` (more specific than the generic frosted-blur rule) keeps the transcript crisp over the shader - matching the cluster transcript, which is never a `Panel`.
459
- - **`NorthStarBar`** - inline-editable north-star chip above the composer (empty -> "set a north-star..."; soft-warn 1536 / cap 2048 bytes). Mirrors `job.config.goal`; edits go through `onUpdatePrimary({ goal })`.
500
+ - **`NorthStarBar`** - inline-editable north-star chip in the composer status line (empty -> "set a north-star..."; soft-warn 1536 / cap 2048 bytes). Mirrors `job.config.goal`; edits go through `onUpdatePrimary({ goal })`.
460
501
  - **`ChatPanel`** - virtualized chat log. The render-side `displayMessages` memo merges sources and dedupes (see "Chat rendering pipeline" below).
461
502
  - **`ToolCallPill`** - compact tool-call row. Tool-result filtering adds an inline `FilteredChip` ([filtered: 12.3 KB -> 1.4 KB, sample output]) when the `tool_filtered` WS event reports a non-zero byte delta for the matching `toolUseId`. Click on the chip copies the workspace-relative `rawArtifactPath` (`.arco/workflows/<wfId>/artifacts/raw-tools/<turnId>-<toolUseId>.txt.gz`) to the clipboard so the operator can `zcat` the pre-filter raw bytes - recovery preserves the cache and reversibility boundary. The connector lives in `ChatMessage.tsx` (`ToolCallPillWithFilter`) which subscribes to `appStore.jobs[jobId].toolFiltered[toolUseId]` with a narrow selector so unrelated filter events don't re-render the row.
462
503
  - **`TerminalInput`** - the composer. Auto-grows up to 240 px. Auto-focus on idle / busy transition. The `b·w·s` diagnostic chip and the CANCEL button surface when `isBusy`.
463
504
  - **`RightPanel`** (`components/RightPanel/index.tsx`) - **two-level grouped** tab strip + content area. The 16 tabs (files, genesis, activity, review, research, handoffs, plan, bakeoff, knowledge, tasks, ledger, history, usage, preview, config, github) are grouped by purpose into four families - **WORKSPACE** (files, genesis) · **AGENT** (activity, review, research, handoffs, plan, bakeoff, tasks) · **MEMORY** (knowledge, ledger, history, usage) · **RUNTIME** (preview, config, github) - declared in the `GROUPS` const. Level 1 is the group selector; level 2 is the active group's tabs. The **active group is derived** from the active tab (`groupOf`), so no separate group state is persisted; clicking a group lands on its first visible tab. On a **narrow split** (`< 360px`, measured by a `ResizeObserver` on the panel root) level 2 collapses to a single grouped `<select>` with one `<optgroup>` per family - every tab stays reachable without a 3-row wrap. Tab selection is **per-workflow**, persisted to `localStorage['arco.sidePanelTab.byWorkflow']` as a `Record<workflowId, RightTab>` map - switching workflows respects each workflow's last tab (and thus its group); fresh workflows default to `'files'`. The CONFIG **`cliChanges`** red dot shows on CONFIG's level-2 tab AND on the RUNTIME **group header** when CONFIG isn't the active group (in the narrow `<select>`, a `●` is appended to the CONFIG option), so the "CLI changes" signal never hides behind a collapsed group. Group help: dynamic `rightpanel.group.{workspace,agent,memory,runtime}`. Auto-switches to PREVIEW once per `freshlyBound` signal: `previewUnread` flips true on `preview_set` only when `freshlyBound: true && !manual && wasPort !== isPort`, and a `useEffect` watching `job.previewUnread` flips that workflow's tab and calls `markPreviewSeen` to clear the flag - so the auto-flip fires once per real bind, not on every hydration replay or stale port re-broadcast, and never bleeds across workflows.
464
- - **`ConfigTab`** - model/effort and per-provider runtime controls. Transport rows are provider-specific: Claude `cli`/`native` and Codex `exec`/`appserver`. Codex also shows a per-tab MAX/STANDARD context-window row backed by the selected account's live model catalog; MAX is the default. For **Cursor**, the MODEL row renders `CursorModelSelect` (family×effort×flags -> exact catalog id) and the EFFORT row shows `(set via the model picker above)`. Additional sections: `NorthStarSection` (NORTH STAR), `ClaudeNativeThinkingDisplaySection` (THINKING VISIBILITY - omitted/summarized/updates; `updates` is Fable 5 / 5.1 progress notes, degrades to omitted elsewhere), `ClaudeNativeWebBudgetSection` (WEB LOOKUPS/TURN), and the sticky ULTRACODE ON/OFF toggle inside `ClaudeTransportSection`. `OutputStyleSection` (renamed from `ClaudeNativeOutputStyleSection` - OUTPUT STYLE now applies to Claude Native + Codex app-server + early-returning `null` on every other transport) sets `outputStyle` (`normal` / `lite` / `terse`). A REVIEW-SAFE-MODE toggle (`ClaudeNativeReviewSafeModeSection`, Native-only) flips `WorkflowConfig.reviewSafeMode` (default `off`) - when on, sensitive Native tool calls park behind the DEBAG HITL gate - and renders the operator's standing "approve all like this" approvals (`job.standingGateApprovals`) with a per-row REVOKE (`gate_revoke`). An **auto-fold** block under `AutoHandoffSection` (`data-help="rightpanel.config.auto-fold"`) sets `WorkflowConfig.autoFold` `{ enabled, foldAt, tailBudget }` through `update_primary_config` - Native-only deterministic in-place transcript trim (`foldAt` sits below the handoff `warnAt`), default OFF.
465
- - **`PreviewTab`** - iframe rendering of the workflow's dev server, fed by the per-workflow proxy at `/api/preview/<workflowId>/`. PORT input + BIND/UNBIND/RELOAD/OPEN button row + 4:3/16:10/16:9 aspect-ratio segmented control (persists to localStorage `arco.preview.aspect` - global across workflows). A "RECENT" pill row below the controls surfaces this workflow's history of bound ports (most-recent-first, capped at 5; fed by `preview_history` WS message; persisted under `meta.previewHistory`). Click a pill to rebind: the client first hits `GET /api/preview/probe?port=N`; if alive, behaves like a manual BIND; if dead, opens a modal that lists currently-listening services on the box (via `GET /api/preview/listening`, Linux-only; macOS shows empty list with the same explanatory copy) so the operator can pick one to bind to. The listing excludes Arco's own server PID; workflow-spawned dev servers still appear. Iframe is given a fixed logical viewport - width 1920, height per chosen aspect (1440 / 1200 / 1080) - and CSS-scaled (`transform: scale(...)`, computed via `ResizeObserver` on the wrapper) to the largest box-of-that-ratio that fits the pane, then centered both axes. Width-constrained when the pane is wider than tall, height-constrained when taller, never clipped in either axis. The `useLayoutEffect` that drives the scaling depends on `[logicalH, src]` - `src` is in the deps so the effect re-fires when the wrapper div mounts on first BIND (object refs don't notify effects on attach; without that dep `boxStyle` stays null and the iframe never renders until something else remounts the component). `iframeReactKey` includes `preview.port` so a rebind to a different port forces a remount (the proxy URL doesn't encode the port). Sandbox `allow-same-origin allow-scripts allow-forms allow-popups allow-modals`; `allow-top-navigation` is intentionally omitted so a misbehaving page can't hijack the Arco shell.
466
- - **`WorkflowCreator`** - new-tab / Resume picker. Lists Claude/Codex native sessions per cwd via `GET /api/sessions?path=<cwd>`. Claimed sessions show `★` and reuse the workflowId; unclaimed get a fresh wfid pinned to the native session UUID. The top-of-form MODE toggle switches between SINGLE (one primary agent), CLUSTER (N members), and **GENESIS** (idea -> scaffold, no folder yet - Creative-mode integration). CLUSTER mode shows the **`ClusterPresetsRow`** (labelled SAVED CLUSTER PRESETS); SINGLE mode shows the **`TemplatePickerRow`** (SAVED TEMPLATES, Workbench "recipes"). Both are PRESETS-style pill rows placed after the required steps, just before SAVE AS DEFAULTS and launch. Controls appear only in the modes whose create payload carries them: Ultracode, CONVERSATION (resume) and ADVANCED OPTIONS are single-workflow only (ADVANCED for Claude and Codex, its fallback model for Claude only); chat hides Claude fast mode and the tool-result filter. In CLUSTER mode the order is shared project folder, `ClusterTemplatePicker` (START FROM A TEMPLATE: built-in Pair, Small team, Research, Medium team, Full team, Parallel build and Large team from `clusterTemplates.ts`, plus Build my own; a review lists each member's role, recommended model, effort and reason in words, plus an editable work-size choice for repeated roles (Research unset, two builders recommended Heavy and Standard), asks for provider and model from `availableMemberProviders` with no automatic model choice, pre-fills effort through `capDefaultEffort`, and replaces the members only on USE THESE MEMBERS), `ClusterMembersSection`, a collapsed DEFAULTS FOR NEW MEMBERS frame (`creator-member-defaults`, wrapping the AGENT and tuning bands; it seeds only `+ ADD MEMBER` and says existing members do not change), a collapsed COORDINATION SETTINGS frame (efficiency, message guard, task board, Keep current, note, with a one-line summary when collapsed), then saved presets, existing clusters and snapshots. `ClusterMembersSection` rows read in words (`Role not set`, `<effort> effort`, and work size only when selected); its provider buttons list only enabled, connected member providers (`memberProviders.ts`), keep a saved but unavailable provider visible as `(NOT CONNECTED)`, link to Connections, and show the shared AUTO/SAFE note (`permissionNotes.ts`) and a per-member tuning heading. The PRIMARY AGENT picker uses the same rule (`primaryProviderOptions` in `memberProviders.ts`): enabled, connected providers plus the current one marked `(not connected)`; with no saved default the creator moves to `firstAvailablePrimaryProvider` once Settings and auth status arrive, and `primaryProviderProblem` disables single, chat and Genesis launch with a reason and an Open Connections link. Repeated role names use `numberedName` (`Builder #2`) in both the template review and `deriveDisplayNames`. GENESIS mode hides the working-directory cell + tree and shows a SPARK textarea instead; it launches a cwd-less workflow with `config.genesisSeed` set (title + spark), gated on those two fields rather than a cwd. The rest of the seed is filled in the **`GenesisTab`** (right panel, see below). **Layout (I5, banded):** the centered heading is the selected cwd's folder name (`headingText`, I4) over a `NEW WORKFLOW`/`NEW CLUSTER` subtitle; below the MODE toggle the form is three bordered band cards - **WHERE & SESSION** (dir input + name as a balanced top row; the BROWSE tree and CONVERSATION picker span both columns), **AGENT** (a symmetric 2×2 of provider | model dropdowns over effort | permissions), and **AGENT TUNING** (Claude: fast / tool-result-filter / output-style; Codex app-server: output-style only). ADVANCED OPTIONS is a standalone full-width collapsible below the bands. Band titles use `glow-text-bright` + a divider to outrank the 11px field labels; each band's inner grid is `1fr 1fr` at ≥1200px, single-column below.
505
+ - **`ConfigTab`** - model/effort and per-provider runtime controls. Transport rows are provider-specific: Claude `cli`/`native` and Codex `exec`/`appserver`. Codex also shows a per-tab MAX/STANDARD context-window row backed by the selected account's live model catalog; MAX is the default. For **Cursor**, the MODEL row renders `CursorModelSelect` (family×effort×flags -> exact catalog id) and the EFFORT row shows `(set via the model picker above)`. Additional sections: `NorthStarSection` (NORTH STAR), `ClaudeNativeThinkingDisplaySection` (THINKING VISIBILITY - omitted/summarized/updates; `updates` requests progress notes on Fable 5 / 5.1 / 5.2 and Mythos 5.1 / 5.2, and degrades to omitted elsewhere), `ClaudeNativeWebBudgetSection` (WEB LOOKUPS/TURN), and the sticky ULTRACODE ON/OFF toggle inside `ClaudeTransportSection`. `OutputStyleSection` (renamed from `ClaudeNativeOutputStyleSection`; shown on every provider) sets `outputStyle` with NORMAL / PLAIN / TERSE buttons; an unset value shows PLAIN (`resolveOutputStyle`), and the hint text is `OUTPUT_STYLE_HINT` (`utils/outputStyleText.ts`), shared with the creator. A REVIEW-SAFE-MODE toggle (`ClaudeNativeReviewSafeModeSection`, Native-only) flips `WorkflowConfig.reviewSafeMode` (default `off`) - when on, sensitive Native tool calls park behind the DEBAG HITL gate - and renders the operator's standing "approve all like this" approvals (`job.standingGateApprovals`) with a per-row REVOKE (`gate_revoke`). An **auto-fold** block under `AutoHandoffSection` (`data-help="rightpanel.config.auto-fold"`) sets `WorkflowConfig.autoFold` `{ enabled, foldAt, tailBudget }` through `update_primary_config` - Native-only deterministic in-place transcript trim that fires when the budget meter crosses **FOLD AT**; a Fold is not counted toward auto-handoff; default OFF. Auto-handoff itself is after N compactions (`afterCompactions`), not a context percentage.
506
+ - **`PreviewTab`** - iframe rendering of the workflow's dev server, fed by a separate listener obtained from `POST /api/preview/lease/<workflowId>`. Each mounted view holds and renews its own lease, releases it on close, and ignores late acquisition results after a member switch. The address appears in the panel; remote access forwards the preview range. PORT input + BIND/UNBIND/RELOAD/OPEN button row + 4:3/16:10/16:9 aspect-ratio segmented control (persists to localStorage `arco.preview.aspect` - global across workflows). A "RECENT" pill row below the controls surfaces this workflow's history of bound ports (most-recent-first, capped at 5; fed by `preview_history` WS message; persisted under `meta.previewHistory`). Click a pill to rebind: the client first hits `GET /api/preview/probe?port=N`; if alive, behaves like a manual BIND; if dead, opens a modal that lists currently-listening services on the box (via `GET /api/preview/listening`, Linux-only; macOS shows empty list with the same explanatory copy) so the operator can pick one to bind to. The listing excludes Arco's own server PID; workflow-spawned dev servers still appear. Iframe is given a fixed logical viewport - width 1920, height per chosen aspect (1440 / 1200 / 1080) - and CSS-scaled (`transform: scale(...)`, computed via `ResizeObserver` on the wrapper) to the largest box-of-that-ratio that fits the pane, then centered both axes. Width-constrained when the pane is wider than tall, height-constrained when taller, never clipped in either axis. The `useLayoutEffect` that drives the scaling depends on `[logicalH, src]` - `src` is in the deps so the effect re-fires when the wrapper div mounts on first BIND (object refs don't notify effects on attach; without that dep `boxStyle` stays null and the iframe never renders until something else remounts the component). `iframeReactKey` includes `preview.port` so a rebind to a different port forces a remount (the proxy URL doesn't encode the port). Sandbox `allow-same-origin allow-scripts allow-forms allow-popups allow-modals`; `allow-top-navigation` is intentionally omitted so a misbehaving page can't hijack the Arco shell.
507
+ - **`WorkflowCreator`** - new-tab / Resume picker. Lists Claude/Codex native sessions per cwd via `GET /api/sessions?path=<cwd>`. Claimed sessions show `★` and reuse the workflowId; unclaimed get a fresh wfid pinned to the native session UUID. The top-of-form MODE toggle switches between SINGLE (one primary agent), CLUSTER (N members), and **GENESIS** (idea -> scaffold, no folder yet - Creative-mode integration). CLUSTER mode shows the **`ClusterPresetsRow`** (labelled SAVED CLUSTER PRESETS); SINGLE mode shows the **`TemplatePickerRow`** (SAVED TEMPLATES, Workbench "recipes"). Both are PRESETS-style pill rows placed after the required steps, just before SAVE AS DEFAULTS and launch. Controls appear only in the modes whose create payload carries them: Ultracode, CONVERSATION (resume) and ADVANCED OPTIONS are single-workflow only (ADVANCED for Claude and Codex, its fallback model for Claude only); chat hides Claude fast mode and the tool-result filter. In CLUSTER mode the order is shared project folder, `ClusterTemplatePicker` (START FROM A TEMPLATE: built-in Pair, Small team, Research, Medium team, Full team, Parallel build and Large team from `clusterTemplates.ts`, plus Build my own; a review lists each member's role, recommended model, effort and reason in words, plus an editable work-size choice for repeated roles (Research unset, two builders recommended Heavy and Standard), asks for provider and model from `availableMemberProviders` with no automatic model choice, pre-fills effort through `capDefaultEffort`, and replaces the members only on USE THESE MEMBERS), `ClusterMembersSection`, a collapsed DEFAULTS FOR NEW MEMBERS frame (`creator-member-defaults`, wrapping the AGENT and tuning bands; it seeds only `+ ADD MEMBER` and says existing members do not change), a collapsed COORDINATION SETTINGS frame (efficiency, message guard, task board, Keep current, note, with a one-line summary when collapsed), then saved presets, existing clusters and snapshots. `ClusterMembersSection` rows read in words (`Role not set`, `<effort> effort`, and work size only when selected); its provider buttons list only enabled, connected member providers (`memberProviders.ts`), keep a saved but unavailable provider visible as `(NOT CONNECTED)`, link to Connections, and show the shared AUTO/SAFE note (`permissionNotes.ts`) and a per-member tuning heading. The PRIMARY AGENT picker uses the same rule (`primaryProviderOptions` in `memberProviders.ts`): enabled, connected providers plus the current one marked `(not connected)`; with no saved default the creator moves to `firstAvailablePrimaryProvider` once Settings and auth status arrive, and `primaryProviderProblem` disables single, chat and Genesis launch with a reason and an Open Connections link. Repeated role names use `numberedName` (`Builder #2`) in both the template review and `deriveDisplayNames`. GENESIS mode hides the working-directory cell + tree and shows a SPARK textarea instead; it launches a cwd-less workflow with `config.genesisSeed` set (title + spark), gated on those two fields rather than a cwd. The rest of the seed is filled in the **`GenesisTab`** (right panel, see below). **Layout (I5, banded):** the centered heading is the selected cwd's folder name (`headingText`, I4) over a `NEW WORKFLOW`/`NEW CLUSTER` subtitle; below the MODE toggle the form is three bordered band cards - **WHERE & SESSION** (dir input + name as a balanced top row; the BROWSE tree and CONVERSATION picker span both columns), **AGENT** (a symmetric 2×2 of provider | model dropdowns over effort | permissions), and **AGENT TUNING** (Claude: fast / tool-result-filter / output-style; every other provider: output-style only). ADVANCED OPTIONS is a standalone full-width collapsible below the bands. Band titles use `glow-text-bright` + a divider to outrank the 11px field labels; each band's inner grid is `1fr 1fr` at ≥1200px, single-column below.
467
508
  - **`TemplatePickerRow`** - the single-tab analogue of cluster presets, backed by `useTemplates` (CRUD over `GET/POST/DELETE /api/templates` -> `~/.arco/templates.json`). Pills apply a saved `WorkflowConfig` snapshot (provider/model/effort/permissions + native knobs + **optional** cwd); `+ SAVE AS TEMPLATE` POSTs the current creator config. **Apply pre-fills, never auto-sends:** cwd pre-fills only for project-pinned recipes; portable templates leave it unset; an optional `seedPrompt`/`plan` is stashed in `pendingTemplateApply` and threaded onto the new tab via a one-shot `WorkflowConfig.templateSpawnToken`. The `workflow_created` handler drains it - seeding the composer draft (`setDraft`) and POSTing the plan to `/api/plans` (`attach:true`) - so neither is auto-sent. The operator initiates either action. Model is applied as-is and validated against the live catalog at apply time (survives renames). The save row in the creator captures config + cwd only; seedPrompt/plan are supported on apply for templates authored elsewhere.
468
- - **`SettingsPanel`** - global settings modal. Collapsible theme picker (default closed; header reads `▶ THEME - <active name>`) with hover-preview pills, per-provider login chips, enabled-providers toggles (both now include `cursor` - a `CURSOR (ACP)` `ProviderRow` whose login chip runs `startLogin('cursor')`), model catalog edit, CLI VERSIONS block (Claude/Codex CLIs + Ollama daemon). Also hosts the **SKILLS** section (of operator-features): list of project + global skills with `[+ NEW]` and per-row `[EDIT] [×]`. Project rows come first; global rows render under a `(GLOBAL)` separator at the bottom. Project skill operations require an active workflow's cwd (read from `useAppStore.getActiveJob.config.workingDirectory`); when no tab is active the new-skill scope defaults to global. Backed by `/api/skills*` (see `HTTP_API.md`). The editor lives in `SkillEditorDialog.tsx` - Name + Description + Body fields, scope toggle on create (fixed on edit), Save POSTs to `/api/skills`. Edits propagate to the next primary turn automatically - the server scans `<cwd>/.arco/skills/` and `~/.arco/skills/` per turn and prepends an XML manifest to the system prompt.
469
- - **Cursor (ACP) UI** - Cursor is a first-class provider (`ProviderName` includes `'cursor'`). Because Cursor bakes reasoning effort into the model id, its picker is `CursorModelSelect.tsx` (family × effort × fast/think chips; never concatenates an id - parses the current id, moves coordinates, then looks up the exact catalog id via `resolveCursorModelId`, degrading via `pickCursorId`). Usage is dashboard-polled, not live (ACP has no per-turn tokens): `UsageTab`'s `CursorUsageCard` + `CursorIncludedGauge` ("Included in Pro" bar driven by Cursor's blended `totalPercentUsed`, **not** used/limit). The compact R-dot hover also renders Cursor's separate **Other Models** bar from `apiPercentUsed`; it does not derive that quota from event totals. `WorkerCard` badge is **R** / `#6cc6d6` / "Cursor (ACP · ~153 models)"; `PrimaryStatus` parses effort **out of the id** (never `config.primaryEffort`). `App.tsx` polls `/api/cursor/catalog` (30-min) -> `setCursorCatalog` and `/api/cursor-usage` (`USAGE_POLL_MS`) -> `setCursorUsage`. Version chip is display-only in `ProvidersPopover` (self-updating; click -> cursor.com/changelog; never flagged outdated).
470
- - **`SystemHeader`** owns the bonus `SystemModal` for global ops. Tabs: **Actions** (restart/shutdown), **Diagnostics** (`DiagnosticsTab` - Ops-A4 status checks), **Models** (`ModelHealthPanel` -; per-backend health rows. When llama.cpp fails to serve, a DD13 `DiagnosisBox` (`data-help="model-health.llamacpp-diagnosis"`) surfaces the likely cause plus one-click set-ctx-size / set-ngl / add-extra-arg fixes (`model-health.llamacpp-fix`) that wholesale-replace the catalog via `GET`/`POST /api/llamacpp/catalog` and reload the alias), **Services** (`ServicesTab` - Ops; **machine-wide** local web/dev service browser: compact rows, open/copy/kill/pin, ~5s auto-poll). Services lives here, not the per-workflow right panel, because it's project-agnostic (the same list regardless of focused workflow).
509
+ - **`SettingsPanel`** - global settings modal. Collapsible theme picker (default closed; header reads `▶ THEME - <active name>`) with hover-preview pills, per-provider login chips, enabled-providers toggles (both now include `cursor` - a `CURSOR (ACP)` `ProviderRow` whose login chip runs `startLogin('cursor')`), model catalog edit, CLI VERSIONS block (Claude/Codex CLIs + Ollama daemon). The **SKILLS** section is `SkillsSettings` (IMPORT, UPDATE, TURN OFF/ON, MOVE, DUPLICATE, SHARE WITH REPOSITORY; see below). Project skill operations need an active tab's cwd; with no tab open, new skills default to global.
510
+ - **Cursor (ACP) UI** - Cursor is a first-class provider (`ProviderName` includes `'cursor'`). Because Cursor bakes reasoning effort into the model id, its picker is `CursorModelSelect.tsx` (family × effort × fast/think chips; never concatenates an id - parses the current id, moves coordinates, then looks up the exact catalog id via `resolveCursorModelId`, degrading via `pickCursorId`). Usage is dashboard-polled, not live (ACP has no per-turn tokens): `UsageTab`'s `CursorUsageCard` + `CursorIncludedGauge` ("Included in Pro" bar driven by Cursor's blended `totalPercentUsed`, **not** used/limit). The compact X-dot hover also renders Cursor's separate **Other Models** bar from `apiPercentUsed`; it does not derive that quota from event totals. `WorkerCard` badge is **X** / `#6cc6d6` / "Cursor (ACP · ~153 models)"; `PrimaryStatus` parses effort **out of the id** (never `config.primaryEffort`). `App.tsx` polls `/api/cursor/catalog` (30-min) -> `setCursorCatalog` and `/api/cursor-usage` (`USAGE_POLL_MS`) -> `setCursorUsage`. Version chip is display-only in `ProvidersPopover` (self-updating; click -> cursor.com/changelog; never flagged outdated).
511
+ - **`SystemHeader`** owns the bonus `SystemModal` for global ops. Tabs: **Actions** (restart/shutdown), **Diagnostics** (`DiagnosticsTab` - Ops-A4 status checks), **Models** (`ModelHealthPanel` -; per-backend health rows. When llama.cpp fails to serve, a DD13 `DiagnosisBox` (`data-help="model-health.llamacpp-diagnosis"`) surfaces the likely cause plus one-click set-ctx-size / set-ngl / add-extra-arg fixes (`model-health.llamacpp-fix`) that wholesale-replace the catalog via `GET`/`POST /api/llamacpp/catalog` and reload the alias), **Services** (`ServicesTab` - Ops; **machine-wide** local web/dev service browser: compact rows, open/copy/kill/pin, ~5s auto-poll). Services lives here, not the per-workflow right panel, because it's project-agnostic (the same list regardless of focused workflow). Diagnostics and Model Health reject failed or invalid reads and keep the refresh control available for retry.
471
512
  - **`UserManual`** - comprehensive operator-facing manual, opened from the header `MANUAL` button. Two-column layout (left TOC with grouped sections + live search; right scrolling content). Listens for `arco:manual-jump` window events so the contextual help popover's "READ MORE IN MANUAL ->" button can deep-link to a section.
472
- - **`RecallView`** (Workbench, `components/Recall/`) - the **top-level Recall search overlay**: a portal modal (like `UserManual`, Escape / backdrop to dismiss) over `GET /api/recall/search`, gated on `appStore.showRecall`. Search box + project/provider/date filters + a transcript-full-text toggle (default OFF, disabled when `rg` is absent), and a ranked result list (`RecallResultRow`) with highlighted FTS5 snippets. Search state (hits + filters + `runSearch`) lives in the standalone `recallStore` (not `appStore`), debounced 180ms on filter change. **Entry points:** the command-palette command "Recall: search conversations" and the header **⌕ RECALL** button. **Not** a per-tab RightPanel sub-tab - it spans every conversation Arco has run. Result actions: Jump-to-transcript/Resume (switches to the tab if it's open) is live; Open-summary is a graceful "no summary yet" stub until F2; Reference-in-current-tab is a disabled stub deferred to D1. See `docs/RECALL.md`.
513
+ - **`RecallView`** (Workbench, `components/Recall/`) - the **top-level Recall search overlay**: a portal modal (like `UserManual`, Escape / backdrop to dismiss) over `GET /api/recall/search`, gated on `appStore.showRecall`. Search box + project/provider/date filters + a transcript-full-text toggle (default OFF, disabled when `rg` is absent), and a ranked result list (`RecallResultRow`) with highlighted FTS5 snippets. Search state (hits + filters + `runSearch`) lives in the standalone `recallStore` (not `appStore`), debounced 180ms on filter change. **Entry points:** the command-palette command "Recall: search conversations" and **RECALL** in the header KNOWLEDGE menu. **Not** a per-tab RightPanel sub-tab - it spans every conversation Arco has run. Result actions: Jump-to-transcript/Resume (switches to the tab if it's open) is live; Open-summary is a graceful "no summary yet" stub until F2; Reference-in-current-tab is a disabled stub deferred to D1. See `docs/RECALL.md`.
473
514
  - **Help system** - contextual help mode. State lives in `appStore` (`helpMode`, `activeHelpPopover`, `activeDocRef`). `useHelpMode` (in `client/src/help/useHelpMode.ts`) installs the body-class toggle, the capture-phase click handler that intercepts `[data-help]` clicks while help mode is on, and the Escape exit. Help-system widgets carry the `help-system-ui` class so the body-level `pointer-events: none` rule (in `styles/contextual-help.css`) doesn't disable them. Per-element content keys live in the `HELP_CONTENT` registry (`client/src/help/content/`, re-exported from `helpContent.tsx`); ~388 surfaces across the app are annotated with `data-help="<key>"` (~435 usages - many added in the 2026-06 refactor: `composer.fold` / `composer.posture` / `composer.project-trust`, `cluster.board-add-task` / `cluster.board-columns` / `cluster.board-automation-toggle` / `cluster.task-edit`, `model-health.llamacpp-diagnosis` / `-fix`, `rightpanel.config.auto-fold`, ...). `npm run docs:check` keeps the registry, the `data-help` usages, and the manual `manualSection` links in sync - see "Help-system doc-sync checker" below.
474
515
  - **`DocRef`** - clickable in-app file-path chip used by the manual + help popovers. On click, sets `activeDocRef` so `DocViewer` opens. Replace-in-place semantics: clicking another `DocRef` from inside `DocViewer` swaps content, no nested stack.
475
516
  - **`DocViewer`** - modal stacked above the manual (z=9520) that reads from `GET /api/docs?file=<repo-relative path>` and renders markdown via the same ReactMarkdown + rehype-highlight pipeline as `FileViewerModal`. Source files (`.ts`/`.tsx`/`.js`/`.json`/etc.) are wrapped in a fenced code block so syntax highlighting reuses the existing pipeline.
476
517
  - **`HandoffPromptsEditor`** - mounted inside `SettingsPanel`. Two cards (FRESH-SUMMARIZER / ORIGINAL-WORKER) showing the effective handoff seed prompt with project / global / default scope pills (`ScopePill`). Click a scope to override at that level; commit via `POST /api/handoff-prompts`. Active cwd is read from `useAppStore.getActiveJob.config.workingDirectory`.
518
+ - **`SkillsSettings`** (`components/SkillsSettings.tsx`) - the Settings > SKILLS section: rows with OFF, usage, extra files, import source and missing referenced skills (`GET /api/skills/details`), and EDIT, TURN OFF/ON, MOVE, DUPLICATE, UPDATE, SHARE WITH REPOSITORY and delete. `SkillImportDialog` (also opened from the composer SKILLS menu), `SkillUpdateDialog` (per-file diff with `diff`) and `SkillShareDialog` use `DialogShell`. See [HTTP API](HTTP_API.md) for `/api/skills/import/*`, `/update/*`, `/state`, `/move`, `/duplicate`, `/share`.
477
519
  - **`SkillEditorDialog`** - stacked above `SettingsPanel`. Name / Description / Body fields, scope toggle on create (fixed on edit). `POST /api/skills`; edits propagate to the next primary turn (server re-scans `<cwd>/.arco/skills/` + `~/.arco/skills/` per turn and prepends an XML manifest to the system prompt). An **AUDIT** button (`POST /api/skills/audit`) runs an operator-triggered security scan of the current body - diagnostic-only, surfaced inline, never blocks Save.
478
520
  - **`RunAsPicker`** - shared provider / model / effort picker used by `GitDialog` and `DocsUpdateDialog`. Exports `spawnConfigFromRunAs(parentConfig, selection, nameSuffix)` which inherits the parent config but overrides primary fields, suffixes the workflow name, and clears `resumeSessionId/resumeWorkflowId` so the new tab is fresh. When the picker selection matches the parent's current primary the dialog dispatches in-tab via `onConfirm(prompt)`; when changed it calls `onSpawn(newConfig, prompt, false)`. `ReviewDialog` and `SpawnDialog` have their own embedded pickers and could adopt this shared component to dedupe ~80 LOC each.
479
521
  - **`NotificationToasts`** - top-right toast stack subscribed to `appStore.notifications`. Auto-dismisses 6 s after `createdAt`; backed by `pushNotification` / `dismissNotification` actions. The WS `error` handler is the primary producer so cluster-action rejections (Native fence, sandbox 503, etc.) surface regardless of which tab is focused.
480
522
  - **`PlanBodyRenderer`** (2026-05-11; top-level `components/PlanBodyRenderer.tsx`) - shared rich plan renderer extracted from the former inline `PlanBody`. Renders H1/H2/H3 styling, clickable `- [ ]` / `- [x]` checkboxes (optimistic toggle), per-H3 action pill rows, and exports `CHECKBOX_RE` for host components. Used by both the per-worker PLAN tab (`RightPanel/PlanTab.tsx`) and `ClusterPlanTab.tsx` so the two surfaces stay visually identical. Action-pill set varies per host (worker plan: DETACH / PROMOTE / MOVE / DONE; cluster plan: none - the cluster plan IS the cluster plan). On a cluster-member plan whose board is attached it also renders a `-> TASK` pill next to each unchecked item (`onPromoteTask`) that promotes the item text into a durable board task (`task_ledger_create`).
481
523
  - **`PlanCandidateBanner`** - REFINE (shown when the host passes `onSend`) opens a note field and `beginPlanRefine` (`terminalInput/planDraft.ts`) sends a `plan-review` turn carrying the current draft and the note; the reply replaces `planCandidate`, the old draft stays until then, the buttons are disabled while `pendingPlanCapture` is set, and nothing is saved until attach. Mounts between chat and composer when `job.planCandidate` is set. Captures from the latest finalized assistant message at `primary_complete` time; `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply. Cluster-member tabs offer `ATTACH TO CLUSTER` as the only save button, with `REFINE` and `DISCARD` (resolved by `App.tsx` from the member's `clusterId`). A detection-based fallback in `ws/handleServerMessage.ts` (`looksLikePlan` from `ws/streamState.ts`: H1 + ≥3 checkbox lines) surfaces the banner in `review` mode even when the operator didn't click PLAN before sending.
482
- - **`PublicProjectBox`, `ProjectStateNotice`, INSERT GUARDRAILS** - the public-project guardrails. `PublicProjectBox` (`utils/publicProject.ts`) is the "This project is public (or will be)" checkbox in the cluster creator, beside DRAFT A PLAN and in the PLAN dialog; the choice is stored per project folder in localStorage (`arco.publicProject.<folder>`) and `effectivePublic` feeds `planDraftPrompt`/`beginPlanReview`, which append the shared template request from `@arco/shared` (`publicGuardrails.ts`) only when true. A confirmed-public GitHub remote (`GET /api/public-project/remote`) pre-ticks the box with a visible reason; an explicit choice wins. INSERT GUARDRAILS in `ClusterPlanTab` and `RightPanel/PlanTab` calls `insertGuardrails` and leaves an unsaved edit; it is disabled when `hasGuardrails` is true. `ProjectStateNotice` (in `ClusterTab` and `WorkflowView`, skipped for isolated members) reads `GET /api/public-project/state` and offers RESTORE IGNORE FILE and STOP TRACKING; dismissal is stored per folder (`arco.projectStateNotice.<folder>`).
524
+ - **`PublicProjectBox`, `ProjectStateNotice`, INSERT GUARDRAILS** - the public-project guardrails. `PublicProjectBox` (`utils/publicProject.ts`) is the "This project is public (or will be)" checkbox in the cluster creator, beside DRAFT A PLAN, in plan editors, draft review, Genesis and the plans library; the choice is stored per project in the Arco home and cached in the browser; `effectivePublic` feeds `planDraftPrompt`/`beginPlanReview`, which append the shared template request from `@arco/shared` (`publicGuardrails.ts`) only when true. A confirmed-public GitHub remote (`GET /api/public-project/remote`) pre-ticks the box with a visible reason; an explicit choice wins. INSERT GUARDRAILS in plan tabs, the draft banner and the plans library calls `insertGuardrails` and leaves an unsaved edit; it is disabled when `hasGuardrails` is true. `ProjectStateNotice` (in `ClusterTab` and `WorkflowView`, skipped for isolated members) reads `GET /api/public-project/state` and offers RESTORE IGNORE FILE and STOP TRACKING; dismissal is stored per folder (`arco.projectStateNotice.<folder>`).
483
525
  - **`AskUserQuestionNotice`** - inline reply form rendered by `ChatMessage` when it detects the `[ASK:claude-native:<questionId>]` sentinel a Native worker emits via `system_notice`. Parses an `[ASK_OPTIONS:opt1 | opt2]` line into option chips; otherwise renders a text input. Submits `ask_user_question_reply { workflowId, questionId, reply }` via `wsSendRaw`; the worker resolves the awaiting tool-result Promise.
484
526
  - **`GateApprovalNotice`** (Native-only v1; see [PRIMITIVES.md](PRIMITIVES.md)) - the inline edit-then-approve card `ChatMessage` renders when it sees a synthetic `gate::<gateId>` row (`message.toolUse.tool === 'Gate'`) that the `gate_required` broadcast anchored into chat. Shows the parked sensitive tool call (Bash command line, or pretty-JSON for other tools) with an editable textarea (edit-then-approve), APPROVE / REJECT (sends `gate_reply` via `wsSendRaw`), and an "approve all like this" checkbox. `gate_resolved` flips the row's status in-place (`resolveGate`); standing approvals arrive via `gate_standing` -> `setStandingGateApprovals` and render + revoke (per-row `gate_revoke`) inside `ClaudeNativeReviewSafeModeSection` in CONFIG. Arg helpers live in `client/src/utils/gateArgs.ts` (`buildGateFinalArgs` / `renderGateArgs`). Gated behind the per-tab `reviewSafeMode` flag (default off).
485
527
  - **`HistoryTab`** - covered in detail under the right-panel section below.
486
528
 
487
- - **`UsageTab`** (Workbench, `components/RightPanel/UsageTab.tsx`) - the **USAGE** right-panel tab. Fetches `GET /api/usage-stats?path=<cwd>` (read-only, deterministic aggregation of the existing `primary_turn_token_usage` events under this workflow's cwd - **no new capture, no LLM**) and renders **per-provider, per-day token-volume + cache-hit-ratio trends**, framed as **quota-pressure / token-volume insight** ("which tab/model is eating my rolling window") - there is deliberately **no USD / cost framing** anywhere (subscriptions). Charts are **hand-rolled inline SVG** - a `<polyline>` sparkline of daily prompt volume per provider (single-day series renders as a dot) plus a `<rect>` cache-hit-ratio bar - so there's **no chart-library dependency**. The cache-hit ratio is computed server-side with the provider-correct denominator (Claude's input/cache fields are disjoint; Codex's `cacheRead` is a subset of `input`), so the tab just displays it. A ↻ refresh button re-fetches; an empty/missing-cwd/zero-turn state degrades to an `EmptyState`. When Cursor is logged in, a `CursorUsageCard` (framed "· polled · not live") renders above the aggregation - embedding `CursorIncludedGauge`, MTD tokens/events, per-kind chips, a ↻ re-poll (`/api/cursor-usage?force=1`), and a dashboard link - even on Cursor-only projects that have no per-turn events.
529
+ - **`UsageTab`** (Workbench, `components/RightPanel/UsageTab.tsx`) - the **USAGE** right-panel tab. Fetches `GET /api/usage-stats?path=<cwd>` (read-only, deterministic aggregation of the existing `primary_turn_token_usage` events under this workflow's cwd - **no new capture, no LLM**) and renders **per-provider, per-day token-volume + cache-hit-ratio trends**, framed as **quota-pressure / token-volume insight** ("which tab/model is eating my rolling window") - there is deliberately **no USD / cost framing** anywhere (subscriptions). Charts are **hand-rolled inline SVG** - a `<polyline>` sparkline of daily prompt volume per provider (single-day series renders as a dot) plus a `<rect>` cache-hit-ratio bar - so there's **no chart-library dependency**. The cache-hit ratio is computed server-side with the provider-correct denominator (Claude's input/cache fields are disjoint; Codex's `cacheRead` is a subset of `input`), so the tab just displays it. A ↻ refresh button re-fetches; an empty/missing-cwd/zero-turn state degrades to an `EmptyState`. When Cursor is logged in, a `CursorUsageCard` (framed "· polled · not live") renders above the aggregation - embedding `CursorIncludedGauge`, MTD tokens/events, per-kind chips, a ↻ re-poll (`/api/cursor-usage?force=1`), and a dashboard link - even on Cursor-only projects that have no per-turn events. Failed or invalid usage reads show an error; reopen USAGE to retry.
488
530
  - **`TasksPanel`** + **`TaskCard`** - covered under the right-panel section.
489
531
  - **`MemberCard` mail mark** - `pendingMail` (from `cluster.mailboxDepth`) renders a mail mark with the count; muted while the member is busy, warning-colored button while idle that calls `onNudge` (the `ClusterTab` `nudgeMembers` path, no toast). `clusterHasIdleMail` in `utils/tabStatus.ts` feeds an idle member with mail into the cluster tab and Home card Needs you status.
490
532
  - **Cluster components** (`ClusterTab` / `ClusterRightPanel` / `ClusterPlanTab` / `ClusterActivityTab` / `ClusterMemberPicker` / `MemberCard` / `MemberPane` / `TabContextMenu`) - covered in the cluster-tab section below.
@@ -496,7 +538,7 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
496
538
 
497
539
  ### Help-system doc-sync checker (`scripts/docs-check.ts`)
498
540
 
499
- The three help pieces - `data-help="key"` attributes on elements, the `HELP_CONTENT` registry (`client/src/help/content/`, assembled in `helpContent.tsx`), and the manual sections (`client/src/help/manualSections/`, each a `{ id, title, group, body }`) - have no compile-time link. `npm run docs:check` (Workbench Expansion) is a deterministic static validator that keeps them in sync. It runs as text/regex scans (the house style of `scripts/size-check.ts`), exits non-zero on a real orphan, and is wired into the per-phase DONE checklist (see `CONTRIBUTING.md-sync`).
541
+ The three help pieces - `data-help="key"` attributes on elements, the `HELP_CONTENT` registry (`client/src/help/content/`, assembled in `helpContent.tsx`), and the manual sections (`client/src/help/manualSections/`, each a `{ id, title, group, body }`) - have no compile-time link. `npm run docs:check` is a deterministic static validator that keeps them in sync. It runs as text/regex scans (the house style of `scripts/size-check.ts`), exits non-zero on a real orphan, and is wired into the per-change checklist in [`CONTRIBUTING.md`](../CONTRIBUTING.md).
500
542
 
501
543
  What it validates:
502
544
 
@@ -526,6 +568,8 @@ Consumer today: **`MediaModalHost.tsx`** (`section="media-studio"`, in the heade
526
568
 
527
569
  ## Chat rendering pipeline
528
570
 
571
+ Ordinary application JSON stays visible when it uses keys such as workers, stateMutations or qualityVerdicts. Only validated legacy envelopes are collapsed. Complete and streaming `arco-artifact` fences use artifact placeholders. Windows drive and UNC filenames can be opened from chat references.
572
+
529
573
  `ChatPanel.tsx`'s `displayMessages` memoization is the linchpin. It runs only when `job.sessionChat` or `job.messages` change - the composer auto-grow on keystrokes does NOT invalidate this memo, so the virtualizer doesn't recalc and the chat doesn't jitter.
530
574
 
531
575
  ### Two render paths
@@ -549,7 +593,7 @@ The sort handles out-of-order frame arrivals on the wire (long pauses between te
549
593
  3. For each `job.messages` entry, decide its fate:
550
594
  - **System notice** - keep as-is.
551
595
  - **Streaming bubble** - try to trim the prefix that sessionChat has already materialized. If the suffix is empty after trim, drop the bubble. If trim fails but normalized whitespace matches, drop. If the streaming content has genuinely diverged from sessionChat, keep but pin to bottom (`timestamp = lastSessionTs + 1`).
552
- - **Queued user message** - drop (surfaces in `QueuedMessagesIndicator`'s strip above the composer; the strip's source of truth is `job.queue`, kept in sync via the `queue_update` WS event).
596
+ - **Queued user message** - drop (surfaces in the composer status line as **PENDING**; open it to inspect, preview, edit or cancel. Source of truth is `job.queue`, kept in sync via the `queue_update` WS event).
553
597
  - **Operator user message** - keep if there's no sessionChat echo within 5s (proximity-based dedup).
554
598
  4. Build `optimisticUserMetaByKey` to merge optimistic-add metadata (timestamp + attachments) onto the matching sessionChat echo. Only merge if within `DEDUP_WINDOW_MS = 5000`.
555
599
  5. Concat `enrichedSession + extras`, sort by timestamp.
@@ -564,7 +608,7 @@ Scan `displayMessages` for `[HANDOFF U+2014` and spawn-suffix prefixes. If found
564
608
 
565
609
  Implementation note: the selector reads the full `clusters` map (`useAppStore((s) => s.clusters)`) and the derivation runs through `useMemo` keyed on `[clusters, lookupWfid]`. Selecting a fresh-object literal each render (`s => ({ name, role })`) re-runs the memo every commit and triggers an infinite update loop - keep the selector pointing at the referentially-stable map.
566
610
 
567
- Row identity uses deterministic ids (`peer-sent-<msgId>` / `peer-recv-<msgId>`) so rehydrate-on-subscribe + tsx-watch restarts are idempotent. Three-layer dedupe: WS handler intake check, `appStore.addMessage` defense-in-depth, `onRehydrateStorage` strips historical duplicates on load. See `GOTCHAS.md-polish push gotchas`.
611
+ Row identity uses deterministic ids (`peer-sent-<msgId>` / `peer-recv-<msgId>`) so rehydrate-on-subscribe + tsx-watch restarts are idempotent. Three-layer dedupe: WS handler intake check, `appStore.addMessage` defense-in-depth, `onRehydrateStorage` strips historical duplicates on load. See [Gotchas](GOTCHAS.md).
568
612
 
569
613
  ### "Run in terminal" chat chip (Workbench Expansion)
570
614
 
@@ -633,8 +677,7 @@ tools over the app store (select, panels, send/steer/follow-up via
633
677
  their dialog state, and `voice/screen.ts` is the generic layer (`readScreen`,
634
678
  `actOnScreen`, `readText`) over the live DOM. `buildCheck.ts` +
635
679
  `StaleBuildBanner` flag a tab left on an older bundle after a rebuild.
636
- Audio is memory-only; Computer offers saved or strict memory-only history (Strata is saved-only). See
637
- [VOICE.md](VOICE.md) Computer works today.
680
+ Audio is memory-only; Computer offers saved or strict memory-only history (Strata is saved-only). See [VOICE.md](VOICE.md) for the Computer voice workflow.
638
681
 
639
682
  Capture acknowledgement uses the bundled quiet 230 ms Soft double pulse from
640
683
  `/api/voice/ready-sound`, with unity gain and no normalization. It plays only
@@ -655,6 +698,10 @@ capture preservation and two display-font overrides.
655
698
 
656
699
  ## Composer state
657
700
 
701
+ CATCH ME UP resets its running state when switching workflows or clusters and cancels the old scope request. A late result cannot block summarization in the new scope.
702
+
703
+ In Chat, EDIT replaces both the draft text and its attachments. Editing a text-only message clears unrelated staged files. Claude Native question options preserve escaped pipe characters and original backslashes as part of the same answer.
704
+
658
705
  `TerminalInput.tsx` decides between idle and queue mode based on:
659
706
 
660
707
  ```ts
@@ -681,9 +728,9 @@ When `isBusy`:
681
728
  - `Alt+↑` -> recall most recently queued message into the editor (replaces draft; takes the last follow-up if any, otherwise the last steer)
682
729
  - `Esc` -> cancel the in-flight turn; if the queue is non-empty the client confirms via `window.confirm("Drop N queued messages?")` first
683
730
  - `Shift+Esc` -> force-cancel without the prompt
684
- - Steering drains at provider boundaries on Codex app-server, Claude Native and local tool loops; single-shot transports deliver it after completion. Interrupt uses a separate cancellation path. Its queue entry carries `interrupt:true`, and the queue strip/modal labels it **INTERRUPT & SEND**.
731
+ - Steering drains at provider boundaries on Codex app-server, Claude Native and local tool loops; single-shot transports deliver it after completion. Interrupt uses a separate cancellation path. Its queue entry carries `interrupt:true`, and the PENDING list labels it **INTERRUPT & SEND**.
685
732
 
686
- The send hook (`useWebSocket.sendMessage`) takes an optional `kind` argument. Explicit `interrupt` survives a stale client busy flag; the server starts normally if already idle. Other idle sends bypass the queue. The optimistic add's `queueKind` field drives the per-message [steer] / [follow-up] pill in the queue strip and modal.
733
+ The send hook (`useWebSocket.sendMessage`) takes an optional `kind` argument. Explicit `interrupt` survives a stale client busy flag; the server starts normally if already idle. Other idle sends bypass the queue. The optimistic add's `queueKind` field drives the per-message [steer] / [follow-up] label in the PENDING list.
687
734
 
688
735
  `Esc` in an empty composer (idle) still cancels the most-recent queued message via `onCancelQueued` for muscle-memory parity, but with the busy-path Esc cancelling the whole turn this is rare.
689
736
 
@@ -691,13 +738,13 @@ Drafts (`draftStore`) and attachments (`appStore`) are keyed by `workflowId` so
691
738
 
692
739
  **`/goal` command** - `/goal <objective>` sets, bare `/goal` queries, `/goal clear|none` clears the standing north-star (regex won't match `/goalkeeper`); pushes a local system row, never sends a turn.
693
740
 
694
- ### Inline plan-mode toggle (Claude Native only)
741
+ While a turn is busy, `TURN` at the right of the NORTH STAR row shows elapsed turn time in single tabs and cluster member panes. The conversation header continues to show the current step time. After a browser reload during a turn, the server restores the original start when known; an older server or a turn with no known start uses the reconnect time. Idle tabs hide it. Single-tab ACTIVITY rows show local clock times, matching the cluster feed.
695
742
 
696
- Above the textarea, `TerminalInput.tsx` renders a `⛔ PLAN MODE - GATE WRITE TOOLS FOR NEXT TURN` checkbox. Visibility is gated on `job.config.primaryProvider === 'claude'` AND the resolved transport (`job.config.claudeTransport ?? settings.claude.transport ?? 'cli'`) being `'native'`; on every other provider/transport the row renders nothing (no reserved space). Local-only state (`planModeArmed: boolean`) - not persisted to the store, not in localStorage, so a reload or tab swap clears it. The placeholder text shifts to `Type your task - plan mode armed for next turn` when armed; no banner.
743
+ ### PLAN FIRST (Claude Native only)
697
744
 
698
- Send-time-fire: when the operator hits send with the box checked, `handleSubmit` first calls `onArmPlanMode` (dispatches `enter_plan_mode_request` over the WS) and then the regular `onSend`. Server processes them in order: `pendingPlanModeEntry` is set, then the upcoming turn dispatch picks it up and arms the worker. Auto-clears on every send - single-turn arming. If the operator unchecks before sending, no WS message fires (toggle state is the source of truth).
745
+ `PLAN FIRST (next turn)` sits beside NORTH STAR above the composer. It arms the next Native Claude turn to plan before editing and is separate from the attached project plan. It is hidden for director, coordinator, reviewer, researcher and documenter cluster members, and members whose roles prohibit code changes and for other providers or transports. The local-only toggle clears after sending or leaving the tab. When armed, the placeholder reads `Type your task: plan mode armed for next turn`.
699
746
 
700
- Wire path through the rest of the app: `useWebSocket.armPlanMode` -> `App.tsx` -> `WorkflowView` -> `TerminalInput` (`onArmPlanMode` prop). Callback chain mirrors `onSpawn` / `onHandoff` for symmetry.
747
+ Sending while armed dispatches `enter_plan_mode_request` before the normal message. The server gates Write and Edit until the worker exits plan mode. Bash is not gated.
701
748
 
702
749
  ### Fold / posture / project-trust pills (Claude Native)
703
750
 
@@ -710,6 +757,8 @@ The composer status row gained three Native-only operator surfaces (all gated on
710
757
 
711
758
  The composer button row also carries **SECOND OPINION** (`composer.compare` -> `CompareDialog`, formerly COMPARE), **RESEARCH** (`composer.research` -> `ResearchDialog`), **✎ TUNEUP** (`composer.tuneup` -> `MdTuneupDialog`), **REMOTE** (per-workflow hub opt-in), **SKILLS**, a single menu with Arco-managed playbooks and, for Claude CLI or Codex, a separate provider-native section. NEW SKILL opens the editor; unsupported transports do not show a native section. Each Arco-managed skill row has **APPLY ONCE** (stages `pickedSkills`, full body inlined into the next user turn) and **PIN TO TAB** (whole-set `update_primary_config { pinnedSkills }`; durable refs in meta, current bodies injected as standing system instructions every turn). Pinned chips stay visible above the composer with × unpin; `pinned_skills_set` synchronizes observers and adds a SKILLS activity row. Both modes include `operatorOnly` skills hidden from automatic discovery. **⊟ COMPACT** sits alongside the documented REVIEW / HANDOFF / SPAWN / DOCS / GIT; on Cursor it dispatches native `/compress` without normal prompt prefixes, and the worker header reads `CTX: Cursor-managed` because ACP supplies no retained-context count.
712
759
 
760
+ TUNE MD discovery skips Git-ignored directories and nested Git checkouts or worktrees. Individually ignored instruction files and an explicitly selected ignored folder remain searchable. Useful hidden guidance remains discoverable. The scan stops at entry, time or depth limits and shows Results truncated instead of claiming its list is complete. Opening a smaller project folder narrows discovery. File metrics, linked-file reporting, proposal review, ACCEPT and UNDO keep their existing behavior.
761
+
713
762
  ### Context refs (`@file:` / `@diff` / `@staged` / `@git:N` / `@url:`)
714
763
 
715
764
  Inline composer expansion. The operator types an `@`-ref in the draft and Arco expands it into the turn's context at send time - killing the "paste this file/diff in" friction.
@@ -718,7 +767,11 @@ Inline composer expansion. The operator types an `@`-ref in the draft and Arco e
718
767
 
719
768
  - **Parse (client, pure).** `client/src/components/composer/contextRefs.ts` exports `parseContextRefs(text): ContextRef[]` - a pure, DOM-free parser (no React imports, so the headless smoke imports it directly). The grammar, one regex anchored on `@` at a word boundary (so an email `a@b.com` or npm scope `@scope/pkg` mid-token isn't matched): `@file:<path>` (path to next whitespace), `@diff`, `@staged` (bare keywords with a `\b` so `@diffstat` doesn't match), `@git:<digits>` (digits only - `@git:abc` is left as plain text), `@url:<url>`. Each `ContextRef` carries `kind` / `raw` / `arg` / `count` / `start` / `end`.
720
769
  - **Chip (client).** `TerminalInput.tsx` memoizes `parseContextRefs(draft)` and renders a chip bar above the attachments bar - one chip per ref, with a `×` that strips the ref's exact span from the draft (`removeContextRef(start, end)`). The chips are purely a visual affordance; the server is the source of truth (it re-parses + expands). `@url:` chips render dimmed with a "not yet supported" tooltip. `data-help="composer.context-refs"`.
721
- - **Server-expand.** `server/src/contextRefs.ts` `expandContextRefs(cwd, content)` runs once in `turnEngine.handleUserMessage`, **before the busy/queue split**, so queued AND immediate sends both carry the expansion. The grammar is duplicated there (the client file lives outside the server tsconfig `rootDir`, so they can't share a module - kept in lockstep by hand). `@file:` confines via `resolveWithinCwd` + a realpath re-check (symlink-escape guard) and is byte-capped at 64 KB with an explicit `... [truncated N bytes]` marker; `@diff`/`@staged` go through `git.ts` `gitDiff` (execFile argv only); `@git:N` validates N is a positive integer and caps it at 50 via `gitLog`. Every failure (missing file, traversal, non-repo, git error) becomes a readable notice - `expandContextRefs` never throws into the turn loop. `@url:` is **recognized-but-deferred**: it expands to a clear "not yet supported" notice rather than fetching (a safe SSRF-guarded fetch is a security-sensitive sub-phase of its own - see deferral). The expanded blocks append to the **model prompt** (after the plan prefix) under a `--- Context (@file:src/x.ts) ---` header; the chat **echo stays compact** (the raw `@file:...` text the operator typed). Queued messages stash their block on the `QueueItem.expandedContext` field and re-append on drain.
770
+ - **Server-expand.** `server/src/contextRefs.ts` `expandContextRefs(cwd, content)` runs once in `turnEngine.handleUserMessage`, before the busy/queue split. `@file:` confines the path to the project and passes supported documents and notebook cells through the shared decoder. It limits expanded text to 64 KiB per reference and carries media through the provider attachment path. SVG references carry source text; image-capable models also receive a fitted preview when rendering succeeds, while text-only models receive an image-omission note. Both count toward the aggregate context budget. Binary files produce a note.
771
+
772
+ `@diff` and `@staged` use `gitDiff`; `@git:N` caps N at 50. Failures become readable notices. `@url:` remains unsupported.
773
+
774
+ Expanded text is sent with the prompt while the chat echo stays compact. Queued messages retain the expansion and any media until delivery.
722
775
  - **Log.** When any ref expands, the server emits a `system_notice` summarizing the per-ref outcome (expanded / truncated / refused / deferred), which `send` seq-stamps into `events.jsonl` - visible + reviewable per the four-question test, like attachments.
723
776
 
724
777
  Smoke: `npm run smoke:context-refs` (`scripts/smoke/context-refs.ts`) - unit-tests the parser and exercises the real expander against this checkout (real `@file:package.json`, `@diff`, `@git:2`, plus path-traversal refusal and oversized-file truncation). No WS, no server boot.
@@ -806,15 +859,12 @@ Lifecycle and accessibility behavior is implemented by the theme components.
806
859
 
807
860
  **Classic shader rule (2026-04-27):** background shaders avoid soft-glow / radial-gradient / breathing-blob layers. 8-bit alpha compositing produces visible posterization rings on smooth low-amplitude gradients against near-black. Use structural elements only - particles, streaks, grids, dots, vein lines, scanlines, hard-edged cells. Vignettes / atmospheric noise washes / orb halos were stripped from every dark-mood shader in the 2026-04-27 pass.
808
861
 
809
- Notable shader-related commits:
810
- - `8a5af37` - switched to `highp` precision and bounded hash inputs to prevent long-uptime freezes (Mali GPU NaN cascade)
811
- - `0691c8e` - toned down background effects across four themes (operator feedback)
812
- - (this commit) - banding-prone radial gradients stripped across all dark-theme shaders; bloom canvas pixel ratio raised 0.4× -> 1.0×; matrix font swap; font-pack override system
813
-
814
862
  CSS animations are gated by data attributes set in apply: `data-anim-scan` / `data-anim-pulseHalo` / `data-anim-flicker`. Each theme opts in.
815
863
 
816
864
  ### Theme switching
817
865
 
866
+ Switching palettes removes optional tokens supplied only by the previous theme, including classic link colors. Independent preferences remain unchanged.
867
+
818
868
  `store.setThemeId(id)` is optimistic: applies locally first, then PATCHes `/api/settings`. On failure, reverts.
819
869
 
820
870
  `store.setFontPackOverride(id | null)` follows the same pattern; passing `null` clears the override.
@@ -826,9 +876,9 @@ provider-auto) from **Arco Phosphor** (68 namespaced Phosphor palettes).
826
876
  Phosphor shares one paint-only CRT treatment, with category/search selection,
827
877
  independent effects and glow-softness controls, and existing font/brightness/
828
878
  crisp/frost preferences. No workbench layout or content is rearranged. See
829
- The theme components and settings panel manage integration and deployment.
879
+ Theme switching and display preferences are implemented by `client/src/themes/` and the Settings appearance controls.
830
880
 
831
- The 42 (alphabetical by id): abyssal · amber-crt · arch · arrakis · aurora · bloodmoon · blueprint · braun · cassette-futurism · cherenkov · cicada · concrete · copper · cute · dark-academia · dsky · everforest · forest · frutiger-aero · holographic · infrared · kintsugi · lavender · matrix · midnight-tokyo · nebula · night-city · noir · ocean · arco-default · arco-jungle · oscilloscope · red-planet · seismograph · sentinel · solar-paper · sonar · stealth · tarkovsky · ume · unfinished-works · voyager. (`registry.ts` is the live source; it also wires the dynamic `provider-auto` sentinel separately from these named themes.) Red Planet and Everforest provide optional exact xterm Core + ANSI palettes; other themes retain xterm's default ANSI colors while inheriting the app background, foreground, and cursor.
881
+ The 42 named theme IDs are: abyssal, amber-crt, arch, arrakis, aurora, bloodmoon, blueprint, braun, cassette-futurism, cherenkov, cicada, concrete, copper, cute, dark-academia, dsky, everforest, forest, frutiger-aero, holographic, infrared, kintsugi, lavender, matrix, midnight-tokyo, nebula, night-city, noir, ocean, arco-default, arco-jungle, oscilloscope, red-planet, seismograph, sentinel, solar-paper, sonar, stealth, tarkovsky, ume, unfinished-works, voyager. (`registry.ts` is the live source; it also wires the dynamic `provider-auto` sentinel separately from these named themes.) Red Planet and Everforest provide optional exact xterm Core + ANSI palettes; other themes retain xterm's default ANSI colors while inheriting the app background, foreground, and cursor.
832
882
 
833
883
  ---
834
884
 
@@ -855,6 +905,10 @@ The 42 (alphabetical by id): abyssal · amber-crt · arch · arrakis · aurora
855
905
 
856
906
  ## Right panel tabs
857
907
 
908
+ The GitHub Code view decodes README and file contents as UTF-8. Tree, README and file reads are cancelled and ignored after selection changes. Relative document links separate decoded repository paths from URL fragments; opening the file scrolls to its section.
909
+
910
+ In CONFIG, the codebase memory index draft resets when the member changes. Expanded review rows load their report when completion arrives and clear a previous read error on success.
911
+
858
912
  | Tab | Component | Data source |
859
913
  |---|---|---|
860
914
  | FILES | `FileExplorer` + a `LIVE` sub-tab (`LiveChangesPanel`, live working-tree subscription via `liveChangesStore`) + a `CHANGES` sub-tab (`ChangesPanel`, A3 whole-tree diff) + a `SOURCE` sub-tab (`WorkingChangesPanel`, I1 per-file grouped changes) + a `REMOTE` sub-tab (`CompareRemotePanel`, I2 local↔upstream ahead/behind + fetch); `BlastRadiusTab` sub-tab when codebase memory attached | `GET /api/files?path=` lazy on expand; `GET /api/workflows/diff` for CHANGES; `GET /api/git/diff` for SOURCE; `GET /api/git/compare` + `POST /api/git/fetch` for REMOTE; `job.config.codebaseMemory` for the BLAST RADIUS nav |
@@ -872,7 +926,7 @@ The 42 (alphabetical by id): abyssal · amber-crt · arch · arrakis · aurora
872
926
  | USAGE | `UsageTab` | `GET /api/usage-stats?path=<cwd>` (per-provider/per-day token + cache-ratio trends) |
873
927
  | PREVIEW | `PreviewTab` | `job.preview` + `job.previewHistory` |
874
928
  | CONFIG | `ConfigTab` (with `CodebaseMemorySection` + `McpRegistrySection` mounted at the end) | `job.config` (incl. `autoHandoff`, `codexTransport`, `codebaseMemory`), `cliChanges`, `settings.codex.appserverWarningSeen` |
875
- | GITHUB | `GitHubPanel` | `GET /api/github/*` proxied via `gh` CLI |
929
+ | GITHUB | `GitHubPanel` | `GET /api/github/*` proxied via `gh` CLI. Failed or invalid detail reads show an error; return to the list and reopen the item to retry. |
876
930
 
877
931
  **BAKE-OFF tab.** The form owns a 2-5-row array of shared `RunAsPicker`
878
932
  selections and sends one `bakeoff_start`. Attempt workflows arrive as normal
@@ -882,6 +936,12 @@ patch into the shared `DiffView`, explicitly promote it, or clean selected
882
936
  worktrees. `appStore.bakeoffsByWorkflow` is a server-rehydrated projection;
883
937
  durable truth remains the out-of-repo manifest.
884
938
 
939
+ **New cluster members.** A `workflow_created` with `clusterMemberPending` sets
940
+ `JobState.pendingClusterMember`: `standaloneTabJobs` (TabBar) and `openWork`
941
+ (Home) leave the job out and `createJob` keeps the current focus, until
942
+ `setClusterState` lists the member (the flag is cleared) or a `cluster_*` error
943
+ calls `releasePendingClusterMembers`. The flag is not kept across a reload.
944
+
885
945
  **FILES tab - worktree picker (Workbench I / `WorktreeInfo`).** `useWorktreeSelection` + `WorktreePicker` (shared by `FilesTabBody` + `ClusterFilesTabBody`) resolve which git worktree a worker is editing - AUTO = the worker's active-task worktree from the store `taskLedger` (in_progress preferred; cluster keys by `baseCwd::boardKey`), plus enumerated linked worktrees via `GET /api/git/worktrees` (4s poll). The resolved `effectiveCwd` (`selectedWorktree || autoWorktreePath || baseCwd`) is passed to `LiveChangesPanel` / `ChangesPanel` / `WorkingChangesPanel` / `CompareRemotePanel` (was always `cwd`). The header picker shows when >1 worktree or an auto target exists; main is labelled "tab root" / "cluster root".
886
946
 
887
947
  **FILES tab - CHANGES sub-tab + the diff renderer (Workbench Expansion A3).** `client/src/components/diff/DiffView.tsx` is a **source-agnostic** unified-diff renderer (`react-diff-view`, themed to CSS vars via `diff-view.css`, unified/split toggle, collapsible per-file): it takes a `patch` string (or pre-parsed `files`) and nothing else - it never imports the endpoint or any "source" concept, so A4 revert, A6/A7 file-edit diffs, D5 inline comments, and all of Part I (Git/GitHub workbench) reuse it unchanged. All data-fetching/source selection lives outside it: `ChangesPanel` (client) calls `GET /api/workflows/diff?wfid&path&from&to`, and `server/src/gitDiff.ts` (via `server/src/http/diffRoutes.ts`) runs the right `git diff` (two shadow `refs/arco/*` refs, or working-tree vs HEAD). The CHANGES sub-tab shows working-tree-vs-HEAD; `GitDialog` shows the same working-tree diff (collapsible) before the commit prompt. The endpoint always answers 200 with `{ patch, isRepo, from, to, missingRef? }` - non-git dirs / missing refs degrade gracefully, never 500.
@@ -894,7 +954,7 @@ durable truth remains the out-of-repo manifest.
894
954
 
895
955
  **CONFIG tab - `INDEXES & MEMORY` section (Codebase-memory integration).** `CodebaseMemorySection` (`client/src/components/RightPanel/CodebaseMemorySection.tsx`) is mounted at the bottom of `ConfigTab` for every provider (Claude / Codex / etc.) since the MCP is provider-agnostic. Operator toggles attach, types an index path (default = cwd), clicks "Re-index now." The Re-index button POSTs `/api/workflows/:wfId/codebase-memory/reindex` - on 503 (`binary_not_installed`) the existing top-right `NotificationToasts` surface gets a push pointing at `docs/OPERATIONS.md`. The attach toggle dispatches `attach_codebase_memory` / `detach_codebase_memory`; the server's `codebase_memory_state` push mirrors onto `job.config.codebaseMemory` via the `setCodebaseMemoryState` store action.
896
956
 
897
- CONFIG carries a red dot when `cliChanges.length > 0`. The PLAN tab supports attach/detach (`plan_attach` / `plan_detach` WS), inline create/edit (REST `POST` / `PATCH`), mark-complete + reopen + hard-delete (REST `PATCH { completedAt }` / `DELETE`). List view splits active vs completed (collapsed by default) and surfaces "active in <workflowName>" badges per plan; detail view shows a "WORKFLOWS USING THIS PLAN" section with active spans inline + collapsed past spans.
957
+ CONFIG carries a red dot when `cliChanges.length > 0`. The PLAN tab supports attach/detach (`plan_attach` / `plan_detach` WS), inline create/edit (REST `POST` / `PATCH`), mark-complete + reopen + hard-delete (REST `PATCH { completedAt }` / `DELETE`). The shared chooser lists open plans first and keeps finished plans under Show finished. Each row shows age, task count, preview, attachment, and active-use information. The list scrolls within half the window height. One list request supplies task counts; bodies load only on PREVIEW. Switching window focus does not reload it. The plan detail shows active and past workflow attachments.
898
958
 
899
959
  `PlanBodyRenderer` renders the body as preformatted markdown but parses `- [ ]` / `- [x]` lines into clickable checkboxes. Click -> optimistic body update + `PATCH /api/plans { body }` to persist; the server's plan_attached re-broadcast confirms the change. The body fetch only clears the visible body when `plan.id` changes (operator switched plans); on a same-plan refetch (after the agent edited the file -> watcher reconcile -> `updatedAt` bumped) the prior body stays on screen until the new content lands, so the panel doesn't flicker through "loading..." on every agent edit. Tracked via a `lastPlanIdRef` ref.
900
960
 
@@ -918,7 +978,7 @@ The tab itself runs four operator actions:
918
978
  - **LABEL THIS** - inline composer + button. Dispatches `create_label_request` via `wsSendRaw`. Server validates (≤ 200 chars, `targetEventSeq` ≤ head) and broadcasts `operator_label`, which lands back in `historyEvents` like any other event.
919
979
  - **REVIEW FROM HERE** - opens `ReviewDialog` with `prefilledSinceEventRef`. The locked-scope rendering shows a label like `FROM 07:39:02 - research checkpoint` (or the bare event tag when the anchor isn't a label). Dispatches `review_request` via `wsSendRaw`.
920
980
  - **SPAWN FROM HERE** - opens the existing `SpawnDialog`; on confirm, dispatches `spawn_from_here_request` via `wsSendRaw` with `cutoffEventSeq` baked in.
921
- - **REWIND CONVERSATION** (see [CHECKPOINTS.md](CHECKPOINTS.md)) - two-click inline confirm (`rewindConfirm` state, no modal; reversible - undo-the-undo is just another rewind). Dispatches `revert_to_point_request { targetSeq }` via `wsSendRaw`, moving the live head back to the selected point and keeping the current branch as a returnable fork (Claude Native only - rejected on CLI/Codex, and disabled while `job.busy`). The resulting `leaf_move` lands as a `fork`-category `HistoryEventEntry` (carrying `rewindTargetSeq`), surfaced under the new REWINDS filter preset.
981
+ - **REWIND CONVERSATION** (see [CHECKPOINTS.md](CHECKPOINTS.md)) - two-click inline confirm (`rewindConfirm` state, no modal; reversible - undo-the-undo is just another rewind). Dispatches `revert_to_point_request { targetSeq }` via `wsSendRaw`, moving the live head back to the selected point and keeping the current branch as a returnable fork. Works for Claude Native; for other providers and the Claude CLI the button stays visible, disabled, with the reason beside it (`rewindUnavailableReason`); also disabled while `job.busy`. The resulting `leaf_move` lands as a `fork`-category `HistoryEventEntry` (carrying `rewindTargetSeq`), surfaced under the new REWINDS filter preset.
922
982
 
923
983
  The filter strip (`FILTERS`, persisted per workflow under `arco.historyFilter.byWorkflow`) presets are: ALL · TURNS · TOOLS · LABELS · HANDOFFS · REVIEWS · CHECKPOINTS (`checkpoint`) · REWINDS (`fork`).
924
984
 
@@ -934,8 +994,12 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
934
994
 
935
995
  ## Dialogs
936
996
 
937
- - **`DialogShell`** (`components/DialogShell.tsx`) - the shared layout for operator dialogs opened from the composer and the top bar. Portals into `document.body` so no composer or chat ancestor can clip or cover it; renders the opaque dialog surface, a header with the title and a close button (x), a scrolling body, an optional status line (result or error) that stays visible, and actions at the bottom right. Escape and the header close button dismiss it; backdrop clicks close only when `closeOnBackdrop` is set. Used by TIDY, CATCH ME UP, BRIEF, FORWARD, SEND TRANSCRIPT and the composer's GIT, SPAWN, HANDOFF (ROTATE SESSION), REVIEW, PLAN, DOCS, TUNE UP, DEEP RESEARCH and SKILL editor dialogs, so all of them share the header close button, status line and bottom-right actions. `bodyRef` and `onBodyScroll` let a dialog (GIT) remember its scroll position.
938
- - **`PlanComposerDialog`** - opens from PLAN button in the composer. Two paths, both inject the same synthesize-from-context prompt: "Draft -> I'll review" arms `pendingPlanCapture: 'review'` (banner offers SAVE & ATTACH / DISCARD on the next primary_complete); "Draft & auto-save" arms `'autosave'` (banner self-fires the save and clears). Cluster member review drafts and detected plan-shaped replies show the same banner in the member pane; attaching to the worker or cluster requires an explicit choice. Cluster auto-save requests also offer this choice. Title is extracted from the captured body via `# Heading` -> first non-empty line -> `Plan from <date>` fallback.
997
+ Rendered Markdown and plain-text file viewers default to their reading column plus padding, clamped to the window, and keep most of its height. RAW, code, overflowing tables, images and other media retain the larger viewer size. Saved dimensions for the dialog kind take priority. Reset size returns to the current view's natural default; Maximize and Restore retain the previous dimensions. File and folder pickers keep their larger share of the window.
998
+
999
+ The diagonal grip in the bottom-right corner resizes every work-surface dialog by dragging. Focus the grip and use arrow keys, or Shift with arrow keys for larger steps. Home and Reset size restore the default. The grip's tooltip reads "Drag to resize" with keyboard instructions.
1000
+
1001
+ - **`DialogShell`** (`components/DialogShell.tsx`) - the shared layout for operator dialogs opened from the composer and the top bar. Portals into `document.body` so no composer or chat ancestor can clip or cover it; renders the opaque dialog surface, a header with the title and a close button (x), a scrolling body, an optional status line (result or error) that stays visible, and actions at the bottom right with space beside them for the resize grip. Escape and the header close button dismiss it; backdrop clicks close only when `closeOnBackdrop` is set. Used by TIDY, CATCH ME UP, BRIEF, FORWARD, SEND TRANSCRIPT and the composer's GIT, SPAWN, HANDOFF (ROTATE SESSION), REVIEW, PLAN, DOCS, TUNE UP, DEEP RESEARCH and SKILL editor dialogs, so all of them share the header close button, status line and bottom-right actions. `bodyRef` and `onBodyScroll` let a dialog (GIT) remember its scroll position. Dialogs that use `WorkSurfaceControls` (`components/workSurface/WorkSurfaceControls.tsx`) open at a size suited to their kind (`pickerSurfaceSize`, `contentSurfaceSize`, `formSurfaceSize`, or `confirmationSurfaceSize`), offer Maximize / Restore, Reset size and a bottom-right diagonal resize grip (drag or arrow keys; Home resets), and remember width, height and maximized state in this browser under `arco.dialog-size.<kind>` (a stable kind key only; no project names or paths).
1002
+ - **`PlanComposerDialog`** - opens from PLAN button in the composer. Two paths, both inject the same synthesize-from-context prompt: "Draft -> I'll review" arms `pendingPlanCapture: 'review'` (banner offers SAVE & ATTACH / DISCARD on the next primary_complete); "Draft & auto-save" arms `'autosave'` (banner self-fires the save and clears). Cluster member review drafts and detected plan-shaped replies show the same banner in the member pane, with ATTACH TO CLUSTER in place of SAVE & ATTACH; nothing attaches without that click. A cluster member's auto-save request is turned into a review draft, so it shows the same banner. Title is extracted from the captured body via `# Heading` -> first non-empty line -> `Plan from <date>` fallback.
939
1003
  - **`PlanCandidateBanner`** (between chat and composer) - renders only when `job.planCandidate` is set. Captures from the latest finalized assistant message in `job.messages` at `primary_complete` time. `turn_cancelled` clears `pendingPlanCapture` so a stale flag doesn't capture an unrelated later reply.
940
1004
  - **`ReviewDialog`** - opens from REVIEW button. Picks reviewer (provider/model/effort, including `llamacpp`), scope (`last-turn` / `last-n` / `current-session` / `full` / `git-diff`), include-git-diff. Sends `review_request`. **Plan-scoped variant:** when `prefilledPlanRef + prefilledScopeLabel` props are set (from `PlanTab`), the SCOPE row collapses to a locked label ("PLAN: ...") and a MODE row (VERIFY / CRITIQUE) appears. **Since-event variant:** when `prefilledSinceEventRef` is set (from `HistoryTab`), the SCOPE row collapses to a locked `FROM hh:mm:ss - <label>` chip and the plan-mode picker is hidden. The Claude model row reads the live polled `claudeNativeCatalog` when present (with display names + per-model effort gating), falling back to the static `CLAUDE_MODELS` aliases when no Native auth has fetched a catalog yet - same pattern as `WorkflowCreator`. A useEffect clamps the model state to a value in the current pill set (catches the dialog opening before catalog arrives, then reconciling once it lands). VERIFY WORK / VERIFY PHASE WORK pass `initialIncludeGitDiff: true` so the toggle pre-ticks; default-undefined leaves it off for plain reviews.
941
1005
  - **`PlanReviewPicker`** - tree-with-checkboxes modal opened by `CUSTOM REVIEW` in the Plan tab. Tri-state per-section checkboxes, SELECT ALL / ALL CHECKED / CLEAR shortcuts. Mirrors the server's task-detection rules (CHECKBOX_TASK_RE, NUMBERED_TASK_RE, H2 reset) so what the picker shows is exactly what the reviewer will receive. Returns `${phaseIdx}/${taskIdx}` IDs to the parent.
@@ -946,13 +1010,15 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
946
1010
  - **`GitDialog`** - opens from `⎇ GIT` composer button. Live git status (current branch, ahead/behind, dirty count) fetched on open via `GET /api/git/status`. Branch dropdown + inline `+ NEW BRANCH` form (server-side dirty-tree refusal on switch via `POST /api/git/checkout`). Action picker (commit / commit-push / commit-push-pr); PR auto-disabled with no GitHub remote; smart default `inferDefaultAction(status)`. Protected-branch warnings via `/^(main|master|release\/.*|prod|production)$/i`. Per-repo localStorage prefs at `arco.gitDialog.prefs.${cwd}`. Closing without sending (including through VIEW CHANGES) keeps the dialog's state in `utils/gitDialogMemory.ts` (in memory, per workflow: run-as choice, SHOW OTHER WORK, scroll position, branch, new-branch form, action, commit subject and scope notes), restored on the next open in that tab until a request is sent or the tab closes. Builds a structured prompt with branch context, action steps, pause-and-ask rules, expected deliverables. Embeds `RunAsPicker` for in-tab vs new-tab routing.
947
1011
  - **`RunAsPicker`** - shared provider/model/effort picker used by `GitDialog` and `DocsUpdateDialog`. Compares its selection against the parent's current primary; if matched, dialog dispatches in-tab via `onConfirm(prompt)`; if changed, dialog calls `onSpawn(spawnConfigFromRunAs(parentConfig, runAs, suffix), prompt, false)`. The `spawnConfigFromRunAs` helper inherits the parent config but overrides primary fields, suffixes the workflow name, and clears `resumeSessionId/resumeWorkflowId` so the new tab is fresh. Reset arrow snaps back to the current primary. ReviewDialog and SpawnDialog have their own embedded pickers and could adopt this shared component to dedupe ~80 LOC each.
948
1012
  - **`LlamacppCatalogEditor`** - embedded in `SettingsPanel` when llama.cpp is enabled. Wholesale-replace pattern (fetch full catalog, edit in-place, POST entire new catalog) - same as `models.md` editor. Exposes per-row alias / ggufPath / mmprojPath / ctxSize / ngl / capability flags. Per-row Load / Unload buttons hit the lifecycle manager (`POST /api/llamacpp-load`, `POST /api/llamacpp-unload`); "Load now" pre-warms the binary so the next workflow turn doesn't pay the 20-30s cold-start. Preserves `chatTemplate` and `extraArgs` across edits even though the form doesn't expose them.
949
- - **`FileViewerModal`** - opens from clicking a file path in a tool-call pill or the file explorer. Portaled to `document.body` via `createPortal` so `position: fixed` escapes the chat virtualizer's transformed ancestor. Hosts the A6 editor (`editor/CodeEditor.tsx`, a CodeMirror 6 wrapper) under EDIT/LOCK + SAVE, and - when opened with an `editContext.workflowId` - the **A7 AI-edit affordance** (below). Filenames in replies open it too: inline code, links, headings, images and a filename alone on a line always link; a filename inside a sentence links only when it matches a file the agent wrote or one in the workflow's artifacts folder (`utils/chatFileLinks.ts`). Relative names are sent as written and the server (`GET /api/file-content`) resolves them against the project folder, then the artifacts folder, and returns `resolvedPath`; the viewer header shows that path, and a missing file is reported as `File not found: <name>`. Windows drive and UNC paths are used as given.
950
- - **`editor/AiEditAffordance.tsx`** (Workbench Expansion) - AI-collaborative document editing, mounted as an overlay inside `FileViewerModal`'s edit body (kept OUT of `FileViewerModal` per the spec's file-size note). On a non-empty editor selection (or **SELECT ALL** for a whole-doc edit), **✦ ASK AI** opens an instruction box + the **reused `RunAsPicker`**; **PROPOSE EDIT** fires `doc_edit_request` (in-tab only - the proposal must round-trip to THIS buffer). The `doc_edit_proposed` event lands in the standalone **`docEditStore`** (`stores/docEditStore.ts`, kept out of appStore like recallStore/terminalStore; `useWebSocket` registers a module-level sender so the deep-nested modal needn't thread the callback through every call site). The proposal previews as an A3 **`DiffView`** (`selectionBefore` vs `replacement`, built into a unified diff via `diff`'s `createTwoFilesPatch`). **ACCEPT** calls `CodeEditor`'s imperative `spliceSelection(from, to, replacement)` to splice into `[from,to)` of the **buffer only** - the existing **SAVE** is the one disk write, through the `resolveWithinCwd`-guarded `/api/files/write`. **REJECT** discards. The selection is surfaced by a new `CodeEditor` `onSelectionChange` prop; the splice/select-all/doc-length ops via a `forwardRef` `CodeEditorHandle`. Fence: the agent has no Write tool and never touches disk - operator approves twice (Accept into buffer, Save to disk).
951
- - **`media/MediaModalHost.tsx`** (Workbench Expansion+) - the Media studio modal: the shared shell hosting the image , audio , and video editors, all of which now exist. Mounted in `App.tsx` on the `appStore.mediaStudio.open` flag (companion state `{ open, path?, mode? }` + `setMediaStudio`). Two entry points: **standalone** (header **⌗ MEDIA** button + the `Open Media studio[...]` command-palette entries -> opens empty in a mode) and **contextual** (FileExplorer right-click -> opens with an on-disk path routed to the matching mode). Both go through **`media/launchers.ts`** - `openMediaStudio(mode?)`, `openMediaFile(path)`, and `classifyMediaExt(filename)` (image/audio/video by extension). **Image mode** mounts **`media/ImageEditor`** (a React wrapper around the vendored Odysseus raster editor at `client/src/vendor/odysseus-editor/`, bridging LOAD + SAVE to guarded endpoints). **Audio mode** renders **`media/AudioEditor`** (waveform + region select; see below) with the ffmpeg-backed clip/convert ops in **`AudioOpsPanel`**. **Video mode** renders **`media/VideoEditor`** (HTML5 `<video>` preview + scrub + in/out markers) with **`VideoOpsPanel`** for clip/convert/extract-audio. On-disk media (audio/video) streams through the guarded **`/api/media/raw`** Range route so the browser can seek; imported files use a browser object URL (revoked on unmount/replace), and on-disk images still load via the same `GET /api/file-content` fetch `FileViewerModal` uses. Honest-scope notes live in each component's header comment + the manual section. Shared op-posting helpers live in `media/postMediaOp.ts`; advanced/stems controls in `MediaAdvancedOps.tsx` / `MediaStemsControls.tsx` / `MediaSaveControls.tsx`.
1013
+ - **`FileViewerModal`** - opens from clicking a file path in a tool-call pill or the file explorer. Portaled to `document.body` via `createPortal` so `position: fixed` escapes the chat virtualizer's transformed ancestor. Hosts the A6 editor (`editor/CodeEditor.tsx`, a CodeMirror 6 wrapper) under EDIT/LOCK + SAVE, and - when opened with an `editContext.workflowId` - the **A7 AI-edit affordance** (below). Filenames in replies open it too: inline code, links, headings, images and a filename alone on a line always link; a filename inside a sentence links only when it matches a file the agent wrote or one in the workflow's artifacts folder (`utils/chatFileLinks.ts`). Relative names are sent as written and the server (`GET /api/file-content`) resolves them against the project folder, then the artifacts folder, and returns `resolvedPath`; the viewer header shows that path, and a missing file is reported as `File not found: <name>`. Windows drive and UNC paths are used as given. SAVE acknowledges the submitted text; newer edits remain visible and unsaved.
1014
+ - **`editor/AiEditAffordance.tsx`** (Workbench Expansion) - AI-collaborative document editing, mounted as an overlay inside `FileViewerModal`'s edit body (kept OUT of `FileViewerModal` per the spec's file-size note). On a non-empty editor selection (or **SELECT ALL** for a whole-doc edit), **✦ ASK AI** opens an instruction box + the **reused `RunAsPicker`**; **PROPOSE EDIT** fires `doc_edit_request` (in-tab only - the proposal must round-trip to THIS buffer). The `doc_edit_proposed` event lands in the standalone **`docEditStore`** (`stores/docEditStore.ts`, kept out of appStore like recallStore/terminalStore; `useWebSocket` registers a module-level sender so the deep-nested modal needn't thread the callback through every call site). The proposal previews as an A3 **`DiffView`** (`selectionBefore` vs `replacement`, built into a unified diff via `diff`'s `createTwoFilesPatch`). **ACCEPT** calls `CodeEditor`'s imperative `spliceSelection(from, to, replacement)` to splice into `[from,to)` of the **buffer only** - the existing **SAVE** is the one disk write, through the `resolveWithinCwd`-guarded `/api/files/write`. **REJECT** discards. The selection is surfaced by a new `CodeEditor` `onSelectionChange` prop; the splice/select-all/doc-length ops via a `forwardRef` `CodeEditorHandle`. Fence: the agent has no Write tool and never touches disk - operator approves twice (Accept into buffer, Save to disk). The editor keeps a stable request key while the server assigns its proposal id. Unsent requests and pending requests interrupted by disconnect become retryable errors.
1015
+ - **`media/MediaModalHost.tsx`** (Workbench Expansion+) - the Media studio modal: the shared shell hosting the image , audio , and video editors, all of which now exist. Mounted in `App.tsx` on the `appStore.mediaStudio.open` flag (companion state `{ open, path?, mode? }` + `setMediaStudio`). Two entry points: **standalone** (**MEDIA** in the header TOOLS menu + the `Open Media studio[...]` command-palette entries -> opens empty in a mode) and **contextual** (FileExplorer right-click -> opens with an on-disk path routed to the matching mode). Both go through **`media/launchers.ts`** - `openMediaStudio(mode?)`, `openMediaFile(path)`, and `classifyMediaExt(filename)` (image/audio/video by extension). **Image mode** mounts **`media/ImageEditor`** (a React wrapper around the vendored Odysseus raster editor at `client/src/vendor/odysseus-editor/`, bridging LOAD + SAVE to guarded endpoints). **Audio mode** renders **`media/AudioEditor`** (waveform + region select; see below) with the ffmpeg-backed clip/convert ops in **`AudioOpsPanel`**. **Video mode** renders **`media/VideoEditor`** (HTML5 `<video>` preview + scrub + in/out markers) with **`VideoOpsPanel`** for clip/convert/extract-audio. On-disk media (audio/video) streams through the guarded **`/api/media/raw`** Range route so the browser can seek; imported files use a browser object URL (revoked on unmount/replace), and on-disk images still load via the same `GET /api/file-content` fetch `FileViewerModal` uses. Honest-scope notes live in each component's header comment + the manual section. Shared op-posting helpers live in `media/postMediaOp.ts`; advanced/stems controls in `MediaAdvancedOps.tsx` / `MediaStemsControls.tsx` / `MediaSaveControls.tsx`.
1016
+
1017
+ Image paste adds a layer only while the image editor is open and visible. Returning to VIEW or closing Media studio releases its paste and keyboard shortcuts, so clipboard images attach to chat message boxes again. Closing retains the existing SAVE behavior; unsaved edits are discarded.
1018
+
952
1019
  - **`media/AudioEditor/AudioEditor.tsx`** (Workbench Expansion) - the audio editor that replaces the bare `<audio>` for imported audio. Props `{ src; filename?; onRegionChange?(start, end) }` where `src` is the **same object URL** the host already owns (no second URL; the host still owns revocation). Built on **`wavesurfer.js`** (v7, **BSD-3-Clause**; client workspace only) - waveform + transport from core `WaveSurfer`, region select from its regions plugin (`wavesurfer.js/dist/plugins/regions.esm.js`). The `waveColor`/`progressColor`/`cursorColor` are resolved from the `--color-*` CSS vars at init (canvas can't read CSS vars live). Transport = play/pause + `mm:ss.mmm` time readout; click the waveform to seek. One region with draggable in/out handles + editable `IN`/`OUT` numeric fields that two-way-bind to it; every in/out change fires `onRegionChange` - the **clip seam H6 reads** (the host stashes the latest value in `audioRegionRef`). **React lifecycle:** the `WaveSurfer` instance is created in a `src`-keyed `useEffect` and `destroy`-ed in cleanup, with a `disposed` flag aborting late async handlers so StrictMode's double-mount can't leak an instance or double-init the container. Clip/convert (FFmpeg) is H6 - the editor records the selection but performs no edit yet.
953
1020
  - **`WorkerDetailModal`** - opens from clicking a `WorkerCard` chip in the right-pane Activity / Reviews / Handoffs tabs. Shows full output, tokens, status, errors. `WorkerCard` itself is a compact summary chip (model/effort/elapsed/verdict) that's rendered in those tabs.
954
1021
  - **`ArtifactModal`** - for inline artifacts (confirm / choice / image). Has a response composer that sends a `[artifact:<id>] <answer>` follow-up to the primary.
955
- - **`ConversationMenu`** - `CTX ▾` menu in the chat header. New / resume / compact / export. The **RESUME SESSION...** view merges discovery (`/api/sessions`) with the session-index projection (`/api/session-index`) by the `(provider, sessionId)` key, rendering rich rows (layered title + subtitle + provider/account tag + relative last-active) with operator **pin** (★, sorts to top), **rename** (✎, inline input -> `operator` title that survives refreshes), **archive** (⊘, hidden behind the ARCH toggle), and a live **filter** box. Index data + the rename/pin/archive mutations live in the standalone `stores/sessionIndexStore.ts` (kept out of `appStore`, mirroring `recallStore`); each mutation POSTs to `/api/session-index/*` and folds the server's returned entry back. Live `waiting/running/idle` + context/quota columns are a documented deferral (see `docs/RESUME_INDEX.md in H3`). See `docs/RESUME_INDEX.md`.
956
1022
  - **`AskUserQuestionNotice`** - inline reply form rendered by `ChatMessage` when it detects the `[ASK:claude-native:<questionId>]` sentinel a Native worker emits via `system_notice`. Renders a text input or option chips based on the `[ASK_OPTIONS:opt1 | opt2]` line; submits `ask_user_question_reply { workflowId, questionId, reply }` and the worker resolves the awaiting tool-result Promise.
957
1023
  - **`TaskCard`** - compact card rendered inline on the parent's `Task` tool_use chat row when `job.taskChildren[taskId]` exists. Shows status (`running` / `done` / `error` / `cancelled`), elapsed time, child workflow id, and a `PROMOTE` button to flip the child into the top tab strip. Native injects a synthetic message at the tool_use position because Native has no JSONL; CLI tabs use the existing tool_use entry from `sessionChat`.
958
1024
  - **`TasksPanel`** - the TASKS right-panel tab. Reads `job.taskChildren` keyed by `taskId` and renders one row per child workflow with status glyph + colour, child wfid, description, and elapsed time. Visible only when the map is non-empty (depth-1 cap; child workflows have no Task children of their own).
@@ -965,6 +1031,8 @@ Selection state is local to `HistoryTab`. When the selected event has a `chatMes
965
1031
 
966
1032
  ## Overlays
967
1033
 
1034
+ The comparison results header shows CANCEL while either drafting or synthesis is active and requests cancellation before dismissal. Once work finishes it shows CLOSE. The runtime banner keeps its clock advancing while a worker is busy and online so silence can reach the stuck threshold without another event.
1035
+
968
1036
  These are full-screen gates that block UI when something critical is happening:
969
1037
 
970
1038
  - **`SyncingOverlay`** - fires when WS is up but persisted jobs haven't received their snapshot.
@@ -973,7 +1041,7 @@ These are full-screen gates that block UI when something critical is happening:
973
1041
  - **`DuplicateTabOverlay`** - fires when another Arco tab is already alive.
974
1042
  - **`DragOverlay`** - fires during file drag-over (composer attachment hint).
975
1043
 
976
- **Command palette (`CommandPalette.tsx`, Workbench Expansion A5).** A `Cmd/Ctrl+P` fuzzy palette mounted in `App.tsx` (the hotkey `preventDefault`s so it doesn't trigger the browser Print dialog; Esc closes, arrows/Enter navigate). Four live sources: (a) active-workflow transcript rows - activating one switches tab + calls the existing `flashChatMessage` which drives `ChatPanel`'s virtualizer `scrollToIndex`; (b) top-level files under cwd (`GET /api/files`); (c) open workflows/tabs; (d) commands (new tab / Settings / Manual / GitHub). Fuzzy matching is a hand-rolled subsequence scorer (no `fuse.js` dep). **Content search** is a separate server path: the palette can query `GET /api/search/content?wfid&q` -> `server/src/contentSearch.ts` `searchContent` (a reusable `rg --json` engine, decoupled from HTTP so F3/Recall reuses it; respects `SKIP_DIRS`, degrades to `{available:false}` when `rg` isn't on PATH); content hits open in `FileViewerModal`. (Deferred niceties: recursive file walk, line-anchored viewer scroll.)
1044
+ **Command palette (`CommandPalette.tsx`, Workbench Expansion A5).** A `Cmd/Ctrl+P` fuzzy palette mounted in `App.tsx` (the hotkey `preventDefault`s so it doesn't trigger the browser Print dialog; Esc closes, arrows/Enter navigate). Four live sources: (a) active-workflow transcript rows - activating one switches tab + calls the existing `flashChatMessage` which drives `ChatPanel`'s virtualizer `scrollToIndex`; (b) top-level files under cwd (`GET /api/files`); (c) open workflows/tabs; (d) commands (new tab / Settings / Manual / GitHub). Fuzzy matching is a hand-rolled subsequence scorer (no `fuse.js` dep). **Content search** is a separate server path: the palette can query `GET /api/search/content?wfid&q` -> `server/src/contentSearch.ts` `searchContent` (a reusable `rg --json` engine, decoupled from HTTP; Recall uses the same ripgrep matcher through a canonical-history stream; respects `SKIP_DIRS`, degrades to `{available:false}` when `rg` isn't on PATH); content hits follow the file browser private-path rules and open in `FileViewerModal`. (Deferred niceties: recursive file walk, line-anchored viewer scroll.)
977
1045
 
978
1046
  **Compare primitive (`components/compare/`,).** A bounded fan-out-and-vote surface: now **SECOND OPINION**: the operator types a question (or selects chat messages) and picks N models (each a `{provider, model, effort}` via the shared `RunAsPicker`); each drafts, independently and read-only, the reply the operator could send to the worker, with recent turns by default when no messages are selected, optional read-only file access off by default, and a summary of the context. The operator votes, optionally SYNTHESIZEs, and **USE THIS REPLY** puts the draft in the worker's composer (nothing is sent). Per-model picks are tallied locally. State lives in the standalone **`stores/compareStore.ts`** (kept out of `appStore`, like `docEditStore`/`recallStore`), driving two globally-mounted App.tsx surfaces: **`CompareDialogHost`** (wraps `CompareDialog` - the prompt + per-leg `RunAsPicker` rows + a `blind` flag that hides leg identities until the vote) and **`CompareOverlay`** (the live run - **`CompareGrid`** of side-by-side answer panes cloned from `MemberPane`'s structure, plus **`CompareVote`** which reveals the winner and offers a synthesize step). Launched from the **SECOND OPINION** button in `TerminalInput` (wiring in `components/terminalInput/compare.ts`); `COMPARE_MIN_LEGS`/`COMPARE_MAX_LEGS` from `@arco/shared` bound the leg count. See `docs/PRIMITIVES.md` / `docs/PROTOCOL_PRIMITIVES.md`.
979
1047
  ---
@@ -1020,6 +1088,15 @@ See [`CONTRIBUTING.md`](../CONTRIBUTING.md) for the full dev workflow.
1020
1088
 
1021
1089
  ## Cluster tab rendering
1022
1090
 
1091
+ Member status shows WORKING when a turn is accepted, including when its first activity is a tool call, and returns to IDLE when the turn settles. The header shares its row with the current step and CTX / OUT counters; each step stays visible briefly. Member cards keep the last settled reply or tool step without displaying reasoning fragments.
1092
+
1093
+ Automatic nudges and pickup reminders appear as folded mailbox lines in chat, pending PREVIEW and HISTORY. Use + to read the full text and - to fold it. The member receives the full message; typed messages are not folded by their wording.
1094
+
1095
+
1096
+ A new connection retries missing member rehydrate requests whose replies were lost on the previous socket. Duplicate requests on one socket are still suppressed.
1097
+
1098
+ Disconnected broadcasts retain the draft, attachments and chosen recipients for retry.
1099
+
1023
1100
  Cluster tabs are a third top-level view alongside `WorkflowView` and `WorkflowCreator`. App.tsx routes between them via mutually-exclusive store fields: setting `activeJobId` clears `activeClusterId` and vice-versa. The cluster mirror lives at `appStore.clusters: Record<clusterId, ClusterStatePayload>`, populated on `cluster_state` / `cluster_created` push and persisted alongside `jobs` so a reload survives.
1024
1101
 
1025
1102
  **Composition:**
@@ -1034,25 +1111,25 @@ ClusterTab (App.tsx routes here when activeClusterId set)
1034
1111
  ├── ClusterRightPanel (right; width persisted, fraction clamped to [0.18, 0.5], default 0.28)
1035
1112
  │ ├── WORKSPACE group - MEMBERS (rows + role/tier/focus/rename/add-worker) and FILES (cluster.cwd)
1036
1113
  │ ├── AGENT group - ACTIVITY, REVIEWS, HANDOFFS, PLAN, BOARD, MAILBOX
1037
- │ ├── MEMORY group - HISTORY (anchored to the first member's workflow history)
1038
- │ └── RUNTIME group - PREVIEW (first-member anchor), CONFIG (member selector + ConfigTab), GITHUB (cluster.cwd)
1114
+ │ ├── MEMORY group - HISTORY (the member in view: clusterFocusedMember, else the director, else members[0]; header picker sets the focus) and USAGE (ProjectUsageTab on cluster.cwd: token usage of every member plus MEASURE STORAGE / MEASURE ARCO FOLDER)
1115
+ │ └── RUNTIME group - PREVIEW (the member in view, same picker), CONFIG (member selector + ConfigTab), GITHUB (cluster.cwd)
1039
1116
  └── Recipient chooser dialog (opened from the composer's TO chip)
1040
1117
  └── on send to several: cluster_broadcast WS message + local toast
1041
1118
  ```
1042
1119
 
1043
- **Why ClusterRightPanel replaces RightPanel.** Per-member RightPanel toggles (FILES / ACTIVITY / REVIEW / HANDOFFS / PLAN / TASKS / HISTORY / PREVIEW / CONFIG / GITHUB) are scoped to a single workflow; in a cluster they multiply confusingly across panes. The cluster's single right-pane focuses on cluster-level state - members, the shared mailbox, the shared plan, interleaved activity, cluster-wide reviews - plus a few cluster-scoped reuses of single-workflow tabs (GitHub / Files keyed to `cluster.cwd`; History / Preview anchored to the first member where the underlying wire is workflow-scoped). CONFIG is intentionally **member-scoped** inside the cluster panel: the operator picks a member, then the existing `ConfigTab` edits that workflow through the normal `update_primary_config`, codebase-memory, and MCP registry paths. There is no hidden "cluster config" write that mutates all members.
1120
+ **Why ClusterRightPanel replaces RightPanel.** Per-member RightPanel toggles (FILES / ACTIVITY / REVIEW / HANDOFFS / PLAN / TASKS / HISTORY / PREVIEW / CONFIG / GITHUB) are scoped to a single workflow; in a cluster they multiply confusingly across panes. The cluster's single right-pane focuses on cluster-level state - members, the shared mailbox, the shared plan, interleaved activity, cluster-wide reviews - plus a few cluster-scoped reuses of single-workflow tabs (GitHub / Files keyed to `cluster.cwd`; History / Preview follow the focused member, then the director, then the first member where the underlying wire is workflow-scoped). CONFIG is intentionally **member-scoped** inside the cluster panel: the operator picks a member, then the existing `ConfigTab` edits that workflow through the normal `update_primary_config`, codebase-memory, and MCP registry paths. There is no hidden "cluster config" write that mutates all members.
1044
1121
 
1045
1122
  **Peer-message rendering.** The store extends `ChatMessage.role` with `'peer-sent' | 'peer-received'` synthetic variants. `ws/handleServerMessage.ts` injects a synthetic ChatMessage entry on every `peer_message_sent` / `peer_message_received` event; `peer_send_rejected` becomes a `[PEER] Send rejected -> <to> (<reason>)` system row. `ChatMessage.tsx` renders these via a `PeerMessageBlock` early-return branch - colored left-border + sender label, color via stable djb2 hash of `senderWorkflowId` over an 8-color palette. Same sender = same color across the cluster. The rendering branch sits before the system-notice / handoff-seed / spawn-seed branches; ordering is load-bearing.
1046
1123
 
1047
1124
  **One typing surface.** The cluster tab has no bottom broadcast composer. It opens with the director focused (the first member whose role starts with director or coordinator, else the first member) and lists the director first until the operator drags a card (a per-cluster flag in `localStorage`, `arco.clusterReordered.<id>`). The focused member's own message box is where the operator types. The empty composer's placeholder names the target: "Message the director, your main contact..." for the director, "Message <member name>..." for another member. Focus never changes on its own: the director card shows a quiet `NEW REPLY` mark when a finished reply has not been looked at, and a question toast from another member offers `GO TO DIRECTOR`. Helpers live in `components/clusterSurface.helpers.ts`.
1048
1125
 
1049
- **Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the needs-you badge and the plan line; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
1126
+ **Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the needs-you badge and the plan line. With the narrow member list closed, one compact `! <count>` badge appears below its opener; opening the list moves the same summary into its header. Choosing a task reveals BOARD and closes the member list; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
1050
1127
 
1051
- **NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
1128
+ **NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. **NUDGE ALL WITH MAIL (n)** beside SEND NUDGE runs the same per-member send for every member whose `mailboxDepth` is above zero (`membersWithMail` in `client/src/utils/clusterNudge.ts`), idle or busy, without touching the checkboxes; busy members get the active reminder through steering. Disabled with the reason when n is 0. The command palette entry `Cluster: nudge all with mail` (shown while a cluster tab is active) asks the owning `ClusterTab` through `requestNudgeAll`. After SEND NUDGE or NUDGE ALL WITH MAIL, a toast reads `Nudged N members` and, when any recipients were busy, appends `(M busy: reminded to read mail when convenient)`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
1052
1129
 
1053
1130
  **AUTO-PICKUP control.** Operator-armed per-cluster chip in `ClusterRightPanel`'s header, next to the MAIL ALERTS chip. Default Off. The dialog sets a mode through `cluster_auto_pickup_set`: Off, Rule-based (recommended), Smart: Observe-only, or Smart: Automatic. Rule-based uses the detector in `server/src/clusterAutoTurn.ts` with acknowledgement filtering and adjustable wake-budget guards. Smart modes ask an operator-chosen evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl) through `server/src/smartPickup*.ts`. Older clients and the remote console still send `cluster_auto_turn_toggle`; `enabled: true` maps to Rule-based and `false` to Off. Distinct from the idle nudger: the nudger is toast-only and never sends prompts to workers; AUTO-PICKUP can dispatch turns when Rule-based or Smart Automatic is armed. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) and [SETTINGS.md](SETTINGS.md#auto-pickup).
1054
1131
 
1055
- **Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on any Native Claude tab opens `TabContextMenu` (a new component scoped to this single use) with "Add to cluster with..." + a multi-select checkbox list of other Native Claude tabs in the same cwd. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
1132
+ **Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd), ADD TO EXISTING and CREATE WITH FRESH. An open Cursor tab is refused like in ADD EXISTING: its ACP session was opened without the peer-tools MCP, so Cursor members are added fresh (+ ADD FRESH). Other providers get a refusal naming the accepted ones. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
1056
1133
 
1057
1134
  ### Tab bar layout (slice 6a)
1058
1135
 
@@ -1064,13 +1141,13 @@ ClusterTab (App.tsx routes here when activeClusterId set)
1064
1141
 
1065
1142
  **Bottom-row mechanics + grid card click.** Click a member tab in the bottom row OR click any `MemberCard` in the grid -> both call `setClusterFocusedMember(clusterId, workflowId)` updating `appStore.clusterFocusedMember[clusterId]`. The cluster tab stays the active top-row tab; only the focused detail MemberPane changes. Three visual surfaces subscribe to the same key so they stay in sync: bottom-row tab (accent border-bottom + bg tint), the corresponding `MemberCard` in the grid (accent outline at the same border thickness as unfocused so swapping focus never shifts neighbouring cards), and the single detail `MemberPane` (accent header + outline). First-render default in `ClusterTab` picks `cluster.members[0]`; `setClusterState`'s reducer carries focus across membership changes (re-pinning to the first member when the previously-focused workflow is removed).
1066
1143
 
1067
- **Grid splitter.** The `ClusterTab` body splits horizontally between the `MemberCard` grid (left) and the focused detail `MemberPane` (right) via a 4 px col-resize divider. Drag fraction reads from `appStore.clusterGridSplit` (default 0.35; persisted via the existing zustand-persist `partialize`). The drag handler mirrors `WorkflowView.tsx`'s splitter cleanup contract - `mousemove` updates a local live-value, `mouseup` (+ capture-phase pointerup + pointercancel + blur + visibilitychange) commits to the store and clears `body.style.userSelect / cursor`. Min widths: 240 px grid, 360 px detail. Cards-per-row is `clamp(ceil(sqrt(N)), 1, 4)` so 2 -> 2, 3-4 -> 2×2, 5-6 -> 3×2, 7-9 -> 3×3, 10+ -> 4 cols max with vertical scroll. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) for the cluster message details.
1144
+ **Grid splitter.** The `ClusterTab` body splits horizontally between the `MemberCard` grid (left) and the focused detail `MemberPane` (right) via a 4 px col-resize divider. Drag fraction reads from `appStore.clusterGridSplit` (default 0.35; persisted via the existing zustand-persist `partialize`) in the Standard layout; Compact and Narrow keep their own value (see [Layout ranges](#layout-ranges)). The drag handler mirrors `WorkflowView.tsx`'s splitter cleanup contract - `mousemove` updates a local live-value, `mouseup` (+ capture-phase pointerup + pointercancel + blur + visibilitychange) commits to the store and clears `body.style.userSelect / cursor`. Min widths: 240 px grid, 360 px detail. Cards-per-row is `clamp(ceil(sqrt(N)), 1, 4)` so 2 -> 2, 3-4 -> 2×2, 5-6 -> 3×2, 7-9 -> 3×3, 10+ -> 4 cols max with vertical scroll. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) for the cluster message details.
1068
1145
 
1069
1146
  **Member-remove ×.** Bottom-row × on a member tab confirms then dispatches `cluster_member_remove`. Server-side: detach + tear down workflow in one operation (single click = "I'm done with this member"). If detaching drops the cluster below 2 members, `clusterStore.removeMember` collapses the cluster - server fans out `cluster_deleted`, and the now-orphan member's workflow is also torn down. The other member(s) become standalone workflows on their next turn (peer tools disappear from their tool list the invariant).
1070
1147
 
1071
1148
  **Per-member primitive bar.** `MemberPane.tsx` now renders `TerminalInput` with `onReview / onHandoff / onSpawn / onUpdatePrimary / onArmPlanMode` threaded App -> ClusterTab -> MemberPane. The header ContextMeter receives `onRecalibrate`; each handler closes over the member's `workflowId` at the App level (mirrors how `WorkflowView` keys primitives on `activeJob.id`). Behavior is unchanged from the standalone primitive bar - the cluster-aware shape (HANDOFF preserves cluster membership, SPAWN-into-this-cluster as a default option, REVIEW understands peer rows) is described in the cluster primitive reference and now shipped.
1072
1149
 
1073
- **`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `BUSY` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
1150
+ **`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
1074
1151
 
1075
1152
  **MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the six preset rows + `CLEAR` + `Custom...`. The Custom... branch falls back to the inline editor (same textarea + commit semantics as before). Click-outside + Esc close the popover; both listeners attach only while open (no global leak). On commit the row shows `ROLE <preset.label>` for a preset or truncated text for custom; the button flips to `EDIT`. `EDIT` reopens the popover with the matching preset highlighted via `presetForText` (returns undefined for free-form text -> Custom... is highlighted instead).
1076
1153
 
@@ -1094,7 +1171,7 @@ fresh members; roster rows badge non-standard modes.
1094
1171
 
1095
1172
  **`ClusterPlanTab.tsx` - VIEW / EDIT modes (2026-05-11).** Two modes toggled by the header `EDIT` pill. VIEW renders the body through `PlanBodyRenderer`; H3 section blocks expose `▷ REVIEW PHASE PLAN` / `▷ VERIFY PHASE WORK` / `▷ SPAWN PHASE`. EDIT drops to the textarea with byte counter + dirty marker; SAVE writes via `cluster_plan_set` and flips back to VIEW. Auto-opens in EDIT when the body is empty; auto-flips back to EDIT if a remote update drops the body to empty. Header pill bar in VIEW: `EDIT` / `CLEAR PLAN` / `REVIEW PLAN` / `VERIFY WORK` / `CUSTOM REVIEW`. REVIEW/VERIFY pop a `ClusterMemberPicker` first (review needs a worker to run on); CUSTOM REVIEW reuses the existing `PlanReviewPicker` against the picked member's promoted plan.
1096
1173
 
1097
- **Outer cluster right-panel splitter (2026-05-11).** A 4 px col-resize divider sits between the cluster main area (member grid + detail pane) and `ClusterRightPanel`. Width persisted to `localStorage` under `arco.clusterRightPanelWidth`. Fraction clamped to `[0.18, 0.5]` with default `0.28`. Same cleanup contract as `WorkflowView`'s splitter (mousemove updates a live-value, mouseup + capture-phase pointerup + pointercancel + blur + visibilitychange commit + clear `body.style.userSelect/cursor`).
1174
+ **Outer cluster right-panel splitter (2026-05-11).** A 4 px col-resize divider sits between the cluster main area (member grid + detail pane) and `ClusterRightPanel`. Width persisted to `localStorage` under `arco.clusterRightPanelWidth` (per layout, see [Layout ranges](#layout-ranges)). Fraction clamped to `[0.18, 0.5]` with default `0.28`. Same cleanup contract as `WorkflowView`'s splitter (mousemove updates a live-value, mouseup + capture-phase pointerup + pointercancel + blur + visibilitychange commit + clear `body.style.userSelect/cursor`).
1098
1175
 
1099
1176
  **`PlanCandidateBanner` - detection-based fallback (2026-05-11).** Previously the banner only appeared when the operator clicked PLAN (DRAFT / DRAFT & AUTO-SAVE) before sending. Fallback in the `ws/handleServerMessage.ts` `primary_complete` handler (`phase: 'passthrough'`): when `pendingPlanCapture` is absent AND the assistant's latest reply matches `looksLikePlan` (H1 title on first non-empty line + ≥3 markdown checkbox lines), the banner surfaces in `review` mode automatically. Catches the cases where the operator asked for a plan via free-form prompt without clicking PLAN, or where the pre-arm flag was dropped before `primary_complete` (page reload mid-turn). Operator can DISCARD if it's a false positive - the heuristic is conservative enough to avoid surprising normal replies.
1100
1177
 
@@ -1110,11 +1187,15 @@ per-cluster browser dismissal. The composer's PLAN button explains in its hover
1110
1187
 
1111
1188
  **Reconnect handling.** `handleServerMessage`'s `connected` case re-subscribes to every persisted cluster (one `cluster_subscribe` per id). The server's reply is a fresh `cluster_state`; the existing entry is overwritten in-place. If the cluster was torn down while disconnected the server sends an `error` (which we ignore - the persisted entry stays stale until the operator closes the tab manually).
1112
1189
 
1190
+ Cluster creation sends its request immediately after the form checks pass. CREATE CLUSTER shows Starting... and prevents another submission until the server creates the cluster, rejects the request or disconnects. A failed send unlocks CREATE CLUSTER. If no response arrives, the wait ends with a notice; check saved clusters before retrying. A director plan draft refreshes the public-project choice after creation and before its model turn. A failed refresh leaves the cluster available and offers DRAFT A PLAN for retry. Attaching an existing plan needs no remote suggestion lookup.
1191
+
1192
+ The MEMBERS panel starts SAVED CLUSTERS with snapshots from the cluster's exact folder. Folder matching resolves links on the server and preserves spaces in folder names. Show all projects lists every available copy; the number is the total in LOCAL or CLOUD. This project only restores the filter. The creator keeps its full list. List filtering uses a separate scope from the existing restore destination, so RESTORE is unchanged. Cloud copies without a matching local folder summary appear under Show all projects; folder paths remain absent from cloud metadata.
1193
+
1113
1194
  ### BOARD tab - `ClusterTaskBoardTab.tsx`
1114
1195
 
1115
1196
  Cluster BOARD sub-tab (`client/src/components/ClusterTaskBoardTab.tsx`). Renders the cwd-scoped task ledger as a Kanban-style board shared across all cluster members. **Task-ledger integration** (see [TASK_LEDGER.md](TASK_LEDGER.md)).
1116
1197
 
1117
- **Board mode + default-attach.** A cluster's board mode is `cluster.taskBoardMode` (`none` | `project` | `cluster`); new clusters **default-attach a project board** (`clusterStore.ts` seeds `taskBoardMode: 'project'`). `cluster_state` carries `taskBoardMode` / `taskBoardKey` / `taskBoardAttached`; the operator flips it via `cluster_task_board_attach_set` / `cluster_task_board_mode_set`. The plan->task / peer->task bridges (above) mount only when the board is attached (`!== 'none'`).
1198
+ **Board mode + default-attach.** A cluster's board mode is `cluster.taskBoardMode` (`none` | `project` | `cluster`); new clusters start with their own **cluster board** (`clusterStore.createCluster` seeds `taskBoardMode: 'cluster'`, the creator's starting choice too). `cluster_state` carries `taskBoardMode` / `taskBoardKey` / `taskBoardAttached`; the operator flips it via `cluster_task_board_attach_set` / `cluster_task_board_mode_set`. The plan->task / peer->task bridges (above) mount only when the board is attached (`!== 'none'`).
1118
1199
 
1119
1200
  **Kanban columns + drag.** Eight status columns in order: `triage / todo / ready / in_progress / blocked / review / done / archived`. Column definitions live in `BOARD_COLUMNS` (exported helper). Cards show task title, assignee (if any), open-run count, and dependency indicators. The board is a horizontal kanban with `@dnd-kit` drag-to-restatus (`data-help="cluster.board-columns"`): a `PointerSensor` with a 4px activation distance (so a plain click still opens the drawer instead of starting a drag) plus a `TouchSensor` (delay 180ms / tolerance 8) for touch-drag. A drop fires `task_ledger_update { status }`; drops onto `done` / `archived` confirm first. A create-on-board composer (`data-help="cluster.board-add-task"`) authors a new `todo` task via `task_ledger_create`.
1120
1201
 
@@ -1123,18 +1204,14 @@ Cluster BOARD sub-tab (`client/src/components/ClusterTaskBoardTab.tsx`). Renders
1123
1204
  - **Runs** - run history with heartbeat age, stale indicator, and per-run RECLAIM / TERMINATE controls (`task_run_recover` WS message). Open runs are listed first.
1124
1205
  - **Dependency graph** - `taskGraphSummary` helper computes parent/child counts and blocked-parent / open-child summary. Displayed as a plain-text graph summary.
1125
1206
 
1126
- **Collapsed AUTOMATION header.** The dispatcher, SWARM, and orchestration-assist controls now live behind a single collapsed **AUTOMATION** disclosure (`automationOpen`, default false; `data-help="cluster.board-automation-toggle"`; the header badge appends `· N` proposed-count when non-zero). Expanded, it exposes:
1207
+ **Collapsed AUTOMATION header.** The dispatcher and SWARM controls live behind a collapsed **AUTOMATION** disclosure (`automationOpen`, default false; `data-help="cluster.board-automation-toggle"`). Expanded, it exposes:
1127
1208
  - `DISPATCH ONCE` - fires `cluster_dispatch_once`; one deterministic explicit-assignee sweep.
1128
1209
  - Armed-daemon toggle (DISPATCHER) - `cluster_dispatch_toggle`; persisted in cluster meta; status shown as `Armed` / `Disarmed` tooltip.
1129
1210
  - Per-cap settings (max open runs cluster-wide, per-member cap) - fires `cluster_dispatch_settings_update`.
1130
1211
  - Run concurrency pill showing `RUNS N/cap` - visual throttle indicator.
1131
- - CREATE SWARM / DRAFT ASSIST - the orchestration-assist panel below.
1212
+ - CREATE SWARM - creates the selected task structure.
1132
1213
 
1133
- **Orchestration assist panel** (`orchestrationAssistStore`). An operator-armed ASSIST panel inside the AUTOMATION disclosure. Gated: only appears when the cluster is armed (via the panel's own arm toggle). Five assist modes (radio/select): `TASK GRAPH / ASSIGNMENTS / RECOVERY / SYNTHESIS / SWARM`. On dispatch:
1134
- 1. Client fires `cluster_orchestration_assist_request` with the chosen mode + a freeform prompt + requester workflowId.
1135
- 2. Server generates (or stubs) a proposal and stores it via `orchestrationProposals.ts`; broadcasts `cluster_orchestration_proposal` back.
1136
- 3. Client upserts the proposal into `orchestrationAssistStore.byCluster[clusterId]` and auto-selects it.
1137
- 4. Selected proposal previews in the panel. Operator can **accept selected items** (fires `cluster_orchestration_proposal_apply`, which runs through the normal task-kernel APIs producing ordinary `task_ledger_event`s) or **reject** (fires `cluster_orchestration_proposal_reject`; mutates nothing in the task store).
1214
+ **Orchestration assist.** DRAFT ASSIST is hidden in this version. Existing proposal storage and acceptance paths remain in place.
1138
1215
 
1139
1216
  `orchestrationAssistStore` (`client/src/stores/orchestrationAssistStore.ts`) is a standalone Zustand store (not in `appStore`). Shape:
1140
1217
  ```ts
@@ -1153,9 +1230,37 @@ State is not persisted (proposals are fetched from the server on subscribe). The
1153
1230
 
1154
1231
  ---
1155
1232
 
1233
+ ## Layout ranges
1234
+
1235
+ `client/src/layout/layoutRange.ts` turns the window width and Settings > Appearance > Layout into the layout to draw. The width is `innerWidth` divided by the interface scale (`--ui-scale`, set by `applyUiScale`, which dispatches `arco:ui-scale`), so 1920 px at 150% counts as 1280.
1236
+
1237
+ Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard from 2000 (interface pixels: window width divided by the text size). Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch cycles all four choices and shows the active layout and current interface width.
1238
+
1239
+ `useLayout()` re-reads on `resize`, `arco:ui-scale`, `arco:layout-mode` (fired by `setLayoutMode`) and the `storage` event. The mode is kept in `localStorage` (`arco.layoutMode`), never per project.
1240
+
1241
+ - **Standard:** the original layout and original splitter keys.
1242
+ - **Compact:** one-row member cards and fixed starting side widths of 250 px for the member grid and 320 px for the cluster right panel (360 px for a single tab). Cluster settings fold into a summary, the plan hint is one line, and optional composer tools move into MORE as needed.
1243
+ - **Narrow:** the member grid becomes a rail of initials and the right panel a strip of buttons. Each opens its panel over the chat. Esc, CLOSE or the backdrop closes a panel.
1244
+
1245
+ Dragged splitter positions are saved separately for each layout. Positions from the retired width band that no longer exists are ignored.
1246
+
1247
+ ## Menus and popovers inside the window
1248
+
1249
+ `client/src/layout/keepInWindow.ts` is the one placement rule for every dropdown, popover, menu, hover card and corner notice. Each panel keeps its own CSS position (below or above its trigger, at a pointer, in a corner); `useKeepInWindow()` returns a callback ref that, after the panel is drawn, measures it and only where it would leave the window: caps its width to the window less an 8 px margin on each side, flips it to the other side of its trigger when that side has more room, caps its height to the room on the chosen side and scrolls inside, and shifts it along the edge so the whole box is inside with the margin. It moves the panel with the CSS `translate` property, so a panel's own `transform` still applies. The trigger defaults to the panel's positioned parent (`offsetParent`) for absolute panels; fixed panels pass `anchor` (NeedsYouBadge passes its button; pointer menus and notices pass none and are only shifted and capped). It runs again on window `resize`, `arco:ui-scale`, page scroll, a size change of the panel or its trigger (`ResizeObserver`), the end of an animation and the `toggle` of an enclosing `<details>`. Lengths written back are divided by the interface scale. Every managed panel carries `data-window-placement` (`below`, `above` or `free`). `planPlacement` is the pure part, unit-tested in `keepInWindow.test.ts`; the `popover-placement` browser suite opens each panel where the layout puts it and with its trigger pinned near each window corner at 1280x800, 900x700 and 480x800, at 100% and 150%, and checks the box is inside the window.
1250
+
1156
1251
  ## ARTIFACTS explorer (`?app=explorer`)
1157
1252
 
1158
- A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharing the same root/theme bootstrap but no app store or `/ws`. `explorer/ExplorerApp.tsx` is the shell - `LensId = 'artifacts' | 'recents' | 'plans' | 'storage' | 'tree'` (ARTIFACTS is the landing home; PLANS and STORAGE are described below), left-nav lens switcher, poll-on-focus + manual ↻, an A-/A+ window-zoom control (`document.documentElement.style.zoom`, persisted `arco_explorer_zoom3`, default 0.85), a transparent root so the theme's body background shows through, and a reused `FileExplorer` for the TREE lens. `ArtifactsLens.tsx` (HOME recent-across-projects strip + per-project drill-down over `/api/explorer/artifacts` + `/docs`), `RecentsLens.tsx` (AGENT WRITES ledger + RECENTLY MODIFIED scan, filter chips ALL/DOCS/IMAGES, `/api/explorer/recents` + `/changed`), `types.ts` (client mirrors of the server read-models), and `launch.ts` (`openArchive` - same-browser `window.open` popup, falling back to `POST /api/explorer/open`, last-resort plain tab). `/api/explorer/*` (6 routes) lives in `server/src/http/explorerRoutes.ts`. Zero model authority. Every lens is read-only except PLANS (plan edits and MARK DONE, through the plan routes) and STORAGE, whose actions each ask for a confirmation first.
1253
+ Artifact listings omit protected file paths. If workflow metadata is linked or unavailable, the listing uses the workflow identifier instead of a title.
1254
+
1255
+ TREE starts at the first readable location: the configured working folder, Projects in the home folder, then the home folder. Startup, directory listings and previews share that read-only root. This fallback does not register a project or grant writes.
1256
+
1257
+ In save pickers, Go or Enter in the path field loads the destination. SAVE HERE and Enter in the filename field choose the loaded folder only. Both refuse submission during loading, after a listing error, or while the path is being edited.
1258
+
1259
+ In LIVE WORKTREE, STAGED renders the index patch against HEAD, including staged deletions. CHANGING and NEW FILES retain the current-file preview. An unstaged edit cannot change the text or line positions shown in a staged patch.
1260
+
1261
+ CHANGED FILES extracts filenames from slash-separated and native Windows paths. ARTIFACTS and CHANGED FILES omit OPEN IN TREE for any path inside the Arco state folder; the viewer remains available.
1262
+
1263
+ A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharing the same root/theme bootstrap but no app store or `/ws`. `explorer/ExplorerApp.tsx` is the shell - `LensId = 'artifacts' | 'recents' | 'plans' | 'storage' | 'tree'` (ARTIFACTS is the landing home; PLANS and STORAGE are described below), left-nav lens switcher, poll-on-focus + manual ↻, an A-/A+ window-zoom control (`document.documentElement.style.zoom`, persisted `arco_explorer_zoom3`, default 0.85), a transparent root so the theme's body background shows through, and a reused `FileExplorer` for the TREE lens. `ArtifactsLens.tsx` (HOME recent-across-projects strip + per-project drill-down over `/api/explorer/artifacts` + `/docs`), `RecentsLens.tsx` (CHANGED FILES scan, filter chips ALL/DOCS/IMAGES, `/api/explorer/changed` with current attribution from `/recents`), `types.ts` (client mirrors of the server read-models), and `launch.ts` (`openArchive` - same-browser `window.open` popup, falling back to `POST /api/explorer/open`, last-resort plain tab). `/api/explorer/*` (6 routes) lives in `server/src/http/explorerRoutes.ts`. Zero model authority. Every lens is read-only except PLANS (plan edits and MARK DONE, through the plan routes) and STORAGE, whose actions each ask for a confirmation first.
1159
1264
 
1160
1265
  `StorageLens.tsx` is the **STORAGE** lens (`?app=explorer&lens=storage`). It lists every known project and Arco's own folder, largest first, with each row's headings and biggest item, from `GET /api/storage-report?scope=all`; **MEASURE AGAIN** measures again. A project row opens its conversations and archives from `GET /api/storage-report?path=`, each with its size, open state and KEEP state. **KEEP** protects the whole conversation after confirmation and refreshes the report. The other actions are **COMPRESS OLD LOGS** per project and **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** per conversation. Each asks for a confirmation, posts to `/api/storage/*` and reports the result; ARCHIVE and DELETE are off while a conversation is open or working, or wholly kept. **STORAGE SETTINGS** holds auto-archive (off by default) and the disk budget, through `/api/storage/policy`; the disk budget notice shows above the list when the last measurement passes it. Worktrees, caches and Arco's folder have no clean-up action.
1161
1266
 
@@ -1254,14 +1359,45 @@ The creator and member role editor limit new director assignments to one per clu
1254
1359
 
1255
1360
  ### Storage report
1256
1361
 
1257
- In the right-panel USAGE tab, MEASURE STORAGE reads the current project state. Every byte is listed under one heading: conversation logs, artifacts, handoffs, checkpoints, scratch files, other conversation files, plans, task boards, worktrees and isolated copies, archived conversations, or other. Each conversation shows its log bytes by event type, activity and open status. Large files are marked. MEASURE AGAIN refreshes the cached result; the measurement time and read errors are shown. Shared checkpoint storage is listed separately.
1362
+ In a single-worker, chat or cluster tab, open **MEMORY > USAGE** in the right panel (a cluster tab reports its shared project folder and every member's conversations). MEASURE STORAGE reads the current project state. Every byte is listed under one heading: conversation logs, artifacts, handoffs, checkpoints, scratch files, other conversation files, plans, task boards, worktrees and isolated copies, archived conversations, or other. Each conversation shows its log bytes by event type, activity and open status. Large files are marked. MEASURE AGAIN refreshes the cached result; the measurement time and read errors are shown. Shared checkpoint storage is listed separately. From anywhere, ARTIFACTS > STORAGE also offers MEASURE AGAIN.
1258
1363
 
1259
1364
  MEASURE ARCO FOLDER measures Arco's own folder under the same rules, with headings for voice and media models, caches and browser profiles, provider account data, saved clusters and server logs. A file with several hard links is counted once. Chat and Genesis project folders inside Arco's folder are skipped and counted with their own projects. Neither report deletes or changes files.
1260
1365
 
1261
1366
  ## Plans library
1262
1367
 
1368
+ ARTIFACTS loads workflow artifacts independently from project documents. Documents include readable files at the project root and under folders such as `docs/` and `Reports/`. The document scan skips hidden folders, build and dependency folders, and nested Git checkouts or worktrees. It visits at most 20,000 entries or 250 milliseconds per project, and at most 50,000 entries or 650 milliseconds across known projects. A partial list says "Showing the newest N; open a project for more". Opening a project performs its own bounded document scan. Workflow artifacts under `.arco/workflows/<id>/artifacts` remain listed separately without a result-count cap; the document skips do not apply to them. Each list has its own loading and empty state. A failed list shows a notice while the other results remain usable. Switch away from the window and return to retry.
1369
+
1263
1370
  ARTIFACTS > PLANS groups plans by project, remembers expanded projects and opens search matches. The current project opens by default. Repeated titles expand into versions. A group with an attached version stays in the normal list, where its unattached versions offer MARK DONE. In-use labels name attached tabs or clusters. Unattached plans with all checkboxes checked or no edits for 30 days appear under Probably finished; MARK DONE moves a selected plan to Completed. Nothing is marked done automatically. The counts follow the current filter.
1264
1371
 
1372
+ When ALL PLANS opens from a PLAN tab, the library remembers the tab or cluster. ATTACH TO connects a selected plan from the same project to that target. A plan from another project cannot be attached. Opening the library from the header has no target.
1373
+
1265
1374
  ## Artifact copy review
1266
1375
 
1267
- OUTPUTS > MOVE TO PROJECT reviews Git ignore status, public visibility, size and text findings before copying. Files not fully scanned are listed by name; a public copy outside Git ignore requires a second confirmation for them. Images and recordings need manual inspection. KEEP IT PRIVATE retains and protects the artifact instead. ADD TO .GITIGNORE adds a destination rule. Copies do not overwrite, stage or commit, and the original stays in Arco. A failed copy can leave partial files at the destination. The temporary folder must be outside the project and Git repositories. Large artifact warnings offer KEEP to protect the item or DISMISS without protecting it.
1376
+ OUTPUTS > MOVE TO PROJECT reviews Git ignore status, public visibility, size and text findings before copying. Files not fully scanned are listed by name; a public copy outside Git ignore requires a second confirmation for them. Binary files other than images and recordings are scanned for runs of four or more printable characters only, and short colon runs there do not count as IPv6 addresses. Past 1,000 findings in a file or 2,000 in a copy, the rest is listed as not fully scanned (with the reason) instead of refusing the review. Images and recordings need manual inspection. KEEP IT PRIVATE retains and protects the artifact instead. ADD TO .GITIGNORE adds a destination rule. Copies do not overwrite, stage or commit, and the original stays in Arco. A failed copy can leave partial files at the destination. The temporary folder must be outside the project and Git repositories. Large artifact warnings offer KEEP to protect the item or DISMISS without protecting it.
1377
+
1378
+ The composer status line groups the north star, pending messages, compaction continuation, selected skills and active transport notices. PENDING opens the message list and cancellation controls. Project trust and plan decisions stay prominent.
1379
+
1380
+ Rough-theme panels attach the generated SVG border and replace it on size or active-state changes. The active border follows the theme accent.
1381
+
1382
+
1383
+ ### Recent-file scan and accepted reruns
1384
+
1385
+ CHANGED FILES searches through depth eight within entry and time budgets,
1386
+ keeping up to 500 newest matches from visited folders. The result-count cap
1387
+ alone does not stop traversal; the traversal budgets can stop it first. Ledger append and retention cleanup share one
1388
+ lock so accepted recent records survive concurrent notifications.
1389
+
1390
+ RERUN in the GitHub Actions run view accepts a successful response with no JSON
1391
+ body and shows `Rerun requested.` It sends one request per click.
1392
+
1393
+ When CREATE AND ATTACH is pending in the plan chooser, later title or body edits stay in the form. Cancelling and opening a new form also keeps that new draft. The submitted version is saved, but attachment waits for another choice when the form has changed.
1394
+
1395
+ CHANGED FILES scans every authorized project root and the default projects folder, including registered projects outside the home folder. Duplicate roots are combined; registered descendants are scanned separately and omitted from ancestor walks. The 650-millisecond request deadline includes root preparation. Preparation has an early cutoff, leaving time to scan healthy roots when another root is unavailable. Remaining time and the 20,000-entry budget are divided among the prepared roots, through depth eight. A root that times out during preparation is omitted and marks the page incomplete. A large or stalled root cannot consume another root's scan share. It skips Git-ignored directories and nested checkouts or worktrees, while keeping useful hidden project folders and the Arco workflow-artifact carve-out. A project collection can still contain its own first-level repositories. Results truncated identifies a partial sample or a list capped at the newest 500 matches. The newest ledger entry adds a tab and provider only when its timestamp is no more than two seconds older than the file modification time.
1396
+
1397
+ Project-discovery budgets also bound pending directory operations. A stalled open or read returns partial results at the deadline; late directory handles are closed and late rejections are handled. Root resolution and document metadata reads share the same document-scan deadline.
1398
+
1399
+ ### Background jobs in ACTIVITY
1400
+
1401
+ The BACKGROUND list receives server-attributed agent shell commands and their known children. It keeps jobs across turns and briefly shows completion after exit. Arco helpers, configured MCP servers and provider programs are excluded. Linux process discovery identifies these jobs; the browser does not classify command text.
1402
+
1403
+ OPEN IN TREE is offered only for project files inside the current TREE root; files outside it remain available in the viewer.