arco-workbench 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CONTRIBUTING.md +11 -0
  2. package/README.md +7 -5
  3. package/client/dist/assets/{PhosphorBackdrop-D7jdAV_G.js → PhosphorBackdrop-DRu16-Is.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-DrDm60h8.js → ThemedBackgroundShaderImpl-BLdwwQ4D.js} +1 -1
  5. package/client/dist/assets/{XtermView-BGFujb1e.js → XtermView-Xk7_9JaH.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-D951A2sE.js → galleryEditor-CI8ClzBa.js} +1 -1
  7. package/client/dist/assets/{index-DD9kFGsF.css → index-BEFgrUJJ.css} +1 -1
  8. package/client/dist/assets/{index-CsVy3eZm.js → index-C7WzZfsr.js} +246 -244
  9. package/client/dist/index.html +2 -2
  10. package/client/src/App.tsx +2 -0
  11. package/client/src/components/ChatMessage.tsx +33 -8
  12. package/client/src/components/ChatModeView.tsx +2 -0
  13. package/client/src/components/ClusterRightPanel/SkillsControl.tsx +25 -8
  14. package/client/src/components/CodexLateCommand.tsx +34 -0
  15. package/client/src/components/DialogShell.tsx +2 -0
  16. package/client/src/components/MemberCard.tsx +4 -1
  17. package/client/src/components/MemberPane.tsx +3 -1
  18. package/client/src/components/PhoneUpload.tsx +288 -0
  19. package/client/src/components/PrimaryStatus.tsx +14 -6
  20. package/client/src/components/RuntimeStateBanner.tsx +5 -0
  21. package/client/src/components/SkillEditorDialog.tsx +2 -2
  22. package/client/src/components/SkillsSettings.tsx +17 -5
  23. package/client/src/components/TerminalInput.tsx +3 -1
  24. package/client/src/components/WorkflowView.tsx +2 -0
  25. package/client/src/explorer/ArtifactsLens.tsx +37 -28
  26. package/client/src/explorer/ExplorerApp.tsx +5 -4
  27. package/client/src/explorer/types.ts +8 -3
  28. package/client/src/help/content/cluster.tsx +11 -1
  29. package/client/src/help/content/composer.tsx +18 -1
  30. package/client/src/help/content/header.tsx +2 -1
  31. package/client/src/help/content/misc.tsx +1 -1
  32. package/client/src/help/content/settings.tsx +1 -1
  33. package/client/src/help/manualSections/clusters.tsx +3 -0
  34. package/client/src/help/manualSections/configuration.tsx +3 -1
  35. package/client/src/help/manualSections/gettingStarted.tsx +4 -4
  36. package/client/src/help/manualSections/maintenance.tsx +7 -6
  37. package/client/src/help/manualSections/powerFeatures.tsx +3 -2
  38. package/client/src/help/manualSections/workspace.tsx +30 -0
  39. package/client/src/stores/appStore.ts +7 -0
  40. package/client/src/stores/appStore.types.ts +4 -0
  41. package/client/src/styles/global.css +109 -0
  42. package/client/src/utils/phoneTheme.ts +38 -0
  43. package/client/src/utils/phoneUploadApi.ts +10 -0
  44. package/client/src/ws/handleServerMessage.ts +23 -6
  45. package/docs/CLIENT.md +7 -1
  46. package/docs/FEATURES.md +6 -3
  47. package/docs/GETTING_STARTED.md +8 -3
  48. package/docs/INDEX.md +1 -1
  49. package/docs/OPERATIONS.md +199 -48
  50. package/docs/PROTOCOL_CLUSTER.md +9 -1
  51. package/docs/PROVIDERS.md +34 -0
  52. package/docs/SETTINGS.md +5 -3
  53. package/native/darwin-arm64/manifest.json +1 -1
  54. package/native/linux-x64/manifest.json +1 -1
  55. package/native/win32-x64/manifest.json +1 -1
  56. package/node_modules/@arco/shared/dist/protocol/chat.d.ts +1 -0
  57. package/node_modules/@arco/shared/dist/protocol/clusters.d.ts +2 -0
  58. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +11 -0
  59. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  60. package/node_modules/@arco/shared/package.json +1 -1
  61. package/package.json +2 -2
  62. package/server/dist/clusterDirector.js +1 -0
  63. package/server/dist/clusterPeerOps.js +4 -1
  64. package/server/dist/clusterRehydrate.js +2 -0
  65. package/server/dist/explorerDocs.d.ts +10 -6
  66. package/server/dist/explorerDocs.js +75 -34
  67. package/server/dist/http/attachmentUpload.d.ts +13 -0
  68. package/server/dist/http/attachmentUpload.js +38 -0
  69. package/server/dist/http/browserWorktrees.d.ts +23 -0
  70. package/server/dist/http/browserWorktrees.js +120 -0
  71. package/server/dist/http/phoneUploadDrafts.d.ts +13 -0
  72. package/server/dist/http/phoneUploadDrafts.js +125 -0
  73. package/server/dist/http/phoneUploadListener.d.ts +17 -0
  74. package/server/dist/http/phoneUploadListener.js +81 -0
  75. package/server/dist/http/phoneUploadNetwork.d.ts +9 -0
  76. package/server/dist/http/phoneUploadNetwork.js +106 -0
  77. package/server/dist/http/phoneUploadPage.d.ts +2 -0
  78. package/server/dist/http/phoneUploadPage.js +136 -0
  79. package/server/dist/http/phoneUploadRouteHistory.d.ts +4 -0
  80. package/server/dist/http/phoneUploadRouteHistory.js +72 -0
  81. package/server/dist/http/phoneUploadRoutes.d.ts +4 -0
  82. package/server/dist/http/phoneUploadRoutes.js +419 -0
  83. package/server/dist/http/phoneUploadTheme.d.ts +17 -0
  84. package/server/dist/http/phoneUploadTheme.js +96 -0
  85. package/server/dist/http/projectBinding.d.ts +1 -0
  86. package/server/dist/http/projectBinding.js +3 -2
  87. package/server/dist/http/readConfinement.js +5 -1
  88. package/server/dist/http/router.js +13 -24
  89. package/server/dist/http/writeConfinement.js +19 -2
  90. package/server/dist/primitives/seedWorker.d.ts +1 -0
  91. package/server/dist/primitives/seedWorker.js +2 -1
  92. package/server/dist/providers/codex-appserver/heldCommands.d.ts +14 -0
  93. package/server/dist/providers/codex-appserver/heldCommands.js +54 -0
  94. package/server/dist/providers/codex-appserver/index.d.ts +52 -2
  95. package/server/dist/providers/codex-appserver/index.js +239 -21
  96. package/server/dist/providers/codex-appserver/lateCommands.d.ts +62 -0
  97. package/server/dist/providers/codex-appserver/lateCommands.js +195 -0
  98. package/server/dist/providers/codex-appserver/worker.d.ts +23 -1
  99. package/server/dist/providers/codex-appserver/worker.js +89 -20
  100. package/server/dist/providers/codex.js +2 -2
  101. package/server/dist/providers/codexCodeMode.d.ts +2 -1
  102. package/server/dist/providers/codexCodeMode.js +7 -3
  103. package/server/dist/workers/WorkerManager.d.ts +1 -0
  104. package/server/dist/workers/WorkerManager.js +1 -0
  105. package/server/dist/workers/processKill.d.ts +9 -1
  106. package/server/dist/workers/processKill.js +26 -10
  107. package/server/dist/ws/handoffHandlers.js +2 -0
  108. package/server/dist/ws/turnEngine.js +17 -0
  109. package/server/package.json +1 -1
  110. package/server/src/clusterDirector.ts +1 -0
  111. package/server/src/clusterPeerOps.ts +4 -1
  112. package/server/src/clusterRehydrate.ts +2 -0
  113. package/server/src/explorerDocs.ts +75 -34
  114. package/server/src/http/attachmentUpload.ts +49 -0
  115. package/server/src/http/browserWorktrees.ts +124 -0
  116. package/server/src/http/phoneUploadDrafts.ts +118 -0
  117. package/server/src/http/phoneUploadListener.ts +96 -0
  118. package/server/src/http/phoneUploadNetwork.ts +117 -0
  119. package/server/src/http/phoneUploadPage.ts +137 -0
  120. package/server/src/http/phoneUploadRouteHistory.ts +73 -0
  121. package/server/src/http/phoneUploadRoutes.ts +398 -0
  122. package/server/src/http/phoneUploadTheme.ts +97 -0
  123. package/server/src/http/projectBinding.ts +3 -2
  124. package/server/src/http/readConfinement.ts +5 -1
  125. package/server/src/http/router.ts +11 -25
  126. package/server/src/http/writeConfinement.ts +13 -2
  127. package/server/src/primitives/seedWorker.ts +3 -1
  128. package/server/src/providers/codex-appserver/heldCommands.ts +58 -0
  129. package/server/src/providers/codex-appserver/index.ts +222 -20
  130. package/server/src/providers/codex-appserver/lateCommands.ts +225 -0
  131. package/server/src/providers/codex-appserver/worker.ts +85 -21
  132. package/server/src/providers/codex.ts +2 -2
  133. package/server/src/providers/codexCodeMode.ts +8 -3
  134. package/server/src/workers/WorkerManager.ts +2 -0
  135. package/server/src/workers/processKill.ts +35 -7
  136. package/server/src/ws/handoffHandlers.ts +2 -0
  137. package/server/src/ws/turnEngine.ts +15 -0
  138. package/shared/dist/protocol/chat.d.ts +1 -0
  139. package/shared/dist/protocol/clusters.d.ts +2 -0
  140. package/shared/dist/protocol/serverMessages.d.ts +11 -0
  141. package/shared/dist/protocol/workflows.d.ts +1 -0
  142. package/shared/src/protocol/chat.ts +1 -0
  143. package/shared/src/protocol/clusters.ts +4 -5
  144. package/shared/src/protocol/serverMessages.ts +11 -0
  145. package/shared/src/protocol/workflows.ts +4 -0
