arco-workbench 0.2.4 → 0.2.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 (253) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/THIRD_PARTY_NOTICES +2 -2
  3. package/client/dist/assets/{PhosphorBackdrop-CHXVFLGT.js → PhosphorBackdrop-CLILIwOQ.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-Bhs4I9jA.js → ThemedBackgroundShaderImpl-B87chcb5.js} +1 -1
  5. package/client/dist/assets/{XtermView-CdfurwFx.js → XtermView-BP_j7WSN.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-DYjZZ4cf.js → galleryEditor-B90phoBI.js} +1 -1
  7. package/client/dist/assets/{index-BjDmFvqG.js → index-BfPp1Oup.js} +269 -269
  8. package/client/dist/index.html +1 -1
  9. package/client/src/App.tsx +2 -2
  10. package/client/src/components/AuthReloginNotice.tsx +7 -6
  11. package/client/src/components/ChatMessage.tsx +41 -29
  12. package/client/src/components/ChatPanel.tsx +17 -4
  13. package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
  14. package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
  15. package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
  16. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
  17. package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
  18. package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
  19. package/client/src/components/ClusterRightPanel/index.tsx +1 -1
  20. package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
  21. package/client/src/components/ClusterTab.tsx +2 -2
  22. package/client/src/components/Connections/Connections.tsx +5 -9
  23. package/client/src/components/Connections/model.ts +3 -1
  24. package/client/src/components/FileViewerModal.tsx +54 -17
  25. package/client/src/components/GitHubPanel/index.tsx +9 -5
  26. package/client/src/components/HandoffDialog.tsx +5 -3
  27. package/client/src/components/MobileShell.tsx +1 -33
  28. package/client/src/components/OperatorQuestionNotice.tsx +5 -4
  29. package/client/src/components/ProvidersPopover.tsx +6 -2
  30. package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
  31. package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
  32. package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
  33. package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
  34. package/client/src/components/SettingsPanel.tsx +7 -10
  35. package/client/src/components/SpawnDialog.tsx +14 -3
  36. package/client/src/components/TabBar.tsx +2 -2
  37. package/client/src/components/TabContextMenu.tsx +73 -133
  38. package/client/src/components/TerminalInput.tsx +4 -3
  39. package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
  40. package/client/src/components/UsageBar.tsx +37 -18
  41. package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +29 -3
  42. package/client/src/components/WorkflowCreator/index.tsx +29 -15
  43. package/client/src/components/WorkflowView.tsx +1 -1
  44. package/client/src/components/providerIndicator.ts +7 -3
  45. package/client/src/components/settings/GitHubAuthRow.tsx +34 -0
  46. package/client/src/explorer/ArtifactsLens.tsx +17 -8
  47. package/client/src/explorer/ExplorerApp.tsx +3 -3
  48. package/client/src/explorer/types.ts +3 -1
  49. package/client/src/help/content/cluster.tsx +10 -4
  50. package/client/src/help/content/composer.tsx +3 -2
  51. package/client/src/help/content/header.tsx +6 -3
  52. package/client/src/help/content/misc.tsx +7 -5
  53. package/client/src/help/content/rightPanel.tsx +8 -4
  54. package/client/src/help/content/settings.tsx +14 -3
  55. package/client/src/help/content/tabbar.tsx +1 -1
  56. package/client/src/help/manualSections/actions.tsx +5 -1
  57. package/client/src/help/manualSections/clusters.tsx +20 -14
  58. package/client/src/help/manualSections/configuration.tsx +6 -4
  59. package/client/src/help/manualSections/gettingStarted.tsx +4 -2
  60. package/client/src/help/manualSections/maintenance.tsx +24 -0
  61. package/client/src/help/manualSections/powerFeatures.tsx +1 -0
  62. package/client/src/help/manualSections/providers.tsx +11 -4
  63. package/client/src/help/manualSections/workspace.tsx +3 -3
  64. package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
  65. package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
  66. package/client/src/hooks/useWebSocket.ts +4 -2
  67. package/client/src/layout/layoutRange.ts +4 -5
  68. package/client/src/questions/waitingQuestion.ts +2 -0
  69. package/client/src/stores/appStore.ts +5 -1
  70. package/client/src/stores/appStore.types.ts +2 -0
  71. package/client/src/stores/replayContext.ts +20 -0
  72. package/client/src/utils/chatFileLinks.ts +34 -3
  73. package/client/src/utils/claudeAuth.ts +9 -1
  74. package/client/src/ws/handleServerMessage.ts +11 -3
  75. package/docs/ARCHITECTURE.md +3 -3
  76. package/docs/BACKUP.md +1 -1
  77. package/docs/CLIENT.md +10 -5
  78. package/docs/EXTENDING.md +1 -1
  79. package/docs/FEATURES.md +3 -3
  80. package/docs/GETTING_STARTED.md +5 -4
  81. package/docs/GIT_WORKBENCH.md +8 -0
  82. package/docs/GLOSSARY.md +2 -2
  83. package/docs/GOTCHAS.md +4 -4
  84. package/docs/HTTP_API.md +54 -23
  85. package/docs/OPERATIONS.md +11 -0
  86. package/docs/OPERATOR_ACTIONS.md +2 -2
  87. package/docs/OUTPUTS.md +48 -6
  88. package/docs/PERSISTENCE.md +1 -1
  89. package/docs/PRIMITIVES.md +4 -2
  90. package/docs/PROTOCOL_CLUSTER.md +12 -6
  91. package/docs/PROTOCOL_PRIMITIVES.md +1 -1
  92. package/docs/PROVIDERS.md +46 -9
  93. package/docs/RESEARCH.md +1 -1
  94. package/docs/SETTINGS.md +9 -4
  95. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
  96. package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
  97. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
  98. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  99. package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
  100. package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
  101. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  102. package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
  103. package/node_modules/@arco/shared/package.json +1 -1
  104. package/package.json +2 -2
  105. package/scripts/packaging/services.mjs +20 -1
  106. package/scripts/packaging/update.mjs +37 -2
  107. package/server/dist/attention.d.ts +6 -0
  108. package/server/dist/attention.js +6 -0
  109. package/server/dist/auth.d.ts +5 -0
  110. package/server/dist/auth.js +31 -20
  111. package/server/dist/clusterAutoTurn.d.ts +5 -1
  112. package/server/dist/clusterAutoTurn.js +31 -9
  113. package/server/dist/clusterPresets.js +3 -3
  114. package/server/dist/effortValidation.d.ts +2 -2
  115. package/server/dist/effortValidation.js +4 -4
  116. package/server/dist/explorerArtifacts.d.ts +1 -0
  117. package/server/dist/explorerArtifacts.js +12 -1
  118. package/server/dist/geminiMembers.d.ts +7 -1
  119. package/server/dist/geminiMembers.js +28 -14
  120. package/server/dist/http/conversationFiles.d.ts +36 -0
  121. package/server/dist/http/conversationFiles.js +222 -0
  122. package/server/dist/http/fileBytes.d.ts +3 -0
  123. package/server/dist/http/fileBytes.js +33 -0
  124. package/server/dist/http/fileContentRoute.d.ts +2 -0
  125. package/server/dist/http/fileContentRoute.js +139 -0
  126. package/server/dist/http/fileRead.d.ts +54 -2
  127. package/server/dist/http/fileRead.js +31 -24
  128. package/server/dist/http/outputRoutes.js +14 -21
  129. package/server/dist/http/readConfinement.d.ts +0 -11
  130. package/server/dist/http/readConfinement.js +4 -30
  131. package/server/dist/http/router.js +40 -66
  132. package/server/dist/index.js +26 -12
  133. package/server/dist/management/initHubLink.js +1 -1
  134. package/server/dist/outputs.js +8 -0
  135. package/server/dist/primitives/exportContext.d.ts +2 -0
  136. package/server/dist/primitives/exportContext.js +13 -2
  137. package/server/dist/primitives/runCompare.d.ts +7 -1
  138. package/server/dist/primitives/runCompare.js +44 -20
  139. package/server/dist/project/taskLedger.js +46 -34
  140. package/server/dist/providerAccounts.d.ts +4 -0
  141. package/server/dist/providerAccounts.js +20 -1
  142. package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
  143. package/server/dist/providers/antigravity/artifacts.js +140 -0
  144. package/server/dist/providers/antigravity/index.js +85 -7
  145. package/server/dist/providers/antigravity/questions.d.ts +2 -0
  146. package/server/dist/providers/antigravity/questions.js +58 -0
  147. package/server/dist/providers/claude-native/auth.d.ts +9 -8
  148. package/server/dist/providers/claude-native/auth.js +50 -58
  149. package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
  150. package/server/dist/providers/claude-native/authStatus.js +9 -7
  151. package/server/dist/providers/claude-native/catalog.d.ts +6 -5
  152. package/server/dist/providers/claude-native/catalog.js +50 -39
  153. package/server/dist/providers/claude-native/oauth.d.ts +10 -9
  154. package/server/dist/providers/claude-native/oauth.js +120 -96
  155. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  156. package/server/dist/providers/claude-native/worker.js +38 -23
  157. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
  158. package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
  159. package/server/dist/server/broadcast.js +6 -0
  160. package/server/dist/settings.d.ts +1 -0
  161. package/server/dist/settings.js +39 -7
  162. package/server/dist/skills.js +1 -1
  163. package/server/dist/smartPickupAdapters.d.ts +1 -0
  164. package/server/dist/smartPickupAdapters.js +2 -2
  165. package/server/dist/smartPickupObserver.js +8 -5
  166. package/server/dist/thirdPartySkills.js +11 -5
  167. package/server/dist/usage.d.ts +1 -1
  168. package/server/dist/usage.js +39 -27
  169. package/server/dist/workers/WorkerManager.d.ts +1 -0
  170. package/server/dist/workers/WorkerManager.js +1 -0
  171. package/server/dist/workers/processKill.js +37 -24
  172. package/server/dist/workflowMeta.js +2 -2
  173. package/server/dist/ws/clusterHandlers.d.ts +2 -2
  174. package/server/dist/ws/clusterHandlers.js +127 -113
  175. package/server/dist/ws/clusterMembers.d.ts +1 -1
  176. package/server/dist/ws/clusterMembers.js +34 -4
  177. package/server/dist/ws/compactHandlers.js +30 -14
  178. package/server/dist/ws/compareHandlers.js +53 -21
  179. package/server/dist/ws/gateHandlers.js +2 -0
  180. package/server/dist/ws/genesisHandlers.js +5 -3
  181. package/server/dist/ws/handoffHandlers.d.ts +1 -1
  182. package/server/dist/ws/handoffHandlers.js +115 -39
  183. package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
  184. package/server/dist/ws/turnEngine.js +33 -18
  185. package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
  186. package/server/dist/ws/updatePrimaryConfig.js +236 -133
  187. package/server/dist/ws/workflowHandlers.js +21 -4
  188. package/server/package.json +1 -1
  189. package/server/src/attention.ts +7 -0
  190. package/server/src/auth.ts +33 -20
  191. package/server/src/clusterAutoTurn.ts +31 -11
  192. package/server/src/clusterPresets.ts +2 -2
  193. package/server/src/effortValidation.ts +4 -4
  194. package/server/src/explorerArtifacts.ts +12 -1
  195. package/server/src/geminiMembers.ts +26 -15
  196. package/server/src/http/conversationFiles.ts +231 -0
  197. package/server/src/http/fileBytes.ts +34 -0
  198. package/server/src/http/fileContentRoute.ts +123 -0
  199. package/server/src/http/fileRead.ts +30 -25
  200. package/server/src/http/outputRoutes.ts +13 -13
  201. package/server/src/http/readConfinement.ts +3 -30
  202. package/server/src/http/router.ts +38 -62
  203. package/server/src/index.ts +27 -18
  204. package/server/src/management/initHubLink.ts +1 -1
  205. package/server/src/outputs.ts +8 -0
  206. package/server/src/primitives/exportContext.ts +14 -2
  207. package/server/src/primitives/runCompare.ts +73 -46
  208. package/server/src/project/taskLedger.ts +47 -30
  209. package/server/src/providerAccounts.ts +20 -1
  210. package/server/src/providers/antigravity/artifacts.ts +121 -0
  211. package/server/src/providers/antigravity/index.ts +64 -6
  212. package/server/src/providers/antigravity/questions.ts +52 -0
  213. package/server/src/providers/claude-native/auth.ts +45 -60
  214. package/server/src/providers/claude-native/authStatus.ts +9 -8
  215. package/server/src/providers/claude-native/catalog.ts +52 -35
  216. package/server/src/providers/claude-native/oauth.ts +101 -77
  217. package/server/src/providers/claude-native/worker.ts +38 -22
  218. package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
  219. package/server/src/server/broadcast.ts +4 -0
  220. package/server/src/settings.ts +36 -8
  221. package/server/src/skills.ts +1 -1
  222. package/server/src/smartPickupAdapters.ts +3 -2
  223. package/server/src/smartPickupObserver.ts +8 -5
  224. package/server/src/thirdPartySkills.ts +11 -5
  225. package/server/src/usage.ts +30 -22
  226. package/server/src/workers/WorkerManager.ts +2 -0
  227. package/server/src/workers/processKill.ts +37 -23
  228. package/server/src/workflowMeta.ts +2 -2
  229. package/server/src/ws/clusterHandlers.ts +107 -104
  230. package/server/src/ws/clusterMembers.ts +25 -6
  231. package/server/src/ws/compactHandlers.ts +29 -15
  232. package/server/src/ws/compareHandlers.ts +59 -25
  233. package/server/src/ws/gateHandlers.ts +2 -0
  234. package/server/src/ws/genesisHandlers.ts +5 -4
  235. package/server/src/ws/handoffHandlers.ts +105 -37
  236. package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
  237. package/server/src/ws/turnEngine.ts +32 -17
  238. package/server/src/ws/updatePrimaryConfig.ts +230 -132
  239. package/server/src/ws/workflowHandlers.ts +20 -4
  240. package/shared/dist/protocol/clusters.d.ts +15 -3
  241. package/shared/dist/protocol/clusters.js +1 -1
  242. package/shared/dist/protocol/models.d.ts +6 -1
  243. package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
  244. package/shared/dist/protocol/settings.d.ts +3 -0
  245. package/shared/dist/protocol/settings.js +5 -0
  246. package/shared/dist/protocol/workflows.d.ts +1 -0
  247. package/shared/dist/protocol/workflows.js +0 -2
  248. package/shared/src/protocol/clusters.ts +23 -5
  249. package/shared/src/protocol/compare.ts +2 -2
  250. package/shared/src/protocol/models.ts +8 -4
  251. package/shared/src/protocol/operatorQuestions.ts +2 -1
  252. package/shared/src/protocol/settings.ts +8 -1
  253. package/shared/src/protocol/workflows.ts +1 -1
