arco-workbench 0.1.7 → 0.1.8
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 +52 -12
- package/README.md +14 -12
- package/client/dist/assets/{PhosphorBackdrop-DVQdBrTw.js → PhosphorBackdrop-D7jdAV_G.js} +1 -1
- package/client/dist/assets/{ThemedBackgroundShaderImpl-BfSs2tB4.js → ThemedBackgroundShaderImpl-DrDm60h8.js} +1 -1
- package/client/dist/assets/{XtermView-DaMjC8Ny.js → XtermView-BGFujb1e.js} +1 -1
- package/client/dist/assets/{galleryEditor-BCQnXj7R.js → galleryEditor-D951A2sE.js} +1 -1
- package/client/dist/assets/{index-COfbHCYv.js → index-CsVy3eZm.js} +246 -246
- package/client/dist/index.html +1 -1
- package/client/src/components/ClusterRightPanel/ReplaceMemberDialog.tsx +65 -15
- package/client/src/components/ClusterRightPanel/SkillsControl.tsx +107 -0
- package/client/src/components/ClusterRightPanel/index.tsx +4 -0
- package/client/src/components/ClusterTaskBoardTab.tsx +9 -22
- package/client/src/components/NeedsYouBadge.tsx +3 -3
- package/client/src/components/ProviderReleasesModal.tsx +8 -4
- package/client/src/components/ProvidersPopover.tsx +28 -23
- package/client/src/components/SettingsPanel.tsx +2 -2
- package/client/src/components/SkillsSettings.tsx +5 -0
- package/client/src/components/TabBar.tsx +91 -9
- package/client/src/components/TerminalInput.tsx +12 -10
- package/client/src/components/TranscriptSendDialog.tsx +12 -8
- package/client/src/components/TranscriptWorkerDialog.tsx +119 -0
- package/client/src/components/clusterNeedsYou.ts +11 -18
- package/client/src/help/content/cluster.tsx +38 -17
- package/client/src/help/content/composer.tsx +22 -0
- package/client/src/help/content/header.tsx +16 -0
- package/client/src/help/content/misc.tsx +8 -0
- 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 +41 -20
- package/client/src/help/manualSections/configuration.tsx +18 -0
- package/client/src/help/manualSections/maintenance.tsx +18 -0
- 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 +6 -0
- package/client/src/utils/transcriptWorkerRequest.ts +24 -0
- package/client/src/ws/handleServerMessage.ts +8 -2
- package/docs/ARCHITECTURE.md +1 -1
- package/docs/CLIENT.md +9 -8
- package/docs/FEATURES.md +8 -5
- package/docs/GETTING_STARTED.md +4 -3
- package/docs/GOTCHAS.md +2 -1
- package/docs/OPERATIONS.md +14 -4
- package/docs/PERSISTENCE.md +7 -2
- package/docs/PRIMITIVES.md +42 -0
- package/docs/PROTOCOL_CLUSTER.md +42 -3
- package/docs/PROTOCOL_PRIMITIVES.md +39 -0
- package/docs/PROVIDERS.md +50 -13
- package/docs/SETTINGS.md +27 -3
- package/docs/TASK_LEDGER.md +7 -15
- package/native/darwin-arm64/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/clientMessages.d.ts +3 -2
- package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +13 -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 +2 -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/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 +1 -1
- package/server/dist/clusterPeerOps.js +10 -7
- package/server/dist/clusterProgress.js +1 -1
- 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/historyLimits.d.ts +1 -0
- package/server/dist/historyLimits.js +3 -0
- package/server/dist/http/router.js +1 -1
- 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/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.js +2 -1
- package/server/dist/providers/codexCodeMode.d.ts +1 -1
- package/server/dist/providers/codexCodeMode.js +4 -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/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 +5 -2
- package/server/dist/ws/transcriptWorkerHandlers.d.ts +25 -0
- package/server/dist/ws/transcriptWorkerHandlers.js +139 -0
- package/server/dist/ws/turnEngine.js +23 -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 +1 -1
- package/server/src/clusterPeerOps.ts +11 -8
- package/server/src/clusterProgress.ts +1 -1
- 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/historyLimits.ts +2 -0
- package/server/src/http/router.ts +1 -1
- 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/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.ts +2 -1
- package/server/src/providers/codexCodeMode.ts +4 -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/workflowStore.ts +21 -0
- package/server/src/ws/clusterHandlers.ts +43 -25
- package/server/src/ws/handoffHandlers.ts +5 -1
- package/server/src/ws/transcriptWorkerHandlers.ts +126 -0
- package/server/src/ws/turnEngine.ts +20 -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/clientMessages.d.ts +3 -2
- package/shared/dist/protocol/clusters.d.ts +13 -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 +2 -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/runtimeVersions.d.ts +1 -0
- package/shared/dist/runtimeVersions.js +14 -0
- package/shared/src/clusterCoordination.ts +7 -1
- package/shared/src/protocol/clientMessages.ts +5 -0
- package/shared/src/protocol/clusters.ts +16 -1
- package/shared/src/protocol/index.ts +1 -0
- package/shared/src/protocol/models.ts +31 -5
- package/shared/src/protocol/serverMessages.ts +2 -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/runtimeVersions.ts +14 -0
|
@@ -2,6 +2,26 @@ import { C } from './shared';
|
|
|
2
2
|
import type { HelpEntry } from './shared';
|
|
3
3
|
|
|
4
4
|
export const composerHelp: Record<string, HelpEntry> = {
|
|
5
|
+
'composer.transcript-worker': {
|
|
6
|
+
title: 'Copy turns to a new worker',
|
|
7
|
+
body: <><p>TRANSCRIPT can create a fresh Agent tab in any chosen working directory. In a cluster, choose NEW WORKER from the existing-member dialog. Copy 1-50 operator turns, default 3, with a typed preface before them. Spawn keeps its existing summary behavior.</p><p>Operator and visible agent text stay exact. Tools and attachments become receipts; files, hidden thinking and source pins are not copied. It starts a fresh provider conversation. The new folder's own settings apply.</p></>,
|
|
8
|
+
manualSection: 'transcript-worker',
|
|
9
|
+
},
|
|
10
|
+
'composer.transcript-worker-preview': {
|
|
11
|
+
title: 'Preview the exact copied seed',
|
|
12
|
+
body: <><p>PREVIEW reads the stored source at a fixed point, including history this page has not loaded. Include the running partial turn only when selected. The preface has a 4 KiB limit; the complete seed has a 32 KiB limit. Nothing is silently clipped.</p><p>Review the byte count and selected turns. Editing turns or preface requires another preview. Source appends do not change an accepted snapshot; rewound or changed history requires refreshing it.</p></>,
|
|
13
|
+
manualSection: 'transcript-worker',
|
|
14
|
+
},
|
|
15
|
+
'composer.transcript-worker-target': {
|
|
16
|
+
title: 'Choose the new worker',
|
|
17
|
+
body: <p>Choose an existing working directory, provider, model, effort and available account. Permission prompts start on. The worker gets a fresh provider conversation with no source cluster membership or standing pins. Existing sign-in files stay in place. Relative paths quoted in the seed belong to the source project.</p>,
|
|
18
|
+
manualSection: 'transcript-worker',
|
|
19
|
+
},
|
|
20
|
+
'composer.transcript-worker-send': {
|
|
21
|
+
title: 'Send the seed as the first message',
|
|
22
|
+
body: <p>Creates one new worker from the accepted preview and starts its first message with that exact seed. The seed becomes saved conversation history in the chosen project. A stale preview or invalid destination leaves this dialog and its preface available to correct. Existing-member sends and Spawn keep their current behavior.</p>,
|
|
23
|
+
manualSection: 'transcript-worker',
|
|
24
|
+
},
|
|
5
25
|
'composer.pending-edit': {
|
|
6
26
|
title: 'Edit a pending message',
|
|
7
27
|
body: <p>Remove this message from the queue and append its text to this tab's current draft. Its kind, attachments and selected skills return too. Skill choices merge with the tab's existing choices without duplicates and stay with that tab across navigation. Resending applies each selected skill once. The server confirms removal first. If delivery won the race, the draft stays unchanged and Arco says Already sent, nothing to edit. Reconnect before editing.</p>,
|
|
@@ -523,6 +543,7 @@ export const composerHelp: Record<string, HelpEntry> = {
|
|
|
523
543
|
against the live session via a background pty).
|
|
524
544
|
</p>
|
|
525
545
|
<p>If a saved provider conversation id was lost, <C>CTX: -</C> explains that the previous conversation cannot be resumed. The next message starts a new conversation and adds one notice; the replacement waits for its own reading. Earlier messages and usage stay in the tab. Missing metadata is recreated, but an already-lost id cannot be recovered.</p>
|
|
546
|
+
<p>Claude Native limits an uncached reconstruction parse to 1 GiB. A valid summary cache with a small tail can resume a larger history. A refused or failed rebuild adds one notice: the agent continues without earlier context, so include any needed context again. Claude CLI loading handles 2 GB separately; a session-history notice means its saved conversation is intact and new messages will appear when readable. Earlier messages remain in the tab.</p>
|
|
526
547
|
</>
|
|
527
548
|
),
|
|
528
549
|
manualSection: 'context-window',
|
|
@@ -555,6 +576,7 @@ export const composerHelp: Record<string, HelpEntry> = {
|
|
|
555
576
|
title: 'Current model & effort',
|
|
556
577
|
body: (
|
|
557
578
|
<>
|
|
579
|
+
<p>Codex also refreshes its cached catalog on the next request after its CLI changes the local model list. The browser polls every 30 minutes; reload the page to request it sooner without restarting Arco. The cold fallback includes GPT-6.2 Sol and Astra, with Sol as default; a live account catalog takes precedence.</p>
|
|
558
580
|
<p>FABLE 5.2 offers low, medium, high, xhigh and max effort. Switching a tab from 5.2 to another model drops its earlier reasoning; the request still works.</p>
|
|
559
581
|
<p>
|
|
560
582
|
The model + effort used for the next turn. Live-editable from the
|
|
@@ -277,6 +277,11 @@ export const headerHelp: Record<string, HelpEntry> = {
|
|
|
277
277
|
Release notes take keyboard focus on opening. Escape dismisses them;
|
|
278
278
|
closing returns focus to the opening version control when available.
|
|
279
279
|
</p>
|
|
280
|
+
<p>Click CURSOR to run <C>cursor-agent update</C> and recheck its version. CURSOR CHANGELOG opens the CLI notes separately. The flag reads the dated version from the public installer without running it. If metadata is unavailable or builds on the same date have unordered hashes, no flag appears; the update action still works. Arco never installs a second copy as a fallback.</p>
|
|
281
|
+
<p>llama.cpp checks recent published numeric build tags and flags an
|
|
282
|
+
older installed build. If a build cannot be read, no flag is shown.
|
|
283
|
+
Click its row for upstream releases and update manually; the check
|
|
284
|
+
does not install anything or load a model.</p>
|
|
280
285
|
<p>Arco checks the matching npm platform binary before installing.
|
|
281
286
|
An older npm CLI can use a pinned installable version; its self-updater
|
|
282
287
|
waits when the latest build is missing. A working installation is
|
|
@@ -291,6 +296,17 @@ export const headerHelp: Record<string, HelpEntry> = {
|
|
|
291
296
|
),
|
|
292
297
|
manualSection: 'provider-updates',
|
|
293
298
|
},
|
|
299
|
+
'header.cursor-changelog': {
|
|
300
|
+
title: 'CURSOR CHANGELOG',
|
|
301
|
+
manualSection: 'provider-updates',
|
|
302
|
+
body: (
|
|
303
|
+
<p>
|
|
304
|
+
Opens Cursor's CLI release notes in a new tab. It does not run an
|
|
305
|
+
update. Click the CURSOR version row to run <C>cursor-agent update</C>
|
|
306
|
+
and recheck the installed version.
|
|
307
|
+
</p>
|
|
308
|
+
),
|
|
309
|
+
},
|
|
294
310
|
'header.workflow-status': {
|
|
295
311
|
title: 'Provider throttling',
|
|
296
312
|
manualSection: 'header',
|
|
@@ -1946,6 +1946,7 @@ export const miscHelp: Record<string, HelpEntry> = {
|
|
|
1946
1946
|
'diagnostics.check-row': {
|
|
1947
1947
|
title: 'Diagnostic check',
|
|
1948
1948
|
body: (
|
|
1949
|
+
<>
|
|
1949
1950
|
<p>
|
|
1950
1951
|
One probe result. The glyph + status colour is the verdict -{' '}
|
|
1951
1952
|
<strong>OK</strong> (green) the thing works, <strong>WARN</strong>{' '}
|
|
@@ -1954,6 +1955,13 @@ export const miscHelp: Record<string, HelpEntry> = {
|
|
|
1954
1955
|
<strong>SKIPPED</strong> (grey) not probed on this platform/config. Click
|
|
1955
1956
|
to expand the detail line, any remediation hint, and the check id.
|
|
1956
1957
|
</p>
|
|
1958
|
+
<p>
|
|
1959
|
+
Only run <C>arco setup --repair-native</C> when Arco reports that a native
|
|
1960
|
+
part will not load. A failed repair shows the failing build step and
|
|
1961
|
+
decisive error when available. Installed native parts stay unchanged
|
|
1962
|
+
and keep working. The build tools may be missing, out of date or broken.
|
|
1963
|
+
</p>
|
|
1964
|
+
</>
|
|
1957
1965
|
),
|
|
1958
1966
|
manualSection: 'diagnostics',
|
|
1959
1967
|
},
|
|
@@ -2,6 +2,21 @@ import { C } from './shared';
|
|
|
2
2
|
import type { HelpEntry } from './shared';
|
|
3
3
|
|
|
4
4
|
export const settingsHelp: Record<string, HelpEntry> = {
|
|
5
|
+
'settings.skills.pin-tab': {
|
|
6
|
+
title: 'Pin a skill to a tab',
|
|
7
|
+
body: <p>Select an Agent tab to add the skill's full text on every turn. Project skills can be pinned within their project; global skills can be pinned anywhere. The tab's own pins and inherited cluster pins share one 12-skill, 64 KiB limit.</p>,
|
|
8
|
+
manualSection: 'skills',
|
|
9
|
+
},
|
|
10
|
+
'settings.skills.pin-cluster': {
|
|
11
|
+
title: 'Pin a skill to a cluster or role',
|
|
12
|
+
body: <p>Choose a cluster and All members or a role. New and replaced matching members inherit the pin. Custom role text must match exactly. The cluster SKILLS button lists these pins and lets the operator remove them. Agents cannot pin or unpin.</p>,
|
|
13
|
+
manualSection: 'skills',
|
|
14
|
+
},
|
|
15
|
+
'settings.skills.pin': {
|
|
16
|
+
title: 'Choose where the standing skill applies',
|
|
17
|
+
body: <><p>Select a tab or cluster, then the cluster role scope when offered. PIN adds the full skill text every turn. The dialog shows how many current members match; future matching members inherit it too.</p><p>Duplicate skill references apply once. More than 12 unique skills or 64 KiB with the existing pins is refused. Pinning a project skill is explicit approval to apply its text even with project trust off. CANCEL leaves the pins unchanged.</p></>,
|
|
18
|
+
manualSection: 'skills',
|
|
19
|
+
},
|
|
5
20
|
'settings.native-subagents-running': {
|
|
6
21
|
title: 'Maximum running at once',
|
|
7
22
|
body: <p>Settings - Agents and clusters - Claude Native sub-agents. Claude Native runs up to this many Task children for one parent. Additional admitted tasks queue and can be cancelled. Default: 4, including existing tabs. Blank uses Settings in a tab, or 4 in Settings. Applies next turn; CLI, Codex, Cursor and local providers do not use this limit.</p>,
|
|
@@ -342,10 +357,8 @@ export const settingsHelp: Record<string, HelpEntry> = {
|
|
|
342
357
|
title: 'Board auto-done',
|
|
343
358
|
body: (
|
|
344
359
|
<p>A refused or incomplete settings reply leaves the previous saved settings active; a save error is reported.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
not-met sign-offs are left for you. Off by default, so you accept finished work
|
|
348
|
-
yourself.
|
|
360
|
+
On by default. A new director sign-off of <C>met</C> marks the task done on the server.
|
|
361
|
+
Turn it off to accept finished tasks yourself. Existing review tasks are unchanged; partial and not-met sign-offs do not close tasks.
|
|
349
362
|
</p>
|
|
350
363
|
),
|
|
351
364
|
manualSection: 'cluster-board',
|
|
@@ -366,6 +379,7 @@ export const settingsHelp: Record<string, HelpEntry> = {
|
|
|
366
379
|
frees VRAM immediately. <C>chatTemplate</C> and <C>extraArgs</C> are
|
|
367
380
|
preserved across edits even if not exposed in the form. Endpoint overrides use the same host and port for launch, health and inference. A server exit clears ready state; the next request can reload it.
|
|
368
381
|
</p>
|
|
382
|
+
<p>Each reply has a 120-second wall-clock limit and a 90-second no-data limit. Both apply with <C>ARCO_LLAMACPP_AUTO_RECOVER=off</C>; Arco then stops with one plain error and no retry. Override the limits with <C>ARCO_LLAMACPP_TURN_BUDGET_MS</C> and <C>ARCO_LLAMACPP_STALL_TIMEOUT_MS</C> in the server environment. With recovery on, the existing recovery budget and final-summary attempt still apply.</p>
|
|
369
383
|
</>
|
|
370
384
|
),
|
|
371
385
|
manualSection: 'provider-llamacpp',
|
|
@@ -18,6 +18,11 @@ export const tabbarHelp: Record<string, HelpEntry> = {
|
|
|
18
18
|
),
|
|
19
19
|
manualSection: 'tab-bar',
|
|
20
20
|
},
|
|
21
|
+
'tabbar.scroll': {
|
|
22
|
+
title: 'Scroll tabs',
|
|
23
|
+
body: <p>Use the mouse wheel over the tab row to scroll sideways. Swipe horizontally on a touch screen or trackpad, or press the Previous tabs and Next tabs edge buttons. An edge button means more tabs are hidden in that direction. Opening a tab brings it into view. Tab focus also keeps its control visible.</p>,
|
|
24
|
+
manualSection: 'tab-bar',
|
|
25
|
+
},
|
|
21
26
|
'tabbar.status': {
|
|
22
27
|
title: 'Tab status',
|
|
23
28
|
body: (
|
|
@@ -240,6 +240,37 @@ export const actions: Section[] = [
|
|
|
240
240
|
</>
|
|
241
241
|
),
|
|
242
242
|
},
|
|
243
|
+
{
|
|
244
|
+
id: 'transcript-worker',
|
|
245
|
+
group: 'The six operator actions',
|
|
246
|
+
title: 'Copy turns to a new worker',
|
|
247
|
+
body: <>
|
|
248
|
+
<p>Open TRANSCRIPT in an Agent composer. A standalone tab opens the new
|
|
249
|
+
worker form directly. In a cluster, choose NEW WORKER from the member
|
|
250
|
+
delivery dialog. Existing member delivery stays available; Spawn still
|
|
251
|
+
asks an agent to write a summary in the same working directory.</p>
|
|
252
|
+
<p>Choose 1-50 operator turns, default 3, and type a preface placed before
|
|
253
|
+
them. Operator and visible agent text keep their exact whitespace and
|
|
254
|
+
order. Tools become one-line receipts; attachments become source-location
|
|
255
|
+
receipts without copied files. Hidden thinking and injected instructions
|
|
256
|
+
are excluded. Include the running partial turn only when selected.</p>
|
|
257
|
+
<p>Choose an existing working directory, provider, model, effort and
|
|
258
|
+
available account. Permission prompts start on. The worker starts a fresh
|
|
259
|
+
provider conversation without the source's pins or cluster membership.
|
|
260
|
+
The destination's own project settings apply. Copied relative paths refer
|
|
261
|
+
to the source project, not the new folder.</p>
|
|
262
|
+
<p>PREVIEW reads the stored conversation at a fixed point and shows the
|
|
263
|
+
exact seed. The preface may use 4096 UTF-8 bytes; the whole seed must fit
|
|
264
|
+
32768 bytes. Oversized selections are refused instead of clipped. Choose
|
|
265
|
+
fewer turns or shorten the preface. Editing either requires another preview.</p>
|
|
266
|
+
<p>SEND TO NEW WORKER saves that seed as the new tab's first message and
|
|
267
|
+
starts it once. The source continues independently. Later source messages
|
|
268
|
+
are outside the snapshot. A rewind or changed history requires refreshing
|
|
269
|
+
the preview. Rewound sources copy only their current branch; missing ancestry
|
|
270
|
+
refuses an exact preview. Errors keep the form and preface for correction.
|
|
271
|
+
Sign-in files and attachment files are never copied.</p>
|
|
272
|
+
</>,
|
|
273
|
+
},
|
|
243
274
|
{
|
|
244
275
|
id: 'live-config-swap',
|
|
245
276
|
group: 'The six operator actions',
|
|
@@ -653,15 +653,22 @@ export const clusters: Section[] = [
|
|
|
653
653
|
refused; Arco never switches to another account.
|
|
654
654
|
</p>
|
|
655
655
|
<p>
|
|
656
|
-
Two independent
|
|
656
|
+
Two independent choices control what crosses the boundary:
|
|
657
657
|
</p>
|
|
658
658
|
<ul>
|
|
659
659
|
<li>
|
|
660
|
-
<strong>
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
660
|
+
<strong>HISTORY</strong> starts at <strong>NO HISTORY</strong>.
|
|
661
|
+
<strong> RECENT HISTORY</strong> copies the last 10 whole turns by default;
|
|
662
|
+
choose 1 to 50 within 128 KiB. Text stays word for word, with tool calls and
|
|
663
|
+
attached files represented by receipts. <strong>FULL HISTORY</strong> keeps
|
|
664
|
+
the prior transcript and action digest when they fit 512 KiB. Above that
|
|
665
|
+
limit it copies the newest whole turns that fit, with receipts instead of
|
|
666
|
+
the full action digest. The preview says how many turns fit before REPLACE
|
|
667
|
+
becomes available. Nothing is clipped to fit. If no whole recent turn fits,
|
|
668
|
+
the preview says that no history will be copied.
|
|
669
|
+
A partial copy leaves one plain line in the replacement conversation; the
|
|
670
|
+
earlier history remains in the previous conversation. A nonempty imported
|
|
671
|
+
seed spends a model call and always starts a new provider conversation.
|
|
665
672
|
</li>
|
|
666
673
|
<li>
|
|
667
674
|
<strong>TRANSFER ACTIVE TASK ASSIGNMENTS</strong> reassigns the
|
|
@@ -975,6 +982,22 @@ export const clusters: Section[] = [
|
|
|
975
982
|
requested review and landing review stay unchanged.
|
|
976
983
|
</p>
|
|
977
984
|
<p>
|
|
985
|
+
The Director keeps waits under 60 seconds and delegates long checks.
|
|
986
|
+
Other members and standalone agents wait for results their reports need,
|
|
987
|
+
in steps of at most 120 seconds, repeated as needed. Between waits,
|
|
988
|
+
members check peer mail and act on it. They report when the result arrives.
|
|
989
|
+
</p>
|
|
990
|
+
<p>
|
|
991
|
+
After a progress report or an answer while assigned work remains, non-Director
|
|
992
|
+
members and standalone agents continue that work in the same turn; they end
|
|
993
|
+
the turn only when it is done or with one stated blocker.
|
|
994
|
+
</p>
|
|
995
|
+
<p>
|
|
996
|
+
If blocked or if a job clearly cannot finish within a reasonable time,
|
|
997
|
+
the agent names what it is waiting on and says that a nudge is needed
|
|
998
|
+
before ending its turn. This guidance adds no automatic completion wake.
|
|
999
|
+
</p>
|
|
1000
|
+
<p>
|
|
978
1001
|
Message guard is independent:
|
|
979
1002
|
</p>
|
|
980
1003
|
<ul>
|
|
@@ -1681,16 +1704,15 @@ export const clusters: Section[] = [
|
|
|
1681
1704
|
</li>
|
|
1682
1705
|
</ul>
|
|
1683
1706
|
<Note>
|
|
1684
|
-
<strong
|
|
1685
|
-
operator-only
|
|
1707
|
+
<strong>Direct <Code>done</Code> / <Code>archived</Code> status changes are
|
|
1708
|
+
operator-only.</strong> A director met sign-off closes the task when Board
|
|
1709
|
+
auto-done is on.{' '}
|
|
1686
1710
|
<Code>cluster_task_update</Code> rejects either terminal status with{' '}
|
|
1687
1711
|
<Code>operator_gated</Code> - workers move finished work to{' '}
|
|
1688
1712
|
<Code>review</Code> through <Code>cluster_task_complete</Code> or
|
|
1689
|
-
report via <Code>peer_send</Code
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
re-enforces the operator-confirmed terminal-status rule at
|
|
1693
|
-
the peer layer.
|
|
1713
|
+
report via <Code>peer_send</Code>. The operator can accept a task from
|
|
1714
|
+
the LEDGER tab, by dragging the card to <Code>done</Code> with confirmation,
|
|
1715
|
+
or through the drawer status controls.
|
|
1694
1716
|
</Note>
|
|
1695
1717
|
<p>
|
|
1696
1718
|
Claims and updates are saved like operator edits. Every member's
|
|
@@ -1711,15 +1733,13 @@ export const clusters: Section[] = [
|
|
|
1711
1733
|
</p>
|
|
1712
1734
|
<ul>
|
|
1713
1735
|
<li><strong>PLAN</strong> - agents follow the plan and the operator approves changes.</li>
|
|
1714
|
-
<li><strong>BOARD</strong> - agents move tasks along; the operator
|
|
1736
|
+
<li><strong>BOARD</strong> - agents move tasks along; the operator can accept finished work and answers blocked tasks.</li>
|
|
1715
1737
|
</ul>
|
|
1716
1738
|
<ul>
|
|
1717
1739
|
<li>
|
|
1718
1740
|
The badge above the member cards names WAITING questions that pause an
|
|
1719
|
-
agent, tasks BLOCKED on you, ASKED questions the agent can continue past
|
|
1720
|
-
and
|
|
1721
|
-
warning colour; optional kinds are muted. Accepting is optional; nothing
|
|
1722
|
-
waits on it.
|
|
1741
|
+
agent, tasks BLOCKED on you, and ASKED questions the agent can continue past. Stopped kinds come first
|
|
1742
|
+
and use the warning colour; ASKED is muted.
|
|
1723
1743
|
</li>
|
|
1724
1744
|
<li>
|
|
1725
1745
|
Click the badge to jump to a task or member. In Narrow layout, the compact
|
|
@@ -1746,8 +1766,9 @@ export const clusters: Section[] = [
|
|
|
1746
1766
|
the board moved.
|
|
1747
1767
|
</li>
|
|
1748
1768
|
<li>
|
|
1749
|
-
Settings > Agents and clusters > Board auto-done
|
|
1750
|
-
|
|
1769
|
+
Settings > Agents and clusters > Board auto-done is on by default.
|
|
1770
|
+
A new director met sign-off closes the task on the server; turn the setting
|
|
1771
|
+
off to accept tasks yourself. Existing review tasks stay in review.
|
|
1751
1772
|
</li>
|
|
1752
1773
|
</ul>
|
|
1753
1774
|
</>
|
|
@@ -531,6 +531,24 @@ export const configuration: Section[] = [
|
|
|
531
531
|
</p>
|
|
532
532
|
<p>UPDATE checks every installed file against its REVIEW snapshot before replacing the folder. A later local edit refuses the update and remains intact. REVIEW again before applying.</p>
|
|
533
533
|
<p>Quotes and backslashes in skill names and descriptions survive repeated edits. IMPORT, MOVE, DUPLICATE and new skill creation keep collision suffixes within the 64-character folder-name limit.</p>
|
|
534
|
+
<Sub>Pin to a tab, cluster or role</Sub>
|
|
535
|
+
<p>In Settings > SKILLS, PIN TO TAB selects an Agent tab. PIN TO CLUSTER
|
|
536
|
+
selects a cluster and All members or one role. A custom role must match its
|
|
537
|
+
saved text exactly. Project skills stay within their project; global skills
|
|
538
|
+
can be pinned anywhere. Full text is added on every matching member's next turn.</p>
|
|
539
|
+
<p>The cluster SKILLS button beside EFFICIENCY shows the configured count.
|
|
540
|
+
Open it to see sources, scope, availability and UNPIN. New and replaced
|
|
541
|
+
members inherit the cluster's pins. A member's composer shows FROM CLUSTER;
|
|
542
|
+
its direct tab pins remain separate. Only the operator can pin or unpin.</p>
|
|
543
|
+
<p>Tab, cluster and matching role pins share a limit of 12 unique skills and
|
|
544
|
+
64 KiB of text. Duplicate references apply once. Additions over the limit are
|
|
545
|
+
refused with a reason. Running turns keep their existing instructions.
|
|
546
|
+
There are no default pins or Standing skills row during creation.</p>
|
|
547
|
+
<p>Missing, moved, deleted or off skills are skipped and remain visible for
|
|
548
|
+
removal. Edits take effect next turn; an enlarged skill that no longer fits
|
|
549
|
+
is reported in the conversation. Pinning project text applies it even with
|
|
550
|
+
project trust off. To pin a built-in, first save an EDITABLE COPY as a project
|
|
551
|
+
or global skill.</p>
|
|
534
552
|
<Sub>Built-in skills</Sub>
|
|
535
553
|
<p>Built-ins are on by default. Settings lists each with an OPERATOR or MODEL
|
|
536
554
|
badge and can turn each off. A project or
|
|
@@ -132,6 +132,17 @@ export const maintenance: Section[] = [
|
|
|
132
132
|
Claude continues to use <Code>claude update</Code>.
|
|
133
133
|
</p>
|
|
134
134
|
<p>
|
|
135
|
+
Cursor uses <Code>cursor-agent update</Code> and rechecks its version.
|
|
136
|
+
The separate CURSOR CHANGELOG link opens the CLI release notes.
|
|
137
|
+
</p>
|
|
138
|
+
<p>
|
|
139
|
+
Cursor's update flag reads the dated release version from its public
|
|
140
|
+
installer without running the script. If that metadata cannot be read,
|
|
141
|
+
no flag appears and clicking the row still runs the updater. Builds with
|
|
142
|
+
different hashes on the same date have no known order and do not show
|
|
143
|
+
an update flag. Arco never installs a second copy as a fallback.
|
|
144
|
+
</p>
|
|
145
|
+
<p>
|
|
135
146
|
During an npm publication gap, an older npm CLI can use a pinned installable
|
|
136
147
|
version; a self-updater waits for the latest platform build instead.
|
|
137
148
|
Arco does not downgrade a working installation. The Codex flag uses that
|
|
@@ -139,6 +150,13 @@ export const maintenance: Section[] = [
|
|
|
139
150
|
Homebrew installations without recognised ownership require manual updates.
|
|
140
151
|
</p>
|
|
141
152
|
<p>
|
|
153
|
+
llama.cpp checks recent published numeric build tags and flags an older
|
|
154
|
+
installed build. Semantic milestone versions are not compared as build
|
|
155
|
+
numbers. If a build cannot be read, no update flag is shown. Click the row
|
|
156
|
+
to open upstream releases and update manually; the check does not install
|
|
157
|
+
anything or load a model.
|
|
158
|
+
</p>
|
|
159
|
+
<p>
|
|
142
160
|
Strata's installed engine version comes from its reachable service or
|
|
143
161
|
prepared BUILD.json while stopped. Arco compares engine component
|
|
144
162
|
versions at boot and every four hours; the app/Terminal 0.2 version
|
|
@@ -427,14 +427,17 @@ export const providers: Section[] = [
|
|
|
427
427
|
</p>
|
|
428
428
|
<Sub>Models and effort</Sub>
|
|
429
429
|
<p>
|
|
430
|
-
|
|
430
|
+
The cold default is <Code>gpt-6.2-sol</Code>; a live account catalog supplies
|
|
431
|
+
its own default. The picker uses the
|
|
431
432
|
selected model's live catalog, so the effort levels offered follow the
|
|
432
433
|
model:
|
|
433
434
|
</p>
|
|
434
435
|
<Table
|
|
435
436
|
headers={['Model', 'Role', 'Effort levels']}
|
|
436
437
|
rows={[
|
|
437
|
-
[<Code key="
|
|
438
|
+
[<Code key="s62">gpt-6.2-sol</Code>, 'Cold default', 'low / medium / high / xhigh / max / ultra'],
|
|
439
|
+
[<Code key="a62">gpt-6.2-astra</Code>, 'Complex coding', 'low / medium / high / xhigh / max / ultra'],
|
|
440
|
+
[<Code key="a">gpt-6-astra</Code>, 'Earlier Astra', 'low / medium / high / xhigh / max / ultra'],
|
|
438
441
|
[<Code key="s">gpt-6-sol</Code>, 'Everyday coding workhorse', 'low / medium / high / xhigh / max / ultra'],
|
|
439
442
|
[<Code key="l">gpt-6-luna</Code>, 'Fast and affordable', 'Stops at max'],
|
|
440
443
|
['Older models', '-', 'Can expose fewer levels'],
|
|
@@ -445,6 +448,13 @@ export const providers: Section[] = [
|
|
|
445
448
|
value (currently about 828K effective for Astra). CONFIG can return a tab
|
|
446
449
|
to STANDARD (about 258K). A provider-reported window takes precedence.
|
|
447
450
|
</p>
|
|
451
|
+
<p>
|
|
452
|
+
The catalog refreshes when the CLI changes its local model list, on the next
|
|
453
|
+
Arco catalog request. The browser polls every 30 minutes; reload the page to
|
|
454
|
+
request it sooner without restarting Arco. GPT-6.2 Sol and Astra support image
|
|
455
|
+
input. STANDARD is about 475K effective for Sol and 258K for Astra; MAX is
|
|
456
|
+
about 828K for both. Provider-reported values take precedence.
|
|
457
|
+
</p>
|
|
448
458
|
<Note kind="warn">Codex describes ultra as maximum reasoning with automatic
|
|
449
459
|
task delegation. Provider-internal delegated-agent activity is not fully
|
|
450
460
|
represented in Arco's transcript. Choosing it does not create an Arco
|
|
@@ -910,8 +920,8 @@ export const providers: Section[] = [
|
|
|
910
920
|
<Sub>Auto-recovery</Sub>
|
|
911
921
|
<p>
|
|
912
922
|
Local thinking models fail in specific ways the lifecycle alone can't
|
|
913
|
-
handle. The provider runs
|
|
914
|
-
|
|
923
|
+
handle. The provider runs recovery paths in place (without spawning Handoff)
|
|
924
|
+
and a context-fill warning:
|
|
915
925
|
</p>
|
|
916
926
|
<ul>
|
|
917
927
|
<li><strong>Reasoning runaway</strong> - model emits{' '}
|
|
@@ -922,7 +932,12 @@ export const providers: Section[] = [
|
|
|
922
932
|
<Code>ARCO_LLAMACPP_STALL_TIMEOUT_MS</Code> (default 90 s). Builds a
|
|
923
933
|
deterministic summary (no LLM call) and continues.
|
|
924
934
|
</li>
|
|
925
|
-
<li><strong>
|
|
935
|
+
<li><strong>Wall-clock limit</strong> - a reply reaches{' '}
|
|
936
|
+
<Code>ARCO_LLAMACPP_TURN_BUDGET_MS</Code> (default 120 s), even while
|
|
937
|
+
text keeps arriving. Cancels the stream and continues with a recap
|
|
938
|
+
within the recovery budget.
|
|
939
|
+
</li>
|
|
940
|
+
<li><strong>Tool-cap exhaustion</strong> - 25-turn cap fires on a
|
|
926
941
|
legitimately long task. Same deterministic recap, reset counter, keep
|
|
927
942
|
going.
|
|
928
943
|
</li>
|
|
@@ -934,9 +949,18 @@ export const providers: Section[] = [
|
|
|
934
949
|
</li>
|
|
935
950
|
</ul>
|
|
936
951
|
<p>
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
952
|
+
Recovery paths share a budget (default 1 per operator turn), followed by
|
|
953
|
+
one final-summary attempt before terminating if it also fails. Each emits
|
|
954
|
+
a <Code>system_notice</Code> so the cause is visible without digging
|
|
955
|
+
through logs.
|
|
956
|
+
</p>
|
|
957
|
+
<p>
|
|
958
|
+
The wall-clock and no-data limits also apply with{' '}
|
|
959
|
+
<Code>ARCO_LLAMACPP_AUTO_RECOVER=off</Code>. Arco then cancels the stream,
|
|
960
|
+
attempts to free its slot and shows one plain error without retrying.
|
|
961
|
+
The wall-clock limit includes the request and resets for each reply in
|
|
962
|
+
a tool loop. Override these limits in the server environment when a
|
|
963
|
+
model needs longer.
|
|
940
964
|
</p>
|
|
941
965
|
<Sub>Serve-failure diagnosis</Sub>
|
|
942
966
|
<p>
|
|
@@ -513,7 +513,8 @@ New turns blocked for 60s. Recover via Handoff.`}</Pre>
|
|
|
513
513
|
<Sub>"Package install will not start or the page does not load"</Sub>
|
|
514
514
|
<ul>
|
|
515
515
|
<li>Run <Code>arco doctor</Code>: it reports the Node version (24 or newer), whether the native modules load, whether the port is free on loopback, which provider CLIs answer <Code>--version</Code>, and the service state.</li>
|
|
516
|
-
<li>
|
|
516
|
+
<li>Only run <Code>arco setup --repair-native</Code> when Arco reports that a native part will not load, including missing or incompatible native modules in <Code>arco doctor</Code>. A working platform build toolchain is required.</li>
|
|
517
|
+
<li>A failed repair names the compile or link step when available and repeats its decisive error. The installed native parts stay unchanged and keep working. Build tools may be missing, out of date or broken; resolve the reported error before retrying a needed repair.</li>
|
|
517
518
|
<li>If the port is in use, another Arco or a different program holds it. Stop the other process or set <Code>ARCO_PORT</Code>.</li>
|
|
518
519
|
<li>Run <Code>arco service logs</Code> to read the recent service logs.</li>
|
|
519
520
|
</ul>
|
|
@@ -137,6 +137,18 @@ codex exec resume <thread-id> "next prompt"
|
|
|
137
137
|
to the running server; it cannot recover an id already lost before restart.
|
|
138
138
|
Claude Native and local providers can replay retained history without that id.
|
|
139
139
|
</p>
|
|
140
|
+
<p>Claude Native rebuilds at most 1 GiB of uncached history in one parse.
|
|
141
|
+
A valid summary cache with a small tail can still resume a larger history.
|
|
142
|
+
If a rebuild exceeds the limit or fails, one notice says that the agent
|
|
143
|
+
continues without earlier context. Earlier messages stay in the tab; include
|
|
144
|
+
any context the next task needs again.</p>
|
|
145
|
+
<p>The older-turn digest used by Claude Native resume is limited to 128 KiB.
|
|
146
|
+
Compacted context and its kept-tail digest come first; oldest turn notes are
|
|
147
|
+
left out first. The tab and the agent receive the same line saying how many were left out.
|
|
148
|
+
If compacted context alone is too large, the same line says it was shortened.
|
|
149
|
+
Earlier messages remain in the conversation.</p>
|
|
150
|
+
<p>Claude CLI session loading handles 2 GB histories separately. If its session file cannot be read, a notice says
|
|
151
|
+
that the saved conversation is intact; new messages appear when readable.</p>
|
|
140
152
|
<p>COMPACT on a lost Codex or Cursor conversation explains that the next message
|
|
141
153
|
starts a new conversation. An empty tab still asks for its first turn.</p>
|
|
142
154
|
<Sub>Claude CLI</Sub>
|
|
@@ -178,6 +178,12 @@ export const workspace: Section[] = [
|
|
|
178
178
|
short account badge also appears. Click a tab to focus it; drag tabs to
|
|
179
179
|
reorder them.
|
|
180
180
|
</p>
|
|
181
|
+
<p>
|
|
182
|
+
Use the mouse wheel over the row to scroll sideways,
|
|
183
|
+
or swipe horizontally on a touch screen or trackpad. Previous tabs
|
|
184
|
+
and Next tabs buttons appear at edges with more tabs. Opening a tab
|
|
185
|
+
brings it into view; keyboard focus also keeps its control visible.
|
|
186
|
+
</p>
|
|
181
187
|
<p>
|
|
182
188
|
Click the <Code>×</Code> on a tab to close it: Arco asks for
|
|
183
189
|
confirmation first, and the prompt calls out an in-progress turn (it
|
|
@@ -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
|
}
|
|
@@ -1495,6 +1497,9 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
1495
1497
|
store.setCliChanges(msg.changes);
|
|
1496
1498
|
break;
|
|
1497
1499
|
|
|
1500
|
+
case 'transcript_worker_result':
|
|
1501
|
+
finishTranscriptWorkerRequest(msg);
|
|
1502
|
+
break;
|
|
1498
1503
|
case 'capabilities_updated':
|
|
1499
1504
|
store.setCapabilities(msg.capabilities);
|
|
1500
1505
|
if (msg.updated && msg.previousVersion) {
|
|
@@ -2065,7 +2070,8 @@ export function handleServerMessage(msg: ServerMessage, deps: WsDeps): void {
|
|
|
2065
2070
|
content: msg.content,
|
|
2066
2071
|
authRecovery: msg.authRecovery,
|
|
2067
2072
|
isStreaming: false,
|
|
2068
|
-
|
|
2073
|
+
eventSeq: (msg as { seq?: number }).seq,
|
|
2074
|
+
timestamp: eventTime(msg) ?? Date.now(),
|
|
2069
2075
|
});
|
|
2070
2076
|
break;
|
|
2071
2077
|
}
|
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
|
|