arco-workbench 0.1.3 → 0.1.4

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 (296) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +5 -1
  3. package/client/dist/assets/{PhosphorBackdrop-CkVIGkeX.js → PhosphorBackdrop-CNumba2X.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DHF7CnpE.js → ThemedBackgroundShaderImpl-DX5KyCt3.js} +1 -1
  5. package/client/dist/assets/{XtermView-SY0UcZUS.js → XtermView-DhS5g8Rt.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-Ca4F8HiM.js → galleryEditor-fPb76Cjv.js} +1 -1
  7. package/client/dist/assets/index-CjkHb-_n.js +592 -0
  8. package/client/dist/assets/index-DIbh3ae5.css +1 -0
  9. package/client/dist/index.html +2 -2
  10. package/client/src/App.tsx +2 -0
  11. package/client/src/alerts/desktopAlerts.ts +13 -1
  12. package/client/src/brief/briefFacts.ts +22 -0
  13. package/client/src/brief/briefFromStore.ts +7 -2
  14. package/client/src/components/ArtifactMoveDialog.tsx +64 -0
  15. package/client/src/components/BriefControl.tsx +38 -47
  16. package/client/src/components/CatchMeUp.tsx +25 -25
  17. package/client/src/components/CheckpointActions.tsx +7 -4
  18. package/client/src/components/ClusterComposerButtons.tsx +6 -3
  19. package/client/src/components/ClusterPlanTab.tsx +15 -1
  20. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +6 -2
  21. package/client/src/components/ClusterTab.tsx +33 -3
  22. package/client/src/components/ClusterTaskBoardTab.tsx +62 -8
  23. package/client/src/components/DialogShell.tsx +115 -0
  24. package/client/src/components/DocsUpdateDialog.tsx +16 -42
  25. package/client/src/components/ForwardMessages.tsx +28 -32
  26. package/client/src/components/GitDialog.tsx +52 -52
  27. package/client/src/components/GitOtherWork.tsx +4 -2
  28. package/client/src/components/HandoffDialog.tsx +19 -45
  29. package/client/src/components/Home/HomeView.tsx +36 -8
  30. package/client/src/components/Home/home.css +7 -0
  31. package/client/src/components/KeepButton.tsx +23 -0
  32. package/client/src/components/MdTuneupDialog.tsx +52 -51
  33. package/client/src/components/MemberCard.tsx +4 -1
  34. package/client/src/components/MemberPane.tsx +1 -1
  35. package/client/src/components/NotificationCenter.tsx +4 -3
  36. package/client/src/components/NotificationChannelsSettings.tsx +25 -7
  37. package/client/src/components/PlanCandidateBanner.tsx +111 -57
  38. package/client/src/components/PlanComposerDialog.tsx +55 -87
  39. package/client/src/components/ProjectStateNotice.tsx +60 -0
  40. package/client/src/components/PublicProjectBox.tsx +25 -0
  41. package/client/src/components/ResearchDialog.tsx +15 -24
  42. package/client/src/components/ReviewDialog.tsx +32 -57
  43. package/client/src/components/RightPanel/OutputsPanel.tsx +4 -0
  44. package/client/src/components/RightPanel/PlanTab.tsx +24 -2
  45. package/client/src/components/RightPanel/UsageTab.tsx +77 -1
  46. package/client/src/components/SkillEditorDialog.tsx +38 -73
  47. package/client/src/components/SpawnDialog.tsx +19 -41
  48. package/client/src/components/StorageWarnings.tsx +21 -0
  49. package/client/src/components/SystemHeader.tsx +2 -2
  50. package/client/src/components/TerminalInput.tsx +6 -2
  51. package/client/src/components/TidyComposer.tsx +24 -41
  52. package/client/src/components/TranscriptSendDialog.tsx +151 -202
  53. package/client/src/components/UtilityAgentPicker.tsx +4 -2
  54. package/client/src/components/WorkflowCreator/index.tsx +2 -0
  55. package/client/src/components/WorkflowView.tsx +4 -1
  56. package/client/src/components/clusterNeedsYou.ts +35 -3
  57. package/client/src/components/compare/CompareDialog.tsx +26 -2
  58. package/client/src/components/terminalInput/planDraft.ts +33 -4
  59. package/client/src/components/utilityResult.ts +5 -1
  60. package/client/src/explorer/ExplorerApp.tsx +5 -2
  61. package/client/src/explorer/PlansLens.tsx +60 -19
  62. package/client/src/explorer/StorageLens.tsx +275 -0
  63. package/client/src/explorer/launch.ts +3 -3
  64. package/client/src/explorer/plansGrouping.ts +15 -0
  65. package/client/src/help/content/cluster.tsx +42 -7
  66. package/client/src/help/content/composer.tsx +26 -6
  67. package/client/src/help/content/header.tsx +16 -14
  68. package/client/src/help/content/misc.tsx +141 -6
  69. package/client/src/help/content/rightPanel.tsx +16 -0
  70. package/client/src/help/content/settings.tsx +4 -4
  71. package/client/src/help/manualSections/actions.tsx +19 -4
  72. package/client/src/help/manualSections/clusters.tsx +29 -16
  73. package/client/src/help/manualSections/configuration.tsx +6 -4
  74. package/client/src/help/manualSections/maintenance.tsx +27 -5
  75. package/client/src/help/manualSections/plans.tsx +96 -2
  76. package/client/src/help/manualSections/powerFeatures.tsx +2 -2
  77. package/client/src/help/manualSections/reference.tsx +6 -0
  78. package/client/src/help/manualSections/workspace.tsx +9 -5
  79. package/client/src/stores/appStore.ts +10 -1
  80. package/client/src/stores/appStore.types.ts +2 -0
  81. package/client/src/stores/mdTuneupStore.ts +5 -4
  82. package/client/src/stores/memoryTrim.ts +18 -2
  83. package/client/src/stores/storageWarningStore.ts +18 -0
  84. package/client/src/utils/gitDialogMemory.ts +26 -0
  85. package/client/src/utils/historyEvents.ts +1 -0
  86. package/client/src/utils/homeModel.ts +19 -0
  87. package/client/src/utils/publicProject.ts +56 -0
  88. package/client/src/ws/handleServerMessage.ts +7 -2
  89. package/docs/ARCHITECTURE.md +1 -1
  90. package/docs/CHECKPOINTS.md +2 -0
  91. package/docs/CLIENT.md +29 -11
  92. package/docs/FEATURES.md +14 -11
  93. package/docs/GETTING_STARTED.md +7 -7
  94. package/docs/GLOSSARY.md +3 -3
  95. package/docs/GOTCHAS.md +3 -2
  96. package/docs/HTTP_API.md +31 -1
  97. package/docs/NOTIFICATIONS.md +13 -14
  98. package/docs/OPERATIONS.md +27 -1
  99. package/docs/OPERATOR_ACTIONS.md +1 -1
  100. package/docs/OUTPUTS.md +9 -0
  101. package/docs/PERSISTENCE.md +34 -4
  102. package/docs/PLAN_OR_BOARD.md +7 -0
  103. package/docs/PRIMITIVES.md +3 -3
  104. package/docs/PROTOCOL.md +14 -4
  105. package/docs/PROTOCOL_CLUSTER.md +3 -2
  106. package/docs/SERVICE_MODE.md +5 -1
  107. package/docs/SETTINGS.md +8 -6
  108. package/docs/STORAGE_PLAN.md +324 -0
  109. package/docs/TASK_LEDGER.md +5 -4
  110. package/native/linux-arm64/manifest.json +1 -1
  111. package/node_modules/@arco/shared/dist/index.d.ts +2 -0
  112. package/node_modules/@arco/shared/dist/index.js +2 -0
  113. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +1 -1
  114. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +1 -1
  115. package/node_modules/@arco/shared/dist/protocol/checkpoints.d.ts +1 -0
  116. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -1
  117. package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
  118. package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
  119. package/node_modules/@arco/shared/dist/protocol/mdTuneup.d.ts +6 -0
  120. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +2 -1
  121. package/node_modules/@arco/shared/dist/protocol/notifications.js +3 -2
  122. package/node_modules/@arco/shared/dist/protocol/plans.d.ts +2 -0
  123. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +2 -1
  124. package/node_modules/@arco/shared/dist/protocol/storage.d.ts +21 -0
  125. package/node_modules/@arco/shared/dist/protocol/storage.js +3 -0
  126. package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +3 -0
  127. package/node_modules/@arco/shared/dist/protocol/utilityAgent.d.ts +2 -2
  128. package/node_modules/@arco/shared/dist/protocol/utilityAgent.js +2 -2
  129. package/node_modules/@arco/shared/dist/publicGuardrails.d.ts +7 -0
  130. package/node_modules/@arco/shared/dist/publicGuardrails.js +47 -0
  131. package/node_modules/@arco/shared/dist/publicSafetyRules.d.ts +1 -0
  132. package/node_modules/@arco/shared/dist/publicSafetyRules.js +6 -0
  133. package/node_modules/@arco/shared/package.json +1 -1
  134. package/package.json +3 -2
  135. package/scripts/packaging/arco.mjs +17 -1
  136. package/scripts/packaging/services.mjs +35 -5
  137. package/scripts/packaging/storage.mjs +125 -0
  138. package/scripts/packaging/update.mjs +3 -3
  139. package/server/dist/artifactCopy.d.ts +26 -0
  140. package/server/dist/artifactCopy.js +398 -0
  141. package/server/dist/atomicFile.d.ts +1 -0
  142. package/server/dist/atomicFile.js +1 -1
  143. package/server/dist/attention.d.ts +1 -1
  144. package/server/dist/attention.js +10 -13
  145. package/server/dist/catchUp.d.ts +2 -0
  146. package/server/dist/catchUp.js +46 -23
  147. package/server/dist/clusterPeerOps.d.ts +2 -0
  148. package/server/dist/clusterPeerOps.js +2 -0
  149. package/server/dist/clusterSnapshots.js +22 -12
  150. package/server/dist/eventLog.d.ts +55 -0
  151. package/server/dist/eventLog.js +792 -0
  152. package/server/dist/explorerLaunch.d.ts +4 -1
  153. package/server/dist/explorerLaunch.js +3 -2
  154. package/server/dist/explorerPlans.d.ts +4 -0
  155. package/server/dist/explorerPlans.js +27 -2
  156. package/server/dist/http/clusterRoutes.js +2 -0
  157. package/server/dist/http/explorerRoutes.js +2 -1
  158. package/server/dist/http/publicProjectRoutes.d.ts +2 -0
  159. package/server/dist/http/publicProjectRoutes.js +68 -0
  160. package/server/dist/http/router.js +6 -0
  161. package/server/dist/http/storageRoutes.d.ts +2 -0
  162. package/server/dist/http/storageRoutes.js +254 -0
  163. package/server/dist/http/usageStatsRoutes.js +3 -12
  164. package/server/dist/index.js +4 -0
  165. package/server/dist/keepStore.d.ts +16 -0
  166. package/server/dist/keepStore.js +119 -0
  167. package/server/dist/management/clusterActivity.js +6 -20
  168. package/server/dist/management/initHubLink.js +10 -43
  169. package/server/dist/mcp/clusterMcpTools.js +8 -1
  170. package/server/dist/notifications.d.ts +3 -1
  171. package/server/dist/notifications.js +5 -4
  172. package/server/dist/outputStore.d.ts +1 -0
  173. package/server/dist/outputStore.js +1 -1
  174. package/server/dist/outputs.js +39 -8
  175. package/server/dist/planHistory.d.ts +3 -0
  176. package/server/dist/planHistory.js +60 -0
  177. package/server/dist/primitives/runMdTuneup.d.ts +5 -1
  178. package/server/dist/primitives/runMdTuneup.js +43 -2
  179. package/server/dist/project/taskLedger.d.ts +4 -0
  180. package/server/dist/project/taskLedger.js +19 -0
  181. package/server/dist/providers/claude-native/peerTools.js +4 -0
  182. package/server/dist/providers/claude-native/resumeSummary.js +30 -19
  183. package/server/dist/providers/index.js +8 -13
  184. package/server/dist/providers/localProviderQueue.d.ts +2 -0
  185. package/server/dist/providers/localProviderQueue.js +11 -0
  186. package/server/dist/publicProject.d.ts +54 -0
  187. package/server/dist/publicProject.js +135 -0
  188. package/server/dist/recall/index.js +22 -23
  189. package/server/dist/server/broadcast.d.ts +2 -1
  190. package/server/dist/server/broadcast.js +56 -1
  191. package/server/dist/smartPickupAdapters.d.ts +7 -0
  192. package/server/dist/smartPickupAdapters.js +172 -8
  193. package/server/dist/storageActions.d.ts +50 -0
  194. package/server/dist/storageActions.js +326 -0
  195. package/server/dist/storageArchive.d.ts +24 -0
  196. package/server/dist/storageArchive.js +358 -0
  197. package/server/dist/storageOverview.d.ts +47 -0
  198. package/server/dist/storageOverview.js +197 -0
  199. package/server/dist/storageReport.d.ts +48 -0
  200. package/server/dist/storageReport.js +185 -0
  201. package/server/dist/storageWarnings.d.ts +4 -0
  202. package/server/dist/storageWarnings.js +96 -0
  203. package/server/dist/workers/limits.js +4 -1
  204. package/server/dist/workflowStore.d.ts +2 -0
  205. package/server/dist/workflowStore.js +88 -72
  206. package/server/dist/workflows/purgeWorkflow.d.ts +1 -0
  207. package/server/dist/workflows/purgeWorkflow.js +15 -2
  208. package/server/dist/workflows/sessionDiscovery.js +5 -17
  209. package/server/dist/workflows/sessionIndex.js +22 -17
  210. package/server/dist/ws/taskLedgerHandlers.js +8 -3
  211. package/server/dist/ws/workflowHandlers.js +5 -4
  212. package/server/package.json +1 -1
  213. package/server/src/artifactCopy.ts +254 -0
  214. package/server/src/atomicFile.ts +1 -1
  215. package/server/src/attention.ts +9 -10
  216. package/server/src/catchUp.ts +37 -15
  217. package/server/src/clusterPeerOps.ts +5 -0
  218. package/server/src/clusterSnapshots.ts +20 -13
  219. package/server/src/eventLog.ts +571 -0
  220. package/server/src/explorerLaunch.ts +3 -2
  221. package/server/src/explorerPlans.ts +22 -2
  222. package/server/src/http/clusterRoutes.ts +4 -1
  223. package/server/src/http/explorerRoutes.ts +2 -1
  224. package/server/src/http/publicProjectRoutes.ts +54 -0
  225. package/server/src/http/router.ts +4 -0
  226. package/server/src/http/storageRoutes.ts +187 -0
  227. package/server/src/http/usageStatsRoutes.ts +3 -11
  228. package/server/src/index.ts +4 -0
  229. package/server/src/keepStore.ts +102 -0
  230. package/server/src/management/clusterActivity.ts +6 -16
  231. package/server/src/management/initHubLink.ts +10 -39
  232. package/server/src/mcp/clusterMcpTools.ts +8 -2
  233. package/server/src/notifications.ts +4 -3
  234. package/server/src/outputStore.ts +5 -2
  235. package/server/src/outputs.ts +30 -6
  236. package/server/src/planHistory.ts +48 -0
  237. package/server/src/primitives/runMdTuneup.ts +32 -2
  238. package/server/src/project/taskLedger.ts +20 -0
  239. package/server/src/providers/claude-native/peerTools.ts +4 -0
  240. package/server/src/providers/claude-native/resumeSummary.ts +32 -18
  241. package/server/src/providers/index.ts +2 -16
  242. package/server/src/providers/localProviderQueue.ts +13 -0
  243. package/server/src/publicProject.ts +142 -0
  244. package/server/src/recall/index.ts +4 -9
  245. package/server/src/server/broadcast.ts +53 -1
  246. package/server/src/smartPickupAdapters.ts +128 -5
  247. package/server/src/storageActions.ts +216 -0
  248. package/server/src/storageArchive.ts +277 -0
  249. package/server/src/storageOverview.ts +184 -0
  250. package/server/src/storageReport.ts +210 -0
  251. package/server/src/storageWarnings.ts +84 -0
  252. package/server/src/workers/limits.ts +4 -1
  253. package/server/src/workflowStore.ts +78 -61
  254. package/server/src/workflows/purgeWorkflow.ts +12 -3
  255. package/server/src/workflows/sessionDiscovery.ts +5 -13
  256. package/server/src/workflows/sessionIndex.ts +5 -9
  257. package/server/src/ws/taskLedgerHandlers.ts +8 -3
  258. package/server/src/ws/workflowHandlers.ts +5 -4
  259. package/shared/dist/index.d.ts +2 -0
  260. package/shared/dist/index.js +2 -0
  261. package/shared/dist/protocol/autoPickup.d.ts +1 -1
  262. package/shared/dist/protocol/autoPickup.js +1 -1
  263. package/shared/dist/protocol/checkpoints.d.ts +1 -0
  264. package/shared/dist/protocol/clusters.d.ts +2 -1
  265. package/shared/dist/protocol/index.d.ts +1 -0
  266. package/shared/dist/protocol/index.js +1 -0
  267. package/shared/dist/protocol/mdTuneup.d.ts +6 -0
  268. package/shared/dist/protocol/notifications.d.ts +2 -1
  269. package/shared/dist/protocol/notifications.js +3 -2
  270. package/shared/dist/protocol/plans.d.ts +2 -0
  271. package/shared/dist/protocol/serverMessages.d.ts +2 -1
  272. package/shared/dist/protocol/storage.d.ts +21 -0
  273. package/shared/dist/protocol/storage.js +3 -0
  274. package/shared/dist/protocol/tasks.d.ts +3 -0
  275. package/shared/dist/protocol/utilityAgent.d.ts +2 -2
  276. package/shared/dist/protocol/utilityAgent.js +2 -2
  277. package/shared/dist/publicGuardrails.d.ts +7 -0
  278. package/shared/dist/publicGuardrails.js +47 -0
  279. package/shared/dist/publicSafetyRules.d.ts +1 -0
  280. package/shared/dist/publicSafetyRules.js +6 -0
  281. package/shared/src/index.ts +3 -0
  282. package/shared/src/protocol/autoPickup.ts +1 -1
  283. package/shared/src/protocol/checkpoints.ts +4 -0
  284. package/shared/src/protocol/clusters.ts +6 -1
  285. package/shared/src/protocol/index.ts +1 -0
  286. package/shared/src/protocol/mdTuneup.ts +5 -0
  287. package/shared/src/protocol/notifications.ts +6 -2
  288. package/shared/src/protocol/plans.ts +2 -0
  289. package/shared/src/protocol/serverMessages.ts +2 -0
  290. package/shared/src/protocol/storage.ts +35 -0
  291. package/shared/src/protocol/tasks.ts +6 -0
  292. package/shared/src/protocol/utilityAgent.ts +2 -2
  293. package/shared/src/publicGuardrails.ts +50 -0
  294. package/shared/src/publicSafetyRules.ts +5 -0
  295. package/client/dist/assets/index-CcNtMA2y.js +0 -546
  296. package/client/dist/assets/index-Dl8tYsSp.css +0 -1
