arco-workbench 0.1.5 → 0.1.7

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 (188) hide show
  1. package/CONTRIBUTING.md +9 -0
  2. package/README.md +17 -5
  3. package/client/dist/assets/{PhosphorBackdrop-D6cbmLNY.js → PhosphorBackdrop-DVQdBrTw.js} +1 -1
  4. package/client/dist/assets/{ThemedBackgroundShaderImpl-2dyerOi4.js → ThemedBackgroundShaderImpl-BfSs2tB4.js} +1 -1
  5. package/client/dist/assets/{XtermView-AIwo7O3D.js → XtermView-DaMjC8Ny.js} +1 -1
  6. package/client/dist/assets/{galleryEditor-DXAuxS8D.js → galleryEditor-BCQnXj7R.js} +1 -1
  7. package/client/dist/assets/{index-8j6p-pmQ.js → index-COfbHCYv.js} +245 -243
  8. package/client/dist/index.html +1 -1
  9. package/client/src/alerts/desktopAlerts.ts +13 -0
  10. package/client/src/buildCheck.ts +3 -1
  11. package/client/src/components/AppUpdateNotice.tsx +2 -1
  12. package/client/src/components/ClusterRightPanel/AutoPickupControl.tsx +46 -11
  13. package/client/src/components/ClusterRightPanel/MemberRow.tsx +1 -1
  14. package/client/src/components/ClusterRightPanel/index.tsx +2 -1
  15. package/client/src/components/ClusterTaskBoardTab.tsx +54 -3
  16. package/client/src/components/ContextMeter.tsx +7 -0
  17. package/client/src/components/HeaderVersionBox.tsx +7 -4
  18. package/client/src/components/Home/HomeView.tsx +1 -1
  19. package/client/src/components/NeedsYouBadge.tsx +31 -16
  20. package/client/src/components/OperatorQuestionNotice.tsx +10 -1
  21. package/client/src/components/ProvidersPopover.tsx +23 -12
  22. package/client/src/components/TabBar.tsx +11 -8
  23. package/client/src/components/TabStatusChip.tsx +8 -7
  24. package/client/src/components/UpdateAction.tsx +18 -4
  25. package/client/src/components/UpdateResultNotice.tsx +3 -1
  26. package/client/src/components/clusterNeedsYou.ts +27 -8
  27. package/client/src/help/content/cluster.tsx +50 -27
  28. package/client/src/help/content/composer.tsx +8 -1
  29. package/client/src/help/content/header.tsx +25 -14
  30. package/client/src/help/content/misc.tsx +8 -0
  31. package/client/src/help/content/rightPanel.tsx +1 -1
  32. package/client/src/help/content/settings.tsx +1 -1
  33. package/client/src/help/content/tabbar.tsx +2 -1
  34. package/client/src/help/manualSections/clusters.tsx +78 -19
  35. package/client/src/help/manualSections/configuration.tsx +20 -4
  36. package/client/src/help/manualSections/gettingStarted.tsx +10 -0
  37. package/client/src/help/manualSections/maintenance.tsx +50 -8
  38. package/client/src/help/manualSections/plans.tsx +5 -1
  39. package/client/src/help/manualSections/providers.tsx +10 -3
  40. package/client/src/help/manualSections/reference.tsx +1 -1
  41. package/client/src/help/manualSections/workflows.tsx +20 -0
  42. package/client/src/help/manualSections/workspace.tsx +7 -1
  43. package/client/src/questions/waitingQuestion.ts +3 -2
  44. package/client/src/stores/appStore.ts +1 -1
  45. package/client/src/stores/appStore.types.ts +1 -0
  46. package/client/src/stores/appUpdateStore.ts +29 -8
  47. package/client/src/stores/notificationStore.ts +2 -0
  48. package/client/src/utils/activityPresentation.ts +1 -1
  49. package/client/src/utils/tabStatus.ts +8 -0
  50. package/client/src/utils/wsSession.ts +2 -1
  51. package/client/src/voice/commands.ts +4 -3
  52. package/client/src/voice/executor.ts +3 -3
  53. package/client/src/ws/handleServerMessage.ts +22 -2
  54. package/client/src/ws/operatorQuestions.ts +2 -0
  55. package/docs/CLIENT.md +3 -3
  56. package/docs/FEATURES.md +1 -1
  57. package/docs/GETTING_STARTED.md +16 -6
  58. package/docs/GLOSSARY.md +6 -2
  59. package/docs/GOTCHAS.md +17 -5
  60. package/docs/OPERATIONS.md +207 -5
  61. package/docs/PERSISTENCE.md +22 -1
  62. package/docs/PRIMITIVES.md +1 -1
  63. package/docs/PROTOCOL.md +1 -1
  64. package/docs/PROTOCOL_CLUSTER.md +18 -7
  65. package/docs/PROVIDERS.md +10 -5
  66. package/docs/SETTINGS.md +4 -2
  67. package/docs/TASK_LEDGER.md +6 -0
  68. package/docs/VOICE.md +2 -0
  69. package/native/darwin-arm64/manifest.json +1 -1
  70. package/native/win32-arm64/manifest.json +1 -1
  71. package/node_modules/@arco/shared/dist/clusterRolePresets.d.ts +1 -1
  72. package/node_modules/@arco/shared/dist/clusterRolePresets.js +10 -0
  73. package/node_modules/@arco/shared/dist/protocol/autoPickup.d.ts +3 -0
  74. package/node_modules/@arco/shared/dist/protocol/autoPickup.js +9 -1
  75. package/node_modules/@arco/shared/dist/protocol/clientMessages.d.ts +2 -2
  76. package/node_modules/@arco/shared/dist/protocol/models.d.ts +6 -0
  77. package/node_modules/@arco/shared/dist/protocol/notifications.d.ts +4 -0
  78. package/node_modules/@arco/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  79. package/node_modules/@arco/shared/dist/protocol/serverMessages.d.ts +9 -3
  80. package/node_modules/@arco/shared/dist/protocol/workflows.d.ts +1 -0
  81. package/node_modules/@arco/shared/package.json +1 -1
  82. package/package.json +2 -2
  83. package/scripts/packaging/arco.mjs +1 -0
  84. package/scripts/packaging/native-repair.mjs +46 -8
  85. package/scripts/packaging/update.mjs +5 -1
  86. package/server/dist/attention.d.ts +1 -1
  87. package/server/dist/attention.js +6 -4
  88. package/server/dist/capabilities.d.ts +9 -8
  89. package/server/dist/capabilities.js +71 -102
  90. package/server/dist/cliUpdateDecision.d.ts +34 -0
  91. package/server/dist/cliUpdateDecision.js +152 -0
  92. package/server/dist/clusterAutoTurn.d.ts +4 -0
  93. package/server/dist/clusterAutoTurn.js +29 -25
  94. package/server/dist/clusterBusyReminder.js +1 -1
  95. package/server/dist/clusterDirector.js +1 -0
  96. package/server/dist/clusterPeerOps.js +2 -2
  97. package/server/dist/clusterStore.d.ts +3 -0
  98. package/server/dist/clusterStore.js +22 -0
  99. package/server/dist/defaults/models.md +1 -1
  100. package/server/dist/fileAccessPolicy.js +7 -5
  101. package/server/dist/http/workflowDataRoutes.js +1 -1
  102. package/server/dist/index.js +5 -1
  103. package/server/dist/primitives/seedWorker.d.ts +1 -0
  104. package/server/dist/primitives/seedWorker.js +2 -1
  105. package/server/dist/providerConversation.d.ts +9 -0
  106. package/server/dist/providerConversation.js +80 -0
  107. package/server/dist/providers/claude-native/retainedContext.d.ts +4 -0
  108. package/server/dist/providers/claude-native/retainedContext.js +20 -0
  109. package/server/dist/providers/claude-native/worker.d.ts +1 -0
  110. package/server/dist/providers/claude-native/worker.js +34 -6
  111. package/server/dist/providers/codex-appserver/operatorQuestions.d.ts +5 -0
  112. package/server/dist/providers/codex-appserver/operatorQuestions.js +30 -0
  113. package/server/dist/providers/codex-appserver/worker.js +9 -4
  114. package/server/dist/providers/ollama.js +2 -3
  115. package/server/dist/server/broadcast.d.ts +1 -1
  116. package/server/dist/smartPickup.d.ts +2 -1
  117. package/server/dist/smartPickup.js +28 -1
  118. package/server/dist/smartPickupAdapters.d.ts +1 -0
  119. package/server/dist/smartPickupAdapters.js +18 -5
  120. package/server/dist/smartPickupLedger.js +6 -4
  121. package/server/dist/smartPickupObserver.d.ts +1 -0
  122. package/server/dist/smartPickupObserver.js +69 -23
  123. package/server/dist/workers/WorkerManager.d.ts +1 -0
  124. package/server/dist/workers/WorkerManager.js +1 -0
  125. package/server/dist/workers/limits.js +6 -2
  126. package/server/dist/workflowMeta.d.ts +11 -1
  127. package/server/dist/workflowMeta.js +132 -6
  128. package/server/dist/workflows/types.d.ts +1 -0
  129. package/server/dist/ws/clusterHandlers.d.ts +1 -0
  130. package/server/dist/ws/clusterHandlers.js +2 -1
  131. package/server/dist/ws/compactHandlers.d.ts +1 -1
  132. package/server/dist/ws/compactHandlers.js +11 -4
  133. package/server/dist/ws/handoffHandlers.js +16 -6
  134. package/server/dist/ws/operatorQuestionHandlers.d.ts +2 -1
  135. package/server/dist/ws/operatorQuestionHandlers.js +9 -1
  136. package/server/dist/ws/turnEngine.d.ts +2 -4
  137. package/server/dist/ws/turnEngine.js +88 -129
  138. package/server/package.json +1 -1
  139. package/server/src/attention.ts +5 -4
  140. package/server/src/capabilities.ts +70 -111
  141. package/server/src/cliUpdateDecision.ts +159 -0
  142. package/server/src/clusterAutoTurn.ts +26 -21
  143. package/server/src/clusterBusyReminder.ts +1 -1
  144. package/server/src/clusterDirector.ts +1 -0
  145. package/server/src/clusterPeerOps.ts +2 -2
  146. package/server/src/clusterStore.ts +26 -1
  147. package/server/src/defaults/models.md +1 -1
  148. package/server/src/fileAccessPolicy.ts +7 -5
  149. package/server/src/http/workflowDataRoutes.ts +1 -1
  150. package/server/src/index.ts +5 -1
  151. package/server/src/primitives/seedWorker.ts +3 -1
  152. package/server/src/providerConversation.ts +71 -0
  153. package/server/src/providers/claude-native/retainedContext.ts +22 -0
  154. package/server/src/providers/claude-native/worker.ts +33 -5
  155. package/server/src/providers/codex-appserver/operatorQuestions.ts +24 -0
  156. package/server/src/providers/codex-appserver/worker.ts +8 -4
  157. package/server/src/providers/ollama.ts +2 -3
  158. package/server/src/smartPickup.ts +27 -3
  159. package/server/src/smartPickupAdapters.ts +19 -5
  160. package/server/src/smartPickupLedger.ts +6 -4
  161. package/server/src/smartPickupObserver.ts +51 -17
  162. package/server/src/workers/WorkerManager.ts +2 -0
  163. package/server/src/workers/limits.ts +7 -2
  164. package/server/src/workflowMeta.ts +139 -5
  165. package/server/src/workflows/types.ts +1 -0
  166. package/server/src/ws/clusterHandlers.ts +3 -2
  167. package/server/src/ws/compactHandlers.ts +9 -3
  168. package/server/src/ws/handoffHandlers.ts +13 -6
  169. package/server/src/ws/operatorQuestionHandlers.ts +10 -2
  170. package/server/src/ws/turnEngine.ts +80 -135
  171. package/shared/dist/clusterRolePresets.d.ts +1 -1
  172. package/shared/dist/clusterRolePresets.js +10 -0
  173. package/shared/dist/protocol/autoPickup.d.ts +3 -0
  174. package/shared/dist/protocol/autoPickup.js +9 -1
  175. package/shared/dist/protocol/clientMessages.d.ts +2 -2
  176. package/shared/dist/protocol/models.d.ts +6 -0
  177. package/shared/dist/protocol/notifications.d.ts +4 -0
  178. package/shared/dist/protocol/operatorQuestions.d.ts +12 -0
  179. package/shared/dist/protocol/serverMessages.d.ts +9 -3
  180. package/shared/dist/protocol/workflows.d.ts +1 -0
  181. package/shared/src/clusterRolePresets.ts +11 -1
  182. package/shared/src/protocol/autoPickup.ts +14 -1
  183. package/shared/src/protocol/clientMessages.ts +2 -1
  184. package/shared/src/protocol/models.ts +5 -2
  185. package/shared/src/protocol/notifications.ts +5 -0
  186. package/shared/src/protocol/operatorQuestions.ts +13 -0
  187. package/shared/src/protocol/serverMessages.ts +12 -2
  188. package/shared/src/protocol/workflows.ts +4 -0