package/docs/HTTP_API.md CHANGED
@@ -158,27 +158,51 @@ A write failure answers `500 { error: 'Upload failed' }`. The route itself is no
158
158
 
159
159
  The client may follow up with an `upload_complete` WS message; the server echoes `file_uploaded` back to **that socket only** (not a workflow broadcast - uploads are unscoped).
160
160
 
161
- ### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&artifactOwner=<wfid>]`
162
-
163
- JSON-wrapped file read for `FileViewerModal` (uploaded attachments, files clicked from a `ToolCallPill`, chat `[artifact:...]` popups). The body is discriminated by `type` (`readFileForExplorer` in `server/src/http/fileRead.ts`):
161
+ ### `GET /api/file-content?path=<path>[&cwd=<cwd>][&workflowId=<wfid>][&sourceWorkflowId=<wfid>]`
162
+
163
+ Returns a file preview for conversation links, attachments and the file viewer.
164
+ `workflowId` identifies the viewing workflow. Its server-side working directory
165
+ takes precedence over `cwd`. When supplied, `sourceWorkflowId` must identify the
166
+ viewer or a current member of the viewer's cluster. Relative targets start in
167
+ that member's project or worktree. Registered Gemini session files still use
168
+ the producing workflow's output manifest.
169
+
170
+ An absolute target uses its exact path, including an authorized tracked output
171
+ that was moved. Explicit project-relative paths beginning with `./` stay
172
+ project-relative. For other relative paths, an unresolved path can match the
173
+ same relative path under member artifact folders. Bare filenames can also
174
+ match nested files. The search starts with the sender's project and artifacts
175
+ when the sender is given, and searches current cluster artifacts if necessary.
176
+ Without a sender, it checks the viewing project and current member artifacts.
177
+ Recursive searches skip hidden and dependency folders and directory symlinks.
178
+ They inspect at most 8,192 entries across the project and artifact search,
179
+ descend at most 12 levels, consider at most 256 peer members and return up to
180
+ 32 choices. Use a more specific path if a search reached its limit.
164
181
 
165
182
  ```ts
166
- | { type: 'text', content: string, size: number, resolvedPath: string, artifactOwner?: string } // <= 2 MiB (MAX_TEXT_SIZE); NUL in first 8 KiB -> 'binary'
167
- | { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string } // png/jpg/gif/webp/svg/bmp/ico, <= 10 MiB (MAX_IMAGE_SIZE)
168
- | { type: 'binary', size: number, resolvedPath: string, artifactOwner?: string }
169
- | { type: 'too-large', size: number, kind: 'text' | 'image', resolvedPath: string, artifactOwner?: string }
170
- | { type: 'choices', choices: Array<{ workflowId: string, name: string }> } // 200: the name matches an artifact of more than one cluster member
171
- | { type: 'error', error: string } // 403 or 404
183
+ | { type: 'text', content: string, size: number, resolvedPath: string, artifactOwner?: string }
184
+ | { type: 'image', dataUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
185
+ | { type: 'audio' | 'video' | 'pdf', url: string, downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
186
+ | { type: 'binary', downloadUrl: string, size: number, resolvedPath: string, artifactOwner?: string }
187
+ | { type: 'too-large', downloadUrl: string, size: number, kind: 'text' | 'image', resolvedPath: string, artifactOwner?: string }
188
+ | { type: 'choices', truncated?: boolean, choices: Array<{ workflowId: string, name: string, resolvedPath: string, readUrl: string }> }
189
+ | { type: 'error', error: string }
172
190
  ```
173
191
 
174
- `resolvedPath` is the file that was read. A success answers `200`. Failures answer `403` (the path is refused or outside every readable folder) or `404` (not found) with `{ type: 'error', error }`; a missing file is reported by the name that was asked for.
175
-
176
- Resolution (`resolveBrowserRead` in `server/src/http/readConfinement.ts`):
177
- 1. With `cwd` and `workflowId`, an output the workflow tracked under that path is used first.
178
- 2. A relative `path` resolves inside the workflow's project folder; an absolute `path` is used as given. Either must lie inside a readable root: the bound project folder (or, with no binding, the known project folders and the file-tree root), the uploads folder or the scratch folder. A file in a registered Git worktree of the project is also allowed.
179
- 3. Only when the file does not exist, and `path` is a bare file name without a leading dot or a backslash, the workflow's own `artifacts/` folder is tried.
180
-
181
- If that fails with "not found" and `cwd` and `workflowId` name a conversation that is a cluster member, the server looks for the same bare name in the `artifacts/` folder of every member of that cluster. One match is returned with `artifactOwner` set to the member's display name. Several matches return `type: 'choices'`; the client then repeats the request with `artifactOwner=<workflowId of the chosen member>`. When nothing matches, the `404` error names the members that were searched: `File not found: <name>. Searched the project and artifacts of: <names>.`
192
+ Text previews are limited to 2 MiB and image previews to 10 MiB.
193
+ `resolvedPath` is the authorized absolute path. For choices, use the selected
194
+ `readUrl` to read that exact file. The legacy `artifactOwner=<wfid>` parameter
195
+ still narrows a bare filename to that cluster member's artifacts. A refusal
196
+ returns `403`. A miss returns `404` and names the requested path and the
197
+ locations searched when available.
198
+
199
+ The returned `url` and `downloadUrl` use the same origin and require the same
200
+ session and file access as the preview. Preview byte requests use `bytes=1`
201
+ and a fixed audio, video or PDF media type. Downloads use `download=1` and
202
+ attachment disposition. Both support GET, HEAD and single byte ranges,
203
+ including suffix ranges. A valid partial response is `206`. An unsatisfiable
204
+ range is `416`. Selection and byte requests recheck access and never substitute
205
+ a different file with the same name.
182
206
 
183
207
  ### `GET /api/files?path=<dir>`
184
208
 
@@ -1723,7 +1747,7 @@ make an inference or allowance request. A failed read retains an explicitly stal
1723
1747
  metadata; malformed or failed probes do not invent a logout verdict.
1724
1748
 
1725
1749
  Both records expose a non-secret `binding`: `{ source, storeId, revision? }`. `source` is
1726
- `claude-native` or `claude-cli`; `storeId` is `claude.native` or `claude-cli-default`. Native has one
1750
+ `claude-native` or `claude-cli`. The Default Native store ID is `claude.native`, a named store ID is `claude.native:<profile-id>`, and the CLI store ID is `claude-cli-default`. Each Native profile has a separate
1727
1751
  store per Arco home, independent of profile labels. Its opaque revision changes with credential
1728
1752
  material; it contains no token bytes and proves no account identity. CLI status also exposes the
1729
1753
  current allowance credential revision when its owner file is readable, with `bindingCheckedAt`
@@ -1774,7 +1798,7 @@ The update command is limited to 180 seconds.
1774
1798
 
1775
1799
  ## Claude Native auth
1776
1800
 
1777
- OAuth bootstrap for the in-process Claude Native transport. Tokens persist to `~/.arco/auth.json`; refresh races serialized via `proper-lockfile`. Local callback server binds port `53692`; when the callback cannot bind, the bootstrap falls back to manual paste - see `docs/GOTCHAS.md Native transport` for the EADDRINUSE rule.
1801
+ OAuth bootstrap for the in-process Claude Native transport. Default tokens persist to `~/.arco/auth.json`. Each configured Native profile uses its own credential store and refresh lock. Local callback server binds port `53692`; when the callback cannot bind, the bootstrap falls back to manual paste - see `docs/GOTCHAS.md Native transport` for the EADDRINUSE rule.
1778
1802
 
1779
1803
  ### `GET /api/auth/claude-native`
1780
1804
 
@@ -1791,10 +1815,17 @@ Local expiry metadata is not verified execution health. This GET never starts si
1791
1815
 
1792
1816
  ### `POST /api/auth/claude-native/login`
1793
1817
 
1818
+ For Native status, logout and the model catalog, pass `?account=<profile-id>` to select a profile.
1819
+ LOGIN accepts `accountRef` in the JSON body. A callback stays attached to the profile that
1820
+ started its flow. POST `/api/auth/claude-native/profiles` with `label` to add a profile or with
1821
+ `id` and `label` to rename one. Both operations return updated settings. An explicit account
1822
+ query on `/api/usage` uses that Native credential only. `@native-default` selects Default.
1823
+
1824
+
1794
1825
  Start the existing PKCE bootstrap. The optional body is
1795
- `{ binding?: ClaudeCredentialBinding, workflowId?: string }`. A changed expected Native binding
1826
+ `{ binding?: ClaudeCredentialBinding, workflowId?: string, accountRef?: string }`. A changed expected Native binding
1796
1827
  refuses a stale recovery action. The returned URL opens the provider's consent/MFA/account flow.
1797
- One pending flow serves the single Native store; a new start supersedes the previous flow.
1828
+ Each Native account can have one pending flow. A new start supersedes only the previous flow for that account.
1798
1829
 
1799
1830
  **Response** - `BootstrapStartResult` (`claude-native/oauth.ts`):
1800
1831
  ```ts
@@ -1954,10 +1985,10 @@ Cursor bakes reasoning effort into the model id (`-low`/`-high`/`-xhigh`/`-max`)
1954
1985
 
1955
1986
  ## Usage
1956
1987
 
1957
- ### `GET /api/usage[?force=1]`
1988
+ ### `GET /api/usage[?force=1&account=<profile-id>]`
1958
1989
 
1959
1990
  Reads Claude's 5-hour and weekly allowance from `https://api.anthropic.com/api/oauth/usage`, preferring
1960
- Native credentials and retaining an explicitly attributed CLI fallback. Current credential revisions
1991
+ Native credentials and retaining an explicitly attributed CLI fallback when no account is requested. An explicit account reads its Native allowance. Current credential revisions
1961
1992
  are read before cache lookup. Results have a two-minute TTL, partitioned by the actual Native and CLI
1962
1993
  credential context; `?force=1` bypasses cached values and joins an existing check for that context.
1963
1994
  The response is always 200 with `Cache-Control: no-store`; availability belongs to the result body.
@@ -277,6 +277,17 @@ package snapshot it identifies. This snapshot covers the installed program.
277
277
  Arco's saved data stays in its existing home. Source and Docker installs
278
278
  continue to follow GitHub releases.
279
279
 
280
+ Do not start or restart Arco while the update runs. On Linux, a start or
281
+ restart while systemd is still stopping the service cancels the stop. The
282
+ updater then leaves the installed package unchanged and waits up to two minutes
283
+ for queued service jobs to finish. If Arco is running again, the result says
284
+ so; try the update again. If Arco was confirmed running before the update and
285
+ is now stopped with no queued job, the updater starts it again on the installed
286
+ version. If its earlier state could not be read, Arco is not started. Any other
287
+ state is reported with `arco service status` and `arco service start` as the
288
+ next steps. A failed service command names its action and unit, for example
289
+ `systemctl stop arco.service failed (exit 1)`.
290
+
280
291
  The result appears beside the open update control. When that control is closed,
281
292
  a separate result notice remains available with **DISMISS**. The same result is
282
293
  not shown in both places at once.
@@ -103,8 +103,8 @@ differently per provider:
103
103
  loop
104
104
  - Cursor via an in-process loopback StreamableHTTP MCP server (ACP honors MCP
105
105
  over http/sse only, not stdio; fresh-only membership)
106
- - Antigravity CLI through ACP and scoped MCP tools; mail to or from a Gemini
107
- member waits for the operator's NUDGE
106
+ - Antigravity CLI through ACP and scoped MCP tools; AUTO-PICKUP can wake Gemini in ordinary
107
+ clusters for eligible incoming mail
108
108
 
109
109
  LM Studio / Strata / DeepSeek stay outside the cluster fence. How many members
110
110
  may use each local runtime is `localClusterCapacity` in Connections (default 1
package/docs/OUTPUTS.md CHANGED
@@ -3,6 +3,15 @@
3
3
  Browse generated artifacts and exports for a workflow or cluster, then
4
4
  preview, copy or move them within approved folders.
5
5
 
6
+ File links in conversations open the destination in the file viewer, including
7
+ links in peer messages. The viewer shows the resolved absolute path and offers
8
+ a choice when more than one file matches. Audio and video use playback controls;
9
+ PDFs display in the viewer with a height that accounts for interface text size.
10
+ Peer messages keep their line breaks and file links. On desktop, audio opens in a compact viewer and
11
+ video fits a larger viewing area without cropping. Resizing and **Reset size**
12
+ use separate saved sizes for audio, video and documents. Use **DOWNLOAD FILE**
13
+ when a browser cannot display a file. Missing files report where Arco looked.
14
+
6
15
  Open **Workspace > Files > Outputs** in a workflow or cluster. Outputs stays
7
16
  available after a generated-file preview is dismissed. **View in Outputs** on an
8
17
  artifact preview opens the producing workflow's collection; in the Narrow
@@ -16,9 +25,20 @@ show their producing workflow, creation/update time, current location and file
16
25
  information. Refresh updates the list without generating content. Missing files
17
26
  retain their original provenance.
18
27
 
28
+ The list refreshes every five seconds, on window focus and on **Refresh**, in
29
+ place (`reconcileOutputs` in `client/src/components/RightPanel/outputsReconcile.ts`).
30
+ Entries still listed keep their position, so an edited file does not jump to the
31
+ top under the reader; new entries appear first and removed ones drop out. Scroll
32
+ position, focus, expanded titles and open File information stay. Overlapping
33
+ refreshes are dropped or superseded, and a failed refresh keeps the shown list
34
+ with the error beside it. When the file in an open preview changes, the preview
35
+ says so and **RELOAD** reads it again in place; it is hidden while there are
36
+ unsaved edits. When the file is removed or moved, the preview says so and keeps
37
+ the content it loaded.
38
+
19
39
  By default the list shows only what was made for you: generated images, audio
20
- and video, documents at the top level of the artifacts folder, and reports and
21
- exports. Code files and anything inside an artifact subfolder are working files,
40
+ and video, documents at the top level of the artifacts folder, Gemini artifacts,
41
+ and reports and exports. Code files and anything inside an artifact subfolder are working files,
22
42
  shown when **All files** is ticked; a note under the filters says how many are
23
43
  hidden. The server marks each entry with `primary` (`isPrimaryOutput` in
24
44
  `server/src/outputs.ts`); the toggle is per view and resets when the panel reopens.
@@ -43,6 +63,28 @@ refresh; artifact enumeration stops at depth eight and 2,000 entries per workflo
43
63
  Cluster responses show the newest 2,000 entries. Inline content is fetched only
44
64
  when opened. The metadata file is bounded to 8 MiB. A damaged index is reported and left intact.
45
65
 
66
+ Antigravity CLI keeps finished artifacts in its own session folder,
67
+ `.gemini/antigravity-cli/brain/<session id>/`. On Linux, macOS and Windows,
68
+ Arco records the names present at the end of the turn in private Arco state,
69
+ bound to the project, workflow and ACP session. Outputs and ARTIFACTS list
70
+ the originals. Select Preview to read a document or image, or Download in
71
+ Outputs to keep a separate copy. Edits to the original appear on refresh.
72
+ Removing the original removes it from the list. A preview already open keeps
73
+ the content it loaded.
74
+
75
+ Only regular files up to 25 MiB are eligible, up to 200 per session and
76
+ three folders deep. Hidden entries, uploads, logs, scratch folders,
77
+ worktrees, metadata sidecars, resolved snapshots and hard or symbolic links
78
+ are excluded. Fenced researchers keep their files private. Arco retains up
79
+ to 2,000 registered names per workflow. It checks the opened file again for
80
+ each preview or download and reads at most its inspected size.
81
+
82
+ Gemini chat links use local `file://` URLs. The viewer decodes the name once,
83
+ including escaped spaces, `#` and `%`, and looks it up in the workflow's
84
+ registered session files. The session folder is never added to the browser,
85
+ editor or media roots. The workflow's other output files keep their usual
86
+ editing and transfer controls.
87
+
46
88
  Ordinary changed project files are not classified as generated. Unsupported
47
89
  provider write-tool forms may require saving the result into the workflow's
48
90
  artifacts directory. Older stem events that recorded only a directory cannot
@@ -64,10 +106,10 @@ another tab was active.
64
106
  **OPEN** works only on the computer Arco runs on: the server resolves the
65
107
  registered output (never a path from the page), checks the file exists and hands
66
108
  it to the system opener (`xdg-open`, `open`, or the Windows shell handler with
67
- the path as one argument). Programs and scripts (for example `.exe`, `.bat`,
68
- `.ps1`, `.sh`, `.js`, `.jar`, `.lnk`, `.app`, `.desktop`) and files with no
69
- extension are refused with a message; **Download** stays available. In Docker or
70
- on a machine without a desktop, OPEN is hidden.
109
+ the path as one argument). **OPEN** is hidden for programs, scripts and files
110
+ with no extension. Clicking a refused filename such as `setup.exe` explains why
111
+ Arco cannot open it and points to **Download**. **OPEN** is also hidden in Docker
112
+ or on a machine without a desktop.
71
113
 
72
114
  Editor saves and exported variants appear under their producing workflow. A
73
115
  variant derived from a tracked output retains its origin association. Existing
@@ -891,7 +891,7 @@ Operator-authored `<name>.md` markdown templates expanded by the `/prompt <name>
891
891
 
892
892
  ### provider-accounts/
893
893
 
894
- `server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
894
+ `server/src/providerAccounts.ts`. Per-account isolated provider home directories under `~/.arco/provider-accounts/`. For Codex, `codex-<id>/` is the `CODEX_HOME` for a configured account; `ensureCodexAccountHome` `mkdir`s it and seeds a `config.toml` with `cli_auth_credentials_store = "file"`. Native profile stores use `claude-<id>/auth.json` with a separate refresh lock per store. The account list itself (labels, refs, custom homes) lives in `settings.json` under `providerAccounts`, not here.
895
895
 
896
896
  ### checkpoints/
897
897
 
@@ -866,13 +866,13 @@ Right-clicking a cluster-capable tab opens `TabContextMenu` with three modes:
866
866
 
867
867
  - **CREATE WITH EXISTING** - multi-pick other cluster-capable tabs in the same cwd; dispatches `cluster_create` with `[anchor,...selected]`.
868
868
  - **ADD TO EXISTING** - only enabled when same-cwd clusters exist AND the anchor isn't already a member. Radio-pick which cluster; dispatches `cluster_member_add { clusterId, workflowId }`.
869
- - **CREATE WITH FRESH** - pick N (1-4) and an optional name; dispatches `cluster_create_with_fresh_workers { sourceWorkflowId, additionalCount, name? }`. Server creates N new workflows (cwd + primary inherited from source) via `createBlankNativeWorkflow`, then calls `clusterStore.createCluster`.
869
+ - **CREATE WITH FRESH** - the default mode, with 1 worker. Pick N (1-4), configure each worker on its own card and set an optional cluster name; dispatches `cluster_create_with_fresh_workers { sourceWorkflowId, additionalCount, name?, members }`. Server checks each entry, creates N new workflows (cwd + primary inherited from source, each entry applied) via `createBlankNativeWorkflow`, then calls `clusterStore.createCluster`.
870
870
 
871
871
  The membership fence (`assertAllMembersClaudeOrCodex` in `server/src/index.ts`, an older name) is enforced server-side in every mode; despite the name it now admits every `CLUSTER_MEMBER_PROVIDERS` entry - `claude` (cli + native), `codex` (exec + appserver), `ollama`, `llamacpp`, `cursor` (fresh-only membership), `antigravity-cli` - and rejects others with `member_not_supported`. The `isolated` access mode supports Claude Native or sandboxed Claude CLI, Codex and Cursor on supported Linux hosts. ClusterRightPanel's new `REVIEWS` sub-tab aggregates `job.reviews[]` across all members for the operator working from inside the cluster tab.
872
872
 
873
873
  ### Cluster-attached plan + role hints
874
874
 
875
- The shared plan and role supply context to standard members. Native and CLI transports use system blocks or string-form folds; Antigravity CLI receives a visible plan reminder and its first NUDGE includes its role.
875
+ The shared plan and role supply context to standard members. Native and CLI transports use system blocks or string-form folds; Antigravity CLI receives a visible plan reminder and the first turn of a standard member includes its role.
876
876
 
877
877
  **Shared cluster plan.** One plan per cluster: a normal plan file `<cwd>/.arco/plans/<planId>.md` whose id is stored in the cluster's `meta.json` (`server/src/clusterPlanBridge.ts`). Three operator entry points:
878
878
 
@@ -1006,6 +1006,8 @@ Send ONE prompt to N providers concurrently, stream each answer into its own pan
1006
1006
 
1007
1007
  The `⚖ SECOND OPINION` button near the composer (formerly COMPARE; internal ids, routes and message names keep the `compare` name) (`client/src/components/TerminalInput.tsx`; the handler is factored into `client/src/components/terminalInput/compare.ts` - the button only calls `openCompareDialog(job.id)`). The button is store-driven (no prop): it flips `compareStore.dialogOpen`. The globally-mounted `CompareDialogHost` renders `CompareDialog` - one prompt textarea, 2..`COMPARE_MAX_LEGS` legs each picked via the shared **RUN AS** picker (seeded with the current primary + one "other" default), and a **blind** checkbox (default on). Confirm dispatches `compare_request` and the results stream into the globally-mounted `CompareOverlay`.
1008
1008
 
1009
+ A Claude leg bound to a Native account uses that account for its draft and for **SYNTHESIZE**. Turn off **Let the models read project files** when such a leg is included. A Codex leg uses its own login or selected Codex account.
1010
+
1009
1011
  ### Server-side flow
1010
1012
 
1011
1013
  `handleCompareRequest` (`server/src/ws/compareHandlers.ts`) clamps the leg count to `[COMPARE_MIN_LEGS=2, COMPARE_MAX_LEGS=6]`, resolves each Codex leg's account positionally (CODEX_HOME, like the reviewer path, but per leg), seeds an in-memory `CompareRecord` (kept alive past settle for the vote/synthesize join), and calls `runCompare`. `runCompare` fans **N independent `WorkerManager.spawn` calls**, each with a **unique worker id** (`<compareId>-leg<i>`) and **NO shared session**: there is no `resumeSessionId`/`sessionId`, no transcript prepend, and the prompt is each leg's *entire* input - the legs never see each other. Each leg is **read-only / no-tools by default** (empty `tools` allowlist for every leg unless a reply draft turns on file access, which gives Read, Grep and Glob; Codex / Ollama / llama.cpp / LM Studio are additionally gated by `sandbox: 'read-only'`, and Ollama runs with `skipPermissions: true`; `outputStyle: 'normal'` forced) - stricter than the reviewer's read-only set, because the race is meant to be a cheap, side-effect-free answer comparison, not a tool-using agent run. Each leg's `worker_text` is streamed out as a `compare_leg_delta` keyed by `legIndex`, accumulated into the record's `answers`, and finalized with `compare_leg_complete`. One failed leg never blocks the others (`Promise.all` over per-leg promises that each resolve to ok/fail). When all settle, `compare_complete` carries `succeededLegs`.
@@ -252,7 +252,7 @@ The operator picked "ADD TO EXISTING" in the `TabContextMenu`. Server validates:
252
252
 
253
253
  ### `cluster_create_with_fresh_workers` ->
254
254
 
255
- The operator picked "CREATE WITH FRESH" in the `TabContextMenu`. The picker shares provider availability, account-specific models, model defaults and effort rules with ADD FRESH, including the Gemini NUDGE notice. Server: validates the source via `assertAllMembersClaudeOrCodex`; creates `additionalCount` new workflows (clamped to 1-4) each inheriting the source's cwd + primary config; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
255
+ The operator picked "CREATE WITH FRESH" in the `TabContextMenu`, which opens on that mode with one worker. Each worker card is a `FreshMemberForm`, the form ADD FRESH uses, so it shares provider availability, account-specific models, model defaults, effort rules, access, name, role, work size, focus and member settings, including the Gemini NUDGE notice. The client sends `members`, one `ClusterFreshMemberSpec` per worker; `members.length` must equal `additionalCount` (1-4), and the single `provider`/`model`/`effort`/`providerAccountRef` fields are refused alongside it (`members_with_shared_choice`). Without `members` (older clients) every worker uses those single fields. Server: validates the source via `assertAllMembersClaudeOrCodex`; checks every worker with the ADD WORKERS checks (`member[i] <code>` on refusal) and allows at most one Director before creating anything; creates the new workflows, each inheriting the source's cwd + primary config with its own entry applied, and saves access mode and web access at creation and role, work size and focus right after; calls `clusterStore.createCluster` with `[sourceWorkflowId,...newWorkflowIds]`; optionally `renameCluster` if `name` is non-empty. Each fresh workflow fires `workflow_created`; the cluster fires `cluster_created` on the originating socket only.
256
256
 
257
257
  ```ts
258
258
  {
@@ -376,7 +376,11 @@ with the director workflow id and goal. The client starts a tool-free
376
376
  `plan-review` turn and captures its reply for explicit review. It does not
377
377
  send `cluster_plan_set` until the operator chooses to attach the draft.
378
378
 
379
- Cluster presets (operator-saved snapshots) are persisted at `~/.arco/cluster-presets.json` and consumed by the CLUSTER-mode WorkflowCreator - see `ClusterPreset` / `ClusterPresetMember` in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts). Presets are project-agnostic (cwd is intentionally NOT part of a preset); the cluster-create path validates models against the live catalog at apply time.
379
+ Cluster presets (operator-saved snapshots) are persisted at `~/.arco/cluster-presets.json` and consumed by the CLUSTER-mode WorkflowCreator - see `ClusterPreset` / `ClusterPresetMember` in [`shared/src/protocol/clusters.ts`](../shared/src/protocol/clusters.ts). Presets are project-agnostic (cwd is intentionally NOT part of a preset); the cluster-create path validates models against the live catalog on submit.
380
+ For Claude, a recognized family alias such as `sonnet` is accepted when its
381
+ resolved model appears in the available catalog. The new workflow retains the
382
+ alias so it can follow the family. A saved concrete model ID still selects
383
+ that model, and a model from another provider is refused.
380
384
 
381
385
  ### `cluster_add_fresh_workers` ->
382
386
 
@@ -874,6 +878,8 @@ Existing cooldown and rate guards and the chain-depth default support environmen
874
878
 
875
879
  Rule-based pickup ignores batches containing only short, unambiguous acknowledgements; the mail remains pending. A later actionable message wakes the recipient with the full batch. Rule limits default to four alternating wakes for a pair, six wakes per member per rolling hour, 40 wakes per arming, and depth eight. A pair pause clears on an operator message to either member, NUDGE, re-arming, or mail from a third member. A board or plan change breaks an unpaused alternating sequence. Reaching the arming total stops pickup and RESET BUDGET starts a fresh total; the hourly member cap remains. Limits are adjustable in the AUTO-PICKUP dialog. Rule guard counters and pair pauses are stored in the cluster ledger and survive a server restart.
876
880
 
881
+ Neither Rule-based nor Smart pickup wakes a member whose last turn ended in a terminal `request_too_large` (the conversation is too large for the provider): Rule-based skips with `member_blocked` and a recovery notice, Smart reports `member_blocked` and keeps the wake owed. The mail stays unread and other members are unaffected. The same stop applies to the provider's other size rejections (Anthropic's total-text-bytes limit and context-window overflows). The stop clears when a turn for that member ends without error, when an in-place HANDOFF or FOLD of the member completes (the workflow id is unchanged and its mail stays), or when the member is replaced (REPLACE gives the slot a new workflow id). The stop is held in memory, so a server restart allows one more failed wake before it returns.
882
+
877
883
  Chain depth is carried on `peer_message_sent.chainDepth` (see below); operator-initiated peer-sends ride at depth 0, so the first auto-turn lands at depth 1.
878
884
 
879
885
  Turn boundaries reach the detector from both fan-out paths (`send()` for turns run by the turn engine, `broadcastWorkflow` for the rest) through one function in `server/src/server/broadcast.ts`; a start or end carried twice (STOP sends its own end) is handled once. On a member's `primary_turn_started` the idle nudger marks it busy and resets its per-turn nudge count. On `primary_turn_ended` the nudger stamps the idle time, the artifact size check runs, the chain-depth marker clears, and the member's waiting mail is re-checked (Rule-based or Smart). The detector remembers the highest chain depth of mail a member has not acted on; the turn-end re-check and the periodic resume sweep (`ARCO_CLUSTER_AUTO_TURN_SWEEP_INTERVAL_MS`, default 5000) use that depth, not 0, so mail held by the depth cap stays held until the member's next turn reads it. A `peer_send` writes the mail file before it broadcasts `peer_message_sent`, and only the broadcast records the depth; mail found in between counts at the depth of its sender's running turn (`heldMailDepth()` in `server/src/clusterAutoTurn.ts`), so a recipient whose turn ends in that gap is not woken at depth 0. The remembered depth clears when the member's turn starts or an auto-turn fires for it.
@@ -964,7 +970,7 @@ Server-side detector emitted on every fire-path (`fired: true`) AND on every gua
964
970
  sender: string, // sender workflowId of the triggering peer_message_sent
965
971
  chainDepth: number, // depth this auto-turn lands at (sender's + 1 on fire; reported as-is on skip)
966
972
  reason: 'mailbox_arrival' | 'rate_capped' | 'depth_capped' | 'cooldown' | 'recipient_busy' | 'disabled'
967
- | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail',
973
+ | 'ack_only' | 'budget_paused' | 'member_capped' | 'pair_paused' | 'operator_send_only' | 'gemini_mail' | 'member_blocked',
968
974
  notice?: string, // operator-facing pause notice
969
975
  fired: boolean, // true -> a turn was dispatched; false -> guard refused
970
976
  }
@@ -1199,11 +1205,11 @@ A new cluster or preset may have at most one director. Role text beginning with
1199
1205
 
1200
1206
  ## Gemini members
1201
1207
 
1202
- Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). A Gemini replacement starts with no history.
1208
+ Gemini (the `antigravity-cli` provider) can be a cluster member in any role, including Director, chosen at cluster creation, + ADD FRESH or REPLACE. Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs inside the worker sandbox (see [RESEARCH.md](RESEARCH.md#gemini-researchers)). REPLACE defaults to NO HISTORY. RECENT HISTORY and FULL HISTORY send the previewed history as the first turn in a new Gemini session.
1203
1209
 
1204
- A Gemini member takes a turn only from the operator's NUDGE on it or a message the operator types in its composer. Both arrive as a WebSocket `user_message`; the server issues a single-use ticket bound to that member and the exact text, and `handleUserMessage` starts a Gemini member turn only with a valid ticket, checked again and consumed when a queued message is taken. AUTO-PICKUP, Smart pickup, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and other automatic turns carry no ticket and start nothing. Rule-based AUTO-PICKUP records the skip with reason `operator_send_only`, Smart pickup records it without asking its evaluator, and a broadcast reports the member as `gemini_review`. Prompt templates, `@` references and picked skills are not applied to a Gemini message.
1210
+ A Gemini member starts from an operator's NUDGE, a typed message in its composer, or an admitted Rule-based or Smart AUTO-PICKUP wake in an ordinary cluster. REPLACE with history authorizes its exact opening text. A manual HANDOFF starts a new session with the saved document. Arco issues a single-use ticket for the exact message and member. Before accepting a pickup it checks the active mode, pause state and member access mode. Smart Observe-only records its proposal without starting a turn. SAFE can ask before Gemini reads the mail. Busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers, retries and Research delivery remain operator-held. Prompt templates, @ references and picked skills are not applied to Gemini messages.
1205
1211
 
1206
- The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every nudge asks the member to read the current plan and mail before acting. COMPACT on a Gemini member is the operator's own action: it sends `/compact` to the member's session in its working folder without a ticket, and Arco's automatic compaction stays off for Gemini. The cluster and research screens show a notice above the conversation that names every Gemini member and says that a turn starts only from NUDGE or the member's own composer, and that incoming mail waits until then. The cluster bar's Auto-compaction control names the Gemini members it skips and tells the operator to send `/compact` in the member's session; the server returns before the automatic compaction policy for `antigravity-cli`. This is display only. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
1212
+ The first NUDGE of a Gemini member, sent before its first turn, starts with its role and the cluster instructions as visible text, followed by the available skill list and the nudge; the conversation shows that full text. Every NUDGE and AUTO-PICKUP wake asks the member to read the current plan and mail before acting. COMPACT sends `/compact` to the same session and working folder, under the member's existing access rules. The conversation reports the result Gemini returns. The cluster and research screens show a notice above the conversation that names every Gemini member and explains how to start a turn. AUTO-COMPACTION sends the same command when a finished turn reports retained context at or above the effective threshold. Arco waits for a fresh reading more than five percentage points below the threshold before another attempt in that session. An isolated Gemini researcher uses manual COMPACT inside its sandbox. Provider and Off use Gemini's usual automatic compaction. The cluster bar no longer shows a separate SKIPS GEMINI mark beside AUTO-PICKUP. During its turns the member reads its mail with `peer_read` and uses `peer_send`, the board and the plan through Arco's MCP bridge, as other members do.
1207
1213
 
1208
1214
  Mail a Gemini member sends is stored with `fromGemini: true` and also waits for the operator. AUTO-PICKUP, Smart pickup and busy reminders never wake a recipient for it; Rule-based AUTO-PICKUP records reason `gemini_mail` and Smart pickup records `gemini_mail` once per session when only such mail is waiting. The mailbox drain delivers it only in a turn started by the operator's NUDGE or typed message: a `peer_read` in an automatic turn returns the other mail and leaves it waiting.
1209
1215
 
@@ -564,7 +564,7 @@ Fires after the new session is pre-warmed and the old session is archived in `me
564
564
  sessionId: string,
565
565
  turnCount: number,
566
566
  },
567
- draft?: string, // Antigravity CLI only: composer text that points the agent at the saved handoff document
567
+ draft?: string, // older saved events only: text staged in the composer
568
568
  newSessionId?: string, // optional for providers without native session ids
569
569
  completedAt: number,
570
570
  }
package/docs/PROVIDERS.md CHANGED
@@ -60,7 +60,7 @@ other providers retain their own effort values.
60
60
  | Codex | `exec` (alternate; also reviewers and handoff seeds) | model/catalog-driven; Astra / Sol: low through ultra, Luna: through max | UUID-based (`codex exec resume`) | The cold-catalog fallback defaults to GPT-6.2 Sol; the live `model/list` catalog supplies its own default and availability. MAX context by default. Per-turn `codex exec` spawn. Full two-way interop with terminal `codex`. Supported effort values pass through; older models are not widened to Astra-only levels. Reviewer runs `-s read-only`. Transcript hydration on Resume for unclaimed rollouts. |
61
61
  | Codex | `app-server` (new-home default) | model/catalog-driven (same as `exec`) | UUID-based (rollouts in `~/.codex/sessions/`) | Long-lived `codex app-server` per tab. Structured `turn/interrupt` cancel + non-destructive `turn/steer` mid-turn input + `localImage` attachments + crash-recovery circuit breaker + output-style picker + native compact with context-signal reset. Reviewers / handoff seeds always run on `exec`. |
62
62
  | Cursor | `acp` (default) + `print` | baked into the model id (`-low` / `-high` / `-xhigh` / `-max`) | `session/load` (loadSession capability) | Long-lived `cursor-agent acp` ACP worker; models come from Cursor. Steer / cancel / session resume / live model-swap via `session/set_model`. No per-turn token signal (the Usage tab is dashboard-polled). Cluster member via an in-process loopback HTTP MCP server. Read-only reviewer / primitives run a stateless `cursor-agent -p --mode ask` one-shot. |
63
- | Antigravity CLI | `agy acp` | low / medium / high / xhigh | `session/load` | Gemini Agent tabs, saved Chats and cluster members; reviewers and automatic turns are unavailable. See [Antigravity CLI](#antigravity-cli). |
63
+ | Antigravity CLI | `agy acp` | low / medium / high / xhigh | `session/load` | Gemini Agent tabs, saved Chats and cluster members; ordinary cluster AUTO-PICKUP is available. See [Antigravity CLI](#antigravity-cli). |
64
64
  | Ollama | (single) | per model - graded thinking: `low` = thinking off (`think:false` + `/no_think`) plus the model's own levels from `/api/show` `thinking.values` (e.g. supported levels from `/api/show`); boolean-only models keep low / high | None | No native session concept; each turn is a fresh context. Tool use + large context + image attachments + web tools (SearXNG search, guarded direct fetch). Mid-turn steer supported. Override base URL with `OLLAMA_URL_BASE` (default `http://localhost:11434`). |
65
65
  | llama.cpp | (single) | low / high (`low` = `/no_think`) | None | Operator-managed GGUF catalog at `~/.arco/llamacpp.json`. Singleton `llama-server` process owned by Arco (`llamacppManager`); switching aliases SIGTERMs the old server and warms the new one. OpenAI-compatible chat-completions + SSE streaming. Same tool-loop runtime as Ollama, with in-place auto-recovery (reasoning runaway / stream stall / tool-cap / context fill). Override binary with `ARCO_LLAMACPP_BIN`. |
66
66
  | LM Studio | (single) | low / high (`low` = `/no_think`) | None | LM Studio reached via its **OpenAI-compatible** HTTP API (`/v1/chat/completions`, `/v1/models`) - not the native SDK. Joins ollama / llama.cpp on the serial local queue, same tool-loop runtime + recovery. Whatever model is loaded in the LM Studio app is the active model. Override base URL with `LMSTUDIO_URL_BASE` (default `http://localhost:1234`). |
@@ -367,10 +367,28 @@ presence, refresh needs, read failures or an authentication problem; an unexpire
367
367
  explicitly unverified for execution. CLI warnings name the CLI and use its sign-in command. Native
368
368
  warnings open the Claude sign-in group in Settings. Neither status recovery nor a usage-limits failure switches
369
369
  the selected transport. An unavailable usage limits meter does not invalidate execution credentials.
370
- Native uses one credential store per Arco home; named account/profile labels do not create separate
371
- Native credentials. Connection checks remain metadata checks without a model turn.
372
-
373
- Reviewers and handoff seed turns always run on `cli` regardless of the tab's transport - Native is per-workflow long-lived and Arco-internal-only, so any path that needs a `~/.claude/projects/<sid>.jsonl` rollout (handoff destinations, reviewer recovery) goes through the CLI provider. After `handoff_complete`, the dispatcher disposes the cached Native worker so the next operator turn rebuilds the messages array from the post-handoff transcript.
370
+ Open Connections > Claude or Settings > Providers and models > Sign-in, accounts and local endpoints.
371
+ The Default Native sign-in keeps the existing credentials. Use ADD NATIVE ACCOUNT, enter a name, then
372
+ use LOGIN for that row in a browser signed into the intended Claude account. RENAME ACCOUNT keeps the
373
+ same account selected in existing tabs. LOGOUT clears only the selected row's stored credentials.
374
+ The Claude CLI has its own sign-in.
375
+
376
+ Choose CLAUDE NATIVE ACCOUNT when creating a tab or cluster member. The selection stays with the
377
+ workflow on reopen. CONFIG changes it for an idle tab. Arco checks any accompanying model and effort
378
+ against the selected account and applies the accepted settings together before the next turn. Existing
379
+ Native tabs with no account selection keep Default. An old label or an unavailable account requires
380
+ a selection in CONFIG. A signed-out account offers sign-in for that account before Arco sends a
381
+ Native request. The model catalog, usage limits where available, compaction, Native handoff,
382
+ Genesis Assist and Native Task children use the workflow's selected account. A Native leg in
383
+ SECOND OPINION keeps its selected account for drafting and synthesis when file access is off. The general Claude usage view keeps
384
+ its attributed CLI fallback when no account has been selected.
385
+
386
+ Native's original Default credentials remain in the Arco auth store. Additional credentials use
387
+ separate protected stores. Workflow metadata and settings keep the profile ID and display name.
388
+ Connection checks read local status. A short turn checks that the selected sign-in can execute.
389
+
390
+ After `handoff_complete`, the dispatcher disposes the cached Native worker so the next turn
391
+ rebuilds its messages from the post-handoff transcript. CLI-only review paths keep the CLI sign-in.
374
392
 
375
393
  ### Native transport - append-only prefix (2026-09-01)
376
394
 
@@ -534,7 +552,7 @@ OAuth subscription flow adapted from `earendil-works/pi`:
534
552
 
535
553
  - `CLIENT_ID = 9d1c250a-e61b-44d9-88ed-5944d1962f5e` (stored as base64 + `atob` at module load - minor protection against repo scrapes; not a security boundary).
536
554
  - OAuth state and the PKCE verifier are independent random values. The authorization URL carries state and the S256 challenge; the callback carries code and state; the verifier stays server-side until the token exchange. Callback `127.0.0.1:53692/callback` (overridable via `ARCO_OAUTH_CALLBACK_HOST`). On `EADDRINUSE` we fall back to manual-paste mode automatically.
537
- - Tokens persist to `~/.arco/auth.json` under `claude.native` - mode 0600, parent dir 0700, atomic tmp+rename, `proper-lockfile` around the read-refresh-write cycle. Lock is **not** held across the SDK call.
555
+ - Default tokens use `~/.arco/auth.json` under `claude.native`. Additional Native accounts use `provider-accounts/claude-<id>/auth.json` under the Arco data folder. Each store uses mode 0600, parent mode 0700, atomic writes and a separate lock for refresh. Model requests run after release of the lock.
538
556
  - Refresh runs 30s ahead of expiry. On `400 invalid_grant`, the loop emits `[AUTH:claude]` system_notice and fails the turn; after three consecutive auth failures within the workflow the notice escalates and auto-retry stops until the operator re-logs in.
539
557
  - Re-login goes through `POST /api/auth/claude-native/login` (returns the authorize URL + a `manualFallback` flag); the callback is captured by the local server or accepted via `POST /api/auth/claude-native/callback` (`{ url }` body) for headless / port-blocked operators.
540
558
 
@@ -681,7 +699,9 @@ A hook that runs in PowerShell only because Git Bash is missing carries `shellNo
681
699
 
682
700
  **The shell tool on Windows without Git Bash.** As in Claude Code, the model then gets a `PowerShell` tool instead of `Bash` (`shellToolName()`), so hooks matching `PowerShell` fire for it and `Bash` matchers do not. The other name is an unknown tool, refused before any hook. Every check keyed on Bash treats it the same (`isShellToolName()` in `shared/src/shellTool.ts`): the hardline floor (which also knows the PowerShell and cmd forms of its hazards), the review gate, tool postures, isolated members, the output filter, eviction, Fold and resume digests, the tool-call counter and the tool cards. The local-model Bash tool keeps its name.
683
701
 
684
- Default hook timeout 600 s (30 s on UserPromptSubmit); per-hook `timeout` field overrides. Timed-out hooks get SIGTERM then SIGKILL after 2s grace; the output is discarded. On Windows `taskkill /T /F` ends the tree at once; with Git Bash the child also carries `ARCO_PROCESS_TREE` in its environment, and the kill first lists every MSYS process holding it through Git Bash's `/proc`, because a background job (`cmd &`) loses its Windows parent and `/T` alone misses it (`spawnShellChild()` and `signalChildTree()` in `server/src/workers/processKill.ts`, used by hooks, both Bash tools and sandbox shell scripts). Git Bash commands are passed in MSYS quoting on a verbatim command line, so backslashes (a JSON hook output with a Windows path) arrive unchanged. `CLAUDE_PROJECT_DIR=cfg.cwd` is set on the subprocess env; the per-event JSON payload is written to stdin. Inherited env minus any `ARCO_*` debug flags. Hook subprocesses register against the per-turn shell map so cancel + KillShell tear them down; background hooks end when the worker is disposed.
702
+ Default hook timeout 600 s (30 s on UserPromptSubmit); per-hook `timeout` field overrides. Timed-out hooks get SIGTERM then SIGKILL after 2s grace; the output is discarded. On Windows `taskkill /T /F` ends the tree at once; with Git Bash the child also carries `ARCO_PROCESS_TREE` in its environment, and the kill first lists every MSYS process holding it through Git Bash's `/proc`, because a background job (`cmd &`) can lose its Windows parent and `/T` alone can miss it (`spawnShellChild()` and `signalChildTree()` in `server/src/workers/processKill.ts`, used by hooks, both Bash tools and sandbox shell scripts). Git Bash commands are passed in MSYS quoting on a verbatim command line, so backslashes (a JSON hook output with a Windows path) arrive unchanged. `CLAUDE_PROJECT_DIR=cfg.cwd` is set on the subprocess env; the per-event JSON payload is written to stdin. Inherited env minus any `ARCO_*` debug flags. Hook subprocesses register against the per-turn shell map so cancel + KillShell tear them down; background hooks end when the worker is disposed.
703
+
704
+ The Git Bash scan handles failed process entries separately. It keeps matching descendants found before and after the failed entry, and sends only Windows process IDs to taskkill. The scan records failed lookups by process ID and exit status. If the scan stops early, the last probes show which file was being read. Environment values are never logged.
685
705
 
686
706
  Reading `updatedInput` is the load-bearing piece for using rtk (`rtk-ai/rtk`) on Native: drop rtk into `~/.claude/settings.json` once and Native + CLI both apply its tool_input rewrites; each rewrite emits a `hook_rewrote_input` event so transcript review can attribute it.
687
707
 
@@ -1221,15 +1241,32 @@ Antigravity CLI runs the installed `agy acp` program for an interactive Agent ta
1221
1241
 
1222
1242
  Arco sends the submitted text and attachments. When a plan is attached, it adds a visible line naming the plan and its file; the line notes edits since the last successful turn. The first turn also lists available Arco skills and their files in a collapsed conversation line; expand it to read the full list. Each Gemini sub-agent start appears as a compact conversation line with its role and prompt. The CLI loads the project's `AGENTS.md` and `GEMINI.md` and its installed skills itself. TUNE MD defaults to `AGENTS.md`. Arco's workflow-scoped file and plan tools are available through MCP in Agent tabs, saved Chats and cluster members; members also get the cluster tools. Use the CLI's native skill installation to add skills. Arco skill picks, tab pins and cluster pins are not sent to Gemini.
1223
1243
 
1244
+ For an optional native skill, review this example and save it as `.agents/skills/arco-cluster-tools/SKILL.md` in the project using [Antigravity's workspace skill layout](https://antigravity.google/docs/skills). It gives a member a short reference when asked to use the cluster tools.
1245
+
1246
+ ```markdown
1247
+ ---
1248
+ name: arco-cluster-tools
1249
+ description: Use when asked to read Arco cluster mail or work with the shared plan or board.
1250
+ ---
1251
+
1252
+ Follow the role shown in the conversation. Use peer_read for assigned mail,
1253
+ cluster_plan_read for shared requirements, and cluster_task_list for the
1254
+ board. If a tool is unavailable, report which operation it prevented.
1255
+ ```
1256
+
1257
+ When Gemini asks a supported clarification in an Agent tab, saved Chat or regular cluster member, the question card pauses the turn. Pick or type an answer and select SEND ANSWERS to resume it. Optional fields can be left blank, including when every field is optional. DISMISS declines the question. STOP cancels the turn.
1258
+
1224
1259
  NORTH STAR and GOAL RUN are not offered for Antigravity; its turns do not use them. The /goal composer command reports that they are unavailable.
1225
1260
 
1226
1261
  Only Gemini models advertised by the CLI are offered. Effort uses the ACP thinking level. Permission requests follow the tab's AUTO or SAFE setting. AUTO approves once; SAFE asks. Tool activity appears in the conversation. Scheduling is not offered in Arco's command menu, and a scheduling permission request is refused. The CLI can perform operations without a permission request according to its own configuration, so Arco cannot promise to stop every unattended action.
1227
1262
 
1263
+ After each turn, Arco records the finished filenames for that workflow and ACP session. On Linux, macOS and Windows, Outputs, ARTIFACTS and conversation links read the original on demand. Use Download in Outputs to keep a copy. Transcripts, uploads, scratch files, metadata sidecars, links and other sessions are excluded. See [Workspace Outputs](OUTPUTS.md).
1264
+
1228
1265
  For a saved Antigravity Chat, the working folder is `ARCO_HOME/chat-workspaces/<chat-id>`, separate from Chat history. OPEN FOLDER shows its files. Deleting the Chat also deletes this working folder; save wanted files elsewhere first. An Agent tab starts in its chosen working folder. The folder is a starting location, not a security boundary: with AUTO, tools can reach what the user's account can reach.
1229
1266
 
1230
- The Versions menu shows the installed Antigravity CLI version and its latest available version. Selecting the row runs `agy update`. Hover or focus G to open usage; touch or click also opens it. Each opening reads usage again, and REFRESH also reads it. The previous reading remains visible while it updates. It shows the available model pools as percentage-used bars and reset times, or a fallback when usage is unavailable. COMPACT sends `/compact` to the current Gemini session and reports the context size when available.
1267
+ The ANTIGRAVITY row in Versions shows the installed and latest versions. Latest unavailable means the public release number could not be read. Selecting the row runs `agy update` and checks the installed version again. Hover or focus G to open usage; touch or click also opens it. Each opening reads usage again, and REFRESH also reads it. The previous reading remains visible while it updates. It shows the available model pools as percentage-used bars and reset times, or a fallback when usage is unavailable. COMPACT sends `/compact` to the current Gemini session and reports the provider's reply and context size when available. For Agent tabs, including regular cluster members, AUTO-COMPACTION sends the same command when a finished turn reports retained context at or above the selected threshold. After an attempt, Arco waits for a fresh reading more than five percentage points below the threshold before it can compact automatically in that session again. An isolated Gemini researcher uses manual COMPACT in its sandbox. Provider and Off leave the CLI's own policy in use.
1231
1268
 
1232
- Arco does not copy this sign-in or call Google for quota. ACP token and context usage are shown; remaining quota comes from the CLI usage command. A Gemini model can be a cluster member in any role; mail to or from it waits for the operator's NUDGE on the recipient, and AUTO-PICKUP skips it (see [Gemini members](PROTOCOL_CLUSTER.md#gemini-members)). It can be a Research Director, and on Linux a researcher inside the worker sandbox with the separate GEMINI FOR RESEARCH sign-in, whose file Arco copies into the researcher's private home for each turn (see [Gemini researchers](RESEARCH.md#gemini-researchers)). This provider is not offered for reviewers or automatic turns. Handoff to Antigravity saves the document and places an editable line in the composer; review and send it to start the new session. The older `antigravity` provider remains retired and its saved work is not silently changed.
1269
+ Arco does not copy this sign-in or call Google for quota. ACP token and context usage are shown; remaining quota comes from the CLI usage command. A Gemini model can be a cluster member in any role; AUTO-PICKUP can wake it for eligible incoming mail in ordinary clusters. Mail from it waits for NUDGE (see [Gemini members](PROTOCOL_CLUSTER.md#gemini-members)). It can be a Research Director, and on Linux a researcher inside the worker sandbox with the separate GEMINI FOR RESEARCH sign-in, whose file Arco copies into the researcher's private home for each turn (see [Gemini researchers](RESEARCH.md#gemini-researchers)). This provider is not offered for reviewers. HANDOFF sends the saved document as the opening turn of a new Gemini ACP session. For ORIGINAL WORKER, the same Gemini model writes from the saved transcript in a fresh reply-only session. FRESH SUMMARIZER can also select Gemini. The writer runs in a temporary folder without Arco tools. The older `antigravity` provider remains retired and its saved work is not silently changed.
1233
1270
 
1234
1271
  ## Cursor
1235
1272
 
package/docs/RESEARCH.md CHANGED
@@ -109,7 +109,7 @@ A research project opens in an ordinary cluster tab (`ClusterTab`) with these ad
109
109
 
110
110
  - **Rounds strip** (`client/src/components/research/ResearchRoundsStrip.tsx`) above the member cards: the project name, saved folder and `OPEN FOLDER`, the default location in Settings > Projects > Research folder, `BRIEF` to show the brief, Blind, Revealed or Not blind, `REVEAL` while blind, and one row per round (latest three, `ALL N ROUNDS` for the rest) with each researcher's state and the elapsed time. A row expands to each outcome, "taken from final reply", the failure reason, the deadline and the count of targeted messages; in a released round each replied line opens that researcher's `report-<letter>.md` in the file viewer. It replaces the empty-plan hint. The question expands when chosen; `REVEAL` asks in an Arco confirmation; actions are at least 44 px square.
111
111
  - **Member cards** keep their live state and `STOP`. A researcher's card shows a markdown link to a path inside its sandbox (`/work/...`) as the link text only. It adds one wrapping line: letter, provider and model, isolation, web searches counted once per call from its loaded tool activity, and its state in the latest round. The operator always sees provider and model; blind applies to the Director.
112
- - **Controls:** the research cluster bar offers Auto-compaction and SKILLS. With a Gemini member, a notice above the conversation names it and says it takes a turn only from NUDGE or its own composer; Auto-compaction names it as skipped, and `/compact` in its session compacts it. PLAN lets the Research Director attach and edit the project plan; researchers cannot read or change it. Generic member add, replacement and detachment, board controls, cluster snapshots, and unrelated coordination controls are not offered. The server refuses ordinary member additions, access-mode changes, board changes and hidden coordination settings for research projects. Member settings and the per-member web switch remain available in CONFIG and MEMBERS. FILES shows the research folder without the Git sub-tabs or researcher-private locations.
112
+ - **Controls:** the research cluster bar offers Auto-compaction and SKILLS. With a Gemini member, a notice above the conversation names it and says it takes a turn only from NUDGE or its own composer; An isolated Gemini researcher uses manual COMPACT in its own sandbox. Arco does not apply an automatic threshold to that researcher. PLAN lets the Research Director attach and edit the project plan; researchers cannot read or change it. Generic member add, replacement and detachment, board controls, cluster snapshots, and unrelated coordination controls are not offered. The server refuses ordinary member additions, access-mode changes, board changes and hidden coordination settings for research projects. Member settings and the per-member web switch remain available in CONFIG and MEMBERS. FILES shows the research folder without the Git sub-tabs or researcher-private locations.
113
113
  - **Narrow layout:** the member rail labels the Director `RD` and researchers by letter. The rounds strip is at the top of the member list (☰), and the right strip shows `RESULTS` in place of `BOARD`. A stored `BOARD` tab opens as `RESULTS` in a research project.
114
114
  - **Right panel:** `RESULTS` (new, `ResearchResultsTab.tsx`) opens `brief.md`, `synthesis.md`, `director-log.md`, `exports.md`, each round's `round.md` and the released reports in the file viewer. RESULTS is laid out as bordered cards in the style of the cluster ACTIVITY pane. The project card holds the file links as chips and, once a round exists, a project action row: `Rerun` always, `Start project` and `Chat` when a released summary exists (`Start project` also when every normal round is released), and `Send project` and `Export` only when every normal round is released. Each round or catch-up is one card, newest first: its heading, `Record` (the round's `round.md`) and `Summary` chips, the release time and, on the right, an `Actions` button; an independence or sandbox warning is one tagged line inside the card. Each researcher is one row in the card: the name in its ACTIVITY colour, `Report`, `Files (n)`, a `Late` tag or the outcome when there is no report, and an `Actions` button. `Actions` opens the send, start, chat (summaries only) and export choices under its row; Escape closes them and returns focus to `Actions`. `Files (n)` opens under its row the files that researcher returned in that round, by their original names, opening the copies in `sources/`; a report with no returned files has no `Files` control. Catch-ups and late reports from RETRY are listed the same way. In a narrow panel a researcher is named by letter and the release time is left out. Both RESULTS and the rounds strip name a researcher by letter only while reports are blind, and add provider and model after REVEAL or when the project is not blind. `RESULTS` is first in a research project; `BOARD` and `PLAN` are hidden there, and `RESULTS` is hidden in every other cluster. Each round links its summary (`syntheses/round-N.md`, or `synthesis.md` for the latest round), read from `GET /api/research/<clusterId>/summaries`; the Summary chip in the project card says Awaiting summary until `synthesis.md` exists.
115
115
  - **Send to a project:** `Send report`, `Send summary` and `Send project` choose released material, including catch-up reports from researchers who were later removed. The dialog opens with a project folder already chosen: the folder this research was last sent to or started a project in, read from `exports.md`, otherwise the project the research was started from, and never the research folder itself. With neither it asks for the folder; `CHANGE FOLDER` replaces it. Then independently choose a new copy under `research/`, a reference in an existing plan in that folder, or `Attach to conversation draft`, which shows the list of open conversations only while ticked. `SEND` is available as soon as a folder is chosen. The draft is not sent. A plan reference owns its linked files beside it; deleting the reference removes those files. A Research Director can propose a selection with `research_send_to_project`; `REVIEW SEND` lets the operator choose its destination. Successful destinations are recorded in `exports.md`; partial copies and receipt failures are reported separately. Existing files are not overwritten.
package/docs/SETTINGS.md CHANGED
@@ -60,7 +60,7 @@ Sections: 29.
60
60
  | `phosphor` | Appearance | Phosphor effects and softness | Global | Phosphor glow, effects and softness (shown with a Phosphor theme) |
61
61
  | `font-pack-override` | Appearance | Font pack override | Global | Font pack selector; default Victor Mono |
62
62
  | `interface-text-size` | Appearance | Interface text size | Global | 90% to 150%; fresh installs default to 110%, existing installs keep their size |
63
- | `layout` | Appearance | Layout | Global (this browser) | Automatic (default: Narrow under 1500, Compact from 1500, Standard from 2000 interface pixels), Standard, Compact or Narrow. Fixed choices apply at every width. Top-bar switch and command palette make the same choice |
63
+ | `layout` | Appearance | Layout | Global (this browser) | Automatic (default: Narrow under 1200, Compact from 1200, Standard from 1380 interface pixels), Standard, Compact or Narrow. Fixed choices apply at every width. Top-bar switch and command palette make the same choice |
64
64
  | `message-box-size` | Appearance | Message box size | Global (this browser) | Small (default), Medium or Large starting height for every message box |
65
65
  | `theme-brightness` | Appearance | Background and text brightness | Global | Background brightness, text brightness (default +25) |
66
66
  | `crisp-text` | Appearance | Crisp text | Global | Crisp text toggle |
@@ -69,7 +69,7 @@ Sections: 29.
69
69
  | `projects` | Projects | Project locations and bookmarks | Global | Project locations with folded Add/Edit and duplicate/alias rename feedback; Bookmarked folders for optional Bookmark folder/Remove bookmark controls; Research folder (`researchFolder`, where each research project gets its dated subfolder; affects only new projects); Research time limit (`researchTimeLimitMinutes`, 30 to 240 minutes, default 45, for each new round or catch-up); Advanced folder options for independent browsing defaults; non-destructive multi-location Run setup again |
70
70
  | `project-trust` | Projects | Project trust | Project, rules kept globally | Searchable, scrollable trusted and blocked project list, default trust |
71
71
  | `enabled-providers` | Providers and models | Enabled providers | Global | Per-provider on/off toggles |
72
- | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | Provider sign-in, status and endpoint controls appear only for enabled providers: Claude group (Native sign-in first, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (separate sign-in for Gemini researchers, shown when Antigravity CLI is enabled and its sandbox check passes; on Windows and macOS a note says Gemini for Research is Linux-only), Ollama endpoint and discovery, LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio and Strata rows. Always shown: Ollama compaction utility model (compaction summaries, session titles) and the GitHub row; the Ollama endpoint also stays shown while an enabled Ollama utility model is configured with Ollama off |
72
+ | `authentication` | Providers and models | Sign-in, accounts and local endpoints | Global | Provider sign-in, status and endpoint controls appear only for enabled providers: Claude group (Default and additional Native accounts, then CLI sign-in), Codex accounts and profiles, Cursor, Antigravity CLI and GEMINI FOR RESEARCH (separate sign-in for Gemini researchers, shown when Antigravity CLI is enabled and its sandbox check passes; on Windows and macOS a note says Gemini for Research is Linux-only), Ollama endpoint and discovery, LM Studio endpoint, Strata endpoint, DeepSeek through Xolotl, and the Ollama, llama.cpp, LM Studio and Strata rows. Always shown: Ollama compaction utility model (compaction summaries, session titles) and the GitHub row; the Ollama endpoint also stays shown while an enabled Ollama utility model is configured with Ollama off |
73
73
  | `llamacpp-catalog` | Providers and models | llama.cpp model registry | Global | llama.cpp registry editor and preload (shown when llama.cpp is enabled and installed) |
74
74
  | `catalog` | Providers and models | Model catalog | Global | Model catalog editor |
75
75
  | `native-subagents` | Agents and clusters | Claude Native sub-agents | Global defaults, including existing workflows | Maximum running at once, maximum starts per turn, sub-agent model and Background sub-agents (Allowed or Off); each control opens this section from contextual help |
@@ -86,6 +86,11 @@ Sections: 29.
86
86
  | `app-window-browser` | Advanced | App window browser | Global | Automatic (first found, preserving the existing preference), a detected installation/channel, or another program name or path; used by `arco open`, the Arco shortcut and the explorer window; a missing choice falls back to Automatic |
87
87
  | `cli-versions` | Advanced | CLI and runtime versions | Global | Arco running version, latest release, CHECK NOW, update action or copyable command, Check for new releases, Updating Arco link; Claude, Codex CLI and Ollama daemon versions, plus the providers popover for available provider updates |
88
88
 
89
+ Claude Native profiles are available in this Settings group and in Connections > Claude.
90
+ Use ADD NATIVE ACCOUNT and SAVE ACCOUNT, then use LOGIN for that profile. Use RENAME ACCOUNT
91
+ to change its display name and LOGOUT to sign out of it. In a Native tab or cluster member,
92
+ CLAUDE NATIVE ACCOUNT selects the sign-in. Existing unbound Native tabs keep Default.
93
+
89
94
  ## Phone view
90
95
 
91
96
  The phone view at `/mobile` has one setting of its own: **THIS PHONE**, shown after the category list in Settings on a phone. It sets the text size of the phone view (100%, 110% or 120%) for this browser only; the workbench's Interface text size does not apply there. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
@@ -158,7 +163,7 @@ folders, files, saved sessions or trust decisions. Missing locations stay listed
158
163
 
159
164
  ## Auto-compaction policy
160
165
 
161
- The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Other transports cannot use this policy. Unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
166
+ The workflow CONFIG panel has a worker auto-compaction policy and the cluster panel has a cluster default. For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Choose an explicit on or off override or inherit the cluster default; Provider is the default: Claude Native and Ollama use Arco compaction near 90%, while Claude CLI and Codex use their own compaction. Auto-handoff is off by default. The threshold is an integer from 30% through 95%, evaluated for each worker independently. Claude Native and Codex app-server use a fresh completed-turn reading; Codex also needs an existing thread. Ollama checks its estimated request size against the configured backend context window before dispatch. Gemini uses a fresh completed-turn reading and the CLI's /compact command. Isolated Gemini researchers use manual COMPACT in their sandboxes. After an attempt, Arco waits for a fresh reading more than five percentage points below the threshold before trying again in that session. Provider and Off keep Gemini's usual automatic compaction. Other transports cannot use this policy. For Arco-scheduled compactions, unknown context never triggers a summary. For Claude Native and Codex app-server, after a successful automatic compaction, the next completed turn at or above the threshold can compact again. If three successive automatic compactions are each followed by a turn still at or above the threshold, a notice explains that compaction will continue. The notice can appear again after a turn ends below the threshold or COMPACT succeeds. A failed attempt waits for a reading more than five percentage points below the threshold before retrying. Fold creates a deterministic digest; Handoff starts a fresh session. Claude Native CONFIG > ADVANCED has the optional Claude API compaction (beta) toggle; it is separate and off for new tabs.
162
167
 
163
168
  For Ollama, the new policy summarizes only verified completed executions outside the retained tail. The summary boundary is saved atomically in the workflow's `ollama-compact-boundary.json`, bound to project, workflow, session epoch and source events. Later turns and server restarts reuse a matching summary without rewriting raw events. Queued input is replayed in execution order, with the current prompt supplied once. Unverifiable legacy logs, partial or cancelled executions, changed source and unresolved input defer summarization with a notice. Ineffective or failed attempts wait for a lower context reading before retrying. The enabled policy defers automatic Handoff so it cannot rotate the session before the next pre-dispatch check; manual Handoff remains available. Explicit Off stops automatic compaction, including the legacy global automatic setting. Returning to Provider uses the 90% default unless an earlier global Ollama enabled or threshold setting is saved, in which case that setting remains in force. Manual COMPACT remains a next-turn action and uses the same durable boundary when a worker or Provider policy is active.
164
169
 
@@ -243,7 +248,7 @@ beyond the limit is reported in the conversation. Pinning a project skill
243
248
  explicitly approves that text even with project trust off. Save an EDITABLE
244
249
  COPY before pinning a built-in skill. No pins are added by default.
245
250
 
246
- Skill descriptions can be up to 300 characters. Settings > SKILLS lists the built-in skills with an OPERATOR or MODEL badge, TURN OFF and TURN ON. The composer SKILLS menu runs them or creates an EDITABLE COPY. A project or global skill with the same name replaces the built-in. Operator-run (slash): grill-me, grill-with-docs, wait-what, retro; Architecture review via `/improve-codebase-architecture`. Model-invoked (manifest / MODEL badge): proportionate-testing (Arco-owned), grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype, writing-for-agents. `proportionate-testing` controls how much to test; `tdd` controls how to write one test. Keep it on to ask agents for one test per real fault and operator approval before new suites, gates, tooling or CI checks. Built-in third-party skills and their license are listed in [THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES).
251
+ Skill descriptions can be up to 300 characters. Settings > SKILLS lists the built-in skills with an OPERATOR or MODEL badge, TURN OFF and TURN ON. The composer SKILLS menu runs them or creates an EDITABLE COPY. A project or global skill with the same name replaces the built-in. Operator-run (slash): grill-me, grill-with-docs, wait-what, retro, code-review; Architecture review via `/improve-codebase-architecture`. Model-invoked (manifest / MODEL badge): proportionate-testing (Arco-owned), grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype, writing-for-agents. `proportionate-testing` controls how much to test; `tdd` controls how to write one test. Keep it on to ask agents for one test per real fault and operator approval before new suites, gates, tooling or CI checks. Built-in third-party skills and their license are listed in [THIRD_PARTY_NOTICES](../THIRD_PARTY_NOTICES).
247
252
 
248
253
  ## Save outcomes and rapid edits
249
254