@@ -120,8 +120,9 @@ export const plans: Section[] = [
120
120
  <ul>
121
121
  <li>
122
122
  <strong>Draft - I'll review.</strong> The agent's next reply is its
123
- draft of the plan. A banner offers <Code>SAVE &amp; ATTACH</Code> on that
124
- reply, so you can read it first and commit only if happy. The drafting
123
+ draft of the plan. A banner offers <Code>SAVE &amp; ATTACH</Code> and
124
+ <Code>REFINE</Code> on that reply, so you can read it first, ask for
125
+ changes and commit only if happy. The drafting
125
126
  turn has no project tools. Ordinary Claude CLI hooks are disabled,
126
127
  although administrator-managed hooks can still run.
127
128
  </li>
@@ -174,6 +175,55 @@ export const plans: Section[] = [
174
175
  </>
175
176
  ),
176
177
  },
178
+ {
179
+ id: 'public-project',
180
+ group: 'Plans & artifacts',
181
+ title: 'Working on a public project',
182
+ body: (
183
+ <>
184
+ <p>
185
+ A project that is public, or will be, needs rules about what never reaches the
186
+ repository. Arco helps in four places. Nothing changes until you click, and
187
+ every notice can be dismissed.
188
+ </p>
189
+ <Sub>The public-project box</Sub>
190
+ <p>
191
+ <Code>This project is public (or will be)</Code> sits beside the plan-draft
192
+ choices: in the cluster creator, next to DRAFT A PLAN, and in the PLAN
193
+ dialog. When it is ticked, the draft asks the agent for a "Privacy and public
194
+ safety" section of standing rules fitted to the project. Unticked, the
195
+ draft request is unchanged. The choice is remembered per project folder in
196
+ this browser.
197
+ </p>
198
+ <p>
199
+ Arco suggests the box from the folder's Git remote. If the remote is on
200
+ GitHub, GitLab, Bitbucket or Codeberg, a hint names the host. For GitHub
201
+ only, Arco asks once a day whether the repository is public. The request
202
+ is anonymous and carries only the owner and repository names. A confirmed public repository
203
+ pre-ticks the box and says why. Your own choice always wins.
204
+ </p>
205
+ <Sub>Add the rules to an existing plan</Sub>
206
+ <p>
207
+ <Code>INSERT GUARDRAILS</Code> in the plan view puts the same section before
208
+ the first phase as an unsaved edit. Read it, change it, then save. The
209
+ button is disabled with "Already in this plan" when the section exists.
210
+ It never saves by itself.
211
+ </p>
212
+ <Sub>Keeping Arco's own state out of Git</Sub>
213
+ <p>
214
+ Arco keeps its state for a project in a <Code>.arco</Code> folder that
215
+ it asks Git to ignore. When Git tracks files in it, or the ignore file is
216
+ missing or edited so the folder is no longer ignored, a quiet notice appears
217
+ once per project.
218
+ </p>
219
+ <ul>
220
+ <li><Code>RESTORE IGNORE FILE</Code> writes the default ignore file. An edited file is first kept as a backup beside it.</li>
221
+ <li><Code>STOP TRACKING</Code> removes the folder from Git's index and keeps the files on disk. A commit is still needed. Anything already pushed stays in the remote's history, so rotate any secret that was in it.</li>
222
+ <li><Code>DISMISS</Code> hides the notice for that project.</li>
223
+ </ul>
224
+ </>
225
+ ),
226
+ },
177
227
  {
178
228
  id: 'plan-checklists',
179
229
  group: 'Plans & artifacts',
@@ -275,6 +325,37 @@ export const plans: Section[] = [
275
325
  </>
276
326
  ),
277
327
  },