@@ -248,17 +248,26 @@ export const headerHelp: Record<string, HelpEntry> = {
248
248
  Live version of each detected provider CLI (Claude / Codex) plus
249
249
  Ollama and Strata chips when their servers are reachable, a llama.cpp build chip, and
250
250
  a Cursor chip, and XOLOTL / STRATA when installed or enabled, shown in the
251
- Providers popover. Each chip compares against the upstream latest (npm
252
- registry for the Claude and Codex CLIs, GitHub Releases for Ollama and
253
- Strata, refreshed every 4 hours). When the installed version is older than
254
- the upstream latest,
251
+ Providers popover. Codex compares against the target for its detected
252
+ installation; standalone release information comes from npm. Other
253
+ chips compare against their upstream source, refreshed every 4 hours.
254
+ When the installed version is older than the target,
255
255
  the chip border + version text turn warning-color and the tooltip
256
256
  reads <C>outdated: vX → vY</C>.
257
257
  </p>
258
258
  <p>
259
- Click on Claude / Codex runs the upstream installer
260
- (<C>claude update</C> or a resolved npm package version) and flashes
261
- back as <C>v… (latest)</C> or <C>→ vNEW</C>. Click on Ollama opens an
259
+ Claude uses <C>claude update</C>. A recognised standalone Codex uses
260
+ <C>codex update</C>; npm Codex must match the current global package
261
+ root before its updater or a pinned npm version can run. Unknown
262
+ installations receive manual instructions. An update shows
263
+ <C> → v&lt;new&gt;</C>; a confirmed current result shows
264
+ <C> v&lt;version&gt; (latest)</C>. Both clear after 6 seconds and the
265
+ row returns to its version. An unchanged version with a newer release,
266
+ a deferred update or manual instructions shows <C>v&lt;version&gt; (!)</C>
267
+ in warning colour until the next check. A failure shows <C>FAILED</C>
268
+ in danger colour until the next check. Hover for the full message,
269
+ error or command.
270
+ Click on Ollama opens an
262
271
  in-app modal with the last ~10 GitHub releases (themed; markdown notes;
263
272
  your installed version is highlighted): Arco can't auto-update
264
273
  Ollama since the install path varies by OS. Strata uses the same in-app
@@ -268,12 +277,12 @@ export const headerHelp: Record<string, HelpEntry> = {
268
277
  Release notes take keyboard focus on opening. Escape dismisses them;
269
278
  closing returns focus to the opening version control when available.
270
279
  </p>
271
- <p>For npm CLIs with their own platform package, Arco checks that the
272
- matching binary is published before installing. It can keep or select an
273
- older installable version and show <C>v… (!)</C>; hover for the notice.
274
- If the build is confirmed missing and no usable fallback is found,
275
- the update is deferred without changing the current CLI. Retry later.
276
- A broken installed executable is distinct from a missing CLI.</p>
280
+ <p>Arco checks the matching npm platform binary before installing.
281
+ An older npm CLI can use a pinned installable version; its self-updater
282
+ waits when the latest build is missing. A working installation is
283
+ never downgraded. Results never infer latest from an unchanged
284
+ version. A failed updater or broken executable is
285
+ reported explicitly. Retry a deferred update later.</p>
277
286
  <p>
278
287
  Chips for providers you've disabled in Settings or for un-installed
279
288
  CLIs are hidden automatically.
@@ -449,7 +458,9 @@ export const headerHelp: Record<string, HelpEntry> = {
449
458
  Otherwise it opens the running and latest known version, the last
450
459
  check time, <C>CHECK NOW</C>, a release-notes link and a link to
451
460
  Settings &gt; Advanced &gt; CLI and runtime versions. While an update
452
- runs it reads <C>UPDATING</C>. With release checks off it shows the
461
+ runs it reads <C>UPDATING</C>. A release found with <C>CHECK NOW</C>
462
+ appears here; select <C>UPDATE AND RESTART</C> to open confirmation.
463
+ With release checks off it shows the
453
464
  running version only.
454
465
  </p>
455
466
  </>
@@ -203,6 +203,11 @@ export const miscHelp: Record<string, HelpEntry> = {
203
203
  ),
204
204
  manualSection: 'chat-panel',
205
205
  },
206
+ 'question.dismiss': {
207
+ title: 'Dismiss question',
208
+ body: <p>Close this question without answering. A waiting agent can continue. A phone notification already sent cannot be recalled.</p>,
209
+ manualSection: 'provider-codex',
210
+ },
206
211
  'chat.ask-question': {
207
212
  title: 'Agent question',
208
213
  body: <p>Choose one complete option or type an answer. Pipes and backslashes inside an option are kept as part of that answer. Submitting resumes the waiting agent.</p>,
@@ -1582,6 +1587,9 @@ export const miscHelp: Record<string, HelpEntry> = {
1582
1587
  Out-of-band status from the server: rate-limit warnings, retry
1583
1588
  backoffs, calibration completion, threshold crossings, the
1584
1589
  concurrent-writer guard, etc. Italic, dimmer than chat messages.
1590
+ Claude Native retries temporary gateway and connection failures. If
1591
+ attempts run out, its notice explains that the conversation is intact;
1592
+ send another message to continue.
1585
1593
  </p>
1586
1594
  ),
1587
1595
  },
@@ -360,7 +360,7 @@ export const rightPanelHelp: Record<string, HelpEntry> = {
360
360
  },
361
361
  'rightpanel.config.auto-compaction': {
362
362
  title: 'Auto-compaction',
363
- body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
363
+ body: <><p>For cluster members, No worker override means no policy is set on the tab. If the cluster also has no policy, Claude CLI and Codex compact themselves; Claude Native and Ollama use Arco compaction near the context limit. Set a shared policy in the cluster panel under AUTO-COMPACTION. Enabled policies use a 30-95% threshold separately for each worker. Claude Native and Codex app-server compact between turns; Ollama compacts before dispatch. Other transports are unavailable for this policy. Ollama summarizes verified completed executions before the next turn and reuses saved summaries. Legacy or partial history defers safely; raw events remain available. Auto-handoff counts these compactions. Explicit Off stops automatic compaction, and auto-handoff then shows that it needs auto-compaction. Provider uses Arco compaction near 90% for Claude Native and Ollama; Claude CLI and Codex compact themselves. After a successful between-turn automatic compaction, the next completed turn at or above the threshold can compact again. If three automatic compactions in a row each leave the context still at or above the threshold at turn end, a notice says automatic compaction keeps running and that large turns make that expected, otherwise raise the threshold or use HANDOFF. Claude Native also compacts inside a long turn: when a request reaches the threshold (70% under Provider) it summarizes the earlier history, keeps the request that started the turn word for word (a request over 125 KB defers the compaction instead) and the tool call in progress, and the same turn continues; chat shows Compacting automatically and then Compacted, continuing. The size measured is the real prompt, never the summed usage of a request that ran web search, web fetch or code execution. Large summaries split into requests that reserve room for the summary so far. Fable/Mythos 5.2 summaries use low effort and extra reasoning headroom. The retained round's narration also survives a later worker rebuild once. STOP cancels later summary parts as well as the current request. Off turns this off too, and so does Claude API compaction. Fold is deterministic, while handoff starts a fresh session.</p><p>Ollama estimates image context from pixel dimensions before sending. Compression size does not change this estimate. After the request, the daemon supplies the measured prompt count.</p></>,
364
364
  manualSection: 'auto-handoff',
365
365
  },
366
366
  'rightpanel.config.claude-api-compaction': {
@@ -547,7 +547,7 @@ export const settingsHelp: Record<string, HelpEntry> = {
547
547
  'settings.update-result': {
548
548
  title: 'Update result',
549
549
  manualSection: 'arco-updates',
550
- body: <p>Reports the completed update or rollback after the server reconnects. DISMISS hides this result.</p>,
550
+ body: <p>Reports the completed update or failure after the server reconnects. The result appears beside an open update control, or in this separate notice when no update control is open. DISMISS hides this notice. If npm cannot be found, stop Arco and run npm install -g arco-workbench from a terminal where npm works, then start Arco again.</p>,
551
551
  },
552
552
  'settings.app-updates': {
553
553
  title: 'Arco releases',
@@ -24,7 +24,8 @@ export const tabbarHelp: Record<string, HelpEntry> = {
24
24
  <p>
25
25
  A colored dot on each tab (hover for the word) and the word itself on
26
26
  each Continue card on Home. <strong>Needs you</strong> (warning dot):
27
- a worker waits for an answer. <strong>Working</strong>: a turn is running.{' '}
27
+ a worker waits for an answer or an idle member has mail. The dot pulses
28
+ while work is still running. <strong>Working</strong>: a turn is running.{' '}
28
29
  <strong>New reply</strong>: a turn ended while you were on another tab
29
30
  or Home; opening the tab clears it. <strong>Idle</strong> (no dot): nothing is
30
31
  running or waiting. A cluster tab combines its members, and Needs you
@@ -428,7 +428,7 @@ export const clusters: Section[] = [
428
428
  end-to-end and report back."
429
429
  </p>
430
430
  <p>
431
- Six role presets are available:
431
+ Eight role presets are available:
432
432
  </p>
433
433
  <ul>
434
434
  <li>
@@ -461,7 +461,21 @@ export const clusters: Section[] = [
461
461
  <Code>peer_read</Code> and writes / updates docs (README, guides,
462
462
  comments); modifies docs only.
463
463
  </li>
464
+ <li>
465
+ <strong>ADVISOR</strong> - gives the Director a second opinion on
466
+ request: reads, challenges, recommends and states uncertainty. It changes
467
+ no files, assigns no work and lands nothing; replies via <Code>peer_send</Code>.
468
+ </li>
469
+ <li>
470
+ <strong>DESIGNER</strong> - owns screen layout, states, wording and
471
+ accessibility. It changes UI files only and reports via <Code>peer_send</Code>.
472
+ </li>
464
473
  </ul>
474
+ <p>
475
+ When an Advisor is present, the Director consults it before a design
476
+ decision or when the evidence is thin. The Director keeps the decision.
477
+ Role hints guide the agent; they do not enforce file access.
478
+ </p>
465
479
  <h4 className="manual-sub">Setting one</h4>
466
480
  <ol>
467
481
  <li>
@@ -469,7 +483,7 @@ export const clusters: Section[] = [
469
483
  <Code>EDIT</Code> if one is already set).
470
484
  </li>
471
485
  <li>
472
- In the popover, pick one of the six presets, <Code>CLEAR</Code>, or{' '}
486
+ In the popover, pick one of the eight presets, <Code>CLEAR</Code>, or{' '}
473
487
  <Code>CUSTOM…</Code>.
474
488
  </li>
475
489
  <li>
@@ -1053,6 +1067,22 @@ export const clusters: Section[] = [
1053
1067
  open the dialog. <Code>TURN OFF</Code> sets the mode to Off at once.
1054
1068
  Default is Off.
1055
1069
  </p>
1070
+ <p>
1071
+ <Code>PAUSE</Code> beside TURN OFF stops automatic pickup, Smart evaluator
1072
+ requests and busy reminders. The chip says PAUSED. Mail stays waiting;
1073
+ NUDGE and running turns still work. The mode, armed session, wake counts
1074
+ and pause survive a server restart. The Smart session clock freezes at its
1075
+ remaining time. Hourly rate limits keep real time. TURN OFF clears the pause
1076
+ and ends the session.
1077
+ </p>
1078
+ <p>
1079
+ <Code>RESUME</Code> needs no confirmation. It checks each idle member with
1080
+ waiting mail once through the normal guards and limits. Smart still evaluates
1081
+ that mail; Observe-only only records its answer. The session and wake counts
1082
+ stay unchanged except for work admitted after resuming. Smart continues with
1083
+ the time left at PAUSE. A spent Rule-based
1084
+ budget needs the separate RESET BUDGET action after resuming.
1085
+ </p>
1056
1086
  <p><strong>Modes</strong></p>
1057
1087
  <ul>
1058
1088
  <li>
@@ -1084,7 +1114,7 @@ export const clusters: Section[] = [
1084
1114
  <p>
1085
1115
  Adjustable limits pause
1086
1116
  alternating two-member wakes (default 4), cap each member at 6 wakes
1087
- per hour and pause after 40 wakes per arming. RESUME starts a fresh
1117
+ per hour and pause after 40 wakes per arming. RESET BUDGET starts a fresh
1088
1118
  arming budget; the hourly limit remains.
1089
1119
  </p>
1090
1120
  <p>
@@ -1124,10 +1154,22 @@ export const clusters: Section[] = [
1124
1154
  path as Rule-based for the actual turn).
1125
1155
  </p>
1126
1156
  <p>
1127
- An error, timeout, tool attempt, or malformed or oversized answer
1128
- records no decision and never wakes a member. Each request reserves a
1129
- budget slot before it is sent; a request still in flight when the
1130
- server stops counts as spent.
1157
+ An evaluator error, refusal, timeout, tool attempt, or invalid answer
1158
+ attempts ordinary pickup once in Automatic, through every wake guard
1159
+ and budget. The last decision, chip hover and accessible description
1160
+ explain the failure and whether pickup started or was held. Observe-only
1161
+ logs what it would do and never wakes.
1162
+ </p>
1163
+ <p>
1164
+ A failure before the evaluator
1165
+ session is ready retries once with its own allowance. A second startup
1166
+ failure or any other failure takes fallback without an additional retry.
1167
+ </p>
1168
+ <p>
1169
+ Valid wait or ask answers, STOP, expired sessions, unverifiable mail and
1170
+ quota refusals never permit fallback. Each request reserves a budget
1171
+ slot before it is sent; a request still in flight when the server stops
1172
+ counts as spent.
1131
1173
  </p>
1132
1174
  <h4 className="manual-sub">Choosing an evaluator</h4>
1133
1175
  <p>
@@ -1156,10 +1198,10 @@ export const clusters: Section[] = [
1156
1198
  <li>Evaluator requests per hour, each member - 3 (1 to 60)</li>
1157
1199
  <li>Automatic wakes per hour, each member - 3 (1 to 60)</li>
1158
1200
  <li>Automatic wakes per armed session - 12 (1 to 200)</li>
1159
- <li>Armed session length - 30 minutes (5 to 480)</li>
1201
+ <li>Armed session length - 30 minutes (5 to 240)</li>
1160
1202
  <li>Evaluator time limit - 30 seconds (5 to 120)</li>
1161
1203
  <li>Most mail and context sent per request - 12288 bytes (2048 to 65536)</li>
1162
- <li>Longest evaluator answer - 64 tokens (16 to 512)</li>
1204
+ <li>Longest evaluator answer - 64 tokens (16 to 512), with the existing visible-character bound. Capped provider requests add 8192 tokens for reasoning without enlarging the visible answer.</li>
1163
1205
  </ul>
1164
1206
  <p>
1165
1207
  Limits are counted durably, so a restart never resets them. The
@@ -1169,9 +1211,12 @@ export const clusters: Section[] = [
1169
1211
  <h4 className="manual-sub">Session expiry and re-arm</h4>
1170
1212
  <p>
1171
1213
  Each Smart arming starts a
1172
- new session with its own expiry from the session-length limit. When the
1173
- session ends, or after a restart whose budget ledger cannot be read,
1174
- Smart turns itself Off and must be armed again.
1214
+ new session. Set <strong>Armed session length</strong> under
1215
+ <strong> AUTO-PICKUP &gt; LIMITS</strong> before arming: 5 to 240 minutes,
1216
+ default 30. The dialog shows minutes remaining and the end time. When
1217
+ the session ends, or after a restart whose budget ledger cannot be read,
1218
+ Smart turns itself Off. Mail waits for rearming, Rule-based or NUDGE;
1219
+ expiry never grants another wake.
1175
1220
  </p>
1176
1221
  <p>
1177
1222
  The evaluator choice and adjusted limits are kept for the next arming.
@@ -1486,6 +1531,16 @@ export const clusters: Section[] = [
1486
1531
  board-reader member is available.
1487
1532
  </p>
1488
1533
  <p>
1534
+ A REVIEW task opens on the director&apos;s verdict: who signed off,
1535
+ met / partial / not met, and the summary, or No sign-off yet. ACCEPT marks
1536
+ it done; RECHECK uses the existing request to the sign-off author.
1537
+ Accepting is optional; nothing waits on it.
1538
+ </p>
1539
+ <p>
1540
+ Edit appears below and starts closed for REVIEW only. Open it to change
1541
+ the task fields. Other statuses keep their existing drawer layout.
1542
+ </p>
1543
+ <p>
1489
1544
  The task drawer shows overview fields (status, assignee, priority,
1490
1545
  worktree-required state, current worktree path, blocked reason,
1491
1546
  review/goal settings, links), dependency parents/children, durable
@@ -1660,13 +1715,17 @@ export const clusters: Section[] = [
1660
1715
  </ul>
1661
1716
  <ul>
1662
1717
  <li>
1663
- The <Code>NEED YOU</Code> badge above the member cards counts review
1664
- tasks with a director sign-off, tasks blocked on a decision from you,
1665
- and members with a waiting question. Click it to jump to the task on
1666
- the board or to the member. In Narrow layout, a compact <Code>! count</Code>
1667
- badge stays below the member-list button while the list is closed. Opening
1668
- the list moves the summary into its header. Choosing a task opens BOARD
1669
- and closes the member list.
1718
+ 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 signed-off tasks TO ACCEPT. Stopped kinds come first and use the
1721
+ warning colour; optional kinds are muted. Accepting is optional; nothing
1722
+ waits on it.
1723
+ </li>
1724
+ <li>
1725
+ Click the badge to jump to a task or member. In Narrow layout, the compact
1726
+ <Code> ! count</Code> includes only WAITING and BLOCKED; optional-only items
1727
+ show a plain muted number. Opening the member list moves the summary into
1728
+ its header. Choosing a task opens BOARD and closes the member list.
1670
1729
  </li>
1671
1730
  <li>
1672
1731
  On review cards, <Code>ACCEPT</Code> marks one task done and{' '}
@@ -867,6 +867,22 @@ export const configuration: Section[] = [
867
867
  compact themselves.
868
868
  </p>
869
869
  <p>
870
+ Between turns, after a successful automatic compaction, the next completed
871
+ turn at or above the threshold can compact again.
872
+ </p>
873
+ <p>
874
+ If three automatic compactions in a row each leave the context still at or
875
+ above the threshold at turn end, a notice says automatic compaction has run
876
+ after each of the last 3 turns, the context is still at or above the
877
+ threshold, and it keeps running. Large turns make that expected; otherwise
878
+ raise the threshold or use HANDOFF.
879
+ </p>
880
+ <p>
881
+ The same notice can appear again after a turn ends below the threshold or
882
+ COMPACT succeeds. A failed attempt waits for a reading more than five
883
+ percentage points below the threshold before retrying.
884
+ </p>
885
+ <p>
870
886
  Claude Native also compacts inside one long turn. When a request reaches the
871
887
  threshold (70% under Provider), Arco summarizes the earlier history before
872
888
  the next request, keeps the tool call in progress and its result, and the
@@ -893,10 +909,10 @@ export const configuration: Section[] = [
893
909
  The retained round's narration also survives a later worker rebuild, without appearing twice.
894
910
  </p>
895
911
  <p>
896
- It runs at most once per crossing: if the context stays above the threshold,
897
- one notice says so. A failed summary changes nothing and the turn continues.
898
- STOP cancels the whole multipart summary, including between requests, and
899
- leaves the prior history available.
912
+ That in-turn compaction runs at most once per crossing: if the context stays
913
+ above the threshold, one notice says so. A failed summary changes nothing and
914
+ the turn continues. STOP cancels the whole multipart summary, including
915
+ between requests, and leaves the prior history available.
900
916
  Off turns it off, and so does Claude API compaction (beta).
901
917
  </p>
902
918
  <p>
@@ -121,6 +121,16 @@ export const gettingStarted: Section[] = [
121
121
  <Code>arco setup</Code>
122
122
  </p>
123
123
  <p>
124
+ When Arco is already installed, update with <Code>arco update</Code> or{' '}
125
+ <strong>UPDATE AND RESTART</strong>; do not install the package over a
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{' '}
131
+ <Code>docs/OPERATIONS.md#before-a-fresh-install-remove-older-copies</Code>.
132
+ </p>
133
+ <p>
124
134
  The Linux source launcher verifies process ownership before stopping a development server. Source systemd service definitions preserve checkout paths containing spaces and retain the Arco home selected during installation. Reinstall a source unit after changing that home.
125
135
  </p>
126
136
  <p>
@@ -111,16 +111,32 @@ export const maintenance: Section[] = [
111
111
  the latter is shown as <strong>broken</strong>, with diagnostic detail.
112
112
  </p>
113
113
  <p>
114
- For npm CLIs that publish their own platform binary package, Arco checks
115
- that a matching platform version exists before installing. During an upstream
116
- publish gap it may select an older installable version or retain the working
117
- one. If the build is confirmed missing and no installable fallback can be
118
- verified, the update is deferred. The current CLI stays unchanged; retry later.
114
+ Codex updates follow the installation Arco runs. Recognised standalone
115
+ installations use <Code>codex update</Code>. An npm installation must match
116
+ the current npm global package root, and its platform build must be available.
117
+ Arco refuses a different npm target. Unrecognised installations and older
118
+ standalone installations stay unchanged with instructions for a terminal.
119
119
  </p>
120
120
  <p>
121
- A <Code>v... (!)</Code> notice explains this on hover; it does not mean
122
- the newest advertised version was installed. A post-install probe checks
123
- that the executable actually runs.
121
+ An update briefly shows <Code>→ v&lt;new&gt;</Code>; a confirmed current result
122
+ shows <Code>v&lt;version&gt; (latest)</Code>. Both clear after 6 seconds and the
123
+ row returns to its version. An unchanged version with a newer release available,
124
+ a deferred update or manual instructions shows <Code>v&lt;version&gt; (!)</Code>
125
+ in warning colour until the next check.
126
+ </p>
127
+ <p>
128
+ A failure shows <Code>FAILED</Code>
129
+ in danger colour until the next check. Hover over the row for the full
130
+ message, error or command. An unchanged version is not automatically called latest.
131
+ A failed updater remains a failure even when the old executable still works.
132
+ Claude continues to use <Code>claude update</Code>.
133
+ </p>
134
+ <p>
135
+ During an npm publication gap, an older npm CLI can use a pinned installable
136
+ version; a self-updater waits for the latest platform build instead.
137
+ Arco does not downgrade a working installation. The Codex flag uses that
138
+ installation's update target. Standalone version information comes from npm;
139
+ Homebrew installations without recognised ownership require manual updates.
124
140
  </p>
125
141
  <p>
126
142
  Strata's installed engine version comes from its reachable service or
@@ -163,6 +179,10 @@ export const maintenance: Section[] = [
163
179
  notice is dismissed. Clicking it opens the update dialog, or the version
164
180
  details when Arco is up to date.
165
181
  </p>
182
+ <p>
183
+ A release found with CHECK NOW appears
184
+ in the version box; select UPDATE AND RESTART to open its confirmation.
185
+ </p>
166
186
  <Sub>Settings row and automatic checks</Sub>
167
187
  <p>
168
188
  Settings &gt; Advanced &gt; CLI and runtime versions includes an{' '}
@@ -196,6 +216,14 @@ export const maintenance: Section[] = [
196
216
  refuses to proceed if the stop cannot be verified.
197
217
  </p>
198
218
  <p>
219
+ The result stays beside the open update control. Closing that control shows
220
+ a separate result notice with <strong>DISMISS</strong>. If npm cannot be found,
221
+ the update leaves the service running and lists the locations checked. In a
222
+ terminal where <Code>npm --version</Code> works, stop Arco, run{' '}
223
+ <Code>npm install -g arco-workbench</Code>, then start Arco again. Repair the
224
+ Node.js/npm installation first if that terminal cannot run npm either.
225
+ </p>
226
+ <p>
199
227
  After a restart, Arco reloads a page automatically if its build changed or
200
228
  its session cannot recover and no unsaved work is detected. Otherwise the
201
229
  RELOAD banner stays visible. Save drafts and edits before selecting it.
@@ -237,6 +265,20 @@ export const maintenance: Section[] = [
237
265
  uninstall does not remove it.
238
266
  </p>
239
267
  <p>
268
+ On Windows, after uninstall check{' '}
269
+ <Code>npm ls -g --depth=0</Code> for the earlier package{' '}
270
+ <Code>@ghreprimand/arco</Code> (it owns leftover <Code>arco</Code>,{' '}
271
+ <Code>arco.cmd</Code>, and <Code>arco.ps1</Code>), uninstall it when
272
+ listed, then clear any leftovers under <Code>%APPDATA%\npm</Code>.
273
+ </p>
274
+ <p>
275
+ When an older copy may be a package, a source checkout, or both, clear it
276
+ with the steps in{' '}
277
+ <Code>docs/OPERATIONS.md#before-a-fresh-install-remove-older-copies</Code>
278
+ before a fresh install. Do not delete the Arco home as a routine recovery
279
+ step.
280
+ </p>
281
+ <p>
240
282
  Deleting the Arco home, per-project <Code>.arco/</Code> folders, or Git
241
283
  checkpoint refs <Code>refs/arco/*</Code> is optional and permanent. Those
242
284
  steps, with shell and PowerShell commands, are in{' '}
@@ -491,7 +491,11 @@ export const plans: Section[] = [
491
491
  <>
492
492
  <p>
493
493
  Review and handoff write durable markdown artifacts beside the workflow, so
494
- their results outlive the session.
494
+ their results outlive the session. Files meant to stay in the project
495
+ belong in the project tree, not only under that conversation&apos;s{' '}
496
+ <Code>artifacts/</Code> folder. The project <Code>.arco/</Code> folder
497
+ is local state and is not committed, except a skill shared through
498
+ SHARE WITH REPOSITORY.
495
499
  </p>
496
500
  <ul>
497
501
  <li>
@@ -341,6 +341,13 @@ export const providers: Section[] = [
341
341
  double-retry.
342
342
  </li>
343
343
  <li>
344
+ Native also retries temporary gateway errors (HTTP 502, 503, 504 and
345
+ 520-524), connection failures and timeouts, within the same three-attempt
346
+ limit. Cancellation stops immediately. If attempts run out, a plain notice
347
+ explains that the conversation is intact; send another message to continue.
348
+ Partial output from a retried attempt is retracted before regeneration.
349
+ </li>
350
+ <li>
344
351
  <strong>Throttle detection.</strong> A stderr regex catches &quot;usage limit
345
352
  reached&quot; messages and surfaces them in the QuotaBadge with a reset time.
346
353
  </li>
@@ -480,10 +487,10 @@ export const providers: Section[] = [
480
487
  </p>
481
488
  <ul>
482
489
  <li>
483
- Async questions let the agent continue. Answers sent after a turn ends
484
- start a normal operator turn.
490
+ Async questions let the agent continue and close when that turn ends.
491
+ Afterward, send a normal message instead.
485
492
  </li>
486
- <li>Cancelled or expired questions close automatically.</li>
493
+ <li>Select DISMISS to close a pending question without answering. A phone notification already sent cannot be recalled.</li>
487
494
  <li>
488
495
  A named toast opens the asking worker. A question mark on its tab and a
489
496
  highlighted cluster card remain until the question settles.
@@ -211,7 +211,7 @@ scripts/arco logs [N] # tail -f -n N of the log (default 100)`}</Pre>
211
211
  [<strong key="cl2">Member</strong>, 'One workflow inside a cluster, addressed in peer tools by the first 8 characters of its workflowId.'],
212
212
  [<strong key="cl3">Peer tool</strong>, <span>One of <Code>peer_list</Code> / <Code>peer_send</Code> / <Code>peer_read</Code>. Available to every member for passing notes between operator turns.</span>],
213
213
  [<strong key="cl4">Mailbox</strong>, 'Per-recipient inbox at ~/.arco/clusters/<id>/mailbox/<wfid>/. One file per message, size-limited, emptied by peer_read.'],
214
- [<strong key="cl5">Role hint</strong>, "A free-form tag of up to 120 characters added to a member's instructions each turn. Presets: DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, plus CUSTOM. A cluster may have at most one director (a role beginning with Director or Coordinator)."],
214
+ [<strong key="cl5">Role hint</strong>, "A free-form tag of up to 120 characters added to a member's instructions each turn. Presets: DIRECTOR, BUILDER, REVIEWER, RESEARCHER, TESTER, DOCUMENTER, ADVISOR, DESIGNER, plus CUSTOM. A cluster may have at most one director (a role beginning with Director or Coordinator)."],
215
215
  [<strong key="dir">Director</strong>, 'A member whose role hint is DIRECTOR or begins with Director or Coordinator. By convention it creates tasks, assigns workers and watches progress. At most one per cluster for new work. It cannot mark tasks done; only the operator can.'],
216
216
  [<strong key="cl6">Cluster plan</strong>, "Shared text of up to 32 KB included in every member's instructions each turn. It is cached for about 5 minutes."],
217
217
  [<strong key="cl7">Idle nudger</strong>, 'An optional per-cluster toast (off by default) shown when a member has been idle for 10 seconds or more with unread mail. It never prompts workers.'],
@@ -21,6 +21,13 @@ export const workflows: Section[] = [
21
21
  <li>Optional artifacts under <Code>artifacts/</Code> and <Code>handoffs/</Code> alongside.</li>
22
22
  </ul>
23
23
  <p>
24
+ Put files the operator wants kept in the project in the project tree, for
25
+ example <Code>docs/</Code>, not only under the conversation&apos;s{' '}
26
+ <Code>artifacts/</Code> folder. The project <Code>.arco/</Code> folder is
27
+ local state and is not committed, except a skill shared through SHARE WITH
28
+ REPOSITORY.
29
+ </p>
30
+ <p>
24
31
  The server reloads workflows on boot. The client rehydrates from local storage,
25
32
  and the server replays anything it missed.
26
33
  </p>
@@ -119,6 +126,19 @@ codex exec resume <thread-id> "next prompt"
119
126
  model's context window; the numerator is Arco's running estimate of how full the
120
127
  prompt is. How that estimate is made depends on the provider.
121
128
  </p>
129
+ <p>
130
+ If a saved provider conversation id was lost, <Code>CTX: -</Code> explains that
131
+ the previous conversation cannot be resumed. The next message starts a new
132
+ Codex, Cursor or Claude CLI conversation and adds one notice. Earlier messages
133
+ and usage remain in the tab. The replacement shows no context reading until it
134
+ supplies its own.
135
+ </p>
136
+ <p>Arco recreates missing metadata and saves any id still known
137
+ to the running server; it cannot recover an id already lost before restart.
138
+ Claude Native and local providers can replay retained history without that id.
139
+ </p>
140
+ <p>COMPACT on a lost Codex or Cursor conversation explains that the next message
141
+ starts a new conversation. An empty tab still asks for its first turn.</p>
122
142
  <Sub>Claude CLI</Sub>
123
143
  <p>
124
144
  Arco uses the CLI session's latest context snapshot when available, with a
@@ -164,7 +164,8 @@ export const workspace: Section[] = [
164
164
  One tab per workflow (Agent or Chat). Each tab shows the workflow
165
165
  name and a status dot: Working while a turn runs, Needs you while a
166
166
  worker waits for an answer or an idle member has mail, and New reply
167
- when a turn finished while you were elsewhere.
167
+ when a turn finished while you were elsewhere. A Needs you dot pulses
168
+ while work is still running in the tab.
168
169
  </p>
169
170
  <p>
170
171
  Idle has no dot. Hover
@@ -397,6 +398,11 @@ export const workspace: Section[] = [
397
398
  completed changes. <Kbd>Esc</Kbd> cancels the in-flight turn (drops
398
399
  the queue too; <Kbd>Shift+Esc</Kbd> skips the confirm). The PENDING list shows each message as Queued until delivery is confirmed, then Delivered until the next agent text or turn end. A provider without a delivery signal stays Queued until turn end. The conversation header shows the current step and elapsed time while a turn runs. Each step stays visible briefly; steps over 60 seconds are marked long-running. Hover over a shortened step to read it in full. Cluster member cards keep the last settled reply or tool step and do not show reasoning fragments.
399
400
  </li>
401
+ <li>Claude Native holds a steer while server tools still await results.
402
+ One conversation line, such as <Code>Message held until web search finishes.</Code>,
403
+ explains the wait. The message stays Queued until the next safe
404
+ boundary, or runs as the next turn if the current turn finishes
405
+ first. Search results and reasoning from the current work remain intact.</li>
400
406
  </ul>
401
407
  <h4 className="manual-sub">Slash commands &amp; references</h4>
402
408
  <p><Code>/prompt name args</Code> expands a saved template. Inserted argument text remains literal; <Code>$$1</Code> in the template produces literal <Code>$1</Code>.</p>
@@ -28,6 +28,7 @@ export function questionToastText(workflowId: string): string {
28
28
  return cluster ? `${name} in ${clusterName(cluster)} has a question` : `${name} has a question`;
29
29
  }
30
30
 
31
- export function notifyQuestion(workflowId: string): void {
32
- useAppStore.getState().pushNotification('info', questionToastText(workflowId), workflowId);
31
+ export function notifyQuestion(workflowId: string, requestId?: string): void {
32
+ if (!requestId) { useAppStore.getState().pushNotification('info', questionToastText(workflowId), workflowId); return; }
33
+ useAppStore.setState((s) => ({ notifications: [...s.notifications.slice(-9), { id: `question-${requestId}`, level: 'info', message: questionToastText(workflowId), workflowId, createdAt: Date.now() }] }));
33
34
  }
@@ -1602,7 +1602,7 @@ export const useAppStore = create<AppState>()(persist((set, get) => ({
1602
1602
  // Codex fallback path (which reads lastTurnTokens) doesn't render
1603
1603
  // pre-handoff numbers attributed to the new provider.
1604
1604
  clearTurnUsageState: (jobId) =>
1605
- set((s) => updateJob(s, jobId, () => ({ contextUsage: undefined, lastTurnTokens: undefined, lastGenSpeed: undefined }))),
1605
+ set((s) => updateJob(s, jobId, () => ({ contextUsage: undefined, lastTurnTokens: undefined, lastGenSpeed: undefined, providerConversation: undefined }))),
1606
1606
 
1607
1607
  // NATIVE_COMPACTION_PLAN Phase 3 — compaction takeover lifecycle. The takeover
1608
1608
  // overlay reads `compacting`; the post-compaction banner reads `compactedResume`.
@@ -306,6 +306,7 @@ export interface JobState {
306
306
  // (not from events.jsonl). Empty for non-Claude providers. Not persisted —
307
307
  // rebuilt via session_entry WS messages on every connect/reconnect.
308
308
  sessionChat: ChatMessage[];
309
+ providerConversation?: 'unavailable' | 'awaiting-reading';
309
310
  // Phase 2 context robustness — byte-count context fill estimate. Updated
310
311
  // after each primary_complete and on rehydrate. Not persisted (derived).
311
312
  contextUsage?: {