arco-workbench 0.1.7 → 0.1.9
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.
- package/CONTRIBUTING.md +63 -12
- package/README.md +21 -17
- package/client/dist/assets/{PhosphorBackdrop-DVQdBrTw.js → PhosphorBackdrop-DRu16-Is.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BfSs2tB4.js → ThemedBackgroundShaderImpl-BLdwwQ4D.js} +1 -1
- package/client/dist/assets/{XtermView-DaMjC8Ny.js → XtermView-Xk7_9JaH.js} +1 -1
- package/client/dist/assets/{galleryEditor-BCQnXj7R.js → galleryEditor-CI8ClzBa.js} +1 -1
- package/client/dist/assets/{index-DD9kFGsF.css → index-BEFgrUJJ.css} +1 -1
- package/client/dist/assets/{index-COfbHCYv.js → index-C7WzZfsr.js} +257 -255
- package/client/dist/index.html +2 -2
- package/client/src/App.tsx +2 -0
- package/client/src/components/ChatMessage.tsx +33 -8
- package/client/src/components/ChatModeView.tsx +2 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +124 -0
- package/client/src/components/ClusterRightPanel/index.tsx +4 -0
- package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
- package/client/src/components/CodexLateCommand.tsx +34 -0
- package/client/src/components/DialogShell.tsx +2 -0
- package/client/src/components/MemberCard.tsx +4 -1
- package/client/src/components/MemberPane.tsx +3 -1
- package/client/src/components/NeedsYouBadge.tsx +3 -3
- package/client/src/components/PhoneUpload.tsx +288 -0
- package/client/src/components/PrimaryStatus.tsx +14 -6
- package/client/src/components/ProviderReleasesModal.tsx +8 -4
- package/client/src/components/ProvidersPopover.tsx +28 -23
- package/client/src/components/RuntimeStateBanner.tsx +5 -0
- package/client/src/components/SettingsPanel.tsx +2 -2
- package/client/src/components/SkillEditorDialog.tsx +2 -2
- package/client/src/components/SkillsSettings.tsx +21 -4
- package/client/src/components/TabBar.tsx +91 -9
- package/client/src/components/TerminalInput.tsx +15 -11
- package/client/src/components/TranscriptSendDialog.tsx +12 -8
- package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
- package/client/src/components/WorkflowView.tsx +2 -0
- package/client/src/components/clusterNeedsYou.ts +11 -18
- package/client/src/explorer/ArtifactsLens.tsx +37 -28
- package/client/src/explorer/ExplorerApp.tsx +5 -4
- package/client/src/explorer/types.ts +8 -3
- package/client/src/help/content/cluster.tsx +48 -17
- package/client/src/help/content/composer.tsx +40 -1
- package/client/src/help/content/header.tsx +18 -1
- package/client/src/help/content/misc.tsx +9 -1
- package/client/src/help/content/settings.tsx +18 -4
- package/client/src/help/content/tabbar.tsx +5 -0
- package/client/src/help/manualSections/actions.tsx +31 -0
- package/client/src/help/manualSections/clusters.tsx +44 -20
- package/client/src/help/manualSections/configuration.tsx +20 -0
- package/client/src/help/manualSections/gettingStarted.tsx +4 -4
- package/client/src/help/manualSections/maintenance.tsx +25 -6
- package/client/src/help/manualSections/powerFeatures.tsx +3 -2
- package/client/src/help/manualSections/providers.tsx +32 -8
- package/client/src/help/manualSections/troubleshooting.tsx +2 -1
- package/client/src/help/manualSections/workflows.tsx +12 -0
- package/client/src/help/manualSections/workspace.tsx +36 -0
- package/client/src/stores/appStore.ts +7 -0
- package/client/src/stores/appStore.types.ts +4 -0
- package/client/src/styles/global.css +109 -0
- package/client/src/utils/phoneTheme.ts +38 -0
- package/client/src/utils/phoneUploadApi.ts +10 -0
- package/client/src/utils/transcriptWorkerRequest.ts +24 -0
- package/client/src/ws/handleServerMessage.ts +31 -8
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CLIENT.md +16 -9
- package/docs/FEATURES.md +13 -7
- package/docs/GETTING_STARTED.md +12 -6
- package/docs/GOTCHAS.md +2 -1
- package/docs/INDEX.md +1 -1
- package/docs/OPERATIONS.md +213 -52
- package/docs/PERSISTENCE.md +7 -2
- package/docs/PRIMITIVES.md +42 -0
- package/docs/PROTOCOL_CLUSTER.md +51 -4
- package/docs/PROTOCOL_PRIMITIVES.md +39 -0
- package/docs/PROVIDERS.md +84 -13
- package/docs/SETTINGS.md +29 -3
- package/docs/TASK_LEDGER.md +7 -15
- package/native/linux-x64/manifest.json +1 -1
- package/native/win32-x64/manifest.json +1 -1
- package/node_modules/@arco/shared/dist/clusterCoordination.d.ts +2 -0
- package/node_modules/@arco/shared/dist/clusterCoordination.js +5 -1
- package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -1
- package/node_modules/@arco/shared/dist/protocol/index.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/index.js +1 -0
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +4 -3
- package/node_modules/@arco/shared/dist/protocol/models.js +26 -2
- package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +13 -1
- package/node_modules/@arco/shared/dist/protocol/tasks.d.ts +4 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/node_modules/@arco/shared/dist/protocol/transcriptWorker.js +2 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.d.ts +1 -0
- package/node_modules/@arco/shared/dist/runtimeVersions.js +14 -0
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/arco.mjs +1 -1
- package/scripts/packaging/native-repair.mjs +32 -4
- package/server/dist/atomicFile.js +1 -2
- package/server/dist/capabilities.d.ts +5 -2
- package/server/dist/capabilities.js +59 -9
- package/server/dist/cliUpdateDecision.d.ts +1 -1
- package/server/dist/cliUpdateDecision.js +5 -3
- package/server/dist/clusterDirector.js +2 -1
- package/server/dist/clusterPeerOps.js +14 -8
- package/server/dist/clusterProgress.js +1 -1
- package/server/dist/clusterRehydrate.js +2 -0
- package/server/dist/clusterSkills.d.ts +13 -0
- package/server/dist/clusterSkills.js +81 -0
- package/server/dist/clusterSnapshots.js +2 -0
- package/server/dist/clusterStore.d.ts +7 -2
- package/server/dist/clusterStore.js +42 -1
- package/server/dist/diagnostics/codeSkew.js +1 -0
- package/server/dist/eventLog.d.ts +7 -0
- package/server/dist/eventLog.js +70 -13
- package/server/dist/explorerDocs.d.ts +10 -6
- package/server/dist/explorerDocs.js +75 -34
- package/server/dist/historyLimits.d.ts +1 -0
- package/server/dist/historyLimits.js +3 -0
- package/server/dist/http/attachmentUpload.d.ts +13 -0
- package/server/dist/http/attachmentUpload.js +38 -0
- package/server/dist/http/browserWorktrees.d.ts +23 -0
- package/server/dist/http/browserWorktrees.js +120 -0
- package/server/dist/http/phoneUploadDrafts.d.ts +13 -0
- package/server/dist/http/phoneUploadDrafts.js +125 -0
- package/server/dist/http/phoneUploadListener.d.ts +17 -0
- package/server/dist/http/phoneUploadListener.js +81 -0
- package/server/dist/http/phoneUploadNetwork.d.ts +9 -0
- package/server/dist/http/phoneUploadNetwork.js +106 -0
- package/server/dist/http/phoneUploadPage.d.ts +2 -0
- package/server/dist/http/phoneUploadPage.js +136 -0
- package/server/dist/http/phoneUploadRouteHistory.d.ts +4 -0
- package/server/dist/http/phoneUploadRouteHistory.js +72 -0
- package/server/dist/http/phoneUploadRoutes.d.ts +4 -0
- package/server/dist/http/phoneUploadRoutes.js +419 -0
- package/server/dist/http/phoneUploadTheme.d.ts +17 -0
- package/server/dist/http/phoneUploadTheme.js +96 -0
- package/server/dist/http/projectBinding.d.ts +1 -0
- package/server/dist/http/projectBinding.js +3 -2
- package/server/dist/http/readConfinement.js +5 -1
- package/server/dist/http/router.js +14 -25
- package/server/dist/http/writeConfinement.js +19 -2
- package/server/dist/index.js +24 -1
- package/server/dist/jsonlLines.d.ts +4 -0
- package/server/dist/jsonlLines.js +53 -0
- package/server/dist/management/identity.js +1 -0
- package/server/dist/mcp/clusterMcpTools.js +4 -4
- package/server/dist/primitives/seedWorker.d.ts +1 -0
- package/server/dist/primitives/seedWorker.js +2 -1
- package/server/dist/project/taskLedger.d.ts +4 -0
- package/server/dist/project/taskLedger.js +7 -4
- package/server/dist/providerConversation.d.ts +1 -0
- package/server/dist/providerConversation.js +17 -0
- package/server/dist/providers/claude-native/resumeSummary.d.ts +9 -0
- package/server/dist/providers/claude-native/resumeSummary.js +102 -49
- package/server/dist/providers/claude-native/worker.js +8 -4
- package/server/dist/providers/claude.js +2 -1
- package/server/dist/providers/clusterTaskToolDefinitions.js +4 -4
- package/server/dist/providers/codex-appserver/catalog.js +16 -1
- package/server/dist/providers/codex-appserver/heldCommands.d.ts +14 -0
- package/server/dist/providers/codex-appserver/heldCommands.js +54 -0
- package/server/dist/providers/codex-appserver/index.d.ts +52 -2
- package/server/dist/providers/codex-appserver/index.js +239 -21
- package/server/dist/providers/codex-appserver/lateCommands.d.ts +62 -0
- package/server/dist/providers/codex-appserver/lateCommands.js +195 -0
- package/server/dist/providers/codex-appserver/worker.d.ts +23 -1
- package/server/dist/providers/codex-appserver/worker.js +89 -20
- package/server/dist/providers/codex.js +2 -1
- package/server/dist/providers/codexCodeMode.d.ts +2 -1
- package/server/dist/providers/codexCodeMode.js +8 -3
- package/server/dist/providers/cursor/print.js +2 -1
- package/server/dist/providers/cursor/worker.js +2 -1
- package/server/dist/providers/llamacpp.js +17 -8
- package/server/dist/providers/ollamaRecovery.js +6 -6
- package/server/dist/providers/ollamaResilience.js +3 -3
- package/server/dist/providers/ollamaTokens.js +1 -1
- package/server/dist/quota.d.ts +0 -18
- package/server/dist/quota.js +0 -44
- package/server/dist/replacementHistory.d.ts +19 -0
- package/server/dist/replacementHistory.js +49 -0
- package/server/dist/server/broadcast.d.ts +2 -1
- package/server/dist/server/broadcast.js +1 -0
- package/server/dist/server/prompts.d.ts +1 -0
- package/server/dist/server/prompts.js +6 -1
- package/server/dist/sessionJsonl.d.ts +1 -1
- package/server/dist/sessionJsonl.js +115 -40
- package/server/dist/smartPickupAdapters.js +15 -2
- package/server/dist/transcriptWorker.d.ts +34 -0
- package/server/dist/transcriptWorker.js +201 -0
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/processKill.d.ts +9 -1
- package/server/dist/workers/processKill.js +26 -10
- package/server/dist/workflowStore.d.ts +1 -0
- package/server/dist/workflowStore.js +31 -0
- package/server/dist/ws/clusterHandlers.d.ts +1 -0
- package/server/dist/ws/clusterHandlers.js +62 -26
- package/server/dist/ws/handoffHandlers.js +7 -2
- package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
- package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
- package/server/dist/ws/turnEngine.js +40 -9
- package/server/dist/ws/updatePrimaryConfig.js +27 -8
- package/server/dist/ws/workflowHandlers.d.ts +4 -1
- package/server/dist/ws/workflowHandlers.js +3 -1
- package/server/package.json +1 -1
- package/server/src/atomicFile.ts +1 -2
- package/server/src/capabilities.ts +58 -17
- package/server/src/cliUpdateDecision.ts +5 -4
- package/server/src/clusterDirector.ts +2 -1
- package/server/src/clusterPeerOps.ts +15 -9
- package/server/src/clusterProgress.ts +1 -1
- package/server/src/clusterRehydrate.ts +2 -0
- package/server/src/clusterSkills.ts +79 -0
- package/server/src/clusterSnapshots.ts +1 -0
- package/server/src/clusterStore.ts +38 -0
- package/server/src/diagnostics/codeSkew.ts +1 -0
- package/server/src/eventLog.ts +73 -13
- package/server/src/explorerDocs.ts +75 -34
- package/server/src/historyLimits.ts +2 -0
- package/server/src/http/attachmentUpload.ts +49 -0
- package/server/src/http/browserWorktrees.ts +124 -0
- package/server/src/http/phoneUploadDrafts.ts +118 -0
- package/server/src/http/phoneUploadListener.ts +96 -0
- package/server/src/http/phoneUploadNetwork.ts +117 -0
- package/server/src/http/phoneUploadPage.ts +137 -0
- package/server/src/http/phoneUploadRouteHistory.ts +73 -0
- package/server/src/http/phoneUploadRoutes.ts +398 -0
- package/server/src/http/phoneUploadTheme.ts +97 -0
- package/server/src/http/projectBinding.ts +3 -2
- package/server/src/http/readConfinement.ts +5 -1
- package/server/src/http/router.ts +12 -26
- package/server/src/http/writeConfinement.ts +13 -2
- package/server/src/index.ts +23 -0
- package/server/src/jsonlLines.ts +52 -0
- package/server/src/management/identity.ts +1 -0
- package/server/src/mcp/clusterMcpTools.ts +4 -4
- package/server/src/primitives/seedWorker.ts +3 -1
- package/server/src/project/taskLedger.ts +7 -5
- package/server/src/providerConversation.ts +15 -0
- package/server/src/providers/claude-native/resumeSummary.ts +98 -50
- package/server/src/providers/claude-native/worker.ts +8 -4
- package/server/src/providers/claude.ts +2 -1
- package/server/src/providers/clusterTaskToolDefinitions.ts +4 -4
- package/server/src/providers/codex-appserver/catalog.ts +14 -1
- package/server/src/providers/codex-appserver/heldCommands.ts +58 -0
- package/server/src/providers/codex-appserver/index.ts +222 -20
- package/server/src/providers/codex-appserver/lateCommands.ts +225 -0
- package/server/src/providers/codex-appserver/worker.ts +85 -21
- package/server/src/providers/codex.ts +2 -1
- package/server/src/providers/codexCodeMode.ts +9 -4
- package/server/src/providers/cursor/print.ts +2 -1
- package/server/src/providers/cursor/worker.ts +2 -1
- package/server/src/providers/llamacpp.ts +18 -7
- package/server/src/providers/llamacppRecovery.ts +2 -0
- package/server/src/providers/ollamaRecovery.ts +6 -6
- package/server/src/providers/ollamaResilience.ts +3 -3
- package/server/src/providers/ollamaTokens.ts +1 -1
- package/server/src/providers/ollamaToolSubset.ts +3 -3
- package/server/src/quota.ts +0 -50
- package/server/src/replacementHistory.ts +44 -0
- package/server/src/server/broadcast.ts +2 -0
- package/server/src/server/prompts.ts +8 -1
- package/server/src/sessionJsonl.ts +92 -32
- package/server/src/smartPickupAdapters.ts +17 -3
- package/server/src/transcriptWorker.ts +182 -0
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/processKill.ts +35 -7
- package/server/src/workflowStore.ts +21 -0
- package/server/src/ws/clusterHandlers.ts +43 -25
- package/server/src/ws/handoffHandlers.ts +7 -1
- package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
- package/server/src/ws/turnEngine.ts +35 -8
- package/server/src/ws/updatePrimaryConfig.ts +25 -6
- package/server/src/ws/workflowHandlers.ts +3 -1
- package/shared/dist/clusterCoordination.d.ts +2 -0
- package/shared/dist/clusterCoordination.js +5 -1
- package/shared/dist/protocol/chat.d.ts +1 -0
- package/shared/dist/protocol/clientMessages.d.ts +3 -2
- package/shared/dist/protocol/clusters.d.ts +15 -1
- package/shared/dist/protocol/index.d.ts +1 -0
- package/shared/dist/protocol/index.js +1 -0
- package/shared/dist/protocol/models.d.ts +4 -3
- package/shared/dist/protocol/models.js +26 -2
- package/shared/dist/protocol/serverMessages.d.ts +13 -1
- package/shared/dist/protocol/tasks.d.ts +4 -0
- package/shared/dist/protocol/transcriptWorker.d.ts +47 -0
- package/shared/dist/protocol/transcriptWorker.js +2 -0
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/dist/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +14 -0
- package/shared/src/clusterCoordination.ts +7 -1
- package/shared/src/protocol/chat.ts +1 -0
- package/shared/src/protocol/clientMessages.ts +5 -0
- package/shared/src/protocol/clusters.ts +20 -6
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/models.ts +31 -5
- package/shared/src/protocol/serverMessages.ts +13 -0
- package/shared/src/protocol/settings.ts +2 -3
- package/shared/src/protocol/tasks.ts +4 -7
- package/shared/src/protocol/transcriptWorker.ts +49 -0
- package/shared/src/protocol/workflows.ts +4 -0
- package/shared/src/runtimeVersions.ts +14 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TranscriptWorkerCreateMessage, TranscriptWorkerPreviewMessage, TranscriptWorkerResultMessage } from '@arco/shared';
|
|
2
|
+
import { useAppStore } from '../stores/appStore';
|
|
3
|
+
|
|
4
|
+
const pending = new Map<string, { resolve: (result: TranscriptWorkerResultMessage) => void; reject: (error: Error) => void; timer: ReturnType<typeof setTimeout> }>();
|
|
5
|
+
|
|
6
|
+
export function requestTranscriptWorker(message: Omit<TranscriptWorkerPreviewMessage, 'requestId'> | Omit<TranscriptWorkerCreateMessage, 'requestId'>): Promise<TranscriptWorkerResultMessage> {
|
|
7
|
+
const state = useAppStore.getState();
|
|
8
|
+
if (!state.connected || !state.wsSendRaw) return Promise.reject(new Error('Reconnect before sending.'));
|
|
9
|
+
const requestId = crypto.randomUUID();
|
|
10
|
+
return new Promise((resolve, reject) => {
|
|
11
|
+
const timer = setTimeout(() => { pending.delete(requestId); reject(new Error('The request did not finish. Reconnect or refresh the preview before trying again.')); }, 30_000);
|
|
12
|
+
pending.set(requestId, { resolve, reject, timer });
|
|
13
|
+
try { state.wsSendRaw!({ ...message, requestId }); }
|
|
14
|
+
catch { clearTimeout(timer); pending.delete(requestId); reject(new Error('Reconnect before sending.')); }
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function finishTranscriptWorkerRequest(result: TranscriptWorkerResultMessage): void {
|
|
19
|
+
const entry = pending.get(result.requestId);
|
|
20
|
+
if (!entry) return;
|
|
21
|
+
clearTimeout(entry.timer); pending.delete(result.requestId);
|
|
22
|
+
if (result.error) entry.reject(new Error(result.error));
|
|
23
|
+
else entry.resolve(result);
|
|
24
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { finishClusterCreation } from '../utils/clusterCreation';
|
|
2
|
+
import { finishTranscriptWorkerRequest } from '../utils/transcriptWorkerRequest';
|
|
2
3
|
import { finishQueuedMessageEdit } from '../utils/queuedMessageEdit';
|
|
3
4
|
import { PRIMARY_PROVIDERS, isClusterDirector } from '@arco/shared';
|
|
4
5
|
import { beginPlanReview } from '../components/terminalInput/planDraft';
|
|
@@ -964,7 +965,8 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
964
965
|
role: 'ctx-divider',
|
|
965
966
|
content: `${action} (${trigger})${detail}`,
|
|
966
967
|
isStreaming: false,
|
|
967
|
-
|
|
968
|
+
eventSeq: (msg as { seq?: number }).seq,
|
|
969
|
+
timestamp: eventTime(msg) ?? Date.now(),
|
|
968
970
|
});
|
|
969
971
|
break;
|
|
970
972
|
}
|
|
@@ -1175,15 +1177,27 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1175
1177
|
}
|
|
1176
1178
|
|
|
1177
1179
|
case 'primary_tool_use': {
|
|
1180
|
+
const { itemId, lateCommand } = msg;
|
|
1181
|
+
if (itemId && lateCommand) {
|
|
1182
|
+
const { state, startedAt, waitingUntil, waiting } = lateCommand;
|
|
1183
|
+
store.setCodexLateCommands(msg.workflowId, existing => {
|
|
1184
|
+
const rest = existing.filter(item => item.itemId !== itemId);
|
|
1185
|
+
if (state === 'running' && waitingUntil > Date.now()) {
|
|
1186
|
+
rest.push({ itemId, input: msg.input, startedAt, waitingUntil, ...(waiting ? { waiting } : {}) });
|
|
1187
|
+
}
|
|
1188
|
+
return rest;
|
|
1189
|
+
});
|
|
1190
|
+
if (state !== 'finished') break;
|
|
1191
|
+
}
|
|
1178
1192
|
const existingTool = store.jobs[msg.workflowId]?.activity?.some(entry =>
|
|
1179
1193
|
entry.kind === 'tool_use' &&
|
|
1180
1194
|
((msg.itemId && entry.itemId === msg.itemId) ||
|
|
1181
1195
|
(msg.toolUseId && entry.toolUseId === msg.toolUseId)));
|
|
1182
1196
|
// Cursor ACP treats tool updates as reply-segment boundaries.
|
|
1183
1197
|
// Other providers can complete an existing tool mid-sentence.
|
|
1184
|
-
if (!existingTool || store.jobs[msg.workflowId]?.config.primaryProvider === 'cursor') splitPrimaryText(msg.workflowId);
|
|
1185
|
-
// §C1 — tool activity
|
|
1186
|
-
store.bumpPrimaryEvent(msg.workflowId, Date.now());
|
|
1198
|
+
if (!lateCommand && (!existingTool || store.jobs[msg.workflowId]?.config.primaryProvider === 'cursor')) splitPrimaryText(msg.workflowId);
|
|
1199
|
+
// §C1 — tool activity in the current turn refreshes the stuck clock.
|
|
1200
|
+
if (!lateCommand) store.bumpPrimaryEvent(msg.workflowId, Date.now());
|
|
1187
1201
|
// docs/PROVIDERS.md - count only settled tool calls.
|
|
1188
1202
|
// The 'completed'/'failed' filter avoids double-counting Codex's
|
|
1189
1203
|
// 'started'/'in_progress' deltas (which fire multiple times per
|
|
@@ -1205,7 +1219,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1205
1219
|
output: msg.output,
|
|
1206
1220
|
exitCode: msg.exitCode,
|
|
1207
1221
|
toolUseId: msg.toolUseId,
|
|
1208
|
-
at: Date.now(),
|
|
1222
|
+
at: existingTool ? Date.now() : lateCommand?.startedAt ?? Date.now(),
|
|
1209
1223
|
});
|
|
1210
1224
|
break;
|
|
1211
1225
|
|
|
@@ -1370,6 +1384,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1370
1384
|
// ghost workers and unstick the cancel button by finalizing
|
|
1371
1385
|
// streaming messages when the server isn't busy.
|
|
1372
1386
|
store.applyWorkflowSnapshot(msg.workflowId, msg.workers, msg.busy, msg.transcriptTail, msg.turnStartedAt);
|
|
1387
|
+
store.setCodexLateCommands(msg.workflowId, () => msg.codexLateCommands ?? []);
|
|
1373
1388
|
// Slot 2 — snapshot arrival is the signal that dismisses the
|
|
1374
1389
|
// per-job SYNCING gate; no-op until a disconnect resets it.
|
|
1375
1390
|
store.markSnapshotReceived(msg.workflowId);
|
|
@@ -1495,6 +1510,9 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1495
1510
|
store.setCliChanges(msg.changes);
|
|
1496
1511
|
break;
|
|
1497
1512
|
|
|
1513
|
+
case 'transcript_worker_result':
|
|
1514
|
+
finishTranscriptWorkerRequest(msg);
|
|
1515
|
+
break;
|
|
1498
1516
|
case 'capabilities_updated':
|
|
1499
1517
|
store.setCapabilities(msg.capabilities);
|
|
1500
1518
|
if (msg.updated && msg.previousVersion) {
|
|
@@ -2065,7 +2083,8 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
2065
2083
|
content: msg.content,
|
|
2066
2084
|
authRecovery: msg.authRecovery,
|
|
2067
2085
|
isStreaming: false,
|
|
2068
|
-
|
|
2086
|
+
eventSeq: (msg as { seq?: number }).seq,
|
|
2087
|
+
timestamp: eventTime(msg) ?? Date.now(),
|
|
2069
2088
|
});
|
|
2070
2089
|
break;
|
|
2071
2090
|
}
|
|
@@ -2154,8 +2173,11 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
2154
2173
|
// deterministic per msgId so a present-in-messages check makes the
|
|
2155
2174
|
// handler idempotent. Without this the chat grows unboundedly
|
|
2156
2175
|
// every restart.
|
|
2157
|
-
const existing = store.jobs[msg.workflowId]?.messages.
|
|
2158
|
-
if (existing)
|
|
2176
|
+
const existing = store.jobs[msg.workflowId]?.messages.find((m) => m.id === id);
|
|
2177
|
+
if (existing) {
|
|
2178
|
+
if (existing.peerFullContent === undefined && typeof msg.content === 'string') store.updateMessage(msg.workflowId, id, { peerFullContent: msg.content });
|
|
2179
|
+
break;
|
|
2180
|
+
}
|
|
2159
2181
|
splitPrimaryText(msg.workflowId);
|
|
2160
2182
|
const sentEntry: ChatMessage = {
|
|
2161
2183
|
id,
|
|
@@ -2163,6 +2185,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
2163
2185
|
turnStartedAt: store.jobs[msg.workflowId]?.turnStartedAt,
|
|
2164
2186
|
eventSeq: (msg as { seq?: number }).seq,
|
|
2165
2187
|
content: msg.contentPreview,
|
|
2188
|
+
...(typeof msg.content === 'string' ? { peerFullContent: msg.content } : {}),
|
|
2166
2189
|
isStreaming: false,
|
|
2167
2190
|
timestamp: 'ts' in msg && typeof (msg as { ts?: number }).ts === 'number' ? (msg as { ts: number }).ts : Date.now(),
|
|
2168
2191
|
senderWorkflowId: msg.from,
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -486,7 +486,7 @@ Opening a repo Arco hasn't seen before suppresses its project-local `CLAUDE.md`,
|
|
|
486
486
|
|
|
487
487
|
`POST /api/provider-throttle` clears an explicitly chosen provider through the central state, immediately broadcasting to connected browsers. Codex and Claude usage rechecks use existing model-free meters; a fresh headroom result clears the remembered limit through `markAvailable(provider, 'manual-probe')` unless a newer limit arrived during the read. Exhausted or unavailable results change nothing. Because provider state lacks account/model identity, neither Clear nor a recheck emits the quota-recovered notice (`announcesRecovery`); a limit still in force returns on the next turn. The browser independently hides expired rows on a one-second clock tick with two seconds of grace and accepts a fresh snapshot on reconnect.
|
|
488
488
|
|
|
489
|
-
The active execution consumer is goal-run continuation eligibility. Clearing restores future eligibility, never re-arms an already stopped run, and does not enqueue a model request. Manual turns, queues, cluster pickup and reviewer choice do not currently consult this state.
|
|
489
|
+
The active execution consumer is goal-run continuation eligibility. Clearing restores future eligibility, never re-arms an already stopped run, and does not enqueue a model request. Manual turns, queues, cluster pickup and reviewer choice do not currently consult this state. The unused prompt formatter and cross-family reviewer fallback were removed; no live routing behavior depends on them.
|
|
490
490
|
|
|
491
491
|
### System notices
|
|
492
492
|
|
package/docs/CLIENT.md
CHANGED
|
@@ -495,7 +495,7 @@ The 2/3 - 1/3 splitter width and active right-tab key persist to localStorage in
|
|
|
495
495
|
- **`ProvidersPopover`** - folds the former inline per-provider version-chip strip behind one `VERSIONS` trigger (also in Settings > CLI VERSIONS) (click-outside to close). The trigger carries a health dot (warning-color when any provider is outdated); the popover lists the chips. Chips are gated on `settings.enabledProviders` (disabled providers don't show) and un-installed CLIs, include an Ollama/llama.cpp row when reachable, and paint warning-color when the installed version is older than `capabilities.latestVersions.<p>`. Click on Claude/Codex runs the upstream installer via `POST /api/check-updates`; Ollama, Strata and Xolotl open `ProviderReleasesModal`, which receives keyboard focus on entry so Escape dismisses it. Closing returns focus to the opening chip when it remains mounted; closing VERSIONS returns focus to its button. llama.cpp opens GitHub releases. Strata remains visible while stopped using the prepared engine's `BUILD.json`; update comparison uses engine package metadata, separately from the 0.2 app/Terminal release tag. Xolotl displays checkout HEAD as a single-line `XOLOTL` row. Its modal uses recent commits when upstream has no tagged releases, displays matching HEADs as UP TO DATE without a self-comparison request, and compares distinct revisions for source changes. External GitHub links are explicit; these three rows never open a browser or install an update themselves. LOCAL STATUS labels follow the selected theme foreground while runtime state colors retain their meaning. The viewport-clamped panel is portaled below the entire wrapped header; it suppresses dot hover cards, closes on Escape/outside click, and returns focus. llama.cpp displays both semantic version and build/commit identities, using build numbers whenever latest build metadata is available; semantic versions are never substituted for missing builds. Self-contained - owns the update-check + modal state that used to live in `SystemHeader`.
|
|
496
496
|
- **`WorkflowStatusChip`** - a provider-throttling warning shown only when quota state reports a throttle. Click for affected providers, known reset times, a per-provider Clear control and Codex/Claude Recheck usage. A row stays while its recheck is pending; a recheck that shows headroom clears the notice, keeping its row and result for four seconds; exhausted or unavailable usage leaves it. Focus moves back to the chip or layout control only when it was inside the panel and its control disappeared, never while the user is typing elsewhere. Clear restores future eligibility without re-arming a stopped goal run. Known resets expire without a page refresh; a one-second client tick hides expired rows after two seconds of clock grace. Context usage remains in the worker header.
|
|
497
497
|
- **`NotificationCenter`** - the header bell (`◔ BELL`) with an unread badge. Dropdown shows the workbench-notice history + a per-category MUTE grid (checkbox -> `set_notification_mutes` via `onSetNotificationMutes`, threaded App -> SystemHeader -> `useWebSocket`). Backed by the standalone `notificationStore` (notices history + server-authoritative `muted` set + `lastSeenTs` unread marker). Always visible - even in I3 focus mode - since notices are the "agent finished / something broke" signal. Incoming `workbench_notice` also raises a transient toast via the existing top-right strip (`NotificationToasts` / `appStore.pushNotification`), not a second stack. See [`NOTIFICATIONS.md`](NOTIFICATIONS.md).
|
|
498
|
-
- **`TabBar`** - horizontal job list; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question or idle member with mail wins, then a running turn, then New reply. A Needs you dot pulses and its label says it is still working when a turn also runs. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
|
|
498
|
+
- **`TabBar`** - horizontal job list; `TabScrollRow` maps vertical wheel motion to local horizontal scrolling, preserves native horizontal gestures and zoom, reveals active tabs and keyboard-focused controls without moving mouse targets during a click, and uses ResizeObserver plus scroll events to show accessible edge buttons while overflow remains; each workflow and cluster tab carries a compact `TabStatusChip` dot (Needs you, Working, New reply; no dot for Idle, with the status available on hover and to assistive technology) from `utils/tabStatus.ts`: a pending question or idle member with mail wins, then a running turn, then New reply. A Needs you dot pulses and its label says it is still working when a turn also runs. New reply comes from `stores/tabStatusStore.ts`, which marks a tab when a turn ends while another tab or Home is showing and clears it when the tab opens (in memory only; a cluster's members mark the cluster tab). Home Continue cards use the same chip. Click a tab -> `setActiveJob`. The "+" button shows `WorkflowCreator`.
|
|
499
499
|
- **`WorkflowView`** - owns the splitter and renders `ChatPanel` + `RightPanel`. Splitter width persists per-workflow. Forwards send/cancel/review/handoff/spawn callbacks to the children. **Focus mode:** when `appStore.focusMode` is true the left (chat) column goes `flex: 1 1 100%` and the splitter + `RightPanel` are unmounted, giving the chat the full width; toggling off restores the persisted split fraction. The chat column `Panel` carries `className="no-frost"` so `html[data-frosted="1"].arco-panel.no-frost { backdrop-filter: none }` (more specific than the generic frosted-blur rule) keeps the transcript crisp over the shader - matching the cluster transcript, which is never a `Panel`.
|
|
500
500
|
- **`NorthStarBar`** - inline-editable north-star chip in the composer status line (empty -> "set a north-star..."; soft-warn 1536 / cap 2048 bytes). Mirrors `job.config.goal`; edits go through `onUpdatePrimary({ goal })`.
|
|
501
501
|
- **`ChatPanel`** - virtualized chat log. The render-side `displayMessages` memo merges sources and dedupes (see "Chat rendering pipeline" below).
|
|
@@ -578,13 +578,12 @@ Ordinary application JSON stays visible when it uses keys such as workers, state
|
|
|
578
578
|
|
|
579
579
|
```ts
|
|
580
580
|
if (sessionChat.length === 0) {
|
|
581
|
-
return job.messages
|
|
582
|
-
.filter((m) => !(m.role === 'user' && m.queued))
|
|
583
|
-
.sort((a, b) => (a.timestamp ?? 0) - (b.timestamp ?? 0));
|
|
581
|
+
return orderConversation(job.messages
|
|
582
|
+
.filter((m) => !(m.role === 'user' && m.queued)));
|
|
584
583
|
}
|
|
585
584
|
```
|
|
586
585
|
|
|
587
|
-
|
|
586
|
+
`orderConversation` keeps rows with `eventSeq` in server order and places unsequenced legacy rows by timestamp. System notices and context dividers retain the server's sequence and `eventTs` on live delivery and replay, with receive time as the fallback when an event has none. A fresh page therefore places compaction notices and later context updates between the same conversation rows, at their saved times.
|
|
588
587
|
|
|
589
588
|
**Merged path** - when `sessionChat` is populated (Claude with JSONL):
|
|
590
589
|
|
|
@@ -1121,9 +1120,13 @@ ClusterTab (App.tsx routes here when activeClusterId set)
|
|
|
1121
1120
|
|
|
1122
1121
|
**Peer-message rendering.** The store extends `ChatMessage.role` with `'peer-sent' | 'peer-received'` synthetic variants. `ws/handleServerMessage.ts` injects a synthetic ChatMessage entry on every `peer_message_sent` / `peer_message_received` event; `peer_send_rejected` becomes a `[PEER] Send rejected -> <to> (<reason>)` system row. `ChatMessage.tsx` renders these via a `PeerMessageBlock` early-return branch - colored left-border + sender label, color via stable djb2 hash of `senderWorkflowId` over an 8-color palette. Same sender = same color across the cluster. The rendering branch sits before the system-notice / handoff-seed / spawn-seed branches; ordering is load-bearing.
|
|
1123
1122
|
|
|
1123
|
+
Peer cards show a short preview. Selecting a sent or received card opens a read-only `DialogShell` with the full available text, sender, recipient and original time. The dialog preserves line breaks, scrolls long messages, and returns focus to the card on close. The selection checkbox and incoming message task action remain separate controls.
|
|
1124
|
+
|
|
1125
|
+
New `peer_message_sent` events carry their full body on the sender's workflow channel, alongside the preview. The WebSocket handler keeps it as `peerFullContent` on the synthetic `peer-sent` row; replay and pending-mail rehydration use the same workflow-scoped event. The recipient's `peer-received` row already carries its delivered body in `content`. Older sent records may contain only a preview; their dialog shows that preview and says the full body was not saved. No other workflow is read to populate the dialog.
|
|
1126
|
+
|
|
1124
1127
|
**One typing surface.** The cluster tab has no bottom broadcast composer. It opens with the director focused (the first member whose role starts with director or coordinator, else the first member) and lists the director first until the operator drags a card (a per-cluster flag in `localStorage`, `arco.clusterReordered.<id>`). The focused member's own message box is where the operator types. The empty composer's placeholder names the target: "Message the director, your main contact..." for the director, "Message <member name>..." for another member. Focus never changes on its own: the director card shows a quiet `NEW REPLY` mark when a finished reply has not been looked at, and a question toast from another member offers `GO TO DIRECTOR`. Helpers live in `components/clusterSurface.helpers.ts`.
|
|
1125
1128
|
|
|
1126
|
-
**Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the attention badge and the plan line. `NeedsYouBadge` groups WAITING, BLOCKED
|
|
1129
|
+
**Cluster composer controls (TO, NUDGE, BRIEF).** The bottom row of the focused member's message box carries the cluster controls (`ClusterComposerButtons`, props passed `ClusterTab` -> `MemberPane` -> `TerminalInput` as `clusterControls`; single-workflow tabs have none). `TO: <NAME>` is the recipient chip; it starts as the member in view and opens a dialog with a per-member checkbox list and an EVERYONE button. Several recipients make the next send a `cluster_broadcast` (server unchanged) with `recipientWorkflowIds` omitted when every member is picked, plus the same local toast (`Sent to all M members`, `Sent to K of M members`, or `Queued for K of M members`); the chip then returns to the member in view, and also resets when focus moves. State is `ClusterTab`-local (`composerRecipients`, `recipientDraft`). BRIEF in the same row opens a two-item menu, THIS WORKER or WHOLE CLUSTER (`BriefControl` with `clusterId`). The header keeps only the LAYOUT row, the attention badge and the plan line. `NeedsYouBadge` groups WAITING, BLOCKED and ASKED with stopped groups first; only the first two use the theme warning colour. With the narrow member list closed, one compact badge appears below its opener: `! <count>` counts only WAITING and BLOCKED, while optional-only ASKED items show a plain muted number; opening the list moves the same summary into its header. Choosing a task reveals BOARD and closes the member list; "Members" in the plan line opens WORKSPACE > MEMBERS in the right panel.
|
|
1127
1130
|
|
|
1128
1131
|
**NUDGE button + modal (2026-05-11).** Separate from the TO chip. NUDGE is a larger button in the composer's bottom row beside the send area (highlighted and counting, for example `NUDGE 2`, while any member has undelivered mail); click opens a per-cluster modal with a checkbox list of every member (default selection is **empty** - operator must pick recipients explicitly; this is intentional so reflex-clicking can't fan out to everyone). Each row shows the member's role chip, busy badge, and current mailbox depth (`3 MAIL`). The SEND NUDGE button is disabled until ≥1 member is picked; on submit, the modal sends a steer message to each picked member with the canned prompt `"(nudge) Check your mailbox for any pending peer messages and continue with your assignment."` and the picked `recipientWorkflowIds`. **NUDGE ALL WITH MAIL (n)** beside SEND NUDGE runs the same per-member send for every member whose `mailboxDepth` is above zero (`membersWithMail` in `client/src/utils/clusterNudge.ts`), idle or busy, without touching the checkboxes; busy members get the active reminder through steering. Disabled with the reason when n is 0. The command palette entry `Cluster: nudge all with mail` (shown while a cluster tab is active) asks the owning `ClusterTab` through `requestNudgeAll`. After SEND NUDGE or NUDGE ALL WITH MAIL, a toast reads `Nudged N members` and, when any recipients were busy, appends `(M busy: reminded to read mail when convenient)`. Esc / clicking outside closes without sending. Modal state lives in `ClusterTab`-local `nudgeSelection: Set<string> | null` (null ≡ closed).
|
|
1129
1132
|
|
|
@@ -1147,9 +1150,9 @@ ClusterTab (App.tsx routes here when activeClusterId set)
|
|
|
1147
1150
|
|
|
1148
1151
|
**Per-member primitive bar.** `MemberPane.tsx` now renders `TerminalInput` with `onReview / onHandoff / onSpawn / onUpdatePrimary / onArmPlanMode` threaded App -> ClusterTab -> MemberPane. The header ContextMeter receives `onRecalibrate`; each handler closes over the member's `workflowId` at the App level (mirrors how `WorkflowView` keys primitives on `activeJob.id`). Behavior is unchanged from the standalone primitive bar - the cluster-aware shape (HANDOFF preserves cluster membership, SPAWN-into-this-cluster as a default option, REVIEW understands peer rows) is described in the cluster primitive reference and now shipped.
|
|
1149
1152
|
|
|
1150
|
-
**`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
|
|
1153
|
+
**`MemberCard` two-line header.** Line 1 = busy/idle dot + friendly name + `IDLE` / `WORKING` tag. Line 2 = wfid 8-char prefix + optional role chip. Friendly name resolves to `wf.config.name?.trim || workflowId.slice(0, 8)` - operator-renamed members surface the rename here, the rest fall back to the wfid prefix. The role chip uses `presetForText` from [`shared/src/clusterRolePresets.ts`](../shared/src/clusterRolePresets.ts) to label known preset bodies (DIRECTOR / BUILDER / REVIEWER / RESEARCHER / TESTER / DOCUMENTER / ADVISOR / DESIGNER); free-form text labels as `CUSTOM`; an empty role hides the chip entirely. Auto-scroll-to-bottom on `bodyText` change is unchanged from the cluster grid pass.
|
|
1151
1154
|
|
|
1152
|
-
**MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the
|
|
1155
|
+
**MEMBERS sub-tab - role preset popover.** Replaces the inline role editor that used to mount under each `MemberRow`. The popover is anchored to the row's `SET` button; renders the eight preset rows (DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR, DESIGNER) + `CLEAR` + `Custom...`. ADVISOR gives a second opinion without changing files, assigning work or landing; DESIGNER owns screen layout, states, wording and accessibility and changes UI files only. The Custom... branch falls back to the inline editor (same textarea + commit semantics as before). Click-outside + Esc close the popover; both listeners attach only while open (no global leak). On commit the row shows `ROLE <preset.label>` for a preset or truncated text for custom; the button flips to `EDIT`. `EDIT` reopens the popover with the matching preset highlighted via `presetForText` (returns undefined for free-form text -> Custom... is highlighted instead).
|
|
1153
1156
|
|
|
1154
1157
|
**MEMBERS sub-tab - rename pencil.** Pencil affordance next to each member's name opens an inline editor. Commit fires `rename_workflow` via the new `renameWorkflow` helper on `useWebSocket`; empty commit clears the name (member reverts to its wfid 8-char prefix on the next `cluster_state` push). The 64-char cap is enforced server-side - see [`PROTOCOL.md_workflow`](PROTOCOL.md).
|
|
1155
1158
|
|
|
@@ -1242,6 +1245,8 @@ Automatic picks by window width: Narrow under 1500, Compact from 1500, Standard
|
|
|
1242
1245
|
- **Compact:** one-row member cards and fixed starting side widths of 250 px for the member grid and 320 px for the cluster right panel (360 px for a single tab). Cluster settings fold into a summary, the plan hint is one line, and optional composer tools move into MORE as needed.
|
|
1243
1246
|
- **Narrow:** the member grid becomes a rail of initials and the right panel a strip of buttons. Each opens its panel over the chat. Esc, CLOSE or the backdrop closes a panel.
|
|
1244
1247
|
|
|
1248
|
+
The cluster panel root has `minHeight: 0` so it can shrink inside the Narrow slide-out's flex column. Its existing body owns vertical scrolling, including the full REPLACE form; the slide-out header stays outside that scroll area. The side panel and member list keep their own bounded scroll areas.
|
|
1249
|
+
|
|
1245
1250
|
Dragged splitter positions are saved separately for each layout. Positions from the retired width band that no longer exists are ignored.
|
|
1246
1251
|
|
|
1247
1252
|
## Menus and popovers inside the window
|
|
@@ -1365,7 +1370,9 @@ MEASURE ARCO FOLDER measures Arco's own folder under the same rules, with headin
|
|
|
1365
1370
|
|
|
1366
1371
|
## Plans library
|
|
1367
1372
|
|
|
1368
|
-
ARTIFACTS loads workflow artifacts independently from project documents. Documents include readable files at the project root and under folders such as `docs/` and `Reports/`. The
|
|
1373
|
+
ARTIFACTS loads workflow artifacts independently from project documents. Documents include readable files at the project root and under folders such as `docs/` and `Reports/`. The overview skips hidden folders, build and dependency folders, and nested Git checkouts. Open a project card to include its Git-confirmed worktrees and see each document's branch or detached commit. Worktree documents open in the read-only viewer. A file link in a conversation can also open files in a worktree of that tab's repository. Arco checks Git again on open. Protected paths and worktree links that leave the checkout are refused.
|
|
1374
|
+
|
|
1375
|
+
The document scan visits at most 20,000 entries or 250 milliseconds per project, shared across its checkouts, and at most 50,000 entries or 650 milliseconds across known projects in the overview. An incomplete list keeps the documents found so far. Workflow artifacts under `.arco/workflows/<id>/artifacts` remain listed separately without a result-count cap. Each list has its own loading and empty state. A failed list shows a notice while the other results remain usable. Switch away from the window and return to retry.
|
|
1369
1376
|
|
|
1370
1377
|
ARTIFACTS > PLANS groups plans by project, remembers expanded projects and opens search matches. The current project opens by default. Repeated titles expand into versions. A group with an attached version stays in the normal list, where its unattached versions offer MARK DONE. In-use labels name attached tabs or clusters. Unattached plans with all checkboxes checked or no edits for 30 days appear under Probably finished; MARK DONE moves a selected plan to Completed. Nothing is marked done automatically. The counts follow the current filter.
|
|
1371
1378
|
|
package/docs/FEATURES.md
CHANGED
|
@@ -14,10 +14,11 @@ controls. For installation and first session, see
|
|
|
14
14
|
| Home | Start page for project locations, bookmarks, and open work | Greeting and status, start tiles, and Continue and Projects each limited to two rows of cards with Show all opening the rest (search and the location filter list every match); a Getting started card that counts any chat, session or cluster as started and can be hidden; stable project identity across relocation; cards can be pinned, archived, opened, or continued. See [Getting started](GETTING_STARTED.md) |
|
|
15
15
|
| Waiting questions | Marks structured Codex and Claude Native questions until settled | The toast opens the asking worker; cluster cards and tabs show a question indicator. |
|
|
16
16
|
| Workspace Outputs | Collects artifacts, generated-file events, and scoped exports | FILES tab **OUTPUTS** sub-tab for the active workflow or cluster. By default it shows what was made for you (generated media, top-level artifact documents, reports and exports); code edits and files in artifact subfolders sit under **All files**. **Save a copy** and **Move** can use an ordinary home folder or an approved project or media folder; on systems with POSIX permissions **Save a copy** writes an owner-only file; the result stays in the dialog; **Download** is a button. MOVE TO PROJECT reviews a copy or keeps the artifact private; large binaries are scanned for readable text only and listed as not fully scanned, as are files past the findings limit. Folder browsers and content dialogs open at sizes suited to their content, scale with the window, can be resized, and remember the chosen size (**Reset size** restores the default). Large artifact warnings offer KEEP or DISMISS; a kept artifact shows **Kept** with **UNKEEP**. See [Outputs](OUTPUTS.md) |
|
|
17
|
-
| Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic. Smart modes need an evaluator on Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See [Getting started](GETTING_STARTED.md) and [Task ledger](TASK_LEDGER.md) |
|
|
18
|
-
| One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a dot when not idle (hover for the status)
|
|
17
|
+
| Clusters | Multi-member coordinated work | Seven size-ordered templates (Pair through Large team) plus Build my own; at most one director on new work; eight role presets including **ADVISOR** (second opinion; no files, assignments or landing) and **DESIGNER** (UI files only); work size only for repeated roles; member cards default to **ROWS**; AUTO-PICKUP modes Off, Rule-based (recommended automatic), Smart Observe-only, and Smart Automatic, with **PAUSE** beside TURN OFF, **RESUME**, and **RESET BUDGET** as a separate Rule-based action. Smart modes need an evaluator on Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. See [Getting started](GETTING_STARTED.md) and [Task ledger](TASK_LEDGER.md) |
|
|
18
|
+
| One status per tab | Shows at a glance which tabs need you | Workflow and cluster tabs show a colored status dot when not idle (hover for the status). **Needs you** (warning colour) means a question waits or an idle cluster member has mail; the dot pulses while a turn is still running and is solid only when nothing is running. Home Continue cards show a word: Working, Needs you, New reply (a turn finished while you were elsewhere; cleared when you open the tab; not saved across reloads) or Idle |
|
|
19
|
+
| Peer mail in chat | Read sent and received messages | Select a PEER card to open the full available message. Older sent records may have only a saved preview. See [Cluster protocol](PROTOCOL_CLUSTER.md#peer-messaging-workflow-scoped) |
|
|
19
20
|
| Waiting mail on member cards | Shows undelivered messages per member | The member card's mail mark shows the count, delivered at the member's next turn; muted while the member is busy; highlighted when it is idle with mail, and clicking it nudges that member, after which the card reads Nudged (and the composer NUDGE button reads NUDGED n) until the member starts its turn or two minutes pass. No sounds or pop-ups |
|
|
20
|
-
| Cluster attention and board accept |
|
|
21
|
+
| Cluster attention and board accept | Shows waiting questions and blocked work | The badge names **WAITING**, **BLOCKED** and **ASKED**. A new director met sign-off closes its task by default; turn off **Board auto-done** in Settings > Agents and clusters to accept it yourself. Existing review tasks remain for **ACCEPT** or **ACCEPT ALL MET**. See [Task ledger](TASK_LEDGER.md) and [Settings](SETTINGS.md) |
|
|
21
22
|
| Utility agent | One operator-chosen provider and model for short side jobs | Settings > Agents and clusters (also offered on the last Welcome screen). Accepts only Claude with Native sign-in, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl. LM Studio, llama.cpp, Strata, and DeepSeek require the chosen model to be loaded; these requests never load or switch models. Replies that are cut off or exceed the limit are reported instead of used. Never chosen silently; **TEST** checks it; **USE UTILITY AGENT** can fill it into Smart AUTO-PICKUP, Research, document edit, and handoff summarizer pickers without changing saved choices. See [Settings](SETTINGS.md#utility-agent) |
|
|
22
23
|
| BRIEF | Short synopsis from visible activity facts | On each member card and in the composer toolbar; in a cluster tab the composer's BRIEF offers THIS WORKER or WHOLE CLUSTER. Uses the utility agent; lists the facts; sends nothing to any worker. |
|
|
23
24
|
| CATCH ME UP | Summary since the last visit or operator message | On a workflow or cluster; the utility agent writes the synopsis for the covered time range. Empty ranges offer SINCE LAST TURN, LAST HOUR and TODAY without a model call. A failed summary stays in the dialog, not in chat. Unloaded or Incognito cluster members are skipped with a note. |
|
|
@@ -31,6 +32,7 @@ controls. For installation and first session, see
|
|
|
31
32
|
| Storage report | Shows where disk space goes; clean-up only on request | In a single-worker, chat or cluster tab, **MEMORY > USAGE** in the right panel: **MEASURE STORAGE** for the project and **MEASURE ARCO FOLDER** for Arco's own folder put every byte under one heading (conversation logs, artifacts, worktrees, caches, voice models and more); **MEASURE AGAIN** refreshes. A cluster tab covers every member's conversations in the shared project folder. From anywhere, the ARTIFACTS window's **STORAGE** lens also offers **MEASURE AGAIN**. Long conversation logs are sealed into compressed pieces automatically, with nothing deleted; `arco storage unseal` writes plain logs back before installing a release older than 0.1.4 (not needed when going back to 0.1.4; see [Going back to 0.1.4](OPERATIONS.md#going-back-to-014)). **STORAGE** lists every project and Arco's folder largest first, with **KEEP** and **UNKEEP** for a whole conversation, **COMPRESS OLD LOGS**, **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** (each confirmed; kept items and plans stay), auto-archive (off by default) and a disk budget notice (100 GiB). See [Client](CLIENT.md#storage-report) and [Storage plan](STORAGE_PLAN.md) |
|
|
32
33
|
| Local runtime capacity | Limits concurrent local cluster members | Connections `localClusterCapacity` for Ollama or llama.cpp (default 1 each). See [Settings](SETTINGS.md) |
|
|
33
34
|
| Version box and update notices | Always-visible version and optional GitHub release checks | Top bar, left of the power button: running version, accent state when an update is available, opens the update dialog; toast (**OPEN RELEASE** / **DISMISS**); Settings > Advanced Arco row with **CHECK NOW**. Packaged services offer **UPDATE AND RESTART**. See [Updating Arco](OPERATIONS.md#updating-arco). To leave 0.1.5 for 0.1.4, see [Going back to 0.1.4](OPERATIONS.md#going-back-to-014). |
|
|
35
|
+
| Provider CLI updates | Update installed provider tools from PROVIDERS | Open **PROVIDERS** for version chips. Claude uses `claude update`. Codex follows its installation (`codex update` or a matching npm global package). Click **CURSOR** to run `cursor-agent update` and recheck; **CURSOR CHANGELOG** opens the CLI notes separately; the update flag reads the dated installer version when comparable. llama.cpp flags an older published build number without installing or loading a model. See [Providers](PROVIDERS.md) |
|
|
34
36
|
| Application shortcuts and `arco open` | Per-user desktop shortcut and dedicated app window | `arco setup` can install the shortcut; `arco open` / `arco open --tab` / `arco open --browser <name-or-path>`; Settings > Advanced > App window browser; `arco shortcuts add|remove`. See [Service mode](SERVICE_MODE.md) |
|
|
35
37
|
| Default appearance | New-home theme and typography defaults | Phosphor Electric Blue and Victor Mono font pack at 100% interface scale; a saved theme or font pack is left alone. See [Settings](SETTINGS.md) |
|
|
36
38
|
|
|
@@ -41,7 +43,9 @@ controls. For installation and first session, see
|
|
|
41
43
|
| Native session interop | Arco Claude-CLI / Codex-exec sessions are native CLI sessions | Start in Arco, resume in a terminal with `claude --resume <uuid>`; start in a terminal, resume in Arco. Arco owns tab state; the provider owns conversation state |
|
|
42
44
|
| Inline tool-call pills | Compact rows for primary tool calls between assistant bubbles | Claude CLI tabs (read from the Claude session file); other transports list tool calls in ACTIVITY. Bash / Read / Grep / WebFetch and similar; click to expand full JSON input; click a file path to open it in the viewer modal |
|
|
43
45
|
| Interrupt and send | Stop the current turn and send the draft next in the same conversation | **INTERRUPT & SEND** or **Ctrl/Cmd+Enter** while a Claude or Codex Agent is working; both transports per provider; queued messages run afterward; completed edits remain. Adjacent **SEND** and Enter keep ordinary steering; Alt+Enter queues a follow-up |
|
|
44
|
-
|
|
|
46
|
+
| Upload from phone | Attach photos and files from a phone on the same private network | **UPLOAD FROM PHONE** beside Attach; five-minute code; limits 10 files / 20 MiB each / 100 MiB total; default loopback starts an upload-only temporary listener; each offered `http://<ipv4>:<port>` origin shows **UNVERIFIED** then **VERIFIED BY UPLOAD**; **More info**; scan the full QR (direct connection only; Serve and reverse proxies are refused). See [Upload from phone](OPERATIONS.md#upload-from-phone) |
|
|
47
|
+
| Codex wait-and-continue | Keep a Codex turn working while a waited-on command runs | The header stays **WORKING** while that command runs; when it ends Arco continues Codex once with the result, without AUTO-PICKUP. Commands that outlive the reply keep later exits in ACTIVITY. See [Providers](PROVIDERS.md) |
|
|
48
|
+
| Mid-turn delivery and working step | Display-only turn progress | A message sent while the agent is mid-turn shows **Queued** or **Delivered** until answered. The conversation header shows the current step and elapsed time, restarts that timer when a new turn or matching step starts, and marks steps over 60 seconds as long-running. Hover over a shortened step to read it in full. Cluster member cards retain the last settled reply or tool step |
|
|
45
49
|
| Per-tab transport toggles | Choose transport per Claude or Codex tab | Claude `cli` and `native` (new homes default `native`); Codex `exec` and `app-server` (new homes default `app-server`); project and per-tab settings can select either. Reviewers and handoff seeds use CLI or exec regardless of tab transport. Cursor `print` one-shot is routed automatically for read-only primitives, not toggled. Native unlocks server-side compaction, auto-handoff, plan-mode arming, and Task subagent fan-out; Codex app-server unlocks structured `turn/interrupt` cancel and non-destructive `turn/steer` mid-turn input |
|
|
46
50
|
| Per-project configuration | Provider, model, effort, and tool allowlist per tab | Live-editable from the CONFIG tab; same-provider model/effort swaps take effect on the next turn with no session rotation |
|
|
47
51
|
|
|
@@ -57,6 +61,8 @@ controls. For installation and first session, see
|
|
|
57
61
|
| Goal run | Arms a per-tab continuation loop toward the north star | `/goal run <n>` or CONFIG; one deterministic continuation turn after each settled turn, up to `n` iterations (default 10, max 500). Stops on budget spent, turn error, provider throttle, context >=92%, or cleared north star; **RUN n/N** chip is one-click stop. Continues because budget remains, never because a model judged work unfinished. Not persisted across a server restart. See [Gotchas: goal run](GOTCHAS.md#goal-run-north-star-auto-continue) |
|
|
58
62
|
| Ultracode mode (Claude) | Sticky per-tab Claude CLI orchestration mode | **ULTRACODE** composer pill pins the tab to Claude CLI at `xhigh` effort with multi-agent **Workflow** orchestration armed so one turn can fan out and coordinate subagents; live **FLEET** panel shows running/done subagent count; per-tab web-lookup budget bounds research spend. Operator-armed and sticky until toggled off |
|
|
59
63
|
| One-click handoff | Fresh session in the same tab seeded from a structured handoff | 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. **QUICK** builds a deterministic seed; **ORIGINAL WORKER** writes a reflection; **FRESH SUMMARIZER** uses a separate worker. Seed messages collapse to a one-line `HANDOFF SEED / click to expand` pill |
|
|
64
|
+
| Copy turns to a new worker | Start a fresh Agent tab from exact recent text | TRANSCRIPT > NEW WORKER, 1-50 turns with a typed preface, any chosen folder/provider/model, server-owned preview, 32 KiB seed cap, tool/attachment receipts, no inherited pins or provider conversation |
|
|
65
|
+
| REPLACE member history | Seed a replacement from none, recent, or full history | MEMBERS > REPLACE: **NO HISTORY** (default), **RECENT HISTORY** (last 10 whole turns by default, 1 to 50, within 128 KiB), or **FULL HISTORY** (fits 512 KiB or copies the newest whole turns that fit); preview states the count before REPLACE; a partial copy adds one plain line on the new tab. See the in-app cluster manual |
|
|
60
66
|
| Spawn from here | Fork the conversation to a new tab | The agent self-reflects with session context and Arco saves its reply as a handoff; the new tab opens with that document and an optional `new direction:`; the original tab continues in parallel |
|
|
61
67
|
|
|
62
68
|
## Operator actions: review, compare, research, and plan
|
|
@@ -75,7 +81,7 @@ controls. For installation and first session, see
|
|
|
75
81
|
| RUN AS picker | Override provider/model/effort for GIT / DOCS one-offs | Unchanged: dispatches in-tab; changed: new tab opens with the picked config and runs there |
|
|
76
82
|
| Architecture review | Built-in operator-only skill that finds code that is hard to change | SKILLS > BUILT-IN > **RUN**: Arco measures largest, most-changed, untested and export-heavy files plus recorded decisions; the agent writes a report of candidates to the artifacts and changes no code. OUTPUTS > **CANDIDATES** offers **ADD TO PLAN** and **RECORD DECISION**; **EDITABLE COPY** saves your own version. Reviews and the director check the shape of a change (advisory). See [Architecture review](ARCHITECTURE_REVIEW.md) |
|
|
77
83
|
| Proportionate testing | Arco-owned model-invoked skill for choosing how much to test | Settings > SKILLS > BUILT-IN lists `proportionate-testing` with MODEL. It asks for one test per real fault, one happy-path browser check per journey, about ten minutes for the whole check and five for browsers, and operator approval before new suites, gates, tooling or CI checks. `tdd` describes how to write one test; the operator's instructions take priority |
|
|
78
|
-
| Skills | Reusable instructions for agents, project or global | Settings > SKILLS: NEW, EDIT, **IMPORT** (public GitHub link, folder or zip, every file and the security check shown first), **UPDATE** with a per-file diff, **TURN OFF**, **MOVE TO GLOBAL/PROJECT**, **DUPLICATE**, **SHARE WITH REPOSITORY** (an exception in `.arco/.gitignore`); rows show extra files, source and missing referenced skills. Composer SKILLS: APPLY ONCE, PIN TO TAB, IMPORT, built-in skills. See [Settings](SETTINGS.md) |
|
|
84
|
+
| Skills | Reusable instructions for agents, project or global | Settings > SKILLS: NEW, EDIT, **IMPORT** (public GitHub link, folder or zip, every file and the security check shown first), **UPDATE** with a per-file diff, **TURN OFF**, **MOVE TO GLOBAL/PROJECT**, **DUPLICATE**, **SHARE WITH REPOSITORY** (an exception in `.arco/.gitignore`); rows show extra files, source and missing referenced skills. Composer SKILLS: APPLY ONCE, PIN TO TAB, IMPORT, built-in skills. **PIN TO CLUSTER** pins a skill to every member or one exact saved role; the cluster **SKILLS** button beside EFFICIENCY lists and unpins them; from **CLUSTER SKILLS**, **ADD SKILL** pins to all members or one role; new and replaced members inherit cluster pins; tab, cluster and role pins share one limit of 12 unique skills and 64 KiB of text. See [Settings](SETTINGS.md) |
|
|
79
85
|
|
|
80
86
|
## Memory, knowledge, and scaffolding
|
|
81
87
|
|
|
@@ -115,7 +121,7 @@ controls. For installation and first session, see
|
|
|
115
121
|
| HISTORY tab | Read-only timeline of seq-stamped narrative events | **MEMORY > HISTORY** in the right panel (single-worker, chat and cluster tabs; a cluster tab follows the member in view). Actions: **LABEL THIS** (pin free-text label to `events.jsonl`); **REVIEW FROM HERE** (since-event Review); **SPAWN FROM HERE** (cutoff-aware Spawn so the new tab boots truncated at the chosen seq); **REWIND CONVERSATION** (move live head back to a chosen seq; current branch kept and returnable; fork markers inline; REWINDS filter). Works for Claude Native; for other providers and the Claude CLI the button stays visible, disabled, with the reason beside it |
|
|
116
122
|
| Tasks (Claude Native) | First-class workflows for Native `Task` tool sub-agents | Scoped to parent; inline `TaskCard`; TASKS sub-tab gated on non-empty children; parallel `Task` calls dispatch concurrently; depth-1 cap by design |
|
|
117
123
|
| Built-in GitHub browser | Browse repos, trees, source, PRs, issues, Actions runs, and clone | Authenticated via `gh auth`; GITHUB tab |
|
|
118
|
-
| ARTIFACTS explorer | Chromeless window for project artifacts, plans and storage across projects | Header **ARTIFACTS**: ARTIFACTS home (per-project cards + recent-across-all strip); CHANGED FILES, PLANS, STORAGE and TREE. PLANS groups projects, folds repeated titles, names attached tabs and offers MARK DONE for probably finished plans. STORAGE lists disk use by project and offers KEEP and UNKEEP for a whole conversation, COMPRESS OLD LOGS, ARCHIVE, RESTORE, DELETE and EMPTY SCRATCH, each after a confirmation. ARTIFACTS, CHANGED FILES and TREE are read-only. CHANGED FILES lists files changed by any program in the last 48 hours and adds current ledger attribution when available; Results truncated marks an incomplete sample. Zero model authority. See [Documentation index](INDEX.md) |
|
|
124
|
+
| ARTIFACTS explorer | Chromeless window for project artifacts, plans and storage across projects | Header **ARTIFACTS**: ARTIFACTS home (per-project cards + recent-across-all strip); CHANGED FILES, PLANS, STORAGE and TREE. Open a project card to list Git-confirmed worktree documents with each file's branch or detached commit; conversation links can open ordinary files in those worktrees (Git checked again on open). PLANS groups projects, folds repeated titles, names attached tabs and offers MARK DONE for probably finished plans. STORAGE lists disk use by project and offers KEEP and UNKEEP for a whole conversation, COMPRESS OLD LOGS, ARCHIVE, RESTORE, DELETE and EMPTY SCRATCH, each after a confirmation. ARTIFACTS, CHANGED FILES and TREE are read-only. CHANGED FILES lists files changed by any program in the last 48 hours and adds current ledger attribution when available; Results truncated marks an incomplete sample. Zero model authority. See [Documentation index](INDEX.md) and [Client](CLIENT.md) |
|
|
119
125
|
|
|
120
126
|
## Media, chrome, and themes
|
|
121
127
|
|
|
@@ -134,7 +140,7 @@ controls. For installation and first session, see
|
|
|
134
140
|
| --- | --- | --- |
|
|
135
141
|
| API resilience | Catch and retry Claude CLI overload envelopes | `overloaded_error` and `{"type":"error"}` surfaced as a system notice; retried with 15s/30s/60s backoff up to 3 attempts (same session id, idempotent) |
|
|
136
142
|
| Concurrent-writer guard | Detect external native CLI writes to an open session | Non-`sdk-cli` writes fire a chat warning; Arco refuses new turns for 60s rather than corrupt conversation state. Recover via Handoff |
|
|
137
|
-
| Long-session friendly | Tail-first chat hydration | Last 200 entries first; **LOAD EARLIER MESSAGES** pill; scroll position preserved across paging. Links open in a new tab so a clicked URL never navigates Arco away |
|
|
143
|
+
| Long-session friendly | Tail-first chat hydration and large-history bounds | Last 200 entries first; **LOAD EARLIER MESSAGES** pill; scroll position preserved across paging. Links open in a new tab so a clicked URL never navigates Arco away. Claude CLI session loading handles histories around 2 GB. Claude Native rebuilds at most 1 GiB of uncached history in one parse; a refused or failed rebuild adds one notice and keeps earlier messages visible in the tab |
|
|
138
144
|
| Safety rails on worker processes | Bound runaway worker output and memory | 50 MB output cap per turn (`ARCO_MAX_WORKER_OUTPUT_BYTES`); 32 GB tree-RSS auto-kill (`ARCO_RSS_KILL_BYTES`); process-tree cleanup on cancel |
|
|
139
145
|
| Review safe-mode gate (Claude Native) | Pause sensitive tool calls for operator review | Operator-armed per-tab gate (CONFIG -> REVIEW SAFE-MODE, default off) on `Bash`, `KillShell`, writes outside the project, `git push` / `reset --hard` / `clean -fd`; editable proposal card for review, edit-then-approve, or rejection. Durable across server restart; standing "approve all like this" with live re-evaluation against a non-lossy signature |
|
|
140
146
|
| Project-trust gate | Suppress untrusted project instruction files until trusted | Freshly opened or cloned repo `CLAUDE.md`, project skills (`.arco/skills/`), and `.arco/settings.json` suppressed until trusted. Composer shows UNTRUSTED PROJECT with **TRUST** / **NEVER**; decision in `~/.arco/trust.json`, reversible |
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -42,7 +42,7 @@ offers Genesis. A new user sees a **Getting started** card until a provider,
|
|
|
42
42
|
project folder, and first conversation (any chat, session or cluster) are available; **HIDE** keeps the card hidden on this browser. Without browser storage, Home still works and HIDE applies until the Home view reloads.
|
|
43
43
|
|
|
44
44
|
**Continue** lists open work, with questions waiting for an answer first and the
|
|
45
|
-
current step for running work. Each Continue card shows a status word: Working, Needs you, New reply (a turn finished while you were elsewhere) or Idle. Tabs show a status dot; hover over a tab for its status. Idle has no dot. **Resume** returns to a tab. Two rows show at
|
|
45
|
+
current step for running work. Each Continue card shows a status word: Working, Needs you, New reply (a turn finished while you were elsewhere) or Idle. Tabs show a status dot; hover over a tab for its status. Needs you stays the attention colour and pulses while a turn is still running; the dot is solid only when nothing is running. Idle has no dot. **Resume** returns to a tab. Two rows show at
|
|
46
46
|
first; **Show all** opens the rest in a bounded scrolling area.
|
|
47
47
|
|
|
48
48
|
The project grid lists available folders alphabetically in two rows; **Show all** opens the rest in a bounded scrolling area, and a search shows every match. Filter it by
|
|
@@ -143,8 +143,9 @@ See [Updating Arco](OPERATIONS.md#updating-arco). To clear every older copy
|
|
|
143
143
|
before a fresh install, see
|
|
144
144
|
[Before a fresh install: remove older copies](OPERATIONS.md#before-a-fresh-install-remove-older-copies).
|
|
145
145
|
|
|
146
|
-
`arco setup`
|
|
147
|
-
the local URL. Use `arco start` for a
|
|
146
|
+
`arco setup` prints the package version it runs, then asks before installing the
|
|
147
|
+
per-user service, starts it, and opens the local URL. Use `arco start` for a
|
|
148
|
+
foreground run. Use
|
|
148
149
|
`arco service install|uninstall|start|stop|restart|status|logs|refresh` to manage the
|
|
149
150
|
service directly.
|
|
150
151
|
|
|
@@ -152,9 +153,10 @@ If npm reports `EACCES` for a global install on Linux or macOS, use nvm or a
|
|
|
152
153
|
user-owned npm prefix (for example under Homebrew's Node, or a prefix you own
|
|
153
154
|
under your home directory). On Windows, run `arco.cmd` when the PowerShell
|
|
154
155
|
execution policy blocks the shim. On Windows, `EEXIST` on an existing `arco`
|
|
155
|
-
launcher
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
launcher can be caused by an earlier package or a linked checkout. Check the
|
|
157
|
+
active npm prefix and launcher targets in
|
|
158
|
+
[Windows install and launcher recovery](OPERATIONS.md#windows-install-and-launcher-recovery).
|
|
159
|
+
If `arco doctor` reports missing or incompatible native modules, install the
|
|
158
160
|
platform build tools and run:
|
|
159
161
|
|
|
160
162
|
```bash
|
|
@@ -288,6 +290,10 @@ work or start a session from a project card. The full control map is in
|
|
|
288
290
|
5. Select **LAUNCH WORKFLOW**, wait for the provider to connect, then send a
|
|
289
291
|
small request in the composer.
|
|
290
292
|
|
|
293
|
+
To attach a photo or file from a phone on the same private network without
|
|
294
|
+
opening the full workbench, use **UPLOAD FROM PHONE** beside Attach. Prefer the
|
|
295
|
+
worked paths under [Upload from phone](OPERATIONS.md#upload-from-phone).
|
|
296
|
+
|
|
291
297
|
### Chat without project tools
|
|
292
298
|
|
|
293
299
|
For a plain saved conversation without file or project tools, choose **CHAT** in
|
package/docs/GOTCHAS.md
CHANGED
|
@@ -446,7 +446,7 @@ The N3 ops (`framegrab` / `gif` / `geometry` / `speed` / `gain` / `spectrogram`
|
|
|
446
446
|
|
|
447
447
|
- **NEVER cool the only/last healthy backend (the load-bearing guard).** `reportFailure` in `ollamaResilience.ts` skips the cooldown when `healthyServingCount <= 1` and emits a `cooldown_skip_last` event instead. Cooling your sole remaining host is self-sabotage: the operator then sees "no backend available" when the host was about to recover (litellm's SINGLE_DEPLOYMENT rule). We keep using it and let the per-request error surface. The caller MUST count healthy serving backends *including* the just-failed host (the guard asks "would cooling this strand the operator?") - `ollama.ts` counts with `isBackendCooled` over the serving set. Don't "simplify" the guard away or move the count to *after* recording the failure.
|
|
448
448
|
- **400 (context overflow) must NOT cool the backend.** `classifyOllamaError` returns `{retryable:false, cooldown:false}` for any 4xx except 429. A 400 is the transcript's fault, not the host's - context-window fallback owns that path. Cooling a host on a 400 would penalize a perfectly healthy daemon for an oversized prompt.
|
|
449
|
-
- **Cooldown TTLs are SHORT (12s remote / 6s local), not minutes.**
|
|
449
|
+
- **Cooldown TTLs are SHORT (12s remote / 6s local), not minutes.** A single transient blip must not impose a 60s lockout after the backend has recovered. Lazy recovery - `isBackendCooled` is a pure query; expired entries are dropped on the next `selectBackend` pass. There is **no background health-prober** (rejected as overkill for 1-3 hosts); don't add one.
|
|
450
450
|
- **Zero backoff is the failover speed.** `backoffMs(hasHealthyPeer=true, …) === 0`. Jittered exponential applies ONLY when down to the last/only host. If you see slow failover, check that a healthy peer is actually being detected (serves-model + not-cooled + not-attempted), not that backoff is misconfigured.
|
|
451
451
|
- **Connect timeout is a SECOND AbortController, cleared once headers arrive.** `streamOneTurn` wires a connect-timeout controller (default 3s) and clears the timer the moment `fetch` resolves - decode stays unbounded (a real model turn can take minutes). The operator-abort bridge stays wired through streaming so a cancel still aborts the body read. The timeout abort carries `CONNECT_TIMEOUT_MARKER`; classification keys off it to tell a dead-host timeout (retryable) from an operator cancel (bail).
|
|
452
452
|
- **Mid-stream drop after bytes were emitted does NOT fail over.** Failing over to a peer after partial output already streamed would double-emit a fresh response. `streamOneTurn` stamps `_emittedBytes` on the error; `streamWithFailover` treats a mid-stream-with-output error as terminal. Pre-byte connection drops do fail over.
|
|
@@ -598,6 +598,7 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
|
|
|
598
598
|
|
|
599
599
|
## Cross-platform
|
|
600
600
|
|
|
601
|
+
- **Compare existing file and folder paths through `realpath` in tests.** macOS can expose temporary paths through `/var` while Arco stores their resolved `/private/var` paths. Resolve both sides for identity checks. When the test checks that Arco stores a resolved path, compare the stored value directly with the resolved expected path.
|
|
601
602
|
- **Arco runs on Linux (primary dev machine) and macOS (secondary).** Any server-side shell-out or spawn needs to work on both. GNU-only flags, Linux-only binaries, and `/proc/` reads without a fallback are the usual traps. Concrete rules:
|
|
602
603
|
- **No `setsid` binary.** Not installed by default on macOS. Node's `spawn(..., { detached: true })` already calls `setsid(2)` on POSIX and gives you the same new-session / no-controlling-terminal behavior for free. `nohup` is also redundant once `stdio: 'ignore'` + detach is in place. A restart path that `spawn('setsid', ...)`'d would silently `ENOENT` on Darwin.
|
|
603
604
|
- **Shell scripts target bash 3.2+.** macOS ships bash 3.2 by default. `set -uo pipefail`, POSIX traps, `||` short-circuits are all fine. Bash-4 features like associative arrays (`declare -A`), `[[ =~ ]]` with `BASH_REMATCH` quirks, `readarray`, or `${var,,}` lowercase-expansion do not round-trip.
|
package/docs/INDEX.md
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
- [MCP Registry](MCP_REGISTRY.md): MCP server registration and per-workflow access.
|
|
50
50
|
- [Resume index](RESUME_INDEX.md): saved-session titles and resume controls.
|
|
51
|
-
- [Operations](OPERATIONS.md): startup, configuration, recovery, and network exposure.
|
|
51
|
+
- [Operations](OPERATIONS.md): startup, configuration, recovery, and network exposure. Includes [Upload from phone](OPERATIONS.md#upload-from-phone) for the QR path on a private LAN or Tailscale network.
|
|
52
52
|
- [Service mode](SERVICE_MODE.md): compiled server and background service lifecycle.
|
|
53
53
|
- [Docker](DOCKER.md): container setup, project mounts, provider login, and persistence.
|
|
54
54
|
- [Remote Management](REMOTE_MANAGEMENT.md): private-network console, agent, and remote actions.
|