328
+ {
329
+ id: 'storage-view',
330
+ group: 'Plans & artifacts',
331
+ title: 'STORAGE - where disk space goes',
332
+ body: (
333
+ <>
334
+ <p>
335
+ The <strong>STORAGE</strong> lens in the ARTIFACTS window lists every project
336
+ Arco knows about and Arco's own folder, largest first. Each row shows its
337
+ headings, such as conversation logs, artifacts, worktrees and caches, and its
338
+ biggest item. Sizes are read-only; <strong>MEASURE AGAIN</strong> refreshes them.
339
+ </p>
340
+ <p>
341
+ Open a project to list its conversations and archives. Every action asks for
342
+ a confirmation first, and kept items always stay:
343
+ </p>
344
+ <ul>
345
+ <li><strong>KEEP</strong> protects the whole conversation from archive and deletion.</li>
346
+ <li><strong>ARCHIVE</strong> packs a closed conversation into one compressed file; <strong>RESTORE</strong> brings it back without overwriting anything.</li>
347
+ <li><strong>DELETE</strong> removes a closed conversation or an archive for good.</li>
348
+ <li><strong>EMPTY SCRATCH</strong> deletes the scratch folder where agents put large temporary files.</li>
349
+ <li><strong>COMPRESS OLD LOGS</strong> seals the logs of a project's closed conversations; nothing is deleted.</li>
350
+ </ul>
351
+ <p>
352
+ Worktrees, caches and Arco's own folder are shown for information only.
353
+ Plans are never touched. STORAGE SETTINGS holds the disk budget notice
354
+ (100 GiB by default) and auto-archive, which is off by default and never deletes.
355
+ </p>
356
+ </>
357
+ ),
358
+ },
278
359
  {
279
360
  id: 'plans-library',
280
361
  group: 'Plans & artifacts',
@@ -298,6 +379,19 @@ export const plans: Section[] = [
298
379
  <li><Code>✓</Code> completed</li>
299
380
  <li><Code>⧉N</Code> is the ref count</li>
300
381
  </ul>
382
+ <p>
383
+ Projects collapse to a single line, with the current project open. The
384
+ browser remembers each choice; search opens matching groups. Counts show
385
+ plans, those in use, and those probably finished for the current filter.
386
+ </p>
387
+ <p>
388
+ Probably finished holds unattached plans with every box checked or no
389
+ edits for 30 days. MARK DONE moves a plan to COMPLETED. Repeated titles
390
+ appear once; expand them to see each version and its date. In use names
391
+ the tabs or clusters using a plan. A group with an attached version stays in
392
+ the normal list; its unattached versions offer MARK DONE. Nothing is
393
+ marked done automatically.
394
+ </p>
301
395
  <p>
302
396
  Selecting a plan shows its body (checkboxes are clickable), reference docs
303
397
  and attachment history, with EDIT, DONE / REOPEN and delete. Edits behave
@@ -673,13 +673,13 @@ export const powerFeatures: Section[] = [
673
673
  <li><Code>cluster-nudge</Code>, <Code>backup</Code></li>
674
674
  </ul>
675
675
  <p>
676
- Each category has a <strong>mute toggle</strong>, saved on the server. Opening
676
+ Use <strong>SHOW IN BELL</strong> to choose categories; a checked box shows that category. The choices are saved on the server. Opening
677
677
  the center clears the unread badge, and CLEAR wipes the history.
678
678
  </p>
679
679
  <Sub>Desktop and phone alerts</Sub>
680
680
  <p>
681
681
  In Settings &gt; Notifications, tick when a turn finishes, fails or is waiting
682
- on you, separately for this computer and for your phone. Everything starts off.
682
+ on you, separately for this computer and for your phone. Desktop and phone alerts start off. Quiet BELL notices for other tabs start on and use the same SHOW IN BELL choices.
683
683
  </p>
684
684
  <ul>
685
685
  <li><strong>Desktop.</strong> Alerts appear only while Arco is not the focused window, one per event. The window title also shows a waiting count such as (2) ARCO.</li>
@@ -114,9 +114,15 @@ arco service install|uninstall|start|stop|restart|status|logs|refresh
114
114
  arco update # update the installed package
115
115
  arco voice setup # install local voice components
116
116
  arco doctor # check runtime, providers, port and service
117
+ arco storage unseal # plain logs again, before installing an older release
117
118
  arco version`}</Pre>
118
119
  <ul>
119
120
  <li>
121
+ <Code>arco storage unseal</Code> writes compressed conversation logs back to
122
+ plain files. Run it with Arco stopped before installing a release older than
123
+ 0.1.4; <Code>--project &lt;path&gt;</Code> limits it to one project.
124
+ </li>
125
+ <li>
120
126
  <Code>arco service logs</Code> prints recent logs. On Windows it also prints
121
127
  the raw output files.
122
128
  </li>
@@ -67,8 +67,8 @@ export const workspace: Section[] = [
67
67
  <li>
68
68
  <strong>KNOWLEDGE dropdown</strong> - RECALL (search past
69
69
  conversations), PLANS (every plan across projects) and ARTIFACTS
70
- (the standalone chromeless read-only file-explorer window: agent
71
- artifacts, recents, tree).
70
+ (the standalone chromeless file-explorer window: agent
71
+ artifacts, recents, plans, storage, tree).
72
72
  </li>
73
73
  <li>
74
74
  <strong>TOOLS dropdown</strong> - TERMINAL (a PTY in the active
@@ -199,10 +199,13 @@ export const workspace: Section[] = [
199
199
  </p>
200
200
  <h4 className="manual-sub">Continue and projects</h4>
201
201
  <p>
202
- Getting started tracks provider connection, a project folder and a first chat.
202
+ Getting started tracks provider connection, a project folder and a first conversation (any chat, session or cluster), and HIDE removes it for good.
203
203
  Continue lists open work with waiting questions first and current steps for
204
204
  running work. Resume returns to a tab; Show all expands the two-row list.
205
+ </p>
206
+ <p>
205
207
  The project grid puts pins first and orders the rest by recent activity.
208
+ It shows two rows; Show all opens the rest, and a search lists every match.
206
209
  </p>
207
210
  <p>
208
211
  Filter by location or search by name or path (press <Kbd>/</Kbd>).
@@ -248,7 +251,8 @@ export const workspace: Section[] = [
248
251
  After a file-changing turn, a changed-files line opens that turn's
249
252
  captured checkpoint diff. UNDO THIS TURN uses the existing restore
250
253
  confirmation and safety snapshot; restoring also reverts later work
251
- in that folder.
254
+ in that folder. After it runs the line reads Undone and
255
+ UNDO THIS TURN stays disabled.
252
256
  </p>
253
257
  <h4 className="manual-sub">Chat controls</h4>
254
258
  <p>
@@ -504,7 +508,7 @@ export const workspace: Section[] = [
504
508
  ],
505
509
  [
506
510
  <strong key="us">USAGE</strong>,
507
- <>Per-workflow token / cost accounting and the context (CTX) breakdown for this session.</>,
511
+ <>Token usage trends for the project. MEASURE STORAGE measures the project's saved state without changing it and lists every byte under one heading, such as conversation logs, artifacts or worktrees. MEASURE ARCO FOLDER does the same for Arco's own folder. MEASURE AGAIN refreshes the cached result; large files and read errors are marked.</>,
508
512
  ],
509
513
  [
510
514
  <strong key="pv">PREVIEW</strong>,
@@ -1,4 +1,5 @@
1
1
  import { create } from 'zustand';
2
+ import { forgetGitDialog } from '../utils/gitDialogMemory';
2
3
  import { allowanceBindingChanged, invalidateClaudeAllowanceRequests } from '../utils/claudeAllowance';
3
4
  import { useDraftStore, dropDraftForJob } from './draftStore';
4
5
  import { useComputerStore } from './computerStore';
@@ -11,7 +12,7 @@ import { applyPhosphorPreferences } from '../themes/phosphor/preferences';
11
12
  import { PROVIDER_AUTO_ID, resolveProviderTheme } from '../themes/providerThemes';
12
13
  import { writeCachedThemeId, writeCachedFontPackOverride, writeCachedFrostedOverride, writeCachedFrostedOpacity, writeCachedBgBrightness, writeCachedTextBrightness, writeCachedCrispText, applyUiScale, writeCachedUiScale } from '../themes/bootstrap';
13
14
  import {
14
- capMessages, capSessionChat, trimJobMemory, LOADED_HISTORY_PIN,
15
+ capMessages, capSessionChat, isStarvedChat, trimJobMemory, LOADED_HISTORY_PIN,
15
16
  capWorkerText, capToolInputText, capWorkers, capActivityEntry,
16
17
  MAX_WORKER_OUTPUT_BYTES_CLIENT, MAX_WORKER_THINKING_BYTES_CLIENT,
17
18
  MAX_WORKER_TOOL_CALLS, MAX_ACTIVITY_ENTRIES, MAX_TOOL_FILTERED_ENTRIES,
@@ -836,6 +837,7 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
836
837
  removeJob: (id) => {
837
838
  // Drafts live in draftStore (perf boundary — see stores/draftStore.ts).
838
839
  dropDraftForJob(id);
840
+ forgetGitDialog(id);
839
841
  set((s) => {
840
842
  const { [id]: _, ...rest } = s.jobs;
841
843
  const atts = s.attachments[id];
@@ -2000,6 +2002,13 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
2000
2002
  if (!Array.isArray(j.activity)) j.activity = [];
2001
2003
  if (!Array.isArray(j.historyEvents)) j.historyEvents = [];
2002
2004
  Object.assign(j, trimJobMemory(j as JobState));
2005
+ // A chat starved by the old system-row preference cannot recover from
2006
+ // replay (the browser already saw every seq). Empty it and reset
2007
+ // lastSeq so the server sends its tail, as for a never-seen browser.
2008
+ if (isStarvedChat(j.messages)) {
2009
+ j.messages = [];
2010
+ j.lastSeq = 0;
2011
+ }
2003
2012
  // Persisted `busy`/`turnStartedAt` would go stale across reloads —
2004
2013
  // the authoritative snapshot arrives within seconds of WS connect.
2005
2014
  j.busy = false;
@@ -501,6 +501,8 @@ export interface HistoryEventEntry {
501
501
  checkpointSeq?: number;
502
502
  checkpointRef?: string;
503
503
  reverted?: boolean;
504
+ // On a `reverted` row: the guard seq of the checkpoint that was restored.
505
+ revertedCheckpointSeq?: number;
504
506
  // docs/PERSISTENCE.md - `fork` rows are leaf_move (REWIND CONVERSATION)
505
507
  // markers. `branchSource` is the deterministic tag (v1 always 'revert');
506
508
  // `rewindTargetSeq` is the seq the head was moved to.
@@ -1,5 +1,5 @@
1
1
  import { create } from 'zustand';
2
- import type { ProviderName, ModelName, EffortLevel, MdTuneupTarget, MdTuneupCandidate } from '@arco/shared';
2
+ import type { ProviderName, ModelName, EffortLevel, MdTuneupTarget, MdTuneupCandidate, MdTuneupSkippedLink } from '@arco/shared';
3
3
 
4
4
  // Agent-instruction-file tune-up client store — see shared/src/protocol/mdTuneup.ts.
5
5
  // Kept OUT of appStore (mirrors docEditStore / recallStore): a tune-up is a
@@ -60,6 +60,7 @@ export function registerMdTuneupUndoSender(fn: UndoSender | null) { undoSender =
60
60
  export interface MdTuneupCandidates {
61
61
  candidates: MdTuneupCandidate[];
62
62
  defaultPath?: string;
63
+ skippedLinks?: MdTuneupSkippedLink[];
63
64
  // false until the server's md_tuneup_candidates lands (so the dialog shows a
64
65
  // "scanning…" state rather than a premature "no files found").
65
66
  loaded: boolean;
@@ -69,7 +70,7 @@ interface MdTuneupState {
69
70
  byWorkflow: Record<string, MdTuneupEntry>;
70
71
  candidatesByWorkflow: Record<string, MdTuneupCandidates>;
71
72
  requestCandidates: (workflowId: string) => void;
72
- onCandidates: (workflowId: string, candidates: MdTuneupCandidate[], defaultPath?: string) => void;
73
+ onCandidates: (workflowId: string, candidates: MdTuneupCandidate[], defaultPath?: string, skippedLinks?: MdTuneupSkippedLink[]) => void;
73
74
  dispatch: (workflowId: string, editor: MdTuneupEditor, target: MdTuneupTarget) => void;
74
75
  onStarted: (workflowId: string, patch: { tuneupId: string; filePath: string; baseName: string; originalBytes: number }) => void;
75
76
  onProposed: (workflowId: string, patch: {
@@ -93,8 +94,8 @@ export const useMdTuneupStore = create<MdTuneupState>((set, get) => ({
93
94
  set((s) => ({ candidatesByWorkflow: { ...s.candidatesByWorkflow, [workflowId]: { candidates: [], loaded: false } } }));
94
95
  if (candidatesSender) candidatesSender(workflowId);
95
96
  },
96
- onCandidates: (workflowId, candidates, defaultPath) => set((s) => ({
97
- candidatesByWorkflow: { ...s.candidatesByWorkflow, [workflowId]: { candidates, defaultPath, loaded: true } },
97
+ onCandidates: (workflowId, candidates, defaultPath, skippedLinks) => set((s) => ({
98
+ candidatesByWorkflow: { ...s.candidatesByWorkflow, [workflowId]: { candidates, defaultPath, skippedLinks, loaded: true } },
98
99
  })),
99
100
  dispatch: (workflowId, editor, target) => {
100
101
  set((s) => ({ byWorkflow: { ...s.byWorkflow, [workflowId]: { workflowId, status: 'pending' } } }));
@@ -22,6 +22,7 @@ const MAX_TOOL_INPUT_STRING_BYTES_CLIENT = 16 * 1024; // per string field in too
22
22
  export const MAX_WORKER_TOOL_CALLS = 200; // last N tool calls
23
23
  const MAX_RETAINED_WORKERS = 80; // all live workers + newest settled workers
24
24
  const MAX_CHAT_MESSAGES = 500; // newest 500 messages
25
+ const MAX_PREFERRED_SHARE = 0.5; // system/tool rows may take at most this share of the window
25
26
  const SESSION_CHAT_WINDOW = 500; // newest Claude JSONL-derived rows kept hot
26
27
  export const LOADED_HISTORY_PIN = 200; // explicit load-earlier page kept visible after prepend
27
28
  export const MAX_ACTIVITY_ENTRIES = 500; // right-pane live feed cap; sized so tool-heavy turns survive without unbounded growth
@@ -76,9 +77,18 @@ export function capMessages(messages: ChatMessage[], options: MessageWindowOptio
76
77
  const hot = newestFirst.filter(({ i }) => keep.has(i)).slice(0, limit);
77
78
  return cappedMessages.filter((_, i) => hot.some((h) => h.i === i));
78
79
  }
80
+ // Preferred rows are capped at half the window: every turn emits system
81
+ // rows, so an uncapped preference starves user and assistant messages on
82
+ // long-running tabs.
83
+ const preferBudget = Math.floor(limit * MAX_PREFERRED_SHARE);
84
+ let preferred = 0;
79
85
  for (const { i } of newestFirst) {
80
- if (keep.size >= limit) break;
81
- if (shouldPreferKeeping(cappedMessages[i]!)) keep.add(i);
86
+ if (keep.size >= limit || preferred >= preferBudget) break;
87
+ if (keep.has(i)) continue;
88
+ if (shouldPreferKeeping(cappedMessages[i]!)) {
89
+ keep.add(i);
90
+ preferred++;
91
+ }
82
92
  }
83
93
  const remaining = Math.max(0, limit - keep.size);
84
94
  if (remaining > 0) {
@@ -90,6 +100,12 @@ export function capMessages(messages: ChatMessage[], options: MessageWindowOptio
90
100
  return cappedMessages.filter((_, i) => keep.has(i));
91
101
  }
92
102
 
103
+ // A persisted chat that holds only system rows and tool cards was starved by
104
+ // the old preference rule; it is reloaded from the server tail on rehydrate.
105
+ export function isStarvedChat(messages: ChatMessage[]): boolean {
106
+ return messages.length >= 100 && messages.every((m) => m.role === 'system' || !!m.toolUse);
107
+ }
108
+
93
109
  export function capWorkerText(text: string, cap: number, label: string): string {
94
110
  if (text.length <= cap) return text;
95
111
  const notice = `\n[client-side ${label} truncated; full stream remains in provider logs/events if available]`;
@@ -0,0 +1,18 @@
1
+ import { create } from 'zustand';
2
+ import type { StorageWarningMessage } from '@arco/shared';
3
+
4
+ interface WarningState {
5
+ warnings: StorageWarningMessage[];
6
+ add: (warning: StorageWarningMessage) => void;
7
+ removeItem: (workflowId: string, path: string) => void;
8
+ }
9
+ export const useStorageWarningStore = create<WarningState>((set) => ({
10
+ warnings: [],
11
+ add: (warning) => set((s) => {
12
+ const previous = s.warnings.find((w) => w.workflowId === warning.workflowId);
13
+ const items = new Map((previous?.items ?? []).map((i) => [i.path, i]));
14
+ for (const item of warning.items) items.set(item.path, item);
15
+ return { warnings: [...s.warnings.filter((w) => w.workflowId !== warning.workflowId), { ...warning, items: [...items.values()] }].slice(-20) };
16
+ }),
17
+ removeItem: (workflowId, path) => set((s) => ({ warnings: s.warnings.map((w) => w.workflowId === workflowId ? { ...w, items: w.items.filter((i) => i.path !== path) } : w).filter((w) => w.items.length > 0) })),
18
+ }));
@@ -0,0 +1,26 @@
1
+ // Remembers an unsent GIT dialog per tab so closing it (for example through
2
+ // VIEW CHANGES in SHOW OTHER WORK) and reopening it finds the same choices.
3
+ // Held in memory only. Cleared when a commit request is sent or the tab closes.
4
+ export interface GitDialogMemory {
5
+ action?: string;
6
+ runAs?: unknown;
7
+ saveAsDefault: boolean;
8
+ commitSubject: string;
9
+ scopeNotes: string;
10
+ pickedBranch: string;
11
+ creatingNew: boolean;
12
+ newBranchName: string;
13
+ newBranchBase: string;
14
+ showDiff: boolean;
15
+ otherOpen: boolean;
16
+ scrollTop: number;
17
+ }
18
+
19
+ const memory = new Map<string, GitDialogMemory>();
20
+
21
+ export const recallGitDialog = (workflowId: string): GitDialogMemory | undefined => memory.get(workflowId);
22
+ export const rememberGitDialog = (workflowId: string, state: Partial<GitDialogMemory>): void => {
23
+ const base: GitDialogMemory = memory.get(workflowId) ?? { saveAsDefault: false, commitSubject: '', scopeNotes: '', pickedBranch: '', creatingNew: false, newBranchName: '', newBranchBase: '', showDiff: false, otherOpen: false, scrollTop: 0 };
24
+ memory.set(workflowId, { ...base, ...state });
25
+ };
26
+ export const forgetGitDialog = (workflowId: string): void => { memory.delete(workflowId); };
@@ -203,6 +203,7 @@ export function narrativeEventFromMessage(msg: ServerMessage): HistoryEventEntry
203
203
  + (msg.limitation ? ` · ${trim80(msg.limitation)}` : ''),
204
204
  at: msg.ts ?? fallbackAt,
205
205
  reverted: true,
206
+ ...(typeof msg.restoredSeq === 'number' ? { revertedCheckpointSeq: msg.restoredSeq } : {}),
206
207
  };
207
208
  default:
208
209
  return null;
@@ -243,3 +243,22 @@ export function savedSessionRows(sessions: SessionInfo[], jobs: Record<string, J
243
243
  })
244
244
  .sort((a, b) => b.startedAt - a.startedAt);
245
245
  }
246
+
247
+ // Project cards stop at this many rows until Show all, like open work.
248
+ export const PROJECT_ROWS = 2;
249
+
250
+ // What the project grid renders: everything while searching (the grid scrolls
251
+ // inside its bound), otherwise the first `columns * PROJECT_ROWS` cards until
252
+ // the operator expands it. `toggle` is whether a Show all control is needed.
253
+ export function boundProjects<T>(list: T[], columns: number, expanded: boolean, searching: boolean): { shown: T[]; limit: number; toggle: boolean; scrolls: boolean } {
254
+ const limit = Math.max(1, Math.floor(columns)) * PROJECT_ROWS;
255
+ const over = list.length > limit;
256
+ if (searching) return { shown: list, limit, toggle: false, scrolls: over };
257
+ return { shown: expanded || !over ? list : list.slice(0, limit), limit, toggle: over, scrolls: over && expanded };
258
+ }
259
+
260
+ // Step 3 of Getting started: any conversation that was ever started counts,
261
+ // whether it is open now, saved as a chat or session, or a saved cluster.
262
+ export function conversationStarted(input: { openWork: number; savedChats: number; savedClusters: number; savedSessions: number; remembered: boolean }): boolean {
263
+ return input.remembered || input.openWork > 0 || input.savedChats > 0 || input.savedClusters > 0 || input.savedSessions > 0;
264
+ }
@@ -0,0 +1,56 @@
1
+ // Public-project choice per project folder (this browser) and the remote
2
+ // suggestion from the server. An explicit choice always wins over a suggestion.
3
+ import { useCallback, useEffect, useState } from 'react';
4
+
5
+ export type RemoteSuggestion = { state: 'none' } | { state: 'hosted'; host: string } | { state: 'public'; host: string };
6
+
7
+ const KEY = 'arco.publicProject.';
8
+ const suggestions = new Map<string, RemoteSuggestion>();
9
+
10
+ export function getPublicChoice(cwd: string): boolean | null {
11
+ if (!cwd) return null;
12
+ try {
13
+ const v = localStorage.getItem(KEY + cwd);
14
+ return v === '1' ? true : v === '0' ? false : null;
15
+ } catch { return null; }
16
+ }
17
+
18
+ export function setPublicChoice(cwd: string, value: boolean): void {
19
+ if (!cwd) return;
20
+ try { localStorage.setItem(KEY + cwd, value ? '1' : '0'); } catch { /* no-op */ }
21
+ }
22
+
23
+ /** The value a plan draft uses: the explicit choice, else a confirmed-public suggestion already shown. */
24
+ export function effectivePublic(cwd: string): boolean {
25
+ const chosen = getPublicChoice(cwd);
26
+ if (chosen !== null) return chosen;
27
+ return suggestions.get(cwd)?.state === 'public';
28
+ }
29
+
30
+ export function suggestionNote(s: RemoteSuggestion | null): { reason?: string; hint?: string } {
31
+ if (!s) return {};
32
+ if (s.state === 'public') return { reason: s.host === 'github.com' ? 'This repository is public on GitHub.' : `This repository is public on ${s.host}.` };
33
+ if (s.state === 'hosted') return { hint: `This project has a remote on ${s.host}.` };
34
+ return {};
35
+ }
36
+
37
+ export function usePublicProject(cwd: string) {
38
+ const [chosen, setChosen] = useState<boolean | null>(() => getPublicChoice(cwd));
39
+ const [suggestion, setSuggestion] = useState<RemoteSuggestion | null>(() => suggestions.get(cwd) ?? null);
40
+ useEffect(() => {
41
+ setChosen(getPublicChoice(cwd));
42
+ if (!cwd) { setSuggestion(null); return; }
43
+ const known = suggestions.get(cwd);
44
+ if (known) { setSuggestion(known); return; }
45
+ let live = true;
46
+ void fetch(`/api/public-project/remote?path=${encodeURIComponent(cwd)}`)
47
+ .then((r) => (r.ok ? r.json() as Promise<RemoteSuggestion> : null))
48
+ .then((s) => { if (s && live) { suggestions.set(cwd, s); setSuggestion(s); } })
49
+ .catch(() => { /* no suggestion */ });
50
+ return () => { live = false; };
51
+ }, [cwd]);
52
+ const checked = chosen ?? suggestion?.state === 'public';
53
+ const set = useCallback((value: boolean) => { setPublicChoice(cwd, value); setChosen(value); }, [cwd]);
54
+ const note = chosen === null ? suggestionNote(suggestion) : {};
55
+ return { checked, set, reason: note.reason, hint: note.hint };
56
+ }
@@ -1,5 +1,6 @@
1
1
  import { PRIMARY_PROVIDERS, isClusterDirector } from '@arco/shared';
2
2
  import { beginPlanReview } from '../components/terminalInput/planDraft';
3
+ import { effectivePublic } from '../utils/publicProject';
3
4
  import { useAppUpdateStore } from '../stores/appUpdateStore';
4
5
  import { receiveComputerActivityChanged } from '../voice/activity';
5
6
  import { useComputerStore } from '../stores/computerStore';
@@ -18,6 +19,7 @@ import { useMdTuneupStore } from '../stores/mdTuneupStore';
18
19
  import { useKnowledgeDistillStore } from '../stores/knowledgeDistillStore';
19
20
  import { useCompareStore } from '../stores/compareStore';
20
21
  import { useNotificationStore } from '../stores/notificationStore';
22
+ import { useStorageWarningStore } from '../stores/storageWarningStore';
21
23
  import { useHubLinkStore } from '../stores/hubLinkStore';
22
24
  import { useOrchestrationAssistStore } from '../stores/orchestrationAssistStore';
23
25
  import { useLiveChangesStore } from '../stores/liveChangesStore';
@@ -183,6 +185,9 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
183
185
  }
184
186
 
185
187
  switch (msg.type) {
188
+ case 'storage_warning':
189
+ useStorageWarningStore.getState().add(msg);
190
+ break;
186
191
  case 'hub_link_status': {
187
192
  useHubLinkStore.getState().setStatus({ connected: msg.connected, hubUrl: msg.hubUrl, monitoredCount: msg.monitoredCount, connectedSince: msg.connectedSince });
188
193
  break;
@@ -1578,7 +1583,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
1578
1583
  useMdTuneupStore.getState().onUndone(msg.workflowId, { undoId: msg.undoId, ok: msg.ok, conflictHash: msg.conflictHash, safetyBackupPath: msg.safetyBackupPath, error: msg.error });
1579
1584
  break;
1580
1585
  case 'md_tuneup_candidates':
1581
- useMdTuneupStore.getState().onCandidates(msg.workflowId, msg.candidates, msg.defaultPath);
1586
+ useMdTuneupStore.getState().onCandidates(msg.workflowId, msg.candidates, msg.defaultPath, msg.skippedLinks);
1582
1587
  break;
1583
1588
 
1584
1589
  // Director/workers Stage K — operator-armed orchestration assist
@@ -2119,7 +2124,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
2119
2124
  if (!ws || ws.readyState !== WebSocket.OPEN) return false;
2120
2125
  ws.send(JSON.stringify({ type: 'user_message', workflowId: draft.workflowId, content, primitive: 'plan-review' }));
2121
2126
  return true;
2122
- }, draft.goal, true);
2127
+ }, draft.goal, true, effectivePublic(store.jobs[draft.workflowId]?.config.workingDirectory ?? ''));
2123
2128
  if (!started) store.pushNotification('error', 'The cluster was created, but the plan draft did not start. Use DRAFT A PLAN when the director is ready.');
2124
2129
  }
2125
2130
  // A snapshot restore completes as a cluster_created with a brand-new
@@ -730,7 +730,7 @@ Clicking REWIND CONVERSATION on a HISTORY-tab event sends `revert_to_point_reque
730
730
 
731
731
  ### ARTIFACTS explorer (standalone artifact window)
732
732
 
733
- A chromeless browser window (`?app=explorer`, launched from the ⌸ ARTIFACTS header button) that surfaces project artifacts read-only, zero model authority. Three lenses: ARTIFACTS (per-project cards + recent-across-all-projects strip via `explorerArtifacts.ts`), RECENTS (the agent-writes ledger `recentFilesLedger.ts` at `~/.arco/recent-files.jsonl` + an exhaustive changed-within scan `explorerChanged.ts`), and TREE. Backed by `/api/explorer/*` in `server/src/http/explorerRoutes.ts` - every listing endpoint is $HOME-jailed and fail-soft (always 200, degrading to an empty collection on error). Client in `client/src/explorer/`. The agent-writes ledger is fed fire-and-forget from the persisting broadcast chokepoints (`Write` / `Edit` / `NotebookEdit` completions, Review artifacts) and by manual `POST /api/files/write`.
733
+ A chromeless browser window (`?app=explorer`, launched from the ⌸ ARTIFACTS header button) that surfaces project artifacts, plans and disk use, zero model authority. Five lenses: ARTIFACTS (per-project cards + recent-across-all-projects strip via `explorerArtifacts.ts`), RECENTS (the agent-writes ledger `recentFilesLedger.ts` at `~/.arco/recent-files.jsonl` + an exhaustive changed-within scan `explorerChanged.ts`), PLANS (the plans library), STORAGE (the storage overview and its confirmed actions over `/api/storage-report` and `/api/storage/*`, see [Storage plan](STORAGE_PLAN.md)) and TREE. Every lens is read-only except PLANS (plan edits and MARK DONE) and STORAGE. Backed by `/api/explorer/*` in `server/src/http/explorerRoutes.ts` - every listing endpoint is $HOME-jailed and fail-soft (always 200, degrading to an empty collection on error). Client in `client/src/explorer/`. The agent-writes ledger is fed fire-and-forget from the persisting broadcast chokepoints (`Write` / `Edit` / `NotebookEdit` completions, Review artifacts) and by manual `POST /api/files/write`.
734
734
 
735
735
  ---
736
736
 
@@ -154,6 +154,8 @@ safety-snapshot note before sending. execFile argv only; wfid/seq validated like
154
154
 
155
155
  ## Turn changes in chat
156
156
 
157
+ After a restore, `checkpoint_reverted` carries `restoredSeq` (the restored checkpoint's seq, which the event envelope would otherwise replace); the turn line shows `Undone`, `UNDO THIS TURN` is disabled and the diff title reads `DIFF: UNDONE TURN CHANGES`.
158
+
157
159
  After a settled turn, an end checkpoint is compared with its pre-turn checkpoint using bounded `git diff --numstat`. A non-empty result is persisted in the workflow event log and appears under the reply as `Changed N files`; the line opens the captured ref-to-ref diff. `UNDO THIS TURN` uses the existing checkpoint revert and confirmation, including its safety snapshot. The confirmation makes clear that restoring a checkpoint also reverts later changes in that working tree.
158
160
 
159
161
  If another managed writer overlapped the same folder at any point, the line says other agents were working there and offers VIEW DIFF only, not undo. Capture is skipped when the pre-turn snapshot cannot finish in two seconds. Isolated cluster members use a separate scratch directory and do not produce this project-checkpoint line. The end capture must settle before the next queued turn starts. A missing or failed capture or oversized diff produces no summary, rather than a misleading partial one. Large files excluded from shadow checkpoints are noted. Git checkpoints follow Git ignore rules, so ignored files are outside the captured diff. Git and non-git folders use their respective checkpoint stores; both use immutable refs for the viewer.