@@ -6,21 +6,29 @@ import type { JobState } from '../stores/appStore';
6
6
  // the hold expires. The tooltip retains the complete, untruncated text.
7
7
  export function PrimaryStatus({ job }: { job: JobState }) {
8
8
  const next = activeActivity(job.activity ?? [], job.turnStartedAt);
9
- const [shown, setShown] = useState(() => ({ ...next, displayedAt: Date.now() }));
9
+ const [shown, setShown] = useState(() => ({ ...next, turnStartedAt: job.turnStartedAt, displayedAt: Date.now() }));
10
10
  const [now, setNow] = useState(() => Date.now());
11
11
  useEffect(() => {
12
- if (shown.key === next.key && shown.label === next.label) return;
12
+ if (shown.turnStartedAt !== job.turnStartedAt) {
13
+ setShown({ ...next, turnStartedAt: job.turnStartedAt, displayedAt: Date.now() });
14
+ return;
15
+ }
16
+ if (shown.key === next.key && shown.label === next.label) {
17
+ if (shown.at !== next.at) setShown(previous => ({ ...previous, at: next.at }));
18
+ return;
19
+ }
13
20
  const delay = Math.max(0, 1500 - (Date.now() - shown.displayedAt));
14
- const timer = setTimeout(() => setShown({ key: next.key, label: next.label, at: next.at, displayedAt: Date.now() }), delay);
21
+ const timer = setTimeout(() => setShown({ ...next, turnStartedAt: job.turnStartedAt, displayedAt: Date.now() }), delay);
15
22
  return () => clearTimeout(timer);
16
- }, [next.key, next.label, next.at, shown.key, shown.label, shown.displayedAt]);
23
+ }, [next.key, next.label, next.at, shown.key, shown.label, shown.at, shown.displayedAt, shown.turnStartedAt, job.turnStartedAt]);
17
24
  useEffect(() => {
18
25
  const timer = setInterval(() => setNow(Date.now()), 1000);
19
26
  return () => clearInterval(timer);
20
27
  }, []);
21
- const seconds = Math.max(0, Math.floor((now - shown.at) / 1000));
28
+ const current = shown.turnStartedAt !== job.turnStartedAt || (shown.key === next.key && shown.label === next.label) ? next : shown;
29
+ const seconds = Math.max(0, Math.floor((now - current.at) / 1000));
22
30
  const time = seconds < 60 ? `${seconds} s` : `${Math.floor(seconds / 60)}m ${seconds % 60}s`;
23
- const text = `${shown.label} (${time})${seconds > 60 ? ' · LONG-RUNNING' : ''}`;
31
+ const text = `${current.label} (${time})${seconds > 60 ? ' · LONG-RUNNING' : ''}`;
24
32
  return <span data-help="composer.turn-step" data-testid="header-turn-step" title={text} className="display-font" style={{ color: 'var(--color-warning)', fontSize: '11px', minWidth: 0, flex: '1 1 0', display: 'flex', alignItems: 'center', gap: '6px', overflow: 'hidden', whiteSpace: 'nowrap' }}>
25
33
  <span aria-hidden="true" style={{ flexShrink: 0 }}>◦</span><span style={{ minWidth: 0, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{text}</span>
26
34
  </span>;
@@ -1,3 +1,4 @@
1
+ import { waitedCodexCommand } from './CodexLateCommand';
1
2
  import { useEffect, useState } from 'react';
2
3
  import { useAppStore, type JobState } from '../stores/appStore';
3
4
  import { deriveWorkflowState, recoveryActionFor, type WorkflowRuntimeState } from '../runtime/runtimeState';
@@ -60,6 +61,10 @@ export function RuntimeStateBanner({ job, onCancel }: Props) {
60
61
  );
61
62
  }
62
63
 
64
+ // A turn held open for a Codex command is silent by design; the header
65
+ // names the command, so this is not reported as a stuck worker.
66
+ if (state === 'stuck' && waitedCodexCommand(job)) return null;
67
+
63
68
  if (state === 'stuck') {
64
69
  const anchor = job.lastPrimaryEventAt ?? job.recoveredAt ?? now;
65
70
  const silentSec = Math.max(0, Math.round((now - anchor) / 1000));
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
- import { DialogShell } from './DialogShell';
2
+ import { DialogShell, SETTINGS_CHILD_DIALOG_Z_INDEX } from './DialogShell';
3
3
 
4
4
  // Phase 1 — Arco-managed skills CRUD dialog. Operator types Name +
5
5
  // Description + Body, picks scope (project / global), and saves. The server
@@ -134,7 +134,7 @@ export function SkillEditorDialog({ cwd, target, onClose, onSaved }: Props) {
134
134
  onClose={onClose}
135
135
  closeOnBackdrop
136
136
  width={560}
137
- zIndex={9300}
137
+ zIndex={SETTINGS_CHILD_DIALOG_Z_INDEX}
138
138
  status={!loading && error ? (
139
139
  <div style={{ fontSize: '11px', color: 'var(--color-warning)', fontFamily: 'var(--font-body)' }}>{error}</div>
140
140
  ) : undefined}
@@ -1,6 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { createTwoFilesPatch } from 'diff';
3
- import { DialogShell } from './DialogShell';
3
+ import { DialogShell, SETTINGS_CHILD_DIALOG_Z_INDEX } from './DialogShell';
4
+ import { useAppStore } from '../stores/appStore';
4
5
  import { DirectoryBrowser } from './media/DirectoryPicker';
5
6
  import { SkillEditorDialog, type SkillEditorTarget } from './SkillEditorDialog';
6
7
  import { PinSkillDialog } from './ClusterRightPanel/SkillsControl';
@@ -64,8 +65,19 @@ export function SkillsSettings({ cwd }: { cwd: string }) {
64
65
  const [importing, setImporting] = useState(false);
65
66
  const [updating, setUpdating] = useState<SkillSummary | null>(null);
66
67
  const [sharing, setSharing] = useState<SkillSummary | null>(null);
68
+ const clusters = useAppStore(s => s.clusters);
69
+ const jobs = useAppStore(s => s.jobs);
70
+ const [pendingPin, setPendingPin] = useState<{ kind: 'tab' | 'cluster'; id: string; role?: string; scope: Scope; slug: string; message: string } | null>(null);
67
71
  const [pinning, setPinning] = useState<{ skill: SkillSummary; kind: 'tab' | 'cluster' } | null>(null);
68
72
 
73
+ useEffect(() => {
74
+ if (!pendingPin) return;
75
+ const pins = pendingPin.kind === 'cluster' ? clusters[pendingPin.id]?.skillPins : jobs[pendingPin.id]?.config.pinnedSkills;
76
+ if (pins?.some(pin => pin.scope === pendingPin.scope && pin.slug === pendingPin.slug && (pendingPin.kind === 'tab' || ('role' in pin ? pin.role : undefined) === pendingPin.role))) {
77
+ setNote(pendingPin.message); setPendingPin(null);
78
+ }
79
+ }, [clusters, jobs, pendingPin]);
80
+
69
81
  const refresh = async () => {
70
82
  setError(null);
71
83
  try {
@@ -134,7 +146,7 @@ export function SkillsSettings({ cwd }: { cwd: string }) {
134
146
 
135
147
  return (
136
148
  <div data-help="settings.skills">
137
- {pinning && <PinSkillDialog skill={pinning.skill} kind={pinning.kind} cwd={cwd} onClose={() => setPinning(null)} />}
149
+ {pinning && <PinSkillDialog skill={pinning.skill} kind={pinning.kind} cwd={cwd} onClose={() => setPinning(null)} onPinned={result => { setNote(''); setPendingPin(result); }} />}
138
150
  <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '8px', gap: '6px' }}>
139
151
  <span className="display-font" style={{ fontSize: '11px', letterSpacing: '2px', color: 'var(--color-accent-primary-dim)' }}>SKILLS</span>
140
152
  <span style={{ display: 'flex', gap: '6px' }}>
@@ -216,7 +228,7 @@ export function SkillImportDialog({ cwd, onClose, onImported }: { cwd: string; o
216
228
  };
217
229
 
218
230
  return (
219
- <DialogShell title="IMPORT SKILL" ariaLabel="Import skill" dataHelp="settings.skills.import" onClose={onClose} width={720}
231
+ <DialogShell zIndex={SETTINGS_CHILD_DIALOG_Z_INDEX} title="IMPORT SKILL" ariaLabel="Import skill" dataHelp="settings.skills.import" onClose={onClose} width={720}
220
232
  status={error ? <span role="alert" style={{ color: 'var(--color-error)' }}>{error}</span> : null}
221
233
  actions={<>
222
234
  <button type="button" disabled={busy} onClick={() => void review()}>REVIEW</button>
@@ -266,7 +278,7 @@ function SkillUpdateDialog({ cwd, skill, onClose, onUpdated }: { cwd: string; sk
266
278
  catch (err) { setError(err instanceof Error ? err.message : String(err)); setBusy(false); }
267
279
  };
268
280
  return (
269
- <DialogShell size="viewer" title={`UPDATE ${skill.name.toUpperCase()}`} ariaLabel="Update skill" dataHelp="settings.skills.update" onClose={onClose} width={820}
281
+ <DialogShell zIndex={SETTINGS_CHILD_DIALOG_Z_INDEX} size="viewer" title={`UPDATE ${skill.name.toUpperCase()}`} ariaLabel="Update skill" dataHelp="settings.skills.update" onClose={onClose} width={820}
270
282
  status={error ? <span role="alert" style={{ color: 'var(--color-error)' }}>{error}</span> : null}
271
283
  actions={<button type="button" disabled={busy || !preview?.changed} onClick={() => void apply()}>APPLY UPDATE</button>}>
272
284
  <p style={{ marginTop: 0 }}>Fetched again from {sourceLabel(skill.source)}. Nothing changes until you select APPLY UPDATE; the skill stays on or off as it is.</p>
@@ -300,7 +312,7 @@ function SkillShareDialog({ cwd, skill, onClose, onShared }: { cwd: string; skil
300
312
  };
301
313
  const isPublic = preview?.publicRepository || markedPublic;
302
314
  return (
303
- <DialogShell title="SHARE WITH REPOSITORY" ariaLabel="Share skill with repository" dataHelp="settings.skills.share" onClose={onClose}
315
+ <DialogShell zIndex={SETTINGS_CHILD_DIALOG_Z_INDEX} title="SHARE WITH REPOSITORY" ariaLabel="Share skill with repository" dataHelp="settings.skills.share" onClose={onClose}
304
316
  status={error ? <span role="alert" style={{ color: 'var(--color-error)' }}>{error}</span> : null}
305
317
  actions={<button type="button" disabled={busy || !preview || preview.alreadyTrackable} onClick={() => void share()}>{isPublic ? 'SHARE IN PUBLIC REPOSITORY' : 'SHARE'}</button>}>
306
318
  {preview?.alreadyTrackable ? <p>Git does not ignore these files; they can already be committed.</p> : <p>Git ignores <code>.arco</code> in this project. SHARE adds an exception for this skill to <code>.arco/.gitignore</code>, so these files show up in Git and can be committed. Arco does not stage or commit them.</p>}
@@ -1,3 +1,4 @@
1
+ import { PhoneUploadButton } from './PhoneUpload';
1
2
  import { effectiveCodexTransport } from '@arco/shared';
2
3
  import { TurnTimer } from './TurnTimer';
3
4
  import { SkillsControl } from './ClusterRightPanel/SkillsControl';
@@ -51,7 +52,7 @@ import { ToolbarMore, useToolbarOverflow } from '../layout/ToolbarOverflow';
51
52
  import { useKeepInWindow } from '../layout/keepInWindow';
52
53
 
53
54
  // FILE, PLAN and BRIEF stay on the composer line in every layout.
54
- const TOOLBAR_KEEP: ReadonlySet<string> = new Set(['composer.attach', 'composer.plan', 'composer.brief']);
55
+ const TOOLBAR_KEEP: ReadonlySet<string> = new Set(['composer.attach', 'composer.upload-from-phone', 'composer.plan', 'composer.brief']);
55
56
 
56
57
  export interface Props {
57
58
  job: JobState;
@@ -1221,6 +1222,7 @@ export function TerminalInput({ job, onSend, onCancel, onCancelQueued, onUpload,
1221
1222
  + FILE
1222
1223
  </button>
1223
1224
  </span>
1225
+ <PhoneUploadButton workflowId={job.id} />
1224
1226
 
1225
1227
  {hubLinked && onUpdatePrimary && (
1226
1228
  <button
@@ -1,3 +1,4 @@
1
+ import { CodexLateCommandLine } from './CodexLateCommand';
1
2
  import { useVoicePanelOpener } from '../voice/panels';
2
3
  import { ContextMeter } from './ContextMeter';
3
4
  import { PrimaryStatus } from './PrimaryStatus';
@@ -221,6 +222,7 @@ export function WorkflowView({ job, onRenameWorkflow, onSend, onCancel, onCompac
221
222
  }}
222
223
  >
223
224
  <div className="display-font" data-testid="conversation-header" style={{ display: 'flex', alignItems: 'center', gap: '8px', minWidth: 0, padding: '8px 12px', borderBottom: '1px solid var(--color-border-hairline)', fontSize: '10px' }}>{job.busy && <PrimaryStatus job={job} />}<span data-help="worker.header.ctx" style={{ marginLeft: 'auto', flexShrink: 0 }}><ContextMeter job={job} onRecalibrate={onRecalibrate} /></span></div>
225
+ <CodexLateCommandLine job={job} header />
224
226
  {/* `no-frost`: the chat column is a transparent transcript scaffold,
225
227
  not a glass content panel. Under frosted-glass mode the generic
226
228
  `.arco-panel` backdrop-filter blur would soften the ambient
@@ -20,7 +20,7 @@ import { mergeItems, rollupProjects, type ArtifactEntry, type DocEntry, type Pro
20
20
  interface Props {
21
21
  focusTick: number;
22
22
  treeRoot?: string | null;
23
- onOpen: (path: string) => void;
23
+ onOpen: (path: string, project?: string) => void;
24
24
  onRevealInTree: (path: string) => void;
25
25
  }
26
26
 
@@ -32,7 +32,12 @@ function subdirOf(rel: string): string {
32
32
  return i === -1 ? '·' : rel.slice(0, i) + '/';
33
33
  }
34
34
 
35
- interface LoadedEntries<T> { entries: T[]; partial?: boolean; error?: string }
35
+ interface LoadedEntries<T> {
36
+ entries: T[];
37
+ projects?: Array<Pick<ProjectSummary, 'cwd' | 'project'>>;
38
+ partial?: boolean;
39
+ error?: string;
40
+ }
36
41
 
37
42
  async function loadEntries<T>(url: string, label: string): Promise<LoadedEntries<T>> {
38
43
  try {
@@ -40,7 +45,7 @@ async function loadEntries<T>(url: string, label: string): Promise<LoadedEntries
40
45
  if (!response.ok) throw new Error('List unavailable');
41
46
  const body = await response.json();
42
47
  if (!Array.isArray(body?.entries)) throw new Error('Invalid list response');
43
- return { entries: body.entries, partial: body.partial === true };
48
+ return { entries: body.entries, partial: body.partial === true, projects: Array.isArray(body.projects) ? body.projects : undefined };
44
49
  } catch {
45
50
  return { entries: [], error: `${label} could not be loaded. Refocus this window to retry.` };
46
51
  }
@@ -70,29 +75,30 @@ export function ArtifactsLens({ focusTick, treeRoot, onOpen, onRevealInTree }: P
70
75
  .then(result => { if (!cancelled) setProjectDocs(result); });
71
76
  return () => { cancelled = true; };
72
77
  }, [selectedCwd, focusTick]);
73
- const items = useMemo(() => mergeItems(artifacts?.entries ?? [], selectedCwd && projectDocs
74
- ? [...(docs?.entries ?? []).filter(doc => doc.cwd !== selectedCwd), ...projectDocs.entries]
75
- : docs?.entries ?? []), [artifacts, docs, selectedCwd, projectDocs]);
78
+ const items = useMemo(() => mergeItems(artifacts?.entries ?? [], docs?.entries ?? []), [artifacts, docs]);
76
79
  const currentDocs = selectedCwd ? projectDocs : docs;
77
80
  const status = <div data-help="header.archive" style={{ fontSize: '12px', color: 'var(--color-fg-muted)', marginBottom: '10px' }}>
78
81
  {artifacts === null ? <div>Loading artifacts...</div> : artifacts.error
79
82
  ? <div role="status">{artifacts.error}</div> : artifacts.entries.length === 0 ? <div>No artifacts found.</div> : null}
80
83
  {currentDocs === null ? <div>Loading project documents...</div> : currentDocs.error
81
84
  ? <div role="status">{currentDocs.error}</div> : currentDocs.entries.length === 0 ? <div>No project documents found.</div> : null}
82
- {currentDocs?.partial && <div>Showing the newest {currentDocs.entries.length}; open a project for more.</div>}
85
+ {currentDocs?.partial && <div>{selectedCwd
86
+ ? 'Some project documents were outside this scan.'
87
+ : 'Showing the newest ' + currentDocs.entries.length + '; open a project for more.'}</div>}
83
88
  </div>;
84
89
 
85
- const projects = useMemo<ProjectSummary[]>(() => rollupProjects(items ?? []), [items]);
86
- const recent = useMemo(() => (items ?? []).slice(0, RECENT_STRIP), [items]);
87
- const selected = useMemo(() => projects.find((p) => p.cwd === selectedCwd) ?? null, [projects, selectedCwd]);
88
- const projectItems = useMemo(() => {
90
+ const projects = useMemo(() => rollupProjects(items, docs?.projects), [items, docs?.projects]);
91
+ const recent = useMemo(() => items.slice(0, RECENT_STRIP), [items]);
92
+ const selected = projects.find(p => p.cwd === selectedCwd);
93
+ const scopedItems = useMemo(() => {
89
94
  if (!selectedCwd) return [];
95
+ if (!projectDocs || projectDocs.error) return items.filter(it => it.cwd === selectedCwd);
96
+ return mergeItems((artifacts?.entries ?? []).filter(it => it.cwd === selectedCwd), projectDocs.entries.filter(doc => doc.cwd === selectedCwd));
97
+ }, [selectedCwd, projectDocs, artifacts, items]);
98
+ const projectItems = useMemo(() => {
90
99
  const q = filter.trim().toLowerCase();
91
- return (items ?? [])
92
- .filter((it) => it.cwd === selectedCwd)
93
- .filter((it) => !q || it.name.toLowerCase().includes(q) || (it.rel ?? '').toLowerCase().includes(q) || (it.tabTitle ?? '').toLowerCase().includes(q));
94
- }, [items, selectedCwd, filter]);
95
-
100
+ return scopedItems.filter(it => !q || [it.name, it.rel, it.tabTitle, it.branch].some(value => value?.toLowerCase().includes(q)));
101
+ }, [scopedItems, filter]);
96
102
 
97
103
  // ── PROJECT view ──────────────────────────────────────────────────────────
98
104
  if (selected) {
@@ -104,11 +110,11 @@ export function ArtifactsLens({ focusTick, treeRoot, onOpen, onRevealInTree }: P
104
110
  <div style={{ overflow: 'hidden' }}>
105
111
  <div className="display-font glow-text-cyan" style={{ fontSize: '17px', letterSpacing: '1px' }}>{selected.project}</div>
106
112
  <div style={{ fontSize: '12px', color: 'var(--color-fg-muted)' }} title={selected.cwd}>
107
- {countLabel(selected)} · {selected.cwd}
113
+ {countLabel(rollupProjects(scopedItems)[0] ?? selected)} · {selected.cwd}
108
114
  </div>
109
115
  </div>
110
116
  </div>
111
- <input value={filter} onChange={(e) => setFilter(e.target.value)} placeholder="Filter by filename, folder, or tab title…" style={filterInputStyle} />
117
+ <input value={filter} onChange={(e) => setFilter(e.target.value)} placeholder="Filter by filename, folder, branch, or tab title…" style={filterInputStyle} />
112
118
  <div style={{ flex: 1, overflowY: 'auto', marginTop: '10px' }}>
113
119
  {projectItems.length === 0 ? (
114
120
  <Centered text={filter ? 'Nothing matches that filter.' : 'No documents or artifacts in this project.'} />
@@ -144,8 +150,8 @@ export function ArtifactsLens({ focusTick, treeRoot, onOpen, onRevealInTree }: P
144
150
  <div className="display-font" style={{ fontSize: '15px', letterSpacing: '0.5px', color: 'var(--color-accent-primary)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
145
151
  {p.project}
146
152
  </div>
147
- <div style={{ fontSize: '12px', color: 'var(--color-fg-muted)', marginTop: '5px' }}>{countLabel(p)}</div>
148
- <div style={{ fontSize: '11px', color: 'var(--color-fg-muted)', marginTop: '3px', opacity: 0.8 }}>updated {formatRelativeTime(p.lastMtime)}</div>
153
+ {p.count > 0 && <div style={{ fontSize: '12px', color: 'var(--color-fg-muted)', marginTop: '5px' }}>{countLabel(p)}</div>}
154
+ {p.lastMtime > 0 && <div style={{ fontSize: '11px', color: 'var(--color-fg-muted)', marginTop: '3px', opacity: 0.8 }}>updated {formatRelativeTime(p.lastMtime)}</div>}
149
155
  </button>
150
156
  ))}
151
157
  </div>
@@ -162,23 +168,26 @@ function countLabel(p: ProjectSummary): string {
162
168
  return parts.join(' · ') || '0 files';
163
169
  }
164
170
 
165
- function ItemRow({ item, treeRoot, onOpen, onRevealInTree, showProject }: { item: ProjectItem; treeRoot?: string | null; onOpen: (p: string) => void; onRevealInTree: (p: string) => void; showProject?: boolean }) {
166
- const meta = item.kind === 'doc'
167
- ? `${showProject ? '' : subdirOf(item.rel ?? '') + ' · '}${formatRelativeTime(item.mtime)}`
168
- : `${item.tabTitle} · ${item.provider} · ${formatRelativeTime(item.mtime)}`;
171
+ function ItemRow({ item, treeRoot, onOpen, onRevealInTree, showProject }: { item: ProjectItem; treeRoot?: string | null; onOpen: Props['onOpen']; onRevealInTree: (p: string) => void; showProject?: boolean }) {
172
+ const meta = [
173
+ ...(item.kind === 'doc'
174
+ ? [item.branch, showProject ? undefined : subdirOf(item.rel ?? '')]
175
+ : [item.tabTitle, item.provider]),
176
+ formatRelativeTime(item.mtime),
177
+ ].filter(Boolean).join(' · ');
169
178
  return (
170
179
  <div className="archive-row" style={rowStyle} title={item.path}>
171
- <button onClick={() => onOpen(item.path)} style={rowMainBtn}>
180
+ <button onClick={() => onOpen(item.path, item.branch ? item.cwd : undefined)} style={rowMainBtn}>
172
181
  <span style={{ width: '18px', flexShrink: 0, color: item.kind === 'doc' ? 'var(--color-accent-primary-dim)' : 'var(--color-accent-secondary-dim)', fontSize: '12px' }}>
173
182
  {item.kind === 'doc' ? '▤' : '⌸'}
174
183
  </span>
175
184
  <span style={{ flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: 'var(--color-accent-secondary-dim)' }}>{item.name}</span>
176
- <span style={{ fontSize: '12px', color: 'var(--color-fg-muted)', flexShrink: 0, letterSpacing: '0.3px' }}>
185
+ <span title={meta} style={{ fontSize: '12px', color: 'var(--color-fg-muted)', maxWidth: '55%', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>
177
186
  {showProject && <span style={{ color: 'var(--color-accent-primary-dim)' }}>{item.project} · </span>}
178
187
  {meta}
179
188
  </span>
180
189
  </button>
181
- {canRevealInTree(item.path, treeRoot) && (
190
+ {!item.branch && canRevealInTree(item.path, treeRoot) && (
182
191
  <button data-help="header.archive" onClick={() => onRevealInTree(item.path)} className="display-font" title="Reveal in the file tree" style={revealBtn}>⊞</button>
183
192
  )}
184
193
  </div>
@@ -198,7 +207,7 @@ function Centered({ text }: { text: string }) {
198
207
  }
199
208
 
200
209
  const colStyle: React.CSSProperties = { flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column', padding: '18px 20px', overflow: 'hidden' };
201
- const cardGridStyle: React.CSSProperties = { display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(220px, 1fr))', gap: '12px', marginTop: '12px', overflowY: 'auto', paddingBottom: '8px', alignContent: 'start' };
210
+ const cardGridStyle: React.CSSProperties = { display: 'grid', gridTemplateColumns: 'repeat(auto-fill, minmax(min(220px, 100%), 1fr))', gap: '12px', marginTop: '12px', overflowY: 'auto', paddingBottom: '8px', alignContent: 'start' };
202
211
  const cardStyle: React.CSSProperties = { textAlign: 'left', background: 'var(--color-bg-panel)', border: '1px solid var(--color-border-hairline)', borderRadius: '5px', padding: '14px' , cursor: 'pointer' };
203
212
  const rowStyle: React.CSSProperties = { display: 'flex', alignItems: 'center', gap: '4px', width: '100%', borderBottom: '1px solid var(--color-border-hairline)' };
204
213
  const rowMainBtn: React.CSSProperties = { display: 'flex', alignItems: 'center', gap: '10px', flex: 1, minWidth: 0, textAlign: 'left', background: 'transparent', border: 'none', color: 'var(--color-fg)', cursor: 'pointer', fontFamily: 'var(--font-body)', fontSize: '14px', padding: '9px 4px' };
@@ -37,7 +37,7 @@ const INITIAL_LENS: LensId = (() => {
37
37
  export function ExplorerApp() {
38
38
  const [lens, setLens] = useState<LensId>(INITIAL_LENS);
39
39
  const [root, setRoot] = useState<string | null>(null);
40
- const [viewerPath, setViewerPath] = useState<string | null>(null);
40
+ const [viewerFile, setViewerFile] = useState<{ path: string; project?: string } | null>(null);
41
41
  // Reveal-in-tree (§4.3): switch to TREE with a target path. `.arco`
42
42
  // artifacts are hidden, so only real project files (CHANGED FILES) trigger this.
43
43
  const [reveal, setReveal] = useState<{ path: string; nonce: number } | null>(null);
@@ -144,10 +144,10 @@ export function ExplorerApp() {
144
144
 
145
145
  <main style={{ flex: 1, minHeight: 0, display: 'flex', overflow: 'hidden' }}>
146
146
  {activeLens.id === 'artifacts' && (
147
- <ArtifactsLens focusTick={focusTick} treeRoot={root} onOpen={setViewerPath} onRevealInTree={revealInTree} />
147
+ <ArtifactsLens focusTick={focusTick} treeRoot={root} onOpen={(path, project) => setViewerFile({ path, project })} onRevealInTree={revealInTree} />
148
148
  )}
149
149
  {activeLens.id === 'recents' && (
150
- <RecentsLens focusTick={focusTick} treeRoot={root} onOpen={setViewerPath} onRevealInTree={revealInTree} />
150
+ <RecentsLens focusTick={focusTick} treeRoot={root} onOpen={(path) => setViewerFile({ path })} onRevealInTree={revealInTree} />
151
151
  )}
152
152
  {activeLens.id === 'plans' && <PlansLens focusTick={focusTick} />}
153
153
  {activeLens.id === 'storage' && <StorageLens focusTick={focusTick} />}
@@ -163,7 +163,8 @@ export function ExplorerApp() {
163
163
 
164
164
  {/* Shared viewer for the ARTIFACTS/CHANGED FILES lenses. The TREE lens
165
165
  (FileExplorer) opens its own modal internally. */}
166
- {viewerPath && <FileViewerModal path={viewerPath} onClose={() => setViewerPath(null)} />}
166
+ {viewerFile && <FileViewerModal path={viewerFile.path} onClose={() => setViewerFile(null)}
167
+ readUrl={viewerFile.project ? '/api/file-content?' + new URLSearchParams({ path: viewerFile.path, cwd: viewerFile.project }) : undefined} />}
167
168
  </div>
168
169
  );
169
170
  }
@@ -36,6 +36,7 @@ export interface DocEntry {
36
36
  project: string;
37
37
  cwd: string;
38
38
  rel: string;
39
+ branch?: string;
39
40
  }
40
41
 
41
42
  // One unified item the ARTIFACTS lens renders — a project document OR a workflow
@@ -47,7 +48,8 @@ export interface ProjectItem {
47
48
  project: string;
48
49
  cwd: string;
49
50
  kind: 'doc' | 'artifact';
50
- rel?: string; // doc: path relative to project root (shows the subdir)
51
+ rel?: string; // doc: path relative to its checkout (shows the subdir)
52
+ branch?: string; // doc: branch of a sibling worktree
51
53
  tabTitle?: string; // artifact: the tab that produced it
52
54
  provider?: string; // artifact
53
55
  }
@@ -82,7 +84,7 @@ export function fileKind(name: string): FileKind {
82
84
  return 'other';
83
85
  }
84
86
 
85
- export function rollupProjects(items: ProjectItem[]): ProjectSummary[] {
87
+ export function rollupProjects(items: ProjectItem[], known: Array<Pick<ProjectSummary, 'cwd' | 'project'>> = []): ProjectSummary[] {
86
88
  const byCwd = new Map<string, ProjectSummary>();
87
89
  for (const it of items) {
88
90
  const cur = byCwd.get(it.cwd);
@@ -101,6 +103,9 @@ export function rollupProjects(items: ProjectItem[]): ProjectSummary[] {
101
103
  });
102
104
  }
103
105
  }
106
+ for (const project of known) {
107
+ if (!byCwd.has(project.cwd)) byCwd.set(project.cwd, { ...project, count: 0, docCount: 0, artifactCount: 0, lastMtime: 0 });
108
+ }
104
109
  return [...byCwd.values()].sort((a, b) => b.lastMtime - a.lastMtime);
105
110
  }
106
111
 
@@ -111,7 +116,7 @@ export function mergeItems(artifacts: ArtifactEntry[], docs: DocEntry[]): Projec
111
116
  const seen = new Set<string>();
112
117
  const out: ProjectItem[] = [];
113
118
  const push = (it: ProjectItem) => { if (!seen.has(it.path)) { seen.add(it.path); out.push(it); } };
114
- for (const d of docs) push({ path: d.path, name: d.name, mtime: d.mtime, project: d.project, cwd: d.cwd, kind: 'doc', rel: d.rel });
119
+ for (const d of docs) push({ path: d.path, name: d.name, mtime: d.mtime, project: d.project, cwd: d.cwd, kind: 'doc', rel: d.rel, branch: d.branch });
115
120
  for (const a of artifacts) push({ path: a.path, name: a.name, mtime: a.mtime, project: a.project, cwd: a.cwd, kind: 'artifact', tabTitle: a.tabTitle, provider: a.provider });
116
121
  out.sort((x, y) => y.mtime - x.mtime);
117
122
  return out;
@@ -2,9 +2,19 @@ import { C } from './shared';
2
2
  import type { HelpEntry } from './shared';
3
3
 
4
4
  export const clusterHelp: Record<string, HelpEntry> = {
5
+ 'cluster.peer-message': {
6
+ title: 'Read peer mail',
7
+ body: <p>The card shows a short preview. Open it to read the full available message, sender, recipient and time. Older sent messages may contain only a saved preview. Close the dialog to return to the conversation.</p>,
8
+ manualSection: 'cluster-peer-messaging',
9
+ },
5
10
  'cluster.skills': {
6
11
  title: 'Cluster skill pins',
7
- body: <><p><C>SKILLS</C> beside EFFICIENCY shows configured cluster pins, including missing or off skills. Open it to see each skill's source and All members or role target. Full text is added each turn for matching members; new and replaced members inherit it.</p><p>Only the operator pins or unpins. Use Settings &gt; SKILLS to add a pin. Tab, cluster and matching role pins share 12 unique skills and 64 KiB of text.</p></>,
12
+ body: <><p><C>SKILLS</C> beside EFFICIENCY shows configured cluster pins, including missing or off skills. Open it to see each skill's source and All members or role target. Full text is added each turn for matching members; new and replaced members inherit it.</p><p>Only the operator pins or unpins. Use ADD SKILL to choose a skill and pin it to all members or one role. Settings &gt; SKILLS also manages skills and pins. Tab, cluster and matching role pins share 12 unique skills and 64 KiB of text.</p></>,
13
+ manualSection: 'skills',
14
+ },
15
+ 'cluster.skills.add': {
16
+ title: 'Add a cluster skill',
17
+ body: <p>Choose an available project or global skill, then choose all members or one role. Full text is included on matching members' next turns. Turn on or create skills in Settings &gt; SKILLS.</p>,
8
18
  manualSection: 'skills',
9
19
  },
10
20
  'cluster.skills.unpin': {
@@ -96,7 +96,7 @@ export const composerHelp: Record<string, HelpEntry> = {
96
96
  },
97
97
  'composer.turn-step': {
98
98
  title: 'Current step',
99
- body: <p>The current step and elapsed time appear in the conversation header while the agent works. Each step stays visible briefly. A step over 60 seconds is marked long-running. Hover over a shortened step to read it in full.</p>,
99
+ body: <p>The current step and elapsed time appear in the conversation header while the agent works. The elapsed time restarts when a new turn starts or when the matching step advances. Each step stays visible briefly. A step over 60 seconds is marked long-running. Hover over a shortened step to read it in full.</p>,
100
100
  manualSection: 'composer',
101
101
  },
102
102
  'composer.send': {
@@ -132,6 +132,13 @@ export const composerHelp: Record<string, HelpEntry> = {
132
132
  <p>SEND waits for every pending upload batch, including another paste or drop started while uploading. The upload folder must be a real folder, not a link.</p></>
133
133
  ),
134
134
  },
135
+ 'composer.upload-from-phone': {
136
+ title: 'Upload from phone',
137
+ body: (
138
+ <><p>Scan the code with a phone on the same private network as Arco. Use Take Photo or Choose Files. The files appear beside Attach in this conversation. Review them before pressing Send.</p><p>The code lasts five minutes. Close it when finished. It accepts up to 10 files, 20 MiB per file and 100 MiB total. The window lists private IPv4 origins as http://&lt;ipv4&gt;:&lt;port&gt; from the listener (LAN and Tailscale when present), never MagicDNS or the desktop page hostname. When several appear, choose one. Scan the full QR; the origin under the code is the address and port only. When Arco listens on this computer only (the default), opening the code starts a temporary listener for the phone page alone; nothing else in Arco becomes reachable. The phone must open the code&apos;s address directly; a path through Tailscale Serve or another reverse proxy is refused. Each address is marked UNVERIFIED until a file arrives through it, then VERIFIED BY UPLOAD with the time it last worked; Arco cannot tell from this computer whether the phone can reach an address, and More info says why. Settings can change, so an address that worked before can stop working. If one address does not open on the phone and another is offered, close the window, open it again and choose the other address. Each address, its mark and the time it last worked are on separate lines. More info, shown once in the window, lists what to check if the phone cannot open the page. The phone page uses the Arco theme that was active when the code was opened.</p><p>Same Wi-Fi: open UPLOAD FROM PHONE, pick the LAN origin if offered, scan the QR, and avoid guest Wi-Fi that blocks connections between devices; see Operations - Upload from phone. Same Tailscale network: pick the Tailscale http://100.x... origin in the chooser (not a MagicDNS name); both devices must be in the same tailnet; scan the QR; do not use Serve for the upload URL.</p></>
139
+ ),
140
+ manualSection: 'composer',
141
+ },
135
142
  'composer.remote': {
136
143
  title: 'Remote monitoring',
137
144
  body: (
@@ -524,6 +531,16 @@ export const composerHelp: Record<string, HelpEntry> = {
524
531
  ),
525
532
  manualSection: 'run-as-picker',
526
533
  },
534
+ 'worker.header.late-command': {
535
+ title: 'Codex command still running',
536
+ body: (
537
+ <>
538
+ <p>Codex ended its reply while this command was still running. While the tab is WORKING, Arco waits for the command and then continues Codex with its result, once, without AUTO-PICKUP. The wait ends after 30 minutes in total; STOP ends it at once and leaves the command running.</p>
539
+ <p>A message you send ends the wait: Codex gets it now and the result when the command ends. Servers and watchers are not waited on. After the turn, the line stays up to five minutes and ACTIVITY records the exit. If the connection closes first, the tab says the result was lost.</p>
540
+ </>
541
+ ),
542
+ manualSection: 'composer',
543
+ },
527
544
  'worker.header.ctx': {
528
545
  title: 'Context fill',
529
546
  body: (
@@ -502,7 +502,8 @@ export const headerHelp: Record<string, HelpEntry> = {
502
502
  title: 'Artifacts',
503
503
  body: (
504
504
  <>
505
- <p>Artifacts load independently from project documents. The document scan skips hidden, build and dependency folders and nested Git checkouts or worktrees. Entry and time budgets can limit the list: "Showing the newest N; open a project for more". Opening a project searches it separately. Workflow artifacts remain listed in full. Each list has its own loading and empty state. A failed list shows a notice while the other results remain usable. Switch away from the window and return to retry. Slow or stalled folders return an incomplete list when the scan budget ends; available results remain usable.</p>
505
+ <p>Open a project card in ARTIFACTS to see documents from its Git worktrees. The branch or detached commit appears on each worktree document. Open it in the read-only viewer. Arco checks Git again on open and refuses protected paths.</p>
506
+ <p>Artifacts load independently from project documents. The overview skips hidden folders, build and dependency folders, and nested Git checkouts. Scan limits can leave a partial list. Opening a project searches it separately. Switch away and return to retry a failed list.</p>
506
507
  <p>
507
508
  Opens the standalone <strong>ARTIFACTS</strong> window: a chromeless
508
509
  project-artifact explorer in its own browser window
@@ -224,7 +224,7 @@ export const miscHelp: Record<string, HelpEntry> = {
224
224
  },
225
225
  'chat.message.agent': {
226
226
  title: 'Agent reply',
227
- body: <p>The primary's reply. Streams token-by-token while the turn is in flight. Outside Cursor, status updates for an existing tool call keep the reply together and the tool in its original position, including after reload. New tools, Cursor reasoning, Cursor tool updates and operator steering still separate reply segments. Ordinary JSON with application keys stays visible. Valid legacy envelopes and arco-artifact fences use compact summaries. Drive-qualified Windows and UNC filenames can be opened as file references.</p>,
227
+ body: <p>The primary's reply. Streams token-by-token while the turn is in flight. Outside Cursor, status updates for an existing tool call keep the reply together and the tool in its original position, including after reload. New tools, Cursor reasoning, Cursor tool updates and operator steering still separate reply segments. Ordinary JSON with application keys stays visible. Valid legacy envelopes and arco-artifact fences use compact summaries. Drive-qualified Windows and UNC filenames can be opened as file references. Conversation links can also open ordinary files in Git worktrees of the tab's repository. Arco checks the worktree on open.</p>,
228
228
  },
229
229
  'chat.message.thinking': {
230
230
  title: 'Reasoning trace',
@@ -14,7 +14,7 @@ export const settingsHelp: Record<string, HelpEntry> = {
14
14
  },
15
15
  'settings.skills.pin': {
16
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></>,
17
+ body: <><p>The active tab or its cluster is selected when eligible; choose a different destination or role if needed. Settings names the destination after the pin is saved. 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
18
  manualSection: 'skills',
19
19
  },
20
20
  'settings.native-subagents-running': {
@@ -920,6 +920,9 @@ export const clusters: Section[] = [
920
920
  members&apos; conversation records.
921
921
  </li>
922
922
  </ul>
923
+ <p>A sent or received PEER card in the conversation shows a short preview.
924
+ Select it to read the full available message, sender, recipient and time. Older sent messages may have
925
+ only their saved preview. Close the dialog to return to the conversation.</p>
923
926
  <p>
924
927
  Temporary mailbox read or attachment-write failures leave pending messages
925
928
  untouched for retry. Each attachment gets a separate file, even when names
@@ -536,8 +536,10 @@ export const configuration: Section[] = [
536
536
  selects a cluster and All members or one role. A custom role must match its
537
537
  saved text exactly. Project skills stay within their project; global skills
538
538
  can be pinned anywhere. Full text is added on every matching member's next turn.</p>
539
+ <p>The active tab or its cluster is selected when eligible. After a pin is
540
+ saved, Settings names the skill, destination and role.</p>
539
541
  <p>The cluster SKILLS button beside EFFICIENCY shows the configured count.
540
- Open it to see sources, scope, availability and UNPIN. New and replaced
542
+ Open it to see sources, scope and availability. ADD SKILL pins an available skill to all members or one role; UNPIN removes a pin. New and replaced
541
543
  members inherit the cluster's pins. A member's composer shows FROM CLUSTER;
542
544
  its direct tab pins remain separate. Only the operator can pin or unpin.</p>
543
545
  <p>Tab, cluster and matching role pins share a limit of 12 unique skills and
@@ -124,10 +124,10 @@ export const gettingStarted: Section[] = [
124
124
  When Arco is already installed, update with <Code>arco update</Code> or{' '}
125
125
  <strong>UPDATE AND RESTART</strong>; do not install the package over a
126
126
  running service. On Windows, <Code>EEXIST</Code> on <Code>arco.cmd</Code>{' '}
127
- usually means the earlier package <Code>@ghreprimand/arco</Code> still owns
128
- the launchers; recover in{' '}
129
- <Code>docs/OPERATIONS.md#running-locally</Code>. Clear older copies before a
130
- fresh install with{' '}
127
+ can come from an earlier package or a linked checkout. Check{' '}
128
+ <Code>npm prefix -g</Code> and the launcher targets in{' '}
129
+ <Code>docs/OPERATIONS.md#windows-install-and-launcher-recovery</Code>.
130
+ Clear older copies before a fresh install with{' '}
131
131
  <Code>docs/OPERATIONS.md#before-a-fresh-install-remove-older-copies</Code>.
132
132
  </p>
133
133
  <p>
@@ -17,7 +17,8 @@ export const maintenance: Section[] = [
17
17
  <strong>ARTIFACTS</strong> starts with project cards and recent artifacts
18
18
  across projects; open a project to drill into its documents. Artifacts appear without waiting for documents. Protected file paths are omitted. Linked or unavailable workflow metadata uses an identifier instead of a title.
19
19
  </li>
20
- <li>Project documents skip hidden folders, build and dependency folders, and nested Git checkouts or worktrees. Entry and time budgets keep discovery responsive. Slow or stalled folders return an incomplete list when the scan budget ends; available results remain usable. A partial list says "Showing the newest N; open a project for more". Opening a project searches it separately. Workflow artifacts stay listed in full, with their own loading state. A failed list shows a notice while the other results remain usable. Switch away from the window and return to retry.</li>
20
+ <li>Open a project card to see documents from its Git worktrees. Each worktree document shows its branch or detached commit and opens in the read-only viewer. Arco checks that the worktree is still registered when you open the file. Protected paths stay refused.</li>
21
+ <li>The overview skips hidden folders, build and dependency folders, and nested Git checkouts. Each project shares its entry and time limits across its worktrees. A partial list keeps the results it found. Workflow artifacts have their own loading state. Switch away from the window and return to retry a failed list.</li>
21
22
  <li>
22
23
  <p><strong>CHANGED FILES</strong> lists files changed in the last 48 hours by any program. The tab and provider appear only when a matching ledger record is current. Artifacts and documents are under ARTIFACTS.</p>
23
24
  <p>The scan covers authorized project roots and the default projects folder, including registered projects outside the home folder. Prepared roots share the entry and remaining time budgets equally. Duplicate and overlapping scans are avoided.</p>
@@ -283,11 +284,11 @@ export const maintenance: Section[] = [
283
284
  uninstall does not remove it.
284
285
  </p>
285
286
  <p>
286
- On Windows, after uninstall check{' '}
287
- <Code>npm ls -g --depth=0</Code> for the earlier package{' '}
288
- <Code>@ghreprimand/arco</Code> (it owns leftover <Code>arco</Code>,{' '}
289
- <Code>arco.cmd</Code>, and <Code>arco.ps1</Code>), uninstall it when
290
- listed, then clear any leftovers under <Code>%APPDATA%\npm</Code>.
287
+ On Windows, check <Code>npm ls -g --depth=0</Code> for the earlier package{' '}
288
+ <Code>@ghreprimand/arco</Code>. Uninstall it if you are removing that copy.
289
+ Use <Code>npm prefix -g</Code> to find <Code>arco</Code>,{' '}
290
+ <Code>arco.cmd</Code>, and <Code>arco.ps1</Code>. Open remaining launchers as text
291
+ and remove only those that point to the copies you removed.
291
292
  </p>
292
293
  <p>
293
294
  When an older copy may be a package, a source checkout, or both, clear it
@@ -483,8 +483,9 @@ export const powerFeatures: Section[] = [
483
483
  </Note>
484
484
  <p>
485
485
  File references opened from chat, help or rendered markdown use a stacked file
486
- viewer. Its raw/formatted toggle switches between highlighted or rendered
487
- output and the exact file text.
486
+ viewer. In chat, a link can open an ordinary file in a Git worktree of the tab's
487
+ repository. Arco checks the worktree when you open the link. The raw/formatted
488
+ toggle switches between the rendered view and the exact file text.
488
489
  </p>
489
490
  </>
490
491
  ),