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
@@ -4,7 +4,7 @@ import type { HelpEntry } from './shared';
4
4
  export const rightPanelHelp: Record<string, HelpEntry> = {
5
5
  'rightpanel.outputs': {
6
6
  title: 'Workspace Outputs',
7
- body: <p>Outputs stays beside Files in Workspace. It collects this workflow's artifact files, supported generated-file events and scoped editor/media exports. Cluster Outputs includes only its members and identifies each producer. By default it lists what was made for you (generated media, top-level documents, reports and exports); tick <C>All files</C> to include code and files in artifact subfolders. Search or filter Images, Documents, Audio, Video and Other. Image entries show a wide uncropped preview above the title. Long titles clamp to two lines with <C>SHOW FULL TEXT</C> / <C>SHOW LESS</C>; the full title stays in the hover tip, File information and search. Preview and Open in editor reuse the existing viewers without changing the producing workflow context. Unsupported formats offer file information and Download. Save a copy retains the original; Move reviews source and destination, refuses collisions and preserves output links. The result stays in the dialog until it is closed. Choose Create folder to show the new-folder fields; resize or maximize the picker to see more. Closing a preview never removes an output. Missing files keep their provenance. Ordinary changed files are not automatically classified as generated. A source edit during Move keeps both files and reports a conflict.</p>,
7
+ body: <p>Outputs stays beside Files in Workspace. It collects this workflow's artifact files, supported generated-file events and scoped editor/media exports. Cluster Outputs includes only its members and identifies each producer. By default it lists what was made for you (generated media, top-level documents, reports and exports); tick <C>All files</C> to include code and files in artifact subfolders. Gemini artifacts open read-only from the producing session. Use Download to keep a copy. Search or filter Images, Documents, Audio, Video and Other. Image entries show a wide uncropped preview above the title. Long titles clamp to two lines with <C>SHOW FULL TEXT</C> / <C>SHOW LESS</C>; the full title stays in the hover tip, File information and search. Preview and Open in editor reuse the existing viewers without changing the producing workflow context. Unsupported formats offer file information and Download. Save a copy retains the original; Move reviews source and destination, refuses collisions and preserves output links. The result stays in the dialog until it is closed. Choose Create folder to show the new-folder fields; resize or maximize the picker to see more. Closing a preview never removes an output. Outputs refreshes every few seconds in place: new files appear at the top, and the list, scroll position and an open preview stay as they are. Missing files keep their provenance. Ordinary changed files are not automatically classified as generated. A source edit during Move keeps both files and reports a conflict.</p>,
8
8
  },
9
9
  'rightpanel.outputs.transfer': {
10
10
  title: 'Move or copy output', manualSection: 'archive-explorer',
@@ -16,11 +16,15 @@ export const rightPanelHelp: Record<string, HelpEntry> = {
16
16
  },
17
17
  'rightpanel.outputs.all-files': {
18
18
  title: 'All files',
19
- body: <p>Off by default. Outputs then shows only what was made for you: generated images, audio and video, documents at the top level of the artifacts folder, and reports and exports. <C>All files</C> adds working files such as code and anything inside an artifact subfolder. A note says how many are hidden.</p>,
19
+ body: <p>Off by default. Outputs then shows only what was made for you: generated images, audio and video, documents at the top level of the artifacts folder, Gemini artifacts, and reports and exports. <C>All files</C> adds working files such as code and anything inside an artifact subfolder. A note says how many are hidden.</p>,
20
+ },
21
+ 'rightpanel.outputs.reload': {
22
+ title: 'RELOAD a preview', manualSection: 'archive-explorer',
23
+ body: <p>When the file in an open preview changes, a note says so and <C>RELOAD</C> reads it again in the same window. With unsaved edits, <C>RELOAD</C> is hidden until they are saved. When the file is removed or moved, the note says so and the preview keeps the copy it loaded.</p>,
20
24
  },
21
25
  'rightpanel.outputs.name': {
22
26
  title: 'Open an output',
23
- body: <p>Click an output's name or image. Files with a preview open the viewer; types without one (PDF, office documents) open in the computer's default app. Programs and scripts are never opened from here; use <C>Download</C>.</p>,
27
+ body: <p>Click an output's name or image. Files with a preview open the viewer; types without one (PDF, office documents) open in the computer's default app. Clicking a refused program or script filename explains why Arco cannot open it. Use <C>Download</C> to save that file.</p>,
24
28
  },
25
29
  'architecture-review.candidates': {
26
30
  title: 'CANDIDATES',
@@ -360,7 +364,7 @@ export const rightPanelHelp: Record<string, HelpEntry> = {
360
364
  },
361
365
  'rightpanel.config.auto-compaction': {
362
366
  title: 'Auto-compaction',
363
- body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. After a successful between-turn automatic compaction, the next completed turn at or above the threshold can compact again. If three automatic compactions in a row each leave the context still at or above the threshold at turn end, a notice says automatic compaction keeps running and that large turns make that expected, otherwise raise the threshold or use HANDOFF. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
367
+ body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. After a successful between-turn automatic compaction, the next completed turn at or above the threshold can compact again. If three automatic compactions in a row each leave the context still at or above the threshold at turn end, a notice says automatic compaction keeps running and that large turns make that expected, otherwise raise the threshold or use HANDOFF. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Arco sends /compact when a finished Gemini turn reports context at or above the selected threshold. It waits for a drop before trying again. Isolated Gemini researchers use manual COMPACT. Off leaves Gemini&apos;s usual automatic compaction enabled.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
364
368
  manualSection: 'auto-handoff',
365
369
  },
366
370
  'rightpanel.config.claude-api-compaction': {
@@ -1,3 +1,4 @@
1
+ import { AUTOMATIC_LAYOUT_DESCRIPTION } from '../../layout/layoutRange';
1
2
  import { C } from './shared';
2
3
  import type { HelpEntry } from './shared';
3
4
 
@@ -164,7 +165,7 @@ export const settingsHelp: Record<string, HelpEntry> = {
164
165
  },
165
166
  'settings.layout': {
166
167
  title: 'Layout',
167
- body: <p>Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard from 2000 (interface pixels: window width divided by the text size). Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch and command palette make the same choice. Saved in this browser only.</p>,
168
+ body: <p>{AUTOMATIC_LAYOUT_DESCRIPTION} Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch and command palette make the same choice. Saved in this browser only.</p>,
168
169
  manualSection: 'window-layout',
169
170
  },
170
171
  'settings.message-box-size': {
@@ -315,7 +316,7 @@ export const settingsHelp: Record<string, HelpEntry> = {
315
316
  <p>
316
317
  Antigravity CLI LOG IN runs agy's own account-wide sign-in and accepts its code or return URL; a successful login updates the status. The sign-in rows show provider status and sign-in controls. Claude
317
318
  Native, Claude CLI, Codex profiles and Cursor use separate sign-ins.
318
- GitHub sign-in is also available in Connections. Cursor LOG IN runs
319
+ GitHub CLI sign-in is also available in Connections. In Settings, install a missing GitHub CLI and select CHECK CONNECTION; use LOG IN when it is signed out. If its status is unknown, run gh auth status in the server environment and check again. Recommended on Windows: install Git for Windows for local repositories and Git Bash, and GitHub CLI (gh) to connect Arco to GitHub. Cursor LOG IN runs
319
320
  the same sign-in as Connections under its row: open the link, and the
320
321
  row turns LIVE on its own. PREFER A TERMINAL? shows the command; on
321
322
  Linux it stores the sign-in where Arco reads it. If the Cursor row
@@ -355,13 +356,23 @@ export const settingsHelp: Record<string, HelpEntry> = {
355
356
  </>
356
357
  ),
357
358
  },
359
+ 'claude-native.accounts': {
360
+ title: 'Claude Native accounts',
361
+ manualSection: 'provider-claude',
362
+ body: <p>Use ADD NATIVE ACCOUNT, name the account, and use LOGIN on its row. RENAME ACCOUNT keeps the same account selected in existing tabs. LOGOUT signs out of that row. The existing Native sign-in is Default. Claude CLI has its own sign-in.</p>,
363
+ },
364
+ 'claude-native.account-picker': {
365
+ title: 'Choose a Claude Native account',
366
+ manualSection: 'provider-claude',
367
+ body: <p>Choose the account for this tab or cluster member. Arco remembers it on reopen. Old tabs without an account use Default. Sign in to a signed-out account or use CONFIG to choose another account before the next request or Genesis Assist suggestion.</p>,
368
+ },
358
369
  'settings.claude-signin': {
359
370
  manualSection: 'settings-providers',
360
371
  title: 'Claude sign-in (Native and CLI)',
361
372
  body: (
362
373
  <>
363
374
  <p>
364
- Claude has two separate sign-ins. <C>CLAUDE NATIVE (OAUTH)</C> is first because Native is the default
375
+ Claude has two separate sign-ins. <C>CLAUDE NATIVE (DEFAULT)</C> is first because Native is the default
365
376
  transport for new work; its LOGIN button signs in inside Arco and the status line says whether Native
366
377
  credentials are stored. <C>Credentials present; execution unverified</C>{' '}
367
378
  means stored credentials were detected, not that a model request succeeded.{' '}
@@ -77,7 +77,7 @@ export const tabbarHelp: Record<string, HelpEntry> = {
77
77
  },
78
78
  'tabbar.context-menu': {
79
79
  title: 'Cluster actions',
80
- body: <p>Right-clicking a tab opens cluster actions for it. Claude, Codex, Gemini, Ollama and llama.cpp tabs can join a cluster. An open Cursor tab cannot (its session started without the cluster peer tools); create Cursor members with CREATE WITH FRESH from a compatible tab or + ADD FRESH in the cluster panel. The server enforces this refusal too. CREATE WITH EXISTING makes a cluster from this tab and the open tabs ticked in the same folder. ADD TO EXISTING adds this tab to a cluster already working in that folder. CREATE WITH FRESH starts a cluster from this tab plus new workers, with the provider, model, account and effort shown in the picker, including Cursor and Gemini when enabled and connected. Working compatible tabs can join. The dialog identifies them, and a conversation notice explains that cluster tools arrive after the current turn. A steer into that turn warns the agent not to work around missing tools. Claude CLI and Codex exec apply queued input next turn; LM Studio tabs cannot join clusters. The action button names what will happen; CANCEL closes the menu without changes.</p>,
80
+ body: <p>Right-clicking a tab opens cluster actions for it. Claude, Codex, Gemini, Ollama and llama.cpp tabs can join a cluster. An open Cursor tab cannot (its session started without the cluster peer tools); create Cursor members with CREATE WITH FRESH from a compatible tab or + ADD FRESH in the cluster panel. The server enforces this refusal too. CREATE WITH EXISTING makes a cluster from this tab and the open tabs ticked in the same folder. ADD TO EXISTING adds this tab to a cluster already working in that folder. The menu opens on CREATE WITH FRESH with 1 fresh worker, so the cluster has 2 members. CREATE WITH FRESH starts a cluster from this tab plus 1 to 4 new workers. Each worker has its own card with the + ADD FRESH choices: access, provider, model, account, effort, name, role, work size, focus and member settings, including Cursor and Gemini when enabled and connected. This tab joins as it is and keeps its conversation. CLUSTER NAME names the cluster, not a worker. Working compatible tabs can join. The dialog identifies them, and a conversation notice explains that cluster tools arrive after the current turn. A steer into that turn warns the agent not to work around missing tools. Claude CLI and Codex exec apply queued input next turn; LM Studio tabs cannot join clusters. The action button names what will happen; CANCEL closes the menu without changes.</p>,
81
81
  manualSection: 'cluster-tab',
82
82
  },
83
83
  };
@@ -161,7 +161,7 @@ export const actions: Section[] = [
161
161
  <p>
162
162
  Choose HANDOFF for an unrelated task, a worker on a wrong track, a provider or model switch, or a provider without compaction. Compaction is lossy but has no fixed limit. Plans, board, goal, artifacts and Git remain outside the conversation.
163
163
  </p>
164
- <p>For Antigravity, the handoff document is saved in the project and an editable line is placed in the composer. Review it and send it to begin the new session.</p>
164
+ <p>For Gemini, ROTATE sends the saved handoff document as the opening turn. ORIGINAL WORKER uses the same Gemini model to summarize the saved transcript in a fresh reply-only session. FRESH SUMMARIZER lets you choose the writer.</p>
165
165
  <h4 className="manual-sub">Handoff choices</h4>
166
166
  <p>Choose a handoff mode:</p>
167
167
  <ul>
@@ -603,6 +603,10 @@ export const actions: Section[] = [
603
603
  no messages are selected; file access starts off. The dialog shows
604
604
  what each model will see and the approximate size. Off means no tools.
605
605
  </p>
606
+ <p>
607
+ A Claude Native account selected for a draft also handles its synthesis.
608
+ Leave <Code>Let the models read project files</Code> off when using that account.
609
+ </p>
606
610
  <Note kind="info">
607
611
  <strong>Blind mode</strong> (on by default) hides which model wrote
608
612
  which draft until you pick. <Code>PICK THIS DRAFT</Code> records your
@@ -114,9 +114,10 @@ export const clusters: Section[] = [
114
114
  tabs of those providers to gather into a new cluster around the anchor.
115
115
  </li>
116
116
  <li>
117
- <strong>CREATE WITH FRESH</strong> - spawn N (1-4) new workflows
118
- using the enabled, connected provider, model, account and effort shown in the picker. Cursor and Gemini can be selected as fresh members. Other settings inherit
119
- from the anchor. The new workflows join it under a new cluster.
117
+ <strong>CREATE WITH FRESH</strong> - the default. Spawn 1 to 4 new
118
+ workflows, 1 at first. Each has its own card with the ADD FRESH choices,
119
+ including Cursor and Gemini. Unchanged settings come from the anchor,
120
+ which keeps its conversation. CLUSTER NAME names only the cluster.
120
121
  </li>
121
122
  <li>
122
123
  <strong>ADD TO EXISTING</strong> - when one or more same-cwd
@@ -173,10 +174,10 @@ export const clusters: Section[] = [
173
174
  <h4 className="manual-sub">FRESH spawn - provider / model / effort picker</h4>
174
175
  <p>
175
176
  Both fresh-worker surfaces (CREATE WITH FRESH in the right-click
176
- menu, ADD FRESH in the cluster's MEMBERS sub-tab) expose a
177
- PROVIDER / MODEL / EFFORT picker above the COUNT input.{' '}Defaults
178
- clone the anchor (or cluster template, for ADD FRESH); the operator
179
- can override any of the three at spawn time.
177
+ menu, ADD FRESH in the cluster's MEMBERS sub-tab) expose the same
178
+ PROVIDER / MODEL / EFFORT picker.{' '}Defaults clone the anchor (or
179
+ cluster template, for ADD FRESH). ADD FRESH applies one choice to every
180
+ worker it adds; CREATE WITH FRESH shows one card per worker.
180
181
  </p>
181
182
  <h4 className="manual-sub">FRESH spawn - NAME and ROLE</h4>
182
183
  <p>
@@ -703,10 +704,11 @@ export const clusters: Section[] = [
703
704
  decision or when the evidence is thin. The Director keeps the decision.
704
705
  Role hints guide the agent; they do not enforce file access.
705
706
  </p>
706
- <p>A bare filename opened from a cluster conversation also searches the
707
- members' artifact folders if the file is not found in the project or the
708
- conversation's own artifacts. The viewer names the owner, asks which member
709
- to open when several match, or names the folders searched.</p>
707
+ <p>Open a file link in a conversation or peer message to view its resolved
708
+ absolute path and content. If several files match, choose the path to open.
709
+ If none match, the viewer names the locations searched. Audio and video have
710
+ playback controls, and PDFs display in the viewer. Use DOWNLOAD FILE when
711
+ the browser cannot display the file.</p>
710
712
  <h4 className="manual-sub">Setting one</h4>
711
713
  <ol>
712
714
  <li>
@@ -1356,6 +1358,7 @@ export const clusters: Section[] = [
1356
1358
  the time left at PAUSE. A spent Rule-based
1357
1359
  budget needs the separate RESET BUDGET action after resuming.
1358
1360
  </p>
1361
+ <p>If a provider rejects a member&apos;s conversation as too large, AUTO-PICKUP holds that member&apos;s unread mail. Other members can still wake. Pickup can resume after a completed HANDOFF, FOLD where available, REPLACE or a successful turn.</p>
1359
1362
  <p><strong>Modes</strong></p>
1360
1363
  <ul>
1361
1364
  <li>
@@ -2277,13 +2280,16 @@ export const clusters: Section[] = [
2277
2280
  A Gemini model (Antigravity CLI) can be a cluster member in any role, including Director. The notice above the conversation lists each Gemini member by name. Choose GEMINI as the provider when creating the cluster, in + ADD FRESH or in REPLACE.
2278
2281
  </p>
2279
2282
  <p>
2280
- Mail to or from a Gemini member waits until you press NUDGE on the recipient. AUTO-PICKUP, Smart pickup, busy reminders, CONTINUE DIRECTOR and messages to several members skip it. Review, edit or cancel the waiting mail in MAILBOX first; the recipient then reads it with <Code>peer_read</Code>.
2283
+ AUTO-PICKUP can wake a Gemini member for eligible incoming mail in an ordinary cluster. SAFE can ask before Gemini reads the mail. Busy reminders and CONTINUE DIRECTOR still skip it. Mail sent by Gemini and mail in Gemini Research wait for NUDGE. Review, edit or cancel waiting mail in MAILBOX. The recipient reads it with <Code>peer_read</Code>.
2281
2284
  </p>
2282
2285
  <p>
2283
- A message typed in a Gemini member&apos;s own composer also starts its turn. Its first NUDGE starts with its role, cluster instructions and available skill list, shown in the conversation. Every NUDGE asks it to read the current plan and mail before acting. The Auto-compaction control names the Gemini members it skips. To compact one manually, send <Code>/compact</Code> in its own session.
2286
+ A message typed in a Gemini member&apos;s own composer also starts its turn. Its first NUDGE starts with its role, cluster instructions and available skill list, shown in the conversation. Every NUDGE asks it to read the current plan and mail before acting.
2284
2287
  </p>
2285
2288
  <p>
2286
- Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs in the worker sandbox with the separate Gemini for research sign-in. A Gemini replacement starts with no history.
2289
+ Use COMPACT in the member&apos;s conversation to send <Code>/compact</Code>. AUTO-COMPACTION sends the same command when a finished Gemini turn reports context at or above the worker or cluster threshold. Isolated Gemini researchers use manual COMPACT. Off leaves the provider&apos;s usual automatic compaction enabled.
2290
+ </p>
2291
+ <p>
2292
+ Gemini members are not isolated outside research. A Gemini Research Director is allowed, and on Linux a Gemini researcher runs in the worker sandbox with the separate Gemini for research sign-in. REPLACE defaults to NO HISTORY. Select RECENT HISTORY or FULL HISTORY to send the previewed turns to the new Gemini member. The first turn includes its role.
2287
2293
  </p>
2288
2294
  </>
2289
2295
  ),
@@ -35,7 +35,7 @@ export const configuration: Section[] = [
35
35
  </p>
36
36
  <ol>
37
37
  <li>
38
- <strong>CLAUDE NATIVE (OAUTH)</strong> comes first, because Native is the
38
+ <strong>CLAUDE NATIVE (DEFAULT)</strong> comes first, because Native is the
39
39
  default transport for new work.
40
40
  </li>
41
41
  <li><strong>CLAUDE CLI (ANTHROPIC)</strong> comes second.</li>
@@ -46,7 +46,7 @@ export const configuration: Section[] = [
46
46
  show Native: sign-in needed.
47
47
  </p>
48
48
  <ul>
49
- <li>SIGN IN FOR NATIVE is the main action.</li>
49
+ <li>SIGN IN FOR NATIVE connects Default. ADD NATIVE ACCOUNT creates a separate sign-in.</li>
50
50
  <li>Use Claude CLI instead is offered when the CLI is signed in.</li>
51
51
  </ul>
52
52
  <Sub>Which providers start enabled</Sub>
@@ -161,8 +161,9 @@ export const configuration: Section[] = [
161
161
  <Sub>Layout</Sub>
162
162
  <p>
163
163
  <strong>Layout</strong> (Appearance) offers Automatic, Standard, Compact and
164
- Narrow. Automatic picks by window width: Narrow under 1500, Compact from 1500,
165
- Standard from 2000 (interface pixels: window width divided by the text size).
164
+ Narrow. Automatic picks by window width: Narrow under 1200, Compact from 1200,
165
+ Standard from 1380 (interface pixels: browser viewport width divided by the
166
+ Arco text scale).
166
167
  Fixed choices apply at every width. The top-bar layout switch cycles them.
167
168
  The choice is kept in this browser only.
168
169
  </p>
@@ -572,6 +573,7 @@ export const configuration: Section[] = [
572
573
  <li><Code>grill-with-docs</Code> - Use for that interview while also recording glossary terms and decisions.</li>
573
574
  <li><Code>wait-what</Code> - Use when the last message did not land and needs a re-pitch.</li>
574
575
  <li><Code>retro</Code> - Use to run a retrospective on a coding session.</li>
576
+ <li><Code>code-review</Code> - Review a specific diff against project standards and a supplied spec or linked board task and plan. The agent reports findings without changing files.</li>
575
577
  <li><Code>grilling</Code> - Use when stress-testing a plan, decision or idea (model-invoked).</li>
576
578
  <li><Code>domain-modeling</Code> - Use when discussing terminology or writing or editing a glossary or ADR (model-invoked).</li>
577
579
  <li><Code>proportionate-testing</Code> - Arco's MODEL skill for choosing how much to test: one test per real fault, one happy-path browser check per journey, and approval before new suites, gates, tooling or CI checks. It sets scope; tdd describes how to write one test. The operator's instructions take priority.</li>
@@ -377,7 +377,7 @@ export const gettingStarted: Section[] = [
377
377
  </p>
378
378
  <ul>
379
379
  <li>Display name (optional).</li>
380
- <li>Provider - only enabled, connected Claude, Codex, Cursor, Gemini, Ollama or llama.cpp. Mail to or from a Gemini member waits for your NUDGE. A saved or preset provider that is no longer connected stays visible, marked <Code>(not connected)</Code>. Creation waits until every member has an enabled, connected provider, with a reason and an Open Connections link.</li>
380
+ <li>Provider - only enabled, connected Claude, Codex, Cursor, Gemini, Ollama or llama.cpp. AUTO-PICKUP can wake a Gemini member for eligible incoming mail. A saved or preset provider that is no longer connected stays visible, marked <Code>(not connected)</Code>. Creation waits until every member has an enabled, connected provider, with a reason and an Open Connections link.</li>
381
381
  <li>Model and effort (per-provider pickers).</li>
382
382
  <li>Role - free-form, up to 120 characters (for example "director" or "tester"); at most one director.</li>
383
383
  <li>Work size - light, standard, heavy or unset. It is a hint for the director and does not change model or effort.</li>
@@ -421,7 +421,9 @@ export const gettingStarted: Section[] = [
421
421
  <strong>Apply</strong> - click a pill. The MEMBERS list is overwritten with the
422
422
  preset's members (each as a fresh draft row). If the CLUSTER NAME field is blank,
423
423
  it is seeded from the preset's name template; an already-typed name is never
424
- overwritten.
424
+ overwritten. A saved Claude family alias such as Sonnet follows that family
425
+ when its model is available. Edit the member and choose a specific model to
426
+ pin it.
425
427
  </li>
426
428
  <li>
427
429
  <strong>Delete</strong> - click the <Code>×</Code> on a pill and confirm.
@@ -46,6 +46,23 @@ export const maintenance: Section[] = [
46
46
  limited to the owner. The result stays visible until the dialog is closed.
47
47
  </p>
48
48
  <p>
49
+ Clicking a refused program or script filename in OUTPUTS explains why
50
+ Arco cannot open it. Use Download to save that file.
51
+ </p>
52
+ <p>
53
+ OUTPUTS refreshes every few seconds and ARTIFACTS when its window regains
54
+ focus or on REFRESH. Both update in place: the list, scroll position and an
55
+ open preview stay, and a failed refresh keeps the last list. When the file in
56
+ an open OUTPUTS preview changes, RELOAD reads it again; a removed file keeps
57
+ the copy already loaded.
58
+ </p>
59
+ <p>
60
+ After an Antigravity CLI turn, OUTPUTS and ARTIFACTS show the finished
61
+ files from that Gemini session. A conversation link or Preview opens the
62
+ original file. Use Download in OUTPUTS to keep a copy. Removing the
63
+ original removes it from the list. This works on Linux, macOS and Windows.
64
+ </p>
65
+ <p>
49
66
  In a save picker, navigate with Go or Enter in the path field before choosing.
50
67
  SAVE HERE and Enter in the filename field use the loaded folder. Both wait
51
68
  during loading and refuse an edited path or a failed listing.
@@ -239,6 +256,13 @@ export const maintenance: Section[] = [
239
256
  keep the snapshot identified in the result and follow its instructions.
240
257
  </p>
241
258
  <p>
259
+ Do not start or restart Arco while an update runs. On Linux this cancels the
260
+ service stop. The installed package then stays unchanged, and the result says
261
+ whether Arco is running again. If Arco was confirmed running before and
262
+ nothing else started it, the updater starts it again. Otherwise the result
263
+ names the commands to check and start it. Try the update again afterwards.
264
+ </p>
265
+ <p>
242
266
  On Windows, the service stop targets the matching service command and home
243
267
  configuration. The update refuses to proceed if the stop cannot be verified.
244
268
  </p>
@@ -463,6 +463,7 @@ export const powerFeatures: Section[] = [
463
463
  <li>Log in with <Code>gh auth login</Code> in a terminal first. The browser uses your local <Code>gh</Code> login.</li>
464
464
  <li>Choose <Code>GITHUB</Code> in the header TOOLS menu to open it.</li>
465
465
  </ol>
466
+ <p>If GitHub CLI is missing, install it in the Arco server environment, then use <Code>CHECK CONNECTION</Code>. If the status cannot be checked, run <Code>gh auth status</Code> there and check again. In Settings, LOG IN appears when GitHub CLI is signed out. Recommended on Windows: install Git for Windows for local repositories and Git Bash, and GitHub CLI (gh) to connect Arco to GitHub.</p>
466
467
  <p>The browser supports:</p>
467
468
  <ul>
468
469
  <li>Browsing your repos and orgs.</li>
@@ -41,13 +41,15 @@ export const providers: Section[] = [
41
41
  retired provider history.
42
42
  </Note>
43
43
  <p>Antigravity CLI uses the official <Code>agy acp</Code> program and its own account-wide Google sign-in. Settings, Providers and models offers LOG IN, and Connections offers Sign in to Antigravity CLI; both have a terminal fallback. A successful in-app login updates the sign-in status. Only Gemini models are offered. Agent tabs, saved Chats and cluster members can use provider tools.</p>
44
- <p>Mail to or from a Gemini cluster member waits for your NUDGE. Gemini can be a Research Director, and on Linux a researcher with the separate GEMINI FOR RESEARCH sign-in. Incognito, reviewers and automatic turns are unavailable.</p>
44
+ <p>AUTO-PICKUP can wake a Gemini member for eligible incoming mail. Mail from Gemini waits for NUDGE. Gemini can be a Research Director, and on Linux a researcher with the separate GEMINI FOR RESEARCH sign-in. Incognito and reviewers are unavailable.</p>
45
45
  <p>Arco sends the submitted text and attachments, a visible attached-plan reminder, and the available Arco skill list on the first turn. Expand the skill line in the conversation to read the list. Each Gemini sub-agent start appears as a compact line with its role and prompt.</p>
46
46
  <p>The reminder names edits since the last successful turn. TUNE MD defaults to <Code>AGENTS.md</Code>. The CLI reads the project's <Code>AGENTS.md</Code> and <Code>GEMINI.md</Code> and its installed skills itself. Arco file and plan tools, and cluster tools for members, are available through MCP. Install native skills through the CLI.</p>
47
47
  <p>Arco skill picks, tab pins and cluster pins are not sent to Gemini.</p>
48
+ <p>Gemini can pause a turn with a question card in Agent tabs, saved Chats and regular cluster members. Choose or type an answer and select SEND ANSWERS to resume the turn. Optional fields can be left blank, including when every field is optional. DISMISS declines the question. STOP cancels the turn.</p>
48
49
  <p>SAFE asks on permission requests; AUTO approves them once. Scheduling requests are refused when the CLI asks, but Arco cannot stop every action the CLI performs without a request. A Chat has its own working folder with OPEN FOLDER. The folder is not a fence: AUTO tools can reach anything the user's account can. Deleting the Chat deletes that folder and its files.</p>
49
- <p>The Versions menu shows the installed and latest Antigravity CLI versions; select the row to run its updater. Hover or focus G to see usage bars; touch or click also opens them. Each opening and REFRESH reads usage again; the previous reading stays visible while updating. COMPACT sends the CLI command to the current Gemini session and reports its context size when available.</p>
50
- <p>Token and context usage appear in Arco; remaining quota is visible in <Code>agy</Code>.</p>
50
+ <p>The ANTIGRAVITY row in Versions shows the installed and latest versions. Latest unavailable means the public release number could not be read. Select the row to run its updater and check the installed version again.</p>
51
+ <p>Hover or focus G to see usage bars; touch or click also opens them. Each opening and REFRESH reads usage again; the previous reading stays visible while updating. COMPACT sends the CLI command to the current Gemini session and reports its context size when available.</p>
52
+ <p>Token and context usage appear in Arco. G shows the quota groups returned by the CLI, with a fallback to <Code>/usage</Code> when Arco cannot read them.</p>
51
53
  <Note kind="tip">
52
54
  The most common operator pattern: <strong>Claude as primary</strong>, with
53
55
  Codex for cross-family review. Pick the family that tends to disagree most
@@ -161,7 +163,7 @@ export const providers: Section[] = [
161
163
  </li>
162
164
  <li>
163
165
  <strong>Native</strong> uses Arco&apos;s in-app Claude Native OAuth flow and
164
- stores tokens under <Code>~/.arco/auth.json</Code>.
166
+ keeps the existing sign-in as Default. Additional Native accounts have their own credentials.
165
167
  </li>
166
168
  <li>
167
169
  Native approval redirects to <Code>localhost:53692</Code>, which only
@@ -183,6 +185,9 @@ export const providers: Section[] = [
183
185
  ['LOGOUT', 'Removes the stored tokens.'],
184
186
  ]}
185
187
  />
188
+ <p>In Connections &gt; Claude or the Settings sign-in group, use ADD NATIVE ACCOUNT, name it, then use LOGIN for that profile. Use RENAME ACCOUNT to change its name. LOGOUT signs out of the selected account.</p>
189
+ <p>Choose CLAUDE NATIVE ACCOUNT when creating a tab or cluster member. CONFIG changes the account for an idle tab. The choice is kept on reopen. A tab with no saved choice uses Default.</p>
190
+ <p>If a saved account is signed out, sign into that account. This also applies when requesting a Genesis Assist suggestion. If the saved account is unavailable or was only a label, choose an account in CONFIG before sending another message.</p>
186
191
  <p>Native sign-in uses a separate random state and PKCE verifier. The verifier stays on the server and does not appear in the browser sign-in or callback URL. Local callbacks and manual URL paste use the same guarded flow.</p>
187
192
  <p>Saved Native login tokens go to Anthropic unless <Code>claudeNative.baseUrl</Code> is set in the global settings file. Project settings and an inherited <Code>ANTHROPIC_BASE_URL</Code> cannot redirect them. Workflows and the Native evaluator use the same destination; a change applies to the next turn or evaluation.</p>
188
193
  <p>Saved-login requests use only their OAuth credential. An unrelated environment API key is not forwarded by Native workflows or their evaluator. API-key-only SDK connections keep their own key and endpoint.</p>
@@ -291,6 +296,8 @@ export const providers: Section[] = [
291
296
  <p>
292
297
  Closing or handing off the tab ends background hooks and background Bash
293
298
  commands that are still running, together with the processes they started.
299
+ When a hook or shell command times out, Arco ends its running process tree,
300
+ including background Git Bash processes it can still identify.
294
301
  </p>
295
302
  <p>
296
303
  Hooks and the Bash tool run in <Code>/bin/sh</Code> on Linux and macOS and
@@ -667,8 +667,8 @@ export const workspace: Section[] = [
667
667
  <p>
668
668
  <strong>Layout</strong> (Settings, Appearance) offers Automatic,
669
669
  Standard, Compact and Narrow. Automatic picks by window width: Narrow
670
- under 1500, Compact from 1500, Standard from 2000 (interface pixels:
671
- window width divided by the text size). Fixed choices apply at every width.
670
+ under 1200, Compact from 1200, Standard from 1380 (interface pixels:
671
+ browser viewport width divided by the Arco text scale). Fixed choices apply at every width.
672
672
  The top-bar layout switch cycles the choices and shows the current layout.
673
673
  </p>
674
674
  <Table
@@ -689,7 +689,7 @@ export const workspace: Section[] = [
689
689
  <p>
690
690
  On a phone, open the <strong>/mobile</strong> address (the
691
691
  workbench in a phone-sized window links to it). It lists your tabs,
692
- with what needs you first, and shows one conversation at a time with
692
+ each with its state, and shows one conversation at a time with
693
693
  larger text. The phone's Back closes the top layer.{' '}
694
694
  <strong>PANELS</strong> opens files, plan, board, terminal,
695
695
  CATCH ME UP, Settings, Recall, Media or System full screen. Colours
@@ -0,0 +1,26 @@
1
+ import { useEffect, useState } from 'react';
2
+ import { DEFAULT_CLAUDE_NATIVE_ACCOUNT, type ClaudeCatalogSnapshot } from '@arco/shared';
3
+ import { useAppStore } from '../stores/appStore';
4
+ import { nativeAccountStatus } from '../utils/claudeAuth';
5
+
6
+ export function useClaudeNativeCatalogFor(accountRef?: string): ClaudeCatalogSnapshot | null {
7
+ const isDefault = !accountRef || accountRef === DEFAULT_CLAUDE_NATIVE_ACCOUNT;
8
+ const catalog = useAppStore(s => s.claudeNativeCatalog);
9
+ const status = useAppStore(s => nativeAccountStatus(s.authStatus?.claude, accountRef));
10
+ const revision = status?.binding.revision;
11
+ const [result, setResult] = useState<{ ref: string; revision?: string; catalog: ClaudeCatalogSnapshot }>();
12
+ useEffect(() => {
13
+ if (isDefault || !accountRef) return;
14
+ const controller = new AbortController();
15
+ fetch(`/api/claude-native/catalog?account=${encodeURIComponent(accountRef)}`, { signal: controller.signal })
16
+ .then(async response => {
17
+ if (response.ok) {
18
+ const next = await response.json() as ClaudeCatalogSnapshot;
19
+ if (!controller.signal.aborted) setResult({ ref: accountRef, revision, catalog: next });
20
+ }
21
+ })
22
+ .catch(() => {});
23
+ return () => controller.abort();
24
+ }, [accountRef, isDefault, revision]);
25
+ return isDefault ? catalog : result && result.ref === accountRef && result.revision === revision ? result.catalog : null;
26
+ }
@@ -1,11 +1,13 @@
1
1
  import { useEffect } from 'react';
2
2
  import { create } from 'zustand';
3
- import type { AuthStatusByProvider, ClaudeCredentialBinding, ClaudeNativeAuthFlow } from '@arco/shared';
3
+ import { DEFAULT_CLAUDE_NATIVE_ACCOUNT, type AuthStatusByProvider, type ClaudeCredentialBinding, type ClaudeNativeAuthFlow } from '@arco/shared';
4
4
  import { useAppStore } from '../stores/appStore';
5
+ import { nativeAccountStatus } from '../utils/claudeAuth';
5
6
  import { refreshClaudeAllowance } from '../utils/claudeAllowance';
6
7
 
7
8
  type Session = { generation: number; busy: boolean; flow?: ClaudeNativeAuthFlow; authorizationUrl?: string; hint?: string; error?: string };
8
9
  let latestStart = 0;
10
+ const latestAccountStart = new Map<string, number>();
9
11
  export const useNativeLoginStore = create<{ sessions: Record<string, Session> }>(() => ({ sessions: {} }));
10
12
  function update(owner: string, generation: number, patch: Partial<Session>): boolean {
11
13
  const state = useNativeLoginStore.getState(), previous = state.sessions[owner];
@@ -21,7 +23,7 @@ export function nativeFlowPending(flow?: ClaudeNativeAuthFlow): boolean { return
21
23
  async function acceptFlow(owner: string, generation: number, flow: ClaudeNativeAuthFlow): Promise<void> {
22
24
  const previous = useNativeLoginStore.getState().sessions[owner];
23
25
  if (previous?.generation !== generation || previous.flow?.id !== flow.id || !sameRecoveryBinding(previous.flow.bindingBefore, flow.bindingBefore)
24
- || previous.flow.workflowId !== flow.workflowId || !nativeFlowPending(previous.flow)) return;
26
+ || previous.flow.workflowId !== flow.workflowId || previous.flow.accountRef !== flow.accountRef || !nativeFlowPending(previous.flow)) return;
25
27
  if (previous.flow.status === 'exchanging' && flow.status === 'pending') return;
26
28
  if (flow.status === 'complete') {
27
29
  // Completion proves this grant was exchanged, not that a workflow ran.
@@ -30,30 +32,31 @@ async function acceptFlow(owner: string, generation: number, flow: ClaudeNativeA
30
32
  const auth = await res.json() as AuthStatusByProvider;
31
33
  const current = useNativeLoginStore.getState().sessions[owner];
32
34
  if (current?.generation !== generation || current.flow?.id !== flow.id || !nativeFlowPending(current.flow)) return;
33
- if (!sameRecoveryBinding(auth.claude?.native?.binding, flow.binding)) {
35
+ const account = nativeAccountStatus(auth.claude, flow.accountRef);
36
+ if (!sameRecoveryBinding(account?.binding, flow.binding)) {
34
37
  update(owner, generation, { flow: { ...flow, status: 'superseded' }, busy: false, error: 'Native credentials changed after this flow. Review the current sign-in.' });
35
38
  return;
36
39
  }
37
- const observed = useAppStore.getState().authStatus?.claude?.native;
38
- if (observed && auth.claude.native && observed.checkedAt > auth.claude.native.checkedAt && !sameRecoveryBinding(observed.binding, auth.claude.native.binding)) {
40
+ const observed = nativeAccountStatus(useAppStore.getState().authStatus?.claude, flow.accountRef);
41
+ if (observed && account && observed.checkedAt > account.checkedAt && !sameRecoveryBinding(observed.binding, account.binding)) {
39
42
  update(owner, generation, { flow: { ...flow, status: 'superseded' }, busy: false, error: 'A newer Native credential observation replaced this flow.' });
40
43
  return;
41
44
  }
42
45
  useAppStore.getState().setAuthStatus(auth);
43
46
  // A completed, verified sign-in is an explicit connection action.
44
- if (owner === 'settings-native' || owner === 'connections-native') {
47
+ if (owner.startsWith('native-account:')) {
45
48
  void fetch('/api/connections/check?provider=claude', { method: 'POST' }).then(async connection => {
46
49
  if (!connection.ok) return;
47
50
  const body = await connection.json();
48
51
  if (body?.settings?.enabledProviders) useAppStore.getState().setSettings(body.settings);
49
52
  }).catch(() => { /* the provider can be enabled manually */ });
50
53
  }
51
- void refreshClaudeAllowance(true).then(usage => { if (usage) useAppStore.getState().setUsage(usage); }).catch(() => {});
54
+ if (!flow.accountRef) void refreshClaudeAllowance(true).then(usage => { if (usage) useAppStore.getState().setUsage(usage); }).catch(() => {});
52
55
  }
53
56
  update(owner, generation, { flow, busy: false, error: flow.error });
54
57
  }
55
58
 
56
- export function useClaudeNativeLogin(owner: string, workflowId?: string, binding?: ClaudeCredentialBinding) {
59
+ export function useClaudeNativeLogin(owner: string, workflowId?: string, binding?: ClaudeCredentialBinding, accountRef?: string) {
57
60
  const session = useNativeLoginStore(s => s.sessions[owner]);
58
61
  useEffect(() => {
59
62
  if (!nativeFlowPending(session?.flow)) return;
@@ -77,18 +80,20 @@ export function useClaudeNativeLogin(owner: string, workflowId?: string, binding
77
80
 
78
81
  const start = async () => {
79
82
  const sequence = ++latestStart;
83
+ const accountKey = accountRef ?? DEFAULT_CLAUDE_NATIVE_ACCOUNT;
84
+ latestAccountStart.set(accountKey, sequence);
80
85
  const generation = (useNativeLoginStore.getState().sessions[owner]?.generation ?? 0) + 1;
81
86
  const sessions = { ...useNativeLoginStore.getState().sessions, [owner]: { generation, busy: true } };
82
87
  // Bound in-memory UI history; OAuth authorization URLs are never persisted.
83
88
  for (const key of Object.keys(sessions).slice(0, Math.max(0, Object.keys(sessions).length - 32))) if (key !== owner) delete sessions[key];
84
89
  useNativeLoginStore.setState({ sessions });
85
90
  try {
86
- const res = await fetch('/api/auth/claude-native/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ binding, workflowId }) });
91
+ const res = await fetch('/api/auth/claude-native/login', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ binding, workflowId, accountRef }) });
87
92
  const data = await res.json() as { flow?: ClaudeNativeAuthFlow; authorizationUrl?: string; manualReason?: string; error?: string };
88
93
  if (!res.ok || !data.flow || !data.authorizationUrl) throw new Error(data.error || 'Could not start Native sign-in.');
89
- if (sequence !== latestStart) { update(owner, generation, { busy: false, error: 'Another Native sign-in request replaced this start. Review its status.' }); return; }
94
+ if (sequence !== latestAccountStart.get(accountKey)) { update(owner, generation, { busy: false, error: 'Another Native sign-in request replaced this start. Review its status.' }); return; }
90
95
  const current = useNativeLoginStore.getState().sessions;
91
- useNativeLoginStore.setState({ sessions: Object.fromEntries(Object.entries(current).map(([key, value]) => [key, key !== owner && nativeFlowPending(value.flow) ? { ...value, flow: { ...value.flow!, status: 'superseded' }, busy: false } : value])) });
96
+ useNativeLoginStore.setState({ sessions: Object.fromEntries(Object.entries(current).map(([key, value]) => [key, key !== owner && (value.flow?.accountRef ?? DEFAULT_CLAUDE_NATIVE_ACCOUNT) === accountKey && nativeFlowPending(value.flow) ? { ...value, flow: { ...value.flow!, status: 'superseded' }, busy: false } : value])) });
92
97
  if (!update(owner, generation, { flow: data.flow, authorizationUrl: data.authorizationUrl, busy: false, hint: data.manualReason })) return;
93
98
  try { window.open(data.authorizationUrl, '_blank', 'noopener'); } catch { /* link and manual paste remain available */ }
94
99
  } catch (err) { update(owner, generation, { busy: false, error: err instanceof Error ? err.message : 'Could not start Native sign-in.' }); }
@@ -2,7 +2,7 @@ import { checkBuild } from '../buildCheck';
2
2
  import type { SpawnMemberIdentity } from '@arco/shared';
3
3
  import { useEffect, useRef, useCallback, useState } from 'react';
4
4
  import { useAppStore } from '../stores/appStore';
5
- import type { ClientMessage, ServerMessage, WorkflowConfig, ModelName, EffortLevel, ChatMessage, ProviderName, ReviewContextRef, MemberTier, ClusterEfficiencyLevel, ClusterProgressMode, ClusterTaskBoardMode, ClusterMemberProvider, LedgerTaskStatus, TaskLink, GenesisSeed, GenesisGithubParams, GenesisAssistField, GenesisAssistIntent, PreviewCaptureKind, PreviewViewport, WorkbenchNoticeCategory, ArcoSkillRef, BakeoffAttemptSpec } from '@arco/shared';
5
+ import type { ClientMessage, ServerMessage, WorkflowConfig, ModelName, EffortLevel, ChatMessage, ProviderName, ReviewContextRef, MemberTier, ClusterEfficiencyLevel, ClusterProgressMode, ClusterTaskBoardMode, ClusterMemberProvider, ClusterFreshMemberSpec, LedgerTaskStatus, TaskLink, GenesisSeed, GenesisGithubParams, GenesisAssistField, GenesisAssistIntent, PreviewCaptureKind, PreviewViewport, WorkbenchNoticeCategory, ArcoSkillRef, BakeoffAttemptSpec } from '@arco/shared';
6
6
  // Phase 6 extraction — the per-message dispatch (the former ws.onmessage body)
7
7
  // and the streaming-state singletons live under ../ws now. Importing
8
8
  // streamState here also loads its module-level useAppStore.subscribe prune
@@ -1051,7 +1051,7 @@ export function useWebSocket() {
1051
1051
  const createClusterWithFreshWorkers = useCallback((
1052
1052
  sourceWorkflowId: string,
1053
1053
  additionalCount: number,
1054
- opts?: { name?: string; provider?: ClusterMemberProvider; model?: string; effort?: string; providerAccountRef?: string },
1054
+ opts?: { name?: string; provider?: ClusterMemberProvider; model?: string; effort?: string; providerAccountRef?: string; members?: ClusterFreshMemberSpec[] },
1055
1055
  ) => {
1056
1056
  if (wsRef.current?.readyState !== WebSocket.OPEN) return;
1057
1057
  const name = opts?.name;
@@ -1060,6 +1060,8 @@ export function useWebSocket() {
1060
1060
  sourceWorkflowId,
1061
1061
  additionalCount,
1062
1062
  ...(name && name.trim().length > 0 ? { name: name.trim() } : {}),
1063
+ // One entry per fresh worker, each with its own choices.
1064
+ ...(opts?.members ? { members: opts.members } : {}),
1063
1065
  // provider/model/effort picker at spawn time. Undefined =
1064
1066
  // server inherits from anchor (legacy behaviour).
1065
1067
  ...(opts?.provider ? { provider: opts.provider } : {}),
@@ -2,8 +2,7 @@
2
2
  // browser, so a laptop and a desktop each keep their own; nothing is stored
3
3
  // per project. See docs/CLIENT.md "Layout ranges".
4
4
  //
5
- // Automatic selects Narrow under 1500 interface pixels, Compact from 1500,
6
- // and Standard from 2000. Fixed modes apply at every width.
5
+ // Automatic uses the effective interface width. Fixed modes apply at every width.
7
6
 
8
7
  import { useEffect, useState } from 'react';
9
8
 
@@ -13,8 +12,8 @@ export type LayoutRange = 'standard' | 'narrow' | 'medium';
13
12
  export const LAYOUT_MODE_KEY = 'arco.layoutMode';
14
13
  export const LAYOUT_MODE_EVENT = 'arco:layout-mode';
15
14
  export const UI_SCALE_EVENT = 'arco:ui-scale';
16
- export const COMPACT_FROM = 1500;
17
- export const STANDARD_FROM = 2000;
15
+ export const COMPACT_FROM = 1200;
16
+ export const STANDARD_FROM = 1380;
18
17
  // The mobile view (docs/CLIENT.md "Mobile view") is the separate /mobile
19
18
  // address: one conversation at a time, a directory of tabs and full-screen
20
19
  // panels, drawn from the same stores and theme as the desktop workbench.
@@ -52,7 +51,7 @@ export function isPhoneWidth(width: number, height = Infinity, coarsePointer = f
52
51
  function coarsePointer(): boolean {
53
52
  try { return typeof window !== 'undefined' && !!window.matchMedia?.('(pointer: coarse)').matches && !window.matchMedia('(any-pointer: fine)').matches; } catch { return false; }
54
53
  }
55
- export const AUTOMATIC_LAYOUT_DESCRIPTION = 'Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard from 2000 (interface pixels: window width divided by the text size).';
54
+ export const AUTOMATIC_LAYOUT_DESCRIPTION = `Automatic picks by window width: Narrow under ${COMPACT_FROM}, Compact from ${COMPACT_FROM}, Standard from ${STANDARD_FROM} (interface pixels: browser viewport width divided by the Arco text scale).`;
56
55
 
57
56
  export const LAYOUT_MODES: Array<{ id: LayoutMode; label: string; hint: string }> = [
58
57
  { id: 'auto', label: 'Automatic', hint: AUTOMATIC_LAYOUT_DESCRIPTION },
@@ -1,6 +1,7 @@
1
1
  import type { JobState } from '../stores/appStore';
2
2
  import type { ClusterStatePayload } from '@arco/shared';
3
3
  import { useAppStore } from '../stores/appStore';
4
+ import { isReplaying } from '../stores/replayContext';
4
5
 
5
6
  export function hasWaitingQuestion(job: JobState | undefined): boolean {
6
7
  return !!job && ((job.claudeNativePendingQuestionIds?.length ?? 0) > 0 || job.messages.some((m) => m.operatorQuestion?.status === 'pending'));
@@ -29,6 +30,7 @@ export function questionToastText(workflowId: string): string {
29
30
  }
30
31
 
31
32
  export function notifyQuestion(workflowId: string, requestId?: string): void {
33
+ if (isReplaying()) return;
32
34
  if (!requestId) { useAppStore.getState().pushNotification('info', questionToastText(workflowId), workflowId); return; }
33
35
  useAppStore.setState((s) => ({ notifications: [...s.notifications.slice(-9), { id: `question-${requestId}`, level: 'info', message: questionToastText(workflowId), workflowId, createdAt: Date.now() }] }));
34
36
  }