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.
- package/CONTRIBUTING.md +1 -1
- package/THIRD_PARTY_NOTICES +2 -2
- package/client/dist/assets/{PhosphorBackdrop-CHXVFLGT.js → PhosphorBackdrop-CLILIwOQ.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-Bhs4I9jA.js → ThemedBackgroundShaderImpl-B87chcb5.js} +1 -1
- package/client/dist/assets/{XtermView-CdfurwFx.js → XtermView-BP_j7WSN.js} +1 -1
- package/client/dist/assets/{galleryEditor-DYjZZ4cf.js → galleryEditor-B90phoBI.js} +1 -1
- package/client/dist/assets/{index-BjDmFvqG.js → index-BfPp1Oup.js} +269 -269
- package/client/dist/index.html +1 -1
- package/client/src/App.tsx +2 -2
- package/client/src/components/AuthReloginNotice.tsx +7 -6
- package/client/src/components/ChatMessage.tsx +41 -29
- package/client/src/components/ChatPanel.tsx +17 -4
- package/client/src/components/ClaudeNativeAccountPicker.tsx +32 -0
- package/client/src/components/ClaudeNativeAuthRow.tsx +71 -19
- package/client/src/components/ClusterRightPanel/AddWorkerSection.tsx +11 -281
- package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +1 -1
- package/client/src/components/ClusterRightPanel/FreshMemberForm.tsx +315 -0
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +17 -7
- package/client/src/components/ClusterRightPanel/index.tsx +1 -1
- package/client/src/components/ClusterRightPanel/useFreshMemberPicker.ts +6 -4
- package/client/src/components/ClusterTab.tsx +2 -2
- package/client/src/components/Connections/Connections.tsx +5 -9
- package/client/src/components/Connections/model.ts +3 -1
- package/client/src/components/FileViewerModal.tsx +54 -17
- package/client/src/components/GitHubPanel/index.tsx +9 -5
- package/client/src/components/HandoffDialog.tsx +5 -3
- package/client/src/components/MobileShell.tsx +1 -33
- package/client/src/components/OperatorQuestionNotice.tsx +5 -4
- package/client/src/components/ProvidersPopover.tsx +6 -2
- package/client/src/components/RightPanel/ActivityTab.tsx +2 -1
- package/client/src/components/RightPanel/ConfigTab.tsx +23 -5
- package/client/src/components/RightPanel/OutputsPanel.tsx +21 -9
- package/client/src/components/RightPanel/outputsReconcile.ts +31 -0
- package/client/src/components/SettingsPanel.tsx +7 -10
- package/client/src/components/SpawnDialog.tsx +14 -3
- package/client/src/components/TabBar.tsx +2 -2
- package/client/src/components/TabContextMenu.tsx +73 -133
- package/client/src/components/TerminalInput.tsx +4 -3
- package/client/src/components/TranscriptWorkerDialog.tsx +14 -4
- package/client/src/components/UsageBar.tsx +37 -18
- package/client/src/components/WorkflowCreator/ClusterMembersSection.tsx +29 -3
- package/client/src/components/WorkflowCreator/index.tsx +29 -15
- package/client/src/components/WorkflowView.tsx +1 -1
- package/client/src/components/providerIndicator.ts +7 -3
- package/client/src/components/settings/GitHubAuthRow.tsx +34 -0
- package/client/src/explorer/ArtifactsLens.tsx +17 -8
- package/client/src/explorer/ExplorerApp.tsx +3 -3
- package/client/src/explorer/types.ts +3 -1
- package/client/src/help/content/cluster.tsx +10 -4
- package/client/src/help/content/composer.tsx +3 -2
- package/client/src/help/content/header.tsx +6 -3
- package/client/src/help/content/misc.tsx +7 -5
- package/client/src/help/content/rightPanel.tsx +8 -4
- package/client/src/help/content/settings.tsx +14 -3
- package/client/src/help/content/tabbar.tsx +1 -1
- package/client/src/help/manualSections/actions.tsx +5 -1
- package/client/src/help/manualSections/clusters.tsx +20 -14
- package/client/src/help/manualSections/configuration.tsx +6 -4
- package/client/src/help/manualSections/gettingStarted.tsx +4 -2
- package/client/src/help/manualSections/maintenance.tsx +24 -0
- package/client/src/help/manualSections/powerFeatures.tsx +1 -0
- package/client/src/help/manualSections/providers.tsx +11 -4
- package/client/src/help/manualSections/workspace.tsx +3 -3
- package/client/src/hooks/useClaudeNativeCatalog.ts +26 -0
- package/client/src/hooks/useClaudeNativeLogin.ts +16 -11
- package/client/src/hooks/useWebSocket.ts +4 -2
- package/client/src/layout/layoutRange.ts +4 -5
- package/client/src/questions/waitingQuestion.ts +2 -0
- package/client/src/stores/appStore.ts +5 -1
- package/client/src/stores/appStore.types.ts +2 -0
- package/client/src/stores/replayContext.ts +20 -0
- package/client/src/utils/chatFileLinks.ts +34 -3
- package/client/src/utils/claudeAuth.ts +9 -1
- package/client/src/ws/handleServerMessage.ts +11 -3
- package/docs/ARCHITECTURE.md +3 -3
- package/docs/BACKUP.md +1 -1
- package/docs/CLIENT.md +10 -5
- package/docs/EXTENDING.md +1 -1
- package/docs/FEATURES.md +3 -3
- package/docs/GETTING_STARTED.md +5 -4
- package/docs/GIT_WORKBENCH.md +8 -0
- package/docs/GLOSSARY.md +2 -2
- package/docs/GOTCHAS.md +4 -4
- package/docs/HTTP_API.md +54 -23
- package/docs/OPERATIONS.md +11 -0
- package/docs/OPERATOR_ACTIONS.md +2 -2
- package/docs/OUTPUTS.md +48 -6
- package/docs/PERSISTENCE.md +1 -1
- package/docs/PRIMITIVES.md +4 -2
- package/docs/PROTOCOL_CLUSTER.md +12 -6
- package/docs/PROTOCOL_PRIMITIVES.md +1 -1
- package/docs/PROVIDERS.md +46 -9
- package/docs/RESEARCH.md +1 -1
- package/docs/SETTINGS.md +9 -4
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +15 -3
- package/node_modules/@arco/shared/dist/protocol/clusters.js +1 -1
- package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -1
- package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/node_modules/@arco/shared/dist/protocol/settings.d.ts +3 -0
- package/node_modules/@arco/shared/dist/protocol/settings.js +5 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
- package/node_modules/@arco/shared/dist/protocol/workflows.js +0 -2
- package/node_modules/@arco/shared/package.json +1 -1
- package/package.json +2 -2
- package/scripts/packaging/services.mjs +20 -1
- package/scripts/packaging/update.mjs +37 -2
- package/server/dist/attention.d.ts +6 -0
- package/server/dist/attention.js +6 -0
- package/server/dist/auth.d.ts +5 -0
- package/server/dist/auth.js +31 -20
- package/server/dist/clusterAutoTurn.d.ts +5 -1
- package/server/dist/clusterAutoTurn.js +31 -9
- package/server/dist/clusterPresets.js +3 -3
- package/server/dist/effortValidation.d.ts +2 -2
- package/server/dist/effortValidation.js +4 -4
- package/server/dist/explorerArtifacts.d.ts +1 -0
- package/server/dist/explorerArtifacts.js +12 -1
- package/server/dist/geminiMembers.d.ts +7 -1
- package/server/dist/geminiMembers.js +28 -14
- package/server/dist/http/conversationFiles.d.ts +36 -0
- package/server/dist/http/conversationFiles.js +222 -0
- package/server/dist/http/fileBytes.d.ts +3 -0
- package/server/dist/http/fileBytes.js +33 -0
- package/server/dist/http/fileContentRoute.d.ts +2 -0
- package/server/dist/http/fileContentRoute.js +139 -0
- package/server/dist/http/fileRead.d.ts +54 -2
- package/server/dist/http/fileRead.js +31 -24
- package/server/dist/http/outputRoutes.js +14 -21
- package/server/dist/http/readConfinement.d.ts +0 -11
- package/server/dist/http/readConfinement.js +4 -30
- package/server/dist/http/router.js +40 -66
- package/server/dist/index.js +26 -12
- package/server/dist/management/initHubLink.js +1 -1
- package/server/dist/outputs.js +8 -0
- package/server/dist/primitives/exportContext.d.ts +2 -0
- package/server/dist/primitives/exportContext.js +13 -2
- package/server/dist/primitives/runCompare.d.ts +7 -1
- package/server/dist/primitives/runCompare.js +44 -20
- package/server/dist/project/taskLedger.js +46 -34
- package/server/dist/providerAccounts.d.ts +4 -0
- package/server/dist/providerAccounts.js +20 -1
- package/server/dist/providers/antigravity/artifacts.d.ts +23 -0
- package/server/dist/providers/antigravity/artifacts.js +140 -0
- package/server/dist/providers/antigravity/index.js +85 -7
- package/server/dist/providers/antigravity/questions.d.ts +2 -0
- package/server/dist/providers/antigravity/questions.js +58 -0
- package/server/dist/providers/claude-native/auth.d.ts +9 -8
- package/server/dist/providers/claude-native/auth.js +50 -58
- package/server/dist/providers/claude-native/authStatus.d.ts +2 -2
- package/server/dist/providers/claude-native/authStatus.js +9 -7
- package/server/dist/providers/claude-native/catalog.d.ts +6 -5
- package/server/dist/providers/claude-native/catalog.js +50 -39
- package/server/dist/providers/claude-native/oauth.d.ts +10 -9
- package/server/dist/providers/claude-native/oauth.js +120 -96
- package/server/dist/providers/claude-native/worker.d.ts +1 -0
- package/server/dist/providers/claude-native/worker.js +38 -23
- package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -3
- package/server/dist/providers/codex-appserver/operatorQuestions.js +27 -13
- package/server/dist/server/broadcast.js +6 -0
- package/server/dist/settings.d.ts +1 -0
- package/server/dist/settings.js +39 -7
- package/server/dist/skills.js +1 -1
- package/server/dist/smartPickupAdapters.d.ts +1 -0
- package/server/dist/smartPickupAdapters.js +2 -2
- package/server/dist/smartPickupObserver.js +8 -5
- package/server/dist/thirdPartySkills.js +11 -5
- package/server/dist/usage.d.ts +1 -1
- package/server/dist/usage.js +39 -27
- package/server/dist/workers/WorkerManager.d.ts +1 -0
- package/server/dist/workers/WorkerManager.js +1 -0
- package/server/dist/workers/processKill.js +37 -24
- package/server/dist/workflowMeta.js +2 -2
- package/server/dist/ws/clusterHandlers.d.ts +2 -2
- package/server/dist/ws/clusterHandlers.js +127 -113
- package/server/dist/ws/clusterMembers.d.ts +1 -1
- package/server/dist/ws/clusterMembers.js +34 -4
- package/server/dist/ws/compactHandlers.js +30 -14
- package/server/dist/ws/compareHandlers.js +53 -21
- package/server/dist/ws/gateHandlers.js +2 -0
- package/server/dist/ws/genesisHandlers.js +5 -3
- package/server/dist/ws/handoffHandlers.d.ts +1 -1
- package/server/dist/ws/handoffHandlers.js +115 -39
- package/server/dist/ws/transcriptWorkerHandlers.js +7 -2
- package/server/dist/ws/turnEngine.js +33 -18
- package/server/dist/ws/updatePrimaryConfig.d.ts +3 -2
- package/server/dist/ws/updatePrimaryConfig.js +236 -133
- package/server/dist/ws/workflowHandlers.js +21 -4
- package/server/package.json +1 -1
- package/server/src/attention.ts +7 -0
- package/server/src/auth.ts +33 -20
- package/server/src/clusterAutoTurn.ts +31 -11
- package/server/src/clusterPresets.ts +2 -2
- package/server/src/effortValidation.ts +4 -4
- package/server/src/explorerArtifacts.ts +12 -1
- package/server/src/geminiMembers.ts +26 -15
- package/server/src/http/conversationFiles.ts +231 -0
- package/server/src/http/fileBytes.ts +34 -0
- package/server/src/http/fileContentRoute.ts +123 -0
- package/server/src/http/fileRead.ts +30 -25
- package/server/src/http/outputRoutes.ts +13 -13
- package/server/src/http/readConfinement.ts +3 -30
- package/server/src/http/router.ts +38 -62
- package/server/src/index.ts +27 -18
- package/server/src/management/initHubLink.ts +1 -1
- package/server/src/outputs.ts +8 -0
- package/server/src/primitives/exportContext.ts +14 -2
- package/server/src/primitives/runCompare.ts +73 -46
- package/server/src/project/taskLedger.ts +47 -30
- package/server/src/providerAccounts.ts +20 -1
- package/server/src/providers/antigravity/artifacts.ts +121 -0
- package/server/src/providers/antigravity/index.ts +64 -6
- package/server/src/providers/antigravity/questions.ts +52 -0
- package/server/src/providers/claude-native/auth.ts +45 -60
- package/server/src/providers/claude-native/authStatus.ts +9 -8
- package/server/src/providers/claude-native/catalog.ts +52 -35
- package/server/src/providers/claude-native/oauth.ts +101 -77
- package/server/src/providers/claude-native/worker.ts +38 -22
- package/server/src/providers/codex-appserver/operatorQuestions.ts +26 -12
- package/server/src/server/broadcast.ts +4 -0
- package/server/src/settings.ts +36 -8
- package/server/src/skills.ts +1 -1
- package/server/src/smartPickupAdapters.ts +3 -2
- package/server/src/smartPickupObserver.ts +8 -5
- package/server/src/thirdPartySkills.ts +11 -5
- package/server/src/usage.ts +30 -22
- package/server/src/workers/WorkerManager.ts +2 -0
- package/server/src/workers/processKill.ts +37 -23
- package/server/src/workflowMeta.ts +2 -2
- package/server/src/ws/clusterHandlers.ts +107 -104
- package/server/src/ws/clusterMembers.ts +25 -6
- package/server/src/ws/compactHandlers.ts +29 -15
- package/server/src/ws/compareHandlers.ts +59 -25
- package/server/src/ws/gateHandlers.ts +2 -0
- package/server/src/ws/genesisHandlers.ts +5 -4
- package/server/src/ws/handoffHandlers.ts +105 -37
- package/server/src/ws/transcriptWorkerHandlers.ts +6 -2
- package/server/src/ws/turnEngine.ts +32 -17
- package/server/src/ws/updatePrimaryConfig.ts +230 -132
- package/server/src/ws/workflowHandlers.ts +20 -4
- package/shared/dist/protocol/clusters.d.ts +15 -3
- package/shared/dist/protocol/clusters.js +1 -1
- package/shared/dist/protocol/models.d.ts +6 -1
- package/shared/dist/protocol/operatorQuestions.d.ts +2 -1
- package/shared/dist/protocol/settings.d.ts +3 -0
- package/shared/dist/protocol/settings.js +5 -0
- package/shared/dist/protocol/workflows.d.ts +1 -0
- package/shared/dist/protocol/workflows.js +0 -2
- package/shared/src/protocol/clusters.ts +23 -5
- package/shared/src/protocol/compare.ts +2 -2
- package/shared/src/protocol/models.ts +8 -4
- package/shared/src/protocol/operatorQuestions.ts +2 -1
- package/shared/src/protocol/settings.ts +8 -1
- package/shared/src/protocol/workflows.ts +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isReplaying } from './replayContext';
|
|
1
2
|
import { phoneUploadRequest } from '../utils/phoneUploadApi';
|
|
2
3
|
import { validateSettings } from '../utils/settingsResponse';
|
|
3
4
|
import { create } from 'zustand';
|
|
@@ -851,7 +852,8 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
|
|
|
851
852
|
takeCreatorPrefill: () => { const prefill = get().creatorPrefill; if (prefill) set({ creatorPrefill: null }); return prefill; },
|
|
852
853
|
|
|
853
854
|
pushNotification: (level, message, workflowId, action) =>
|
|
854
|
-
|
|
855
|
+
// Restored history raises no toast (stores/replayContext.ts).
|
|
856
|
+
isReplaying() ? undefined : set((s) => ({
|
|
855
857
|
notifications: [
|
|
856
858
|
...s.notifications.slice(-9),
|
|
857
859
|
{ id: crypto.randomUUID(), level, message, createdAt: Date.now(), ...(workflowId ? { workflowId } : {}), ...(action ? { action } : {}) },
|
|
@@ -1884,6 +1886,7 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
|
|
|
1884
1886
|
);
|
|
1885
1887
|
const isEarlierPageRow = typeof msg.timestamp === 'number' && msg.timestamp < oldestExistingTs;
|
|
1886
1888
|
return {
|
|
1889
|
+
...(entry.kind === 'tool_use' && entry.filePath ? { writtenFilePaths: [...new Set([...(j.writtenFilePaths ?? []), entry.filePath])].slice(-1000) } : {}),
|
|
1887
1890
|
sessionChat: capSessionChat(next, {
|
|
1888
1891
|
preserveOldestCount: isEarlierPageRow ? LOADED_HISTORY_PIN : 0,
|
|
1889
1892
|
}),
|
|
@@ -1971,6 +1974,7 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
|
|
|
1971
1974
|
// Older messages are rehydratable from the Claude transcript on the
|
|
1972
1975
|
// disk if the operator picks RESUME on a long session.
|
|
1973
1976
|
messages: j.messages.slice(-200),
|
|
1977
|
+
...(j.writtenFilePaths?.length ? { writtenFilePaths: j.writtenFilePaths } : {}),
|
|
1974
1978
|
totalCost: j.totalCost,
|
|
1975
1979
|
totalTokens: j.totalTokens,
|
|
1976
1980
|
totalWorkers: j.totalWorkers,
|
|
@@ -313,6 +313,8 @@ export interface JobState {
|
|
|
313
313
|
// (not from events.jsonl). Empty for non-Claude providers. Not persisted —
|
|
314
314
|
// rebuilt via session_entry WS messages on every connect/reconnect.
|
|
315
315
|
sessionChat: ChatMessage[];
|
|
316
|
+
// Bounded paths recorded by session tools for conversation file links.
|
|
317
|
+
writtenFilePaths?: string[];
|
|
316
318
|
providerConversation?: 'unavailable' | 'awaiting-reading';
|
|
317
319
|
// Phase 2 context robustness — byte-count context fill estimate. Updated
|
|
318
320
|
// after each primary_complete and on rehydrate. Not persisted (derived).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// History being restored after a connect or reconnect, as opposed to events
|
|
2
|
+
// that happen now. The server marks each replayed event (`replayed: true`) and
|
|
3
|
+
// the client treats the inside of a `replay_batch` the same way. While a
|
|
4
|
+
// replayed event is handled, its chat rows, activity and history are rebuilt
|
|
5
|
+
// as usual, but nothing is raised: no toast and no question alert. A live
|
|
6
|
+
// event that arrives during catch-up is not marked and still alerts, once.
|
|
7
|
+
let depth = 0;
|
|
8
|
+
|
|
9
|
+
export function isReplaying(): boolean {
|
|
10
|
+
return depth > 0;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function whileReplaying<T>(run: () => T): T {
|
|
14
|
+
depth += 1;
|
|
15
|
+
try { return run(); } finally { depth -= 1; }
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function isReplayedMessage(msg: unknown): boolean {
|
|
19
|
+
return !!msg && typeof msg === 'object' && (msg as { replayed?: unknown }).replayed === true;
|
|
20
|
+
}
|
|
@@ -31,17 +31,49 @@ export interface WrittenFilesIndex {
|
|
|
31
31
|
// the file somewhere else; the server-side fallback in /api/file-content
|
|
32
32
|
// then tries the workflow's artifacts dir before giving up).
|
|
33
33
|
// Returns null for things we can't or shouldn't open (URLs, anchors, ~/…).
|
|
34
|
+
// A local `file:` URL as a path: `file:///a/b` -> `/a/b`, `file:///C:/a` ->
|
|
35
|
+
// `C:/a`. A URL naming another host, or one that does not decode, is null.
|
|
36
|
+
export function fileUrlToPath(url: string): string | null {
|
|
37
|
+
const match = /^file:\/\/(localhost)?(\/[^?#]*)$/i.exec(url.trim());
|
|
38
|
+
if (!match) return null;
|
|
39
|
+
let decoded: string;
|
|
40
|
+
try { decoded = decodeURIComponent(match[2]); } catch { return null; }
|
|
41
|
+
return /^\/[A-Za-z]:[\\/]/.test(decoded) ? decoded.slice(1) : decoded;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// The text of a Markdown link target to resolve. A `file:` URL is decoded once,
|
|
45
|
+
// by fileUrlToPath, so an escaped `%23` or `%25` in a filename survives; any
|
|
46
|
+
// other target is decoded here because Markdown encodes spaces and the like.
|
|
47
|
+
export function chatLinkTarget(href: string): string {
|
|
48
|
+
if (/^file:/i.test(href)) return href;
|
|
49
|
+
try { return decodeURIComponent(href); } catch { return href; }
|
|
50
|
+
}
|
|
51
|
+
|
|
34
52
|
export function resolveChatFilePath(
|
|
35
53
|
raw: string,
|
|
36
54
|
cwd: string | undefined,
|
|
37
55
|
index?: WrittenFilesIndex,
|
|
38
56
|
): string | null {
|
|
39
|
-
|
|
57
|
+
let t = raw.trim();
|
|
40
58
|
if (!t) return null;
|
|
59
|
+
if (/^file:/i.test(t)) {
|
|
60
|
+
const local = fileUrlToPath(t);
|
|
61
|
+
if (!local) return null;
|
|
62
|
+
t = local;
|
|
63
|
+
}
|
|
41
64
|
if (/^[a-z][a-z0-9+.-]*:\/\//i.test(t)) return null; // http://, file://, etc.
|
|
42
65
|
if (t.startsWith('#') || t.startsWith('mailto:')) return null;
|
|
43
66
|
if (t.startsWith('~/')) return null;
|
|
44
67
|
|
|
68
|
+
// A link into an Antigravity session folder names one session's file. The
|
|
69
|
+
// viewer request reads that session's registered file (docs/OUTPUTS.md); a
|
|
70
|
+
// same-named file of another session in the index must not stand in for it.
|
|
71
|
+
if (/[\\/]\.gemini[\\/]antigravity-cli[\\/]brain[\\/]/i.test(t)) return t;
|
|
72
|
+
|
|
73
|
+
// An explicit path identifies a particular file and must not be replaced by
|
|
74
|
+
// an unrelated indexed file with the same basename.
|
|
75
|
+
if (t.startsWith('/') || WINDOWS_ABSOLUTE_RE.test(t)) return t;
|
|
76
|
+
|
|
45
77
|
if (index) {
|
|
46
78
|
const stripped = t.startsWith('./') ? t.slice(2) : t;
|
|
47
79
|
const tailHit = index.byTail.get(stripped.replace(/\\/g, '/'));
|
|
@@ -51,12 +83,11 @@ export function resolveChatFilePath(
|
|
|
51
83
|
if (baseHit) return baseHit;
|
|
52
84
|
}
|
|
53
85
|
|
|
54
|
-
if (t.startsWith('/') || WINDOWS_ABSOLUTE_RE.test(t)) return t;
|
|
55
86
|
if (!cwd) return null;
|
|
56
87
|
// Relative names are sent as written. The server resolves them against the
|
|
57
88
|
// bound project folder and then the workflow's artifacts folder, and reports
|
|
58
89
|
// the path it actually read; the viewer never shows a guessed join.
|
|
59
|
-
return t
|
|
90
|
+
return t;
|
|
60
91
|
}
|
|
61
92
|
|
|
62
93
|
const WINDOWS_ABSOLUTE_RE = /^(?:[A-Za-z]:[\\/]|\\\\)/;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { DEFAULT_CLAUDE_NATIVE_ACCOUNT, type AuthStatus, type ClaudeNativeAuthStatus } from '@arco/shared';
|
|
2
2
|
|
|
3
3
|
const STATUS_STALE_MS = 6 * 60 * 1000;
|
|
4
4
|
|
|
@@ -67,8 +67,16 @@ export function claudeConnection(status: AuthStatus | undefined, transport: 'nat
|
|
|
67
67
|
}
|
|
68
68
|
const view = claudeAuthPresentation(status, 'native', now);
|
|
69
69
|
if (view.nativeAvailable) return { connected: true, needsNativeSignIn: false, cliSignedIn, text: 'Native credentials detected' };
|
|
70
|
+
if (Object.values(status.nativeAccounts ?? {}).some(profile => profile.credentialsPresent
|
|
71
|
+
&& ['present', 'refresh-needed'].includes(profile.state) && !profile.probeFailed && !profile.stale)) {
|
|
72
|
+
return { connected: true, needsNativeSignIn: false, cliSignedIn, text: 'A Native account is connected' };
|
|
73
|
+
}
|
|
70
74
|
if (view.attention === 'native') {
|
|
71
75
|
return { connected: false, needsNativeSignIn: true, cliSignedIn, text: status.native.state === 'needs-attention' ? 'Native needs attention' : 'Native: sign-in needed' };
|
|
72
76
|
}
|
|
73
77
|
return { connected: !!status.loggedIn && !status.probeFailed, needsNativeSignIn: false, cliSignedIn, text: 'Status unknown' };
|
|
74
78
|
}
|
|
79
|
+
|
|
80
|
+
export function nativeAccountStatus(status: AuthStatus | undefined, accountRef?: string): ClaudeNativeAuthStatus | undefined {
|
|
81
|
+
return !accountRef || accountRef === DEFAULT_CLAUDE_NATIVE_ACCOUNT ? status?.native : status?.nativeAccounts?.[accountRef];
|
|
82
|
+
}
|
|
@@ -12,6 +12,7 @@ import { useComputerStore } from '../stores/computerStore';
|
|
|
12
12
|
import { useVoiceStore } from '../voice/store';
|
|
13
13
|
import { dispatchVoiceToolCall } from '../voice/toolBridge';
|
|
14
14
|
import { setClaudeQuestionIds, notifyQuestion } from '../questions/waitingQuestion';
|
|
15
|
+
import { isReplayedMessage, whileReplaying } from '../stores/replayContext';
|
|
15
16
|
import { markAskNoticeAnswered, parseAskNotice } from '../components/AskUserQuestionNotice';
|
|
16
17
|
import { handleAttentionEvent, clearQuestionAlert } from '../alerts/desktopAlerts';
|
|
17
18
|
import { applyOperatorQuestion, reconcileOperatorQuestions, questionMessageId } from './operatorQuestions';
|
|
@@ -176,6 +177,11 @@ function appendNativeActivity(workflowId: string, label: string, text: string):
|
|
|
176
177
|
// reads `deps.wsRef.current`; nothing else changed. The `const store`
|
|
177
178
|
// snapshot semantics (one snapshot per message) are preserved exactly.
|
|
178
179
|
export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
180
|
+
if (isReplayedMessage(msg)) whileReplaying(() => handleMessage(msg, deps));
|
|
181
|
+
else handleMessage(msg, deps);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function handleMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
179
185
|
const store = useAppStore.getState();
|
|
180
186
|
|
|
181
187
|
// Slot 5 — advance lastSeq for any workflow-scoped message carrying a
|
|
@@ -1487,7 +1493,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1487
1493
|
// the ingest is all-or-nothing (persisted lastSeq can never outrun
|
|
1488
1494
|
// persisted chat — the blank-workers bug), React batches
|
|
1489
1495
|
// it into one render, and the debounced persist flushes once.
|
|
1490
|
-
for (const ev of msg.events) {
|
|
1496
|
+
whileReplaying(() => { for (const ev of msg.events) {
|
|
1491
1497
|
const inner = ev as ServerMessage;
|
|
1492
1498
|
// Defense-in-depth: the server filters embedded workflow_created
|
|
1493
1499
|
// lines, but a replayed one here would clobber the freshly-built
|
|
@@ -1500,7 +1506,7 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1500
1506
|
// member's history.
|
|
1501
1507
|
console.error('[arco] replay_batch event failed:', err);
|
|
1502
1508
|
}
|
|
1503
|
-
}
|
|
1509
|
+
} });
|
|
1504
1510
|
break;
|
|
1505
1511
|
}
|
|
1506
1512
|
|
|
@@ -2103,7 +2109,9 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
2103
2109
|
case 'operator_question': {
|
|
2104
2110
|
const known = store.jobs[msg.workflowId]?.messages.some((m) => m.id === questionMessageId(msg.question.requestId));
|
|
2105
2111
|
applyOperatorQuestion(msg.workflowId, msg.question, (msg as { seq?: number }).seq);
|
|
2106
|
-
|
|
2112
|
+
// Restored history is replayed quietly (notifyQuestion checks), so no clock
|
|
2113
|
+
// comparison is needed: a phone whose clock runs fast no longer misses a live question.
|
|
2114
|
+
if (msg.question.status === 'pending' && !known) notifyQuestion(msg.workflowId, msg.question.requestId);
|
|
2107
2115
|
break;
|
|
2108
2116
|
}
|
|
2109
2117
|
case 'computer_activity_changed':
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -425,7 +425,7 @@ All three primitives accept a `broadcast` callback so events can be stamped to a
|
|
|
425
425
|
- `llamacpp.ts` + `llamacppManager.ts` + `llamacppRecovery.ts` - singleton manager owns the `llama-server` daemon, OpenAI-compatible chat-completions endpoint, in-place auto-recovery for reasoning runaway / stall / tool-cap / context fill
|
|
426
426
|
- `lmstudio.ts` - LM Studio provider via its OpenAI-compatible `/v1` endpoint
|
|
427
427
|
- `cursor/` - Cursor via `cursor-agent` over the Agent Client Protocol (ACP). Default `acp` transport is a long-lived per-workflow JSON-RPC 2.0 worker (`worker.ts` / `acpJsonRpc.ts`); `print.ts` is the stateless `cursor-agent -p --mode ask` read-only one-shot used for reviewer / fresh-summarizer / DOCS / research / SECOND OPINION primitives (routed when `config.sandbox === 'read-only'` so a primitive never hijacks the live ACP session). `catalog.ts` enumerates the family×effort model roster via a short-lived `cursor-agent models` spawn - Cursor bakes reasoning effort into the model id (`-low` / `-high` / `-xhigh` / `-max`), so there is no separate effort surface. Cluster peer tools ride an in-process loopback StreamableHTTP MCP (`mcp/clusterMcpLoopback.ts`), since Cursor ACP honors MCP only over http/sse, not stdio.
|
|
428
|
-
- `antigravity/` - Antigravity CLI (Gemini) through Google's own `agy acp` on the operator's sign-in, interactive tabs only (`index.ts`), with `researchSignIn.ts` for the separate Gemini for research sign-in and `status.ts` for the provider status. Gemini members
|
|
428
|
+
- `antigravity/` - Antigravity CLI (Gemini) through Google's own `agy acp` on the operator's sign-in, interactive tabs only (`index.ts`), with `researchSignIn.ts` for the separate Gemini for research sign-in and `status.ts` for the provider status. Ordinary Gemini members can use AUTO-PICKUP and Gemini researchers wait for NUDGE; see [Gemini members](PROTOCOL_CLUSTER.md#gemini-members) and [Gemini researchers](RESEARCH.md#gemini-researchers).
|
|
429
429
|
- `strata.ts`, `deepseek.ts` - Strata and DeepSeek through Xolotl, separate HTTP connections that reuse the `lmstudio.ts` worker (see the paragraphs under "What Arco is").
|
|
430
430
|
- `codex-stream.ts` - streaming JSONL parsers
|
|
431
431
|
|
|
@@ -807,7 +807,7 @@ copies them into the recipient's `.arco/peer-artifacts/<msgId>/`.
|
|
|
807
807
|
- **Codex `exec` + `app-server`** - same MCP child registered via Codex's `-c mcp_servers.arco-cluster.*` TOML overrides (no `--mcp-config` flag in Codex CLI). The `app-server` transport's MCP child lives for the appserver's lifetime, not per-turn; cluster-context-change recycle in `acquireWorker`.
|
|
808
808
|
- **Ollama / llama.cpp** - local members run peer tools through Arco's in-process tool runtime (no MCP child). `isClusterMemberProvider` accepts `claude` / `codex` / `ollama` / `llamacpp` / `cursor` / `antigravity-cli`; the membership guard `assertAllMembersClaudeOrCodex` (name is historical - it now delegates to `isClusterMemberProvider`) rejects anything outside that set (other providers have no peer-wiring path Arco can drive). How many members may use each local runtime is `localClusterCapacity` (`{ ollama?, llamacpp? }`, integers 1-16, default 1 each; set as "Cluster members that may use this runtime at once" on the Ollama or llama.cpp page of the Connections window). Create/add/replace refuse with `rejected: local_capacity: <reason>` when a change would exceed it; set `ARCO_CLUSTER_ALLOW_MULTIPLE_LOCAL=1` to lift the check.
|
|
809
809
|
- **Cursor** - peer tools ride an in-process loopback StreamableHTTP MCP server (`mcp/clusterMcpLoopback.ts`) whose URL is handed to Cursor in `session/new` / `session/load` `mcpServers`; Cursor ACP honors MCP only over http/sse, not stdio. Fresh-only membership; the server list is refreshed each turn so a mid-life board attach/detach reflects on the next tool call.
|
|
810
|
-
- **Antigravity CLI** - the cluster tools reach `agy acp` through the same loopback StreamableHTTP MCP server as Cursor, alongside Arco's file and plan tools. Its member turns start
|
|
810
|
+
- **Antigravity CLI** - the cluster tools reach `agy acp` through the same loopback StreamableHTTP MCP server as Cursor, alongside Arco's file and plan tools. Its member turns start on operator input or an admitted ordinary-cluster AUTO-PICKUP wake (see [Gemini members](PROTOCOL_CLUSTER.md#gemini-members)).
|
|
811
811
|
|
|
812
812
|
**Plan + role propagation.** Native injects via forced system blocks (`FORCED_FIRST_BLOCK -> cluster plan -> cluster role -> appendSystemPrompt -> systemPrompt -> output style`). CLI Claude and Codex `exec` fold the same blocks into `WorkerConfig.appendSystemPrompt` under a 16 KB soft cap; Codex app-server uses a bounded 48 KB fold so its JSON-RPC path can carry the full 32 KB maximum plan plus small cluster blocks. App-server also sends stable role, Director contract, and code-mode tool mapping as `developerInstructions`, so Codex's built-in `/root` framing cannot outrank the assigned Arco role.
|
|
813
813
|
|
|
@@ -1086,6 +1086,6 @@ The availability instruction is added only after its tool configuration is prepa
|
|
|
1086
1086
|
|
|
1087
1087
|
### Native Task admission and durable rows
|
|
1088
1088
|
|
|
1089
|
-
Claude Native captures `nativeSubagents` once per parent turn. `NativeTaskAdmission` maintains an abortable per-parent FIFO and a separate cumulative turn budget. Queued reservations prevent concurrent callbacks from exceeding
|
|
1089
|
+
Claude Native captures `nativeSubagents` once per parent turn. `NativeTaskAdmission` maintains an abortable per-parent FIFO and a separate cumulative turn budget. Model validation precedes admission, so FIFO order starts at reservation. Queued reservations prevent concurrent callbacks from exceeding the turn budget. A running permit spans asynchronous child initialization through final-result settlement; release is idempotent. A background child (`run_in_background`) keeps its running place across later parent turns until it ends. Generation/abort and current Chat/cluster/depth guards are checked before allocation and before starting inference. Cancellation during initialization cancels the eventual handle instead of registering a late live child. `nativeSubagents.background` Off makes every call wait for its result.
|
|
1090
1090
|
|
|
1091
1091
|
`task_started` can carry `phase: queued`, an effective `model`, `background`, and no `childWorkflowId`; a later start attaches the real child and starts elapsed timing. `task_status` carries concrete model updates and final status. WorkerManager, seedWorker, persisted replay and the client store retain those fields. A parent-scoped `cancel` with `taskId` cancels queued or running work after observer ownership checks. Reload preserves live queued calls and settles orphaned rows. RuntimeStateBanner derives waiting counts from unresolved task rows; the final completion refreshes ordinary silence timing. A foreground `Task` call waits for the child's final reply; a background call returns at once with the task id, and the finished result reaches the parent as an automatic `subagent` notice.
|
package/docs/BACKUP.md
CHANGED
|
@@ -135,7 +135,7 @@ better to under-capture than to silently include something unexamined or leak it
|
|
|
135
135
|
|---|---|---|
|
|
136
136
|
| Invalid `settings.json` | `malformed-settings` | The settings cannot be parsed as a JSON object. |
|
|
137
137
|
| `auth.json` | `secret` | Claude Native OAuth tokens (`server/src/providers/claude-native/auth.ts`). |
|
|
138
|
-
| `provider-accounts/` | `secret` | Codex `CODEX_HOME` credential
|
|
138
|
+
| `provider-accounts/` | `secret` | Claude Native profile and Codex `CODEX_HOME` credential stores. |
|
|
139
139
|
| `cli-snapshots/`, `llamacpp.json`, `models/`, `camoufox-chatgpt-profile/`, `antigravity-data/`, `checkpoints/`, `known-cwds.json` | `regenerable` | Caches / derived state / downloaded blobs, re-derived by the running server; some are large. |
|
|
140
140
|
| `logs/`, `llamacpp.log` | `large-volatile` | Regenerated by the server; large; never valuable to restore. |
|
|
141
141
|
| `clusters/<id>/mailbox/**` | `transient` | Budgeted file-per-message drop box, drained on delivery (`docs/GOTCHAS.md Cluster mode`); restoring it would replay stale/in-flight peer messages. |
|
package/docs/CLIENT.md
CHANGED
|
@@ -908,6 +908,8 @@ The 42 named theme IDs are: abyssal, amber-crt, arch, arrakis, aurora, bloodmoon
|
|
|
908
908
|
|
|
909
909
|
The GitHub Code view decodes README and file contents as UTF-8. Tree, README and file reads are cancelled and ignored after selection changes. Relative document links separate decoded repository paths from URL fragments; opening the file scrolls to its section.
|
|
910
910
|
|
|
911
|
+
In AGENT > ACTIVITY, each tool name takes the width of its text up to 45% of the row. Longer names and statuses wrap. The command and output share the remaining space with the timestamp.
|
|
912
|
+
|
|
911
913
|
In CONFIG, the codebase memory index draft resets when the member changes. Expanded review rows load their report when completion arrives and clear a previous read error on success.
|
|
912
914
|
|
|
913
915
|
| Tab | Component | Data source |
|
|
@@ -1140,7 +1142,7 @@ New `peer_message_sent` events carry their full body on the sender's workflow ch
|
|
|
1140
1142
|
|
|
1141
1143
|
**AUTO-PICKUP control.** Operator-armed per-cluster chip in `ClusterRightPanel`'s header, next to the MAIL ALERTS chip. Default Off. The dialog sets a mode through `cluster_auto_pickup_set`: Off, Rule-based (recommended), Smart: Observe-only, or Smart: Automatic. Rule-based uses the detector in `server/src/clusterAutoTurn.ts` with acknowledgement filtering and adjustable wake-budget guards. Smart modes ask an operator-chosen evaluator (Claude Native, Cursor, Codex, Ollama, LM Studio, llama.cpp, Strata, or DeepSeek through Xolotl) through `server/src/smartPickup*.ts`. Older clients and the remote console still send `cluster_auto_turn_toggle`; `enabled: true` maps to Rule-based and `false` to Off. Distinct from the idle nudger: the nudger is toast-only and never sends prompts to workers; AUTO-PICKUP can dispatch turns when Rule-based or Smart Automatic is armed. See [PROTOCOL_CLUSTER.md](PROTOCOL_CLUSTER.md) and [SETTINGS.md](SETTINGS.md#auto-pickup).
|
|
1142
1144
|
|
|
1143
|
-
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd)
|
|
1145
|
+
**Tab strip.** `TabBar.tsx` renders cluster tabs after all workflow tabs with a `[N]` member-count badge. Right-click on a Claude, Codex, Ollama or llama.cpp tab (`isClusterMemberProvider` less Cursor) opens `TabContextMenu` on CREATE WITH FRESH (1 worker card; each card is the `FreshMemberForm` that + ADD FRESH also uses), with CREATE WITH EXISTING (a multi-select list of other such tabs in the same cwd) and ADD TO EXISTING one click away. An open Cursor tab is refused like in ADD EXISTING: its ACP session was opened without the peer-tools MCP, so Cursor members are added fresh (+ ADD FRESH). Other providers get a refusal naming the accepted ones. Confirm dispatches `cluster_create`. × on a cluster tab confirms tear-down via `cluster_delete`.
|
|
1144
1146
|
|
|
1145
1147
|
### Tab bar layout (slice 6a)
|
|
1146
1148
|
|
|
@@ -1245,7 +1247,7 @@ State is not persisted (proposals are fetched from the server on subscribe). The
|
|
|
1245
1247
|
|
|
1246
1248
|
`client/src/layout/layoutRange.ts` turns the window width and Settings > Appearance > Layout into the layout to draw. The width is `innerWidth` divided by the interface scale (`--ui-scale`, set by `applyUiScale`, which dispatches `arco:ui-scale`), so 1920 px at 150% counts as 1280.
|
|
1247
1249
|
|
|
1248
|
-
Automatic picks by window width: Narrow under
|
|
1250
|
+
Automatic picks by window width: Narrow under 1200, Compact from 1200, Standard from 1380 (interface pixels: browser viewport width divided by the Arco text scale). At default browser zoom, a maximized 1920 by 1080 display window uses Standard at 100% or 125% OS scaling with 100% or 110% Arco text size. Standard, Compact and Narrow stay fixed at every width. The top-bar layout switch cycles all four choices and shows the active layout and current interface width.
|
|
1249
1251
|
|
|
1250
1252
|
`useLayout()` re-reads on `resize`, `arco:ui-scale`, `arco:layout-mode` (fired by `setLayoutMode`) and the `storage` event. The mode is kept in `localStorage` (`arco.layoutMode`), never per project.
|
|
1251
1253
|
|
|
@@ -1267,7 +1269,7 @@ In the mobile view, UPLOAD FROM PHONE opens the device's own file and photo pick
|
|
|
1267
1269
|
|
|
1268
1270
|
The mobile view is the `/mobile` address of the same client (`isMobilePath` in `client/src/layout/layoutRange.ts`). The server already answers unmatched paths with `index.html`, so nothing new reaches the server. `useLayout()` reports `phone` on `/mobile` and draws the Narrow range underneath; `/` never switches by itself. Below `PHONE_BELOW` (600 CSS pixels of width, or of the shorter side on a touch-only screen) `useLayout()` reports `phoneSized`, and the desktop workbench shows an "Open mobile view" link (`OpenMobileViewLink`) above the chat and is otherwise unchanged. A shortcut added to a phone's home screen from `/mobile` opens `/mobile`: `main.tsx` points the manifest link at `/manifest-mobile.webmanifest` (`start_url` `/mobile`, chosen by `manifestHrefFor`), and every other address keeps `/manifest.webmanifest`, which starts at `/`. A shortcut added from the workbench address still opens the workbench.
|
|
1269
1271
|
|
|
1270
|
-
`App.tsx` replaces the top bar and tab strip with `MobileHeader` and draws `MobileScreenHost` over the conversation area (both in `client/src/components/MobileShell.tsx`; view state in `client/src/stores/phoneStore.ts`). There are two screens. The directory (`MobileDirectory`)
|
|
1272
|
+
`App.tsx` replaces the top bar and tab strip with `MobileHeader` and draws `MobileScreenHost` over the conversation area (both in `client/src/components/MobileShell.tsx`; view state in `client/src/stores/phoneStore.ts`). There are two screens. The directory (`MobileDirectory`) opens straight on the tabs, with no separate NEEDS YOU list above them: clusters (with working and needs-you counts, and one mark per member; the row opens the cluster on the member last in view, else its Director, as a research project's row does, and a separate MEMBERS control folds the member list open), research projects, agents, chats and Home, in the saved tab order. Each row carries its own state (NEEDS YOU, WORKING or IDLE); a decision is answered from the bar above the message box in that conversation (`MobileQuestionBar`). Quick research appears with Chats. Choosing a row calls the same store actions as the tab strip (`setActiveCluster`, `setClusterFocusedMember`, `setActiveJob`, `focusNoticeWorkflow`) and shows the conversation screen. The open clusters and the scroll position are kept in `phoneStore` for the return. A decision is a pending Arco question, a pending Claude Native question (including a sub-agent batch approval) or a parked review gate: `pendingDecisions(..., all)` in `PendingQuestionsButton.tsx`; the desktop PENDING QUESTIONS list keeps Arco questions and batches only.
|
|
1271
1273
|
|
|
1272
1274
|
The conversation screen is the desktop `WorkflowView` or `ClusterTab` with its own transcript, composer, SEND, steer, queue and NUDGE. Its header has a back button (with the needs-you count), the cluster or kind with the state word (NEEDS YOU, WORKING, IDLE, or NEEDS YOU and WORKING), the name on its own line, PANELS and, in a cluster, a scrolling member strip that keeps the current member in view and names a working or waiting member's state in words. The strip is the one member switcher: a chip sets `clusterFocusedMember` and closes whatever sits over the conversation under the header (a sheet, a full-width panel, the terminal window; `showConversation`), so the member's conversation, composer target and state show at once. While the strip is on screen the name is a plain label (`phone-title` is a `div`). In the one-row header, where the strip is folded away, the name carries a down arrow and is a button that opens the members sheet; a row there switches the member and closes the sheet. The idle conversation line above the transcript (`conversation-header`, the member pane header) is hidden; while a turn runs it shows only the activity. The composer (`TerminalInput`) on a phone has one row: the draft, a message options button and SEND (`PhoneSendButtons`; while a turn runs see the STOP and STEER paragraph below). A cluster member pane drops its desktop minimum width, so SEND and STOP stay whole at 320 px and 120% text. In a cluster, recipients other than the member shown appear above the draft as SENDING TO with the recipient picker, whether or not the options are open (`customRecipients` in `ClusterComposerControls`). Every other composer row carries `data-phone-option` and shows only while the options are open (`data-phone-options-open`); the toolbar then wraps instead of folding into MORE, and the composer becomes the MESSAGE TOOLS sheet: a title row with CLOSE, the draft, and the toolbar's buttons in two equal columns, within 72% of the visible height over a dimmed conversation. The options button reads `+`. Every button, select, summary and tab in the mobile view is at least 44 by 44 CSS pixels (`global.css`). PANELS opens a bottom sheet (`Sheet`: at most 88% of the area, over a dimmed conversation): the shown tab's side-panel buttons (registered by `ClusterTab` and `WorkflowView` without the Narrow strip's MORE, whose last-used tab the named entries and the panel's own tabs already reach, and opened through `usePhonePanelRequests` as the Narrow slide-out at full width), ALL PANELS, TERMINAL, CATCH ME UP (moved here from above the chat), SETTINGS, NOTICES, MANUAL, RECALL, MEDIA (the media studio, full screen with a wrapping header), SYSTEM (the `SystemModal`, opened through `phoneStore.systemOpen`, full screen with wrapping tabs), ALL PLANS and ARTIFACTS (the explorer window, a new browser tab on a phone). The tab's panel tiles share their rows (flex), so an odd count leaves no empty cell. A dialog drawn outside the app root carries `data-phone-dialog` (`DialogShell`, which CATCH ME UP uses, and `RecallView`): it fills the visible area like the other phone panels, except a confirmation (`size="confirm"`), which keeps its box; its buttons, selects, fields and checkbox labels are at least 44 px (`global.css`). `WorkSurfaceControls` renders nothing in the mobile view, so no dialog there has Maximize, Reset size or a resize handle, and no saved desktop size is applied. Text links on Home get a 44 px target. A full-width slide-out (`SlideOut` with `full`) is a page: it has no bar of its own, `MobileHeader` shows `phoneStore.pageTitle` with a back arrow (`data-phone-header-mode="page"`), and it scrolls as one surface. `PhonePage` (`client/src/layout/PhonePage.tsx`) is the same page for content no view hosts: it sets `openPanel` and `pageTitle`, and calls `onClose` on the back arrow, the phone's Back, Escape or another overlay. A page body can add to the header through `usePhonePageChrome` (`phoneStore`): a line under the name (`pageSubtitle`, cut at its start so the end of a path stays readable), a `+` (`pagePrimary`) and a `...` that lists `pageActions` in a bottom sheet. When both show, the row tightens and the name is set at 15 px; on a header under 340 px wide PANELS is not drawn beside them, so the first word of the name stays whole. A page with levels of its own (a chapter under a list) gives a step back (`pageBack`; `onBack` on `PhonePage`, `back` in the chrome): the back arrow, the phone's Back and Escape ask it first, and the page stays open when it returns true; another overlay taking the screen closes the page without asking. `PhoneBottomSheet` (`client/src/layout/PhoneBottomSheet.tsx`) is the sheet PANELS uses; with `local` it is drawn over the open page (in the `data-phone-sheet-host` element of `SlideOut` and `PhonePage`) without closing it, and registers as the top layer for the phone's Back. While the terminal window is open the header is in the same page mode, named TERMINAL, without the member strip; its back arrow closes the window and keeps the session. In the cluster panel the two tab rows and the settings rows are not drawn; ALL PANELS (`phoneStore.panelIndex`) lists every tab in 52 px rows plus SETTINGS, which shows the cluster settings as a page, and the back arrow of a page opened from the list returns to the list (`panelFromIndex`). The page body (`data-phone-panel-body`) has no height of its own, so lists inside it grow instead of scrolling in a box (`global.css` lifts the height limit of a `div` with its own limit there; `pre` blocks keep theirs). There is no pinned back bar: the header's back arrow, the phone's Back or a member chip returns to the conversation. The board lists its groups in the order blocked, review, in progress, to do, and leaves out empty groups. A single tab's side panel (`RightPanel`) is the same page: its two tab rows are not drawn, PANELS offers ALL PANELS for every tab, and the list puts Genesis, Bake-off, Ledger, Preview and GitHub under MORE (the cluster list puts Preview and GitHub there). A page body publishes its own header parts through `usePhonePageActions` (`client/src/layout/phonePageActions.ts`, over `usePhonePageChrome` in `phoneStore`): a line under the page name (`pageSubtitle`), the `...` actions (`pageActions`, listed in a sheet over the page) and a `+` main action (`pagePrimary`). A panel that hides a page body while ALL PANELS or the settings page shows wraps it in `PhonePageVisible` with `false`, so only the page in view sets the header. The plan (`PlanTab`, `ClusterPlanTab`) reads as a checklist (`PhonePlanView`, parsed by `phonePlanChecklist` in `client/src/components/plans/`): one section per `###` phase with its count, a finished phase folded, the text before the first phase under ABOUT THIS PLAN, and 44 px tick targets that flip the same body line as the workbench's checkbox; edit as text, choose, guardrails, the public-project box, reviews, move, done, detach and delete are `...` actions, the plan's title is the subtitle, and with no cluster plan the page offers NEW PLAN and ATTACH A PLAN. FILES has one wrapping chip row (`phoneChip` in `client/src/layout/phoneChip.ts`; LIVE shows under OUTPUTS) and `FileExplorer` shows one folder at a time in 52 px rows with UP TO for its parent (the header's back arrow also steps up a folder first, through the chrome's `back`), the folder as the subtitle, and terminal, refresh and a single tab's rename as `...` actions. MEMBERS (`PhoneMemberList`) is one row per member with role and state; a row opens a sheet over the page with OPEN CONVERSATION, MODEL, EFFORT AND WEB ACCESS (CONFIG on that member) and the workbench's `MemberRow`; `+` shows the add-member or add-researcher form, and `...` holds rename, SAVE STATE and SAVED CLUSTERS. Inside the sheet (`data-phone-member-manage`) `global.css` lays that row out for touch: one full-width control per row (RENAME, REPLACE, DETACH, the role's EDIT), each label above its control, WORK SIZE as one wrapping row of chips, the role choices in place under ROLE instead of floating, and no second line with the tab name, which the sheet's title already shows. The empty FOCUS reads "tap to edit". HISTORY and ACTIVITY filters are one chip row, the history member picker is a full-width select, a tapped event opens its actions in a sheet, and PURGE CONVERSATION is a `...` action. The mailbox's help sentence is folded under ABOUT THE MAILBOX. While the cluster panel is open, the Gemini members notice above the conversation is hidden, because the panel's Auto-compaction note names the same members. On the board an open task fills the panel instead of sharing it with the list (`data-board-phone-task`); its CLOSE returns to the list. Settings (`SettingsLayout` with `settings-phone`) fills the visible area in one column: the search and the category list first, then one category with ALL SETTINGS to go back (`phoneStore.settingsPage`); the search field does not take focus on open, so the keyboard stays closed.
|
|
1273
1275
|
|
|
@@ -1297,7 +1299,7 @@ In LIVE WORKTREE, STAGED renders the index patch against HEAD, including staged
|
|
|
1297
1299
|
|
|
1298
1300
|
CHANGED FILES extracts filenames from slash-separated and native Windows paths. ARTIFACTS and CHANGED FILES omit OPEN IN TREE for any path inside the Arco state folder; the viewer remains available.
|
|
1299
1301
|
|
|
1300
|
-
A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharing the same root/theme bootstrap but no app store or `/ws`. `explorer/ExplorerApp.tsx` is the shell - `LensId = 'artifacts' | 'recents' | 'plans' | 'storage' | 'tree'` (ARTIFACTS is the landing home; PLANS and STORAGE are described below), left-nav lens switcher, poll-on-focus + manual ↻, an A-/A+ window-zoom control (`document.documentElement.style.zoom`, persisted `arco_explorer_zoom3`, default 0.85), a transparent root so the theme's body background shows through, and a reused `FileExplorer` for the TREE lens. `ArtifactsLens.tsx` (HOME recent-across-projects strip + per-project drill-down over `/api/explorer/artifacts` + `/docs
|
|
1302
|
+
A standalone chromeless window, mounted by `main.tsx` on `?app=explorer`, sharing the same root/theme bootstrap but no app store or `/ws`. `explorer/ExplorerApp.tsx` is the shell - `LensId = 'artifacts' | 'recents' | 'plans' | 'storage' | 'tree'` (ARTIFACTS is the landing home; PLANS and STORAGE are described below), left-nav lens switcher, poll-on-focus + manual ↻, an A-/A+ window-zoom control (`document.documentElement.style.zoom`, persisted `arco_explorer_zoom3`, default 0.85), a transparent root so the theme's body background shows through, and a reused `FileExplorer` for the TREE lens. `ArtifactsLens.tsx` (HOME recent-across-projects strip + per-project drill-down over `/api/explorer/artifacts` + `/docs`; a refocus or REFRESH keeps the shown lists until the new ones arrive, and failed refreshes, however many in a row, keep the last successful rows beside the error), `RecentsLens.tsx` (CHANGED FILES scan, filter chips ALL/DOCS/IMAGES, `/api/explorer/changed` with current attribution from `/recents`), `types.ts` (client mirrors of the server read-models), and `launch.ts` (`openArchive` - same-browser `window.open` popup, falling back to `POST /api/explorer/open`, last-resort plain tab). `/api/explorer/*` (6 routes) lives in `server/src/http/explorerRoutes.ts`. Zero model authority. Every lens is read-only except PLANS (plan edits and MARK DONE, through the plan routes) and STORAGE, whose actions each ask for a confirmation first.
|
|
1301
1303
|
|
|
1302
1304
|
`StorageLens.tsx` is the **STORAGE** lens (`?app=explorer&lens=storage`). It lists every known project and Arco's own folder, largest first, with each row's headings and biggest item, from `GET /api/storage-report?scope=all`; **MEASURE AGAIN** measures again. A project row opens its conversations and archives from `GET /api/storage-report?path=`, each with its size, open state and KEEP state. **KEEP** protects the whole conversation after confirmation and refreshes the report. The other actions are **COMPRESS OLD LOGS** per project and **ARCHIVE**, **RESTORE**, **DELETE** and **EMPTY SCRATCH** per conversation. Each asks for a confirmation, posts to `/api/storage/*` and reports the result; ARCHIVE and DELETE are off while a conversation is open or working, or wholly kept. **STORAGE SETTINGS** holds auto-archive (off by default), the disk budget and the per-conversation scratch warning limit (1 GiB by default), through `/api/storage/policy`; the disk budget notice shows above the list when the last measurement passes it. Worktrees, caches and Arco's folder have no clean-up action.
|
|
1303
1305
|
|
|
@@ -1385,7 +1387,10 @@ It uses the workflow/cluster-scoped `/api/outputs` API rather than the global
|
|
|
1385
1387
|
Archive listing. Rows preserve producing workflow context for existing file and
|
|
1386
1388
|
media viewers. The durable projection and copy/move metadata are maintained by
|
|
1387
1389
|
`server/src/outputs.ts` and `outputStore.ts`; editor writes emit `output_saved`
|
|
1388
|
-
and media result events include exact exported paths.
|
|
1390
|
+
and media result events include exact exported paths. A background refresh merges
|
|
1391
|
+
into the shown list with `outputsReconcile.ts`, so rows keep their place and an
|
|
1392
|
+
open preview reports a changed or removed file (`FileViewerModal` `notice`,
|
|
1393
|
+
`onReload`, `reloadToken`). Public behavior, limits and
|
|
1389
1394
|
recovery are described in [Workspace Outputs](OUTPUTS.md).
|
|
1390
1395
|
|
|
1391
1396
|
The creator and member role editor limit new director assignments to one per cluster, including custom role text beginning with Director or Coordinator. Existing clusters with multiple directors remain intact, show a warning on MEMBERS rows, and still allow REPLACE that preserves both directors' roles. Work size guides the director when assigning work and does not change a model or effort; template review offers it only for repeated roles.
|
package/docs/EXTENDING.md
CHANGED
|
@@ -198,7 +198,7 @@ Update [`docs/PRIMITIVES.md`](PRIMITIVES.md) with a new section, and [`docs/PROT
|
|
|
198
198
|
|
|
199
199
|
Operators create and manage skills in Settings > SKILLS (NEW, EDIT, IMPORT, UPDATE, TURN OFF/ON, MOVE, DUPLICATE, SHARE WITH REPOSITORY). The on-disk shape is also hand-editable. Project skills live under `.arco/skills/`, which Git ignores with the rest of `.arco`; SHARE WITH REPOSITORY adds an exception in `.arco/.gitignore` for one skill and never stages or commits. If Git still ignores the files (including through a global ignore file), SHARE refuses, names the rule and leaves `.arco/.gitignore` unchanged.
|
|
200
200
|
|
|
201
|
-
Built-in skills ship with Arco. Architecture review is operator-only. proportionate-testing is model-invoked. Both are Arco's own. grill-me, grill-with-docs, wait-what and
|
|
201
|
+
Built-in skills ship with Arco. Architecture review is operator-only. proportionate-testing is model-invoked. Both are Arco's own. grill-me, grill-with-docs, wait-what, retro and code-review are operator-run. code-review checks a specific diff against the project standards and supplied spec or linked board task and plan references. It reports findings without changing files; use architecture-review for structural exploration. grilling, domain-modeling, tdd, diagnosing-bugs, codebase-design, prototype and writing-for-agents are model-invoked, from mattpocock/skills under MIT (see THIRD_PARTY_NOTICES). A same-name project or global skill replaces the built-in. The MODEL skill `proportionate-testing` sets how much to test before adding or running checks; `tdd` describes how to write one test. It asks for one test per real fault, small browser coverage and operator approval before adding suites, gates, test tooling or CI checks.
|
|
202
202
|
|
|
203
203
|
Layout:
|
|
204
204
|
|
package/docs/FEATURES.md
CHANGED
|
@@ -18,7 +18,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
18
18
|
| 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. |
|
|
19
19
|
| 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) |
|
|
20
20
|
| 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** (design, prototype and UI review; builders implement); 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) |
|
|
21
|
-
| Gemini cluster members | Antigravity CLI (Gemini) as a member in any role |
|
|
21
|
+
| Gemini cluster members | Antigravity CLI (Gemini) as a member in any role | AUTO-PICKUP can wake ordinary Gemini members for eligible incoming mail. Mail from Gemini waits for NUDGE. A notice above the conversation names each Gemini member, and the cluster bar's Auto-compaction control says it skips them (`/compact` in the member's session compacts it). See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members) |
|
|
22
22
|
| Isolated members and sandbox | Members that work in a private workspace | Isolated members and researchers get a private workspace and a per-member web switch. Claude Native uses tool fencing on every system. Claude CLI, Codex, Cursor and (as researchers) Gemini run only inside a checked Linux sandbox; macOS and Windows offer Claude Native only. See [Sandbox requirements](OPERATIONS.md#sandbox-requirements-isolated-members-and-researchers) |
|
|
23
23
|
| 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 |
|
|
24
24
|
| 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) |
|
|
@@ -49,7 +49,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
49
49
|
| 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 |
|
|
50
50
|
| 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 |
|
|
51
51
|
| 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) |
|
|
52
|
-
| Phone view | Use the workbench from a phone at `/mobile` | One conversation at a time; the list of tabs
|
|
52
|
+
| Phone view | Use the workbench from a phone at `/mobile` | One conversation at a time; the list of tabs shows each tab's state (**NEEDS YOU**, **WORKING**, **IDLE**); member strip in clusters; one-row message box with **SEND** / **STEER**, **STOP** and **QUEUE FOR AFTER**; **PANELS** pages; text size under Settings > **THIS PHONE**. The phone needs a route to the server. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone) |
|
|
53
53
|
| Codex saved-model fallback | Keep a Codex tab working when its saved model is not offered | If the installed Codex does not offer the tab's saved model for the account, turns run on Codex's default model and the chat names both; the saved model is not changed. See [Providers](PROVIDERS.md) |
|
|
54
54
|
| 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) |
|
|
55
55
|
| 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 |
|
|
@@ -138,7 +138,7 @@ Skill activity appears below the conversation header during a turn. The control
|
|
|
138
138
|
| Media studio | Modal viewer/editor for images, audio, and video | Server-side **FFmpeg** ops and GPU **Demucs** stem separation. Image: zoom/pan + layer-based raster editor. Audio: waveform + clip / convert / normalize / speed / gain / spectrogram, plus **SEPARATE** (Demucs stem split). Video: scrub + clip / convert / extract-audio / framegrab / gif / geometry / speed / mute. Every op is a typed spec to argv (no shell, whitelisted enums + validated numbers), confined to the workflow folder + scratch unless **Unconfined media access** is enabled. FFmpeg/Demucs are optional. See [Media studio](MEDIA_STUDIO.md) |
|
|
139
139
|
| Command palette, focus mode, notification bell, SYSTEM modal | Quick navigation and system surfaces | `CommandPalette`; header focus-mode toggle collapses chrome to wordmark + urgent status; notification bell; SYSTEM modal with **ACTIONS** / **DIAGNOSTICS** / **MODELS** / **SERVICES** (health, model probes, local-services, power actions) |
|
|
140
140
|
| Two theme families with font-pack override | Classic and Phosphor themes plus font packs | 43 Arco Classic selections (42 color/font/shader-driven palettes such as Matrix, Sentinel, Cherenkov, Aurora, Red Planet, Everforest, DSKY, Noir, plus the `provider-auto` sentinel) backed by 29 GLSL shaders; 68 Arco Phosphor CRT palettes; 29 font packs substitute display/body/code typography on top of any theme. Each Classic theme carries an inspiration backstory in the User Manual |
|
|
141
|
-
| Window-size layout | The workspace fits laptop and desktop windows | Settings > Appearance > **Layout**: **Automatic** (default; Narrow under
|
|
141
|
+
| Window-size layout | The workspace fits laptop and desktop windows | Settings > Appearance > **Layout**: **Automatic** (default; Narrow under 1200, Compact from 1200, Standard from 1380, in interface pixels), **Standard**, **Compact** or **Narrow**. Fixed choices apply at every width. The top-bar switch cycles the same four. Composer tools that do not fit move into **MORE**; cluster settings fold into one line. Saved per browser; also in the command palette |
|
|
142
142
|
| Remote-friendly | Single forwarded port design | Run Arco on a local host and connect through a forwarded port (SSH tunnel). See [Remote access](OPERATIONS.md#remote-access) |
|
|
143
143
|
| In-app help system | Manual and contextual help | Header **HELP** menu: **USER MANUAL** opens the full operator reference; **POINT AT THINGS** turns on contextual help mode (dashed outline + click-for-popover on annotated elements; Esc exits); **KEYBOARD SHORTCUTS** lists the shortcuts. Inline file references open in a stacked DocViewer reading from the local repo |
|
|
144
144
|
|
package/docs/GETTING_STARTED.md
CHANGED
|
@@ -361,10 +361,11 @@ tunnel or a private network such as Tailscale. Read
|
|
|
361
361
|
beyond this computer. A desktop window narrower than 600 CSS pixels also
|
|
362
362
|
offers an **Open mobile view** link above the chat.
|
|
363
363
|
|
|
364
|
-
**The list of tabs.** It opens on
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
364
|
+
**The list of tabs.** It opens on your tabs: clusters, research projects,
|
|
365
|
+
agents, chats and Home, in your saved tab order. Each row shows its state:
|
|
366
|
+
**NEEDS YOU** for a question, an approval or a review gate waiting on you, or
|
|
367
|
+
for a member that is idle with unread mail; **WORKING**; or **IDLE**. Open the
|
|
368
|
+
row to answer: the question waits in a bar above the message box. Quick research appears with Chats.
|
|
368
369
|
A cluster row opens the cluster on its Director, or on the member you looked
|
|
369
370
|
at last; **MEMBERS** on the row lists its members. Clusters start folded.
|
|
370
371
|
**+ NEW** at the bottom right starts an agent, a cluster, a research project
|
package/docs/GIT_WORKBENCH.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Git workbench
|
|
2
2
|
|
|
3
|
+
The GitHub browser needs GitHub CLI (`gh`) in the Arco server environment;
|
|
4
|
+
Git alone is not sufficient. Recommended on Windows: install Git for Windows for local repositories and Git Bash, and GitHub CLI (gh) to connect Arco to GitHub. In Settings, a missing CLI offers installation and CHECK CONNECTION, a signed-out CLI offers LOG IN, and an unknown status offers diagnostic guidance and CHECK CONNECTION. A missing CLI, a signed-out CLI and a failed
|
|
5
|
+
status check have distinct messages. Install or repair the CLI as indicated,
|
|
6
|
+
then use CHECK CONNECTION. If the check fails, run `gh auth status` in the
|
|
7
|
+
server environment for details.
|
|
8
|
+
The recovery section uses the selected theme's dialog and control colors so the
|
|
9
|
+
message and recovery controls remain readable with light or dark palettes.
|
|
10
|
+
|
|
3
11
|
The Git/GitHub workbench brings the daily local-and-remote git loop into Arco
|
|
4
12
|
so the operator doesn't have to leave the workbench to see what changed, what
|
|
5
13
|
will push/pull, or what a PR contains. Every surface reuses the A3
|
package/docs/GLOSSARY.md
CHANGED
|
@@ -147,7 +147,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
147
147
|
|
|
148
148
|
**Persisting / persisted** - Written to `events.jsonl`. Persisted messages survive server restart and are streamed to clients on reconnect. Non-persisted messages (e.g. `quota_status`, `context_usage`, `session_entry`) are derived state, broadcast transiently.
|
|
149
149
|
|
|
150
|
-
**Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with
|
|
150
|
+
**Phone view** - The layout Arco serves at `/mobile` for a phone: one conversation at a time, a list of tabs with each tab's state, a member strip in clusters, **PANELS** for the side panels and a text size under Settings > **THIS PHONE**. It is the same server and the same tabs as the desktop layout. See [Use Arco from a phone](GETTING_STARTED.md#use-arco-from-a-phone).
|
|
151
151
|
|
|
152
152
|
**Plan** - A long-form markdown brief stored at `<cwd>/.arco/plans/<planId>.md`. Operators attach a plan to a workflow in the Plan tab; supported turns receive plan context subject to access restrictions. Plans live in the cwd, not the workflow, so the same plan can be attached to multiple workflows.
|
|
153
153
|
|
|
@@ -229,7 +229,7 @@ Also: **inline artifact** - fenced `arco-artifact` blocks the primary emits duri
|
|
|
229
229
|
|
|
230
230
|
**Scratch folder** - `scratch/` inside a conversation folder, for large intermediate files. Arco empties it only at the operator's request (**EMPTY SCRATCH**, or the offer when a tab is closed); items under a KEEP mark are skipped. See [Persistence](PERSISTENCE.md).
|
|
231
231
|
|
|
232
|
-
**Gemini member** - A cluster member on Antigravity CLI (Gemini).
|
|
232
|
+
**Gemini member** - A cluster member on Antigravity CLI (Gemini). AUTO-PICKUP can wake it for eligible incoming mail in an ordinary cluster. Mail from it waits for NUDGE. See [Gemini members](PROTOCOL_CLUSTER.md#gemini-members).
|
|
233
233
|
|
|
234
234
|
**Seed** - The first user message in a fresh CLI session, used by Handoff and Spawn to inject context. See **handoff seed** / **spawn seed**.
|
|
235
235
|
|
package/docs/GOTCHAS.md
CHANGED
|
@@ -223,7 +223,7 @@ Updater exit status and the post-update version are separate evidence. A nonzero
|
|
|
223
223
|
- **A local tool result does not close pending Native server calls.** A mixed response can return `stop_reason: tool_use` before its web search or web fetch results arrive. Match server calls and results by ID across assistant messages in the active turn. While any remain pending, send only the local tool results, leave steering queued and defer in-turn compaction. Each held message gets one notice, even across several pending rounds. Deliver at the next safe local-tool boundary or through the existing next-turn queue. Never fabricate a result or strip search evidence or thinking to insert a steer; actual-abort recovery stays separate.
|
|
224
224
|
- **Ripgrep stdout mixes matches and binary warnings.** Native Grep parses each newline-delimited record before looking for its NUL filename separator. A binary warning has no separator and must be skipped by itself; consuming through the next separator would discard the following text match. The bounded-read regression sorts filenames so the binary warning precedes a readable file.
|
|
225
225
|
|
|
226
|
-
- **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc
|
|
226
|
+
- **Agent shell commands and hooks go through `commandShell()`.** `server/src/commandShell.ts` returns `/bin/sh` on Linux and macOS, Git Bash on Windows and PowerShell on Windows without Git Bash; never spawn `/bin/sh` or `bash` directly for the Bash tools, hooks or sandbox shell scripts, and build the arguments with `shellInvocation()` (PowerShell gets an encoded command, or a temporary script that `cleanup()` removes). Start such children with `spawnShellChild()` and kill them with `signalChildTree()` from `server/src/workers/processKill.ts`: `process.kill(-pid)` does not exist on Windows, `taskkill /T` misses an MSYS background job whose forked parent has exited (the child's `ARCO_PROCESS_TREE` tag finds it through Git Bash's `/proc`, with each entry read in a subshell), and Node's own argument quoting halves a pair of backslashes on the way into Git Bash (`msysQuote()` with a verbatim command line does not). A hook that cannot start never blocks (`notRun`).
|
|
227
227
|
- **Cache discipline is load-bearing.** The forced first system block (`"You are Claude Code, ..."`) is byte-stable across every Native tab; the appendSystemPrompt block is byte-stable across iterations within a turn. Never insert per-turn-variable content (timestamps, request IDs, operator name) above the cache marker - that invalidates every prior turn's cache on every tab. System-block ordering is fixed (canonical list in the `buildSystemBlocks` header comment: FORCED_FIRST_BLOCK → north-star → cluster plan → role → efficiency/progress doctrine → delegation contract → sandbox nudge → env note → turn discipline → workspace facts → appendSystemPrompt → systemPrompt → output style; a Chat tab short-circuits to FORCED_FIRST_BLOCK → chat prompt); reordering on a deploy invalidates every active tab's cache. The hardcoded `FORCED_FIRST_BLOCK` constant in `worker.ts` is the single source of truth - operator overrides were intentionally rejected (§14 Q4). On the OAuth subscription path, requests and diagnostics must include the identity block; omitting it can produce a rate-limit error.
|
|
228
228
|
- **Stateless Native helpers live in siblings, re-exported from `worker.ts` (P0 carve-out).** To stay under the 2000-line cap, the pure leaf helpers were moved to `modelParams.ts` (token/thinking/effort/ctx), `contentBlocks.ts` (content-block types + image/message/server-tool/context-mgmt/strip-thinking helpers), and `workerHelpers.ts` (`replayMessagesFromEvents`, `mergeUsage`, `truncateOutput`, `planParserAdvisories`, `sleepWithSignal`). `worker.ts` re-exports the previously-public names so `from './worker.js'` imports (including the test files) keep working - **add new pure helpers to the sibling modules, not back into `worker.ts`**; only stateful class logic belongs there. The `FORCED_FIRST_BLOCK` constant stays in `worker.ts` (single source of truth, see cache-discipline bullet above).
|
|
229
229
|
- **Replay-on-restart is the canonical recovery path.** On `ensureStarted` the worker tail-reads `events.jsonl` and reconstructs `messages[]` from `user_message_echo` + `primary_text` entries. Tool_use / tool_result events are NOT replayed (the model gets a clean USER/ASSISTANT view; reconstructing tool ids with full fidelity is deferred - §14 Q7). Don't add a periodic snapshot path without first measuring whether replay cost actually bites. The reconstruction logs to stderr under `[claude-native:<wfid>]`; that's the forensic surface.
|
|
@@ -525,8 +525,8 @@ Cursor is an ACP provider (`cursor-agent acp`). Current transport details are su
|
|
|
525
525
|
|
|
526
526
|
Antigravity CLI runs Google's own `agy acp` on the operator's sign-in. These traps keep it within that sign-in's terms; see `docs/PROVIDERS.md` (Antigravity CLI) and `docs/PROTOCOL_CLUSTER.md` (Gemini members).
|
|
527
527
|
|
|
528
|
-
- **A Gemini member turn
|
|
529
|
-
- **
|
|
528
|
+
- **A Gemini member turn needs a single-use ticket for its exact input.** The operator's NUDGE or typed message obtains a ticket in the WebSocket handler. The Rule-based and Smart dispatchers can issue one after admitting a wake in an ordinary cluster. They recheck mode, pause, membership and access at dispatch. Research, busy reminders, task dispatch, broadcasts, CONTINUE DIRECTOR, timers and retries cannot use that path. The worker reads eligible pickup mail through peer_read.
|
|
529
|
+
- **Gemini replacement history is an operator send.** Use the previewed history and a single-use ticket for the replacement member. Its first turn receives its own role and cluster instructions.
|
|
530
530
|
- **Scheduling requests are refused.** `providers/acp/permissionGate.ts` declines a permission request that names scheduling, cron or automation and posts a notice; scheduling needs unattended execution. The CLI can still act without asking according to its own configuration, so the AUTO/SAFE gate is not a promise that every action is seen.
|
|
531
531
|
- **The Chat working folder is not a fence.** A saved Antigravity Chat works in `ARCO_HOME/chat-workspaces/<chat-id>` (`chatMode.ts`), which is deleted with the Chat. Tools can reach whatever the user's account can reach.
|
|
532
532
|
- **Gemini for research is a separate sign-in.** Its home is `~/.arco/antigravity-research`; for each researcher turn the sign-in file is copied into the researcher's private home inside the Linux worker sandbox (`workers/antigravityIsolatedLaunch.ts`). Never point a researcher at the operator's main Antigravity sign-in.
|
|
@@ -1170,7 +1170,7 @@ The live Arco *service* reporting workflows + applying reply/stop/continue. `ser
|
|
|
1170
1170
|
- **`createBlankNativeWorkflow` is a minimal pre-replay helper for B3 - don't extend it for resume / rehydrate cases.** It deliberately skips the savedMeta restoration logic (autoHandoff / efficiency toggles / outputStyle / planId / calibration / preview) that `handleCreateWorkflow` performs because B3 only creates *fresh* workflows. If a future surface wants to "fork N workers from a template that has prior state," it should call `handleCreateWorkflow` (so resume + rehydrate hooks fire) and chain the cluster create separately. Mixing the two paths in one helper would silently drop state on the fresh path.
|
|
1171
1171
|
- **Cluster provider fence follows peer-tool wiring, not provider brand.** Claude and Codex get peer tools through Native/CLI/MCP wiring; Ollama now gets them through the local tool registry when `WorkerConfig.clusterId` + `workflowId` are present. Providers without peer-tool wiring remain fenced out. Do not loosen a provider by UI-only changes; the worker must actually receive `peer_list` / `peer_send` / `peer_read` / plan tools.
|
|
1172
1172
|
- **Cluster Reviews sub-tab reads `job.reviews[]` per member, not a cluster-scoped review list.** Reviews dispatched from MemberPane fire through the existing per-workflow `requestReview` path; the per-member `job.reviews[]` is populated by the same `review_started` / `review_artifact_ready` WS handlers as the standalone Review tab. The Reviews sub-tab is purely a read-side aggregation. If cluster-wide review (one reviewer call across all members) lands later, that's a separate `cluster_reviews[]` list - don't write cluster-wide review state into per-member arrays.
|
|
1173
|
-
- **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH`
|
|
1173
|
+
- **TabContextMenu's three modes share one modal; mode preconditions short-circuit submit.** `ADD TO EXISTING` requires at least one same-cwd cluster AND anchor-not-already-a-member; `CREATE WITH EXISTING` requires at least one selected; `CREATE WITH FRESH` (the opening mode, 1 worker) requires every worker card ready and at most one Director. Switching modes mid-flow keeps the picker open (no re-trigger needed). If a fourth mode lands (e.g. "fork cluster"), make it a sibling component rather than a fourth conditional - the current single-component conditional is at its readable limit.
|
|
1174
1174
|
|
|
1175
1175
|
### gotchas (cluster-attached plan + role hints)
|
|
1176
1176
|
|