runpane 2.4.214 → 2.4.216

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 (47) hide show
  1. package/README.md +27 -1
  2. package/dist/autopilot.d.ts +16 -0
  3. package/dist/autopilot.d.ts.map +1 -0
  4. package/dist/autopilot.js +376 -0
  5. package/dist/autopilot.js.map +1 -0
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +24 -0
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands.d.ts +34 -0
  10. package/dist/commands.d.ts.map +1 -1
  11. package/dist/commands.js +133 -6
  12. package/dist/commands.js.map +1 -1
  13. package/dist/daemonClient.d.ts.map +1 -1
  14. package/dist/daemonClient.js +25 -1
  15. package/dist/daemonClient.js.map +1 -1
  16. package/dist/docs-index.json +1 -1
  17. package/dist/generated/contract.d.ts +2478 -197
  18. package/dist/generated/contract.d.ts.map +1 -1
  19. package/dist/generated/contract.js +7356 -3378
  20. package/dist/generated/contract.js.map +1 -1
  21. package/dist/localControl.d.ts +50 -4
  22. package/dist/localControl.d.ts.map +1 -1
  23. package/dist/localControl.js +309 -17
  24. package/dist/localControl.js.map +1 -1
  25. package/dist/mcp.js +1 -1
  26. package/dist/mcp.js.map +1 -1
  27. package/dist/mcpTools.d.ts +5 -4
  28. package/dist/mcpTools.d.ts.map +1 -1
  29. package/dist/mcpTools.js +14 -2
  30. package/dist/mcpTools.js.map +1 -1
  31. package/dist/notify.d.ts +99 -0
  32. package/dist/notify.d.ts.map +1 -1
  33. package/dist/notify.js +83 -19
  34. package/dist/notify.js.map +1 -1
  35. package/dist/secrets.d.ts +12 -0
  36. package/dist/secrets.d.ts.map +1 -0
  37. package/dist/secrets.js +296 -0
  38. package/dist/secrets.js.map +1 -0
  39. package/dist/updateCapacity.d.ts +2 -2
  40. package/dist/updateCapacity.d.ts.map +1 -1
  41. package/dist/updateCapacity.js +4 -1
  42. package/dist/updateCapacity.js.map +1 -1
  43. package/dist/watchLines.d.ts +1 -0
  44. package/dist/watchLines.d.ts.map +1 -1
  45. package/dist/watchLines.js +7 -0
  46. package/dist/watchLines.js.map +1 -1
  47. package/package.json +1 -1
@@ -40,6 +40,7 @@ exports.runPanesFocus = runPanesFocus;
40
40
  exports.runPanelsList = runPanelsList;
41
41
  exports.runPanelsCreate = runPanelsCreate;
42
42
  exports.runPanelsOpen = runPanelsOpen;
43
+ exports.runPanelsClose = runPanelsClose;
43
44
  exports.runPanelsOutput = runPanelsOutput;
44
45
  exports.runPanelsInput = runPanelsInput;
45
46
  exports.runPanelsScreen = runPanelsScreen;
@@ -53,6 +54,7 @@ exports.printPromptNotes = printPromptNotes;
53
54
  exports.runPanelsSubmitComposer = runPanelsSubmitComposer;
54
55
  exports.runPanelsWait = runPanelsWait;
55
56
  exports.runPanelsResume = runPanelsResume;
57
+ exports.runPause = runPause;
56
58
  exports.runAgentsDoctor = runAgentsDoctor;
57
59
  exports.buildPanelInputRequest = buildPanelInputRequest;
58
60
  exports.buildPanelCreateRequest = buildPanelCreateRequest;
@@ -87,6 +89,29 @@ const repoAddPreviewSchema = boundaryDecoder_1.boundary.object({
87
89
  wouldCreate: boundaryDecoder_1.boundary.boolean,
88
90
  environment: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
89
91
  });
92
+ const pausedMarkSchema = boundaryDecoder_1.boundary.object({
93
+ at: boundaryDecoder_1.boundary.string,
94
+ by: boundaryDecoder_1.boundary.enumeration('manual', 'auto'),
95
+ idleHours: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.number),
96
+ runScript: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
97
+ });
98
+ const pauseResultSchema = boundaryDecoder_1.boundary.object({
99
+ ok: boundaryDecoder_1.boundary.boolean,
100
+ action: boundaryDecoder_1.boundary.enumeration('paused', 'resumed'),
101
+ scope: boundaryDecoder_1.boundary.object({
102
+ kind: boundaryDecoder_1.boundary.enumeration('panel', 'pane', 'session'),
103
+ panelId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
104
+ paneId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
105
+ paneName: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
106
+ sessionId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
107
+ sessionName: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
108
+ }),
109
+ panelIds: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string),
110
+ unchanged: boundaryDecoder_1.boundary.number,
111
+ failed: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.object({ panelId: boundaryDecoder_1.boundary.string, error: boundaryDecoder_1.boundary.string })),
112
+ message: boundaryDecoder_1.boundary.string,
113
+ nextCommand: boundaryDecoder_1.boundary.string,
114
+ });
90
115
  const paneSummarySchema = boundaryDecoder_1.boundary.object({
91
116
  id: boundaryDecoder_1.boundary.string,
92
117
  paneId: boundaryDecoder_1.boundary.string,
@@ -101,6 +126,8 @@ const paneSummarySchema = boundaryDecoder_1.boundary.object({
101
126
  pinned: boundaryDecoder_1.boundary.boolean,
102
127
  createdAt: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
103
128
  lastActivity: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
129
+ inactiveSince: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
130
+ paused: boundaryDecoder_1.boundary.optional(pausedMarkSchema),
104
131
  archived: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
105
132
  ownership: boundaryDecoder_1.boundary.enumeration('pane', 'external'),
106
133
  });
@@ -182,6 +209,16 @@ const archiveSafetySchema = boundaryDecoder_1.boundary.object({
182
209
  number: boundaryDecoder_1.boundary.number,
183
210
  headOid: boundaryDecoder_1.boundary.string,
184
211
  })),
212
+ busyAgents: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.object({
213
+ panelId: boundaryDecoder_1.boundary.string,
214
+ title: boundaryDecoder_1.boundary.string,
215
+ state: boundaryDecoder_1.boundary.enumeration('working', 'blocked'),
216
+ }))),
217
+ unsentInput: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.object({
218
+ panelId: boundaryDecoder_1.boundary.string,
219
+ title: boundaryDecoder_1.boundary.string,
220
+ kind: boundaryDecoder_1.boundary.enumeration('composer', 'editor'),
221
+ }))),
185
222
  });
186
223
  const agentReportFields = {
187
224
  state: boundaryDecoder_1.boundary.enumeration('ready', 'blocked', 'failed', 'done'),
@@ -220,7 +257,7 @@ const panelLastMessageResultSchema = boundaryDecoder_1.boundary.union(boundaryDe
220
257
  reason: boundaryDecoder_1.boundary.literal('transcript-unavailable'),
221
258
  message: boundaryDecoder_1.boundary.string,
222
259
  }));
223
- const archiveBlockCodeSchema = boundaryDecoder_1.boundary.enumeration('uncommitted-changes', 'unpushed-commits', 'uncommitted-and-unpushed', 'status-unknown');
260
+ const archiveBlockCodeSchema = boundaryDecoder_1.boundary.enumeration('uncommitted-changes', 'unpushed-commits', 'uncommitted-and-unpushed', 'status-unknown', 'agent-busy', 'unsent-input');
224
261
  const worktreeCleanupSchema = boundaryDecoder_1.boundary.enumeration('completed', 'failed', 'timeout', 'not-applicable');
225
262
  const trashDeletionSchema = boundaryDecoder_1.boundary.enumeration('pending', 'done');
226
263
  const panelSummarySchema = boundaryDecoder_1.boundary.object({
@@ -241,8 +278,13 @@ const panelSummarySchema = boundaryDecoder_1.boundary.object({
241
278
  createdAt: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
242
279
  lastActiveAt: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
243
280
  report: boundaryDecoder_1.boundary.optional(agentReportSchema),
281
+ paused: boundaryDecoder_1.boundary.optional(pausedMarkSchema),
244
282
  resumeId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
245
283
  resumeSource: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.enumeration('agent-farm', 'configured', 'agent')),
284
+ openedBy: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.object({
285
+ source: boundaryDecoder_1.boundary.enumeration('agent', 'user'),
286
+ panelId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
287
+ })),
246
288
  });
247
289
  exports.repoListResultSchema = boundaryDecoder_1.boundary.object({
248
290
  ok: boundaryDecoder_1.boundary.literal(true),
@@ -277,6 +319,7 @@ const repoSettingsSchema = boundaryDecoder_1.boundary.object({
277
319
  buildScript: repoScriptSettingSchema,
278
320
  runScript: repoScriptSettingSchema,
279
321
  archiveScript: repoScriptSettingSchema,
322
+ envVars: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.union(boundaryDecoder_1.boundary.object({ key: boundaryDecoder_1.boundary.string, source: boundaryDecoder_1.boundary.literal('plain'), value: boundaryDecoder_1.boundary.string }), boundaryDecoder_1.boundary.object({ key: boundaryDecoder_1.boundary.string, source: boundaryDecoder_1.boundary.literal('keychain'), service: boundaryDecoder_1.boundary.string, account: boundaryDecoder_1.boundary.string }), boundaryDecoder_1.boundary.object({ key: boundaryDecoder_1.boundary.string, source: boundaryDecoder_1.boundary.literal('secret'), project: boundaryDecoder_1.boundary.string, name: boundaryDecoder_1.boundary.string })))),
280
323
  });
281
324
  const repoGetResultSchema = boundaryDecoder_1.boundary.object({
282
325
  ok: boundaryDecoder_1.boundary.literal(true),
@@ -334,6 +377,7 @@ const orchestrationSessionRecordSchema = boundaryDecoder_1.boundary.object({
334
377
  name: boundaryDecoder_1.boundary.nonEmptyString,
335
378
  archived: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
336
379
  isPinned: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
380
+ paused: boundaryDecoder_1.boundary.optional(pausedMarkSchema),
337
381
  agent: orchestrationAgentSchema,
338
382
  internalSessionId: boundaryDecoder_1.boundary.nonEmptyString,
339
383
  panelIds: boundaryDecoder_1.boundary.object({
@@ -370,6 +414,11 @@ exports.runpaneSessionResultSchema = boundaryDecoder_1.boundary.object({
370
414
  session: orchestrationSessionRecordSchema,
371
415
  panelId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.nonEmptyString),
372
416
  internalSessionId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.nonEmptyString),
417
+ panes: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.object({
418
+ archivedPaneIds: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.nonEmptyString),
419
+ keptPanes: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.object({ paneId: boundaryDecoder_1.boundary.nonEmptyString, name: boundaryDecoder_1.boundary.string, code: archiveBlockCodeSchema })),
420
+ failedPanes: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.object({ paneId: boundaryDecoder_1.boundary.nonEmptyString, name: boundaryDecoder_1.boundary.string, error: boundaryDecoder_1.boundary.string })),
421
+ })),
373
422
  });
374
423
  const orchestrationPanelOverviewSchema = boundaryDecoder_1.boundary.object({
375
424
  panelId: boundaryDecoder_1.boundary.nonEmptyString,
@@ -636,6 +685,7 @@ const paneArchiveBulkResultSchema = boundaryDecoder_1.boundary.object({
636
685
  ok: boundaryDecoder_1.boundary.boolean,
637
686
  sessionId: boundaryDecoder_1.boundary.string,
638
687
  merged: boundaryDecoder_1.boundary.literal(true),
688
+ closed: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.literal(true)),
639
689
  dryRun: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.literal(true)),
640
690
  removeWorktree: boundaryDecoder_1.boundary.boolean,
641
691
  archived: boundaryDecoder_1.boundary.number,
@@ -646,7 +696,7 @@ const paneArchiveBulkResultSchema = boundaryDecoder_1.boundary.object({
646
696
  name: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
647
697
  outcome: boundaryDecoder_1.boundary.enumeration('archived', 'would-archive', 'skipped', 'failed'),
648
698
  skipped: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.object({
649
- code: boundaryDecoder_1.boundary.enumeration('uncommitted-changes', 'unpushed-commits', 'uncommitted-and-unpushed', 'status-unknown', 'missing-pane', 'already-archived', 'main-repo', 'pr-open', 'pr-not-merged', 'pr-status-unknown'),
699
+ code: boundaryDecoder_1.boundary.enumeration('uncommitted-changes', 'unpushed-commits', 'uncommitted-and-unpushed', 'status-unknown', 'agent-busy', 'unsent-input', 'missing-pane', 'already-archived', 'main-repo', 'pr-open', 'pr-not-merged', 'pr-status-unknown'),
650
700
  message: boundaryDecoder_1.boundary.string,
651
701
  })),
652
702
  error: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
@@ -693,6 +743,24 @@ const panelOpenResultSchema = boundaryDecoder_1.boundary.object({
693
743
  active: boundaryDecoder_1.boundary.boolean,
694
744
  reused: boundaryDecoder_1.boundary.boolean,
695
745
  });
746
+ const panelCloseResultSchema = boundaryDecoder_1.boundary.object({
747
+ ok: boundaryDecoder_1.boundary.boolean,
748
+ generation: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.number),
749
+ paneId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
750
+ panelId: boundaryDecoder_1.boundary.string,
751
+ type: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
752
+ title: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
753
+ closed: boundaryDecoder_1.boundary.boolean,
754
+ forced: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
755
+ alreadyClosed: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
756
+ dryRun: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
757
+ wouldClose: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.boolean),
758
+ refused: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.object({
759
+ code: boundaryDecoder_1.boundary.enumeration('opened-by-user', 'permanent', 'agent-busy', 'unsent-input', 'input-unknown'),
760
+ message: boundaryDecoder_1.boundary.string,
761
+ next: boundaryDecoder_1.boundary.string,
762
+ })),
763
+ });
696
764
  exports.panelListResultSchema = boundaryDecoder_1.boundary.object({
697
765
  ok: boundaryDecoder_1.boundary.literal(true),
698
766
  paneId: boundaryDecoder_1.boundary.string,
@@ -786,7 +854,7 @@ exports.panelScreenResultSchema = boundaryDecoder_1.boundary.object({
786
854
  ok: boundaryDecoder_1.boundary.literal(true),
787
855
  panelId: boundaryDecoder_1.boundary.string,
788
856
  paneId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
789
- source: boundaryDecoder_1.boundary.enumeration('alternateScreen', 'scrollback', 'persistedOutput', 'empty'),
857
+ source: boundaryDecoder_1.boundary.enumeration('alternateScreen', 'scrollback', 'persistedOutput', 'empty', 'acpTranscript'),
790
858
  limit: boundaryDecoder_1.boundary.number,
791
859
  returnedLineCount: boundaryDecoder_1.boundary.number,
792
860
  hasMore: boundaryDecoder_1.boundary.boolean,
@@ -870,7 +938,7 @@ const agentDoctorResultSchema = boundaryDecoder_1.boundary.object({
870
938
  })),
871
939
  warnings: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string)),
872
940
  });
873
- const workspaceEntryKindSchema = boundaryDecoder_1.boundary.enumeration('agent.ready', 'agent.busy', 'agent.blocked', 'agent.unknown', 'agent.idle', 'pane.created', 'pane.gone', 'panel.exited', 'panel.stopped', 'pane.associated', 'pane.detached', 'pr.conflicted', 'pr.checks', 'pr.merged', 'pr.closed', 'pr.head', 'pr.base_changed', 'pr.base_deleted', 'pr.review', 'pr.comment', 'pr.stopped', 'github.unavailable', 'github.recovered', 'agent.report', 'agent.report.missing');
941
+ const workspaceEntryKindSchema = boundaryDecoder_1.boundary.enumeration('agent.ready', 'agent.busy', 'agent.blocked', 'agent.unknown', 'agent.idle', 'pane.created', 'pane.gone', 'panel.exited', 'panel.stopped', 'panel.paused', 'panel.unpaused', 'pane.associated', 'pane.detached', 'pr.conflicted', 'pr.checks', 'pr.merged', 'pr.closed', 'pr.head', 'pr.base_changed', 'pr.base_deleted', 'pr.review', 'pr.comment', 'pr.stopped', 'github.unavailable', 'github.recovered', 'agent.report', 'agent.report.missing', 'item.created', 'item.answered', 'session.created', 'session.archived', 'orchestrator.turn_ended');
874
942
  const agentStateSchema = boundaryDecoder_1.boundary.enumeration('blocked', 'working', 'idle', 'unknown');
875
943
  const workspacePanelSummarySchema = boundaryDecoder_1.boundary.object({
876
944
  panelId: boundaryDecoder_1.boundary.string,
@@ -917,6 +985,7 @@ const workspaceEntrySchema = boundaryDecoder_1.boundary.object({
917
985
  lastOutputSource: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.enumeration('transcript', 'screen')),
918
986
  expectedSince: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
919
987
  screenLines: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string)),
988
+ itemId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
920
989
  });
921
990
  exports.workspaceStateResultSchema = boundaryDecoder_1.boundary.object({
922
991
  ok: boundaryDecoder_1.boundary.literal(true),
@@ -1102,11 +1171,42 @@ function buildRepoSettingsUpdate(parsed) {
1102
1171
  if (clear)
1103
1172
  settings[setting.key] = null;
1104
1173
  }
1174
+ applyEnvVarFlags(parsed, settings);
1105
1175
  if (Object.keys(settings).length === 0) {
1106
- throw invalidRepoSettings(`runpane repos update needs at least one setting: ${REPO_SETTINGS.map((setting) => setting.flag).join(', ')}, --clear <setting,...>, or --from-json <path|->.`);
1176
+ throw invalidRepoSettings(`runpane repos update needs at least one setting: ${REPO_SETTINGS.map((setting) => setting.flag).join(', ')}, --env <json>, --env-remove <name,...>, --clear <setting,...>, or --from-json <path|->.`);
1107
1177
  }
1108
1178
  return settings;
1109
1179
  }
1180
+ /** --env and --env-remove as `envVars` operations; each flag replaces the same operation from --from-json. */
1181
+ function applyEnvVarFlags(parsed, settings) {
1182
+ if (parsed.envArgs === undefined && parsed.envRemove === undefined)
1183
+ return;
1184
+ let envVars = {};
1185
+ try {
1186
+ envVars = { ...(0, boundaryDecoder_1.decodeBoundary)(settings.envVars, boundaryDecoder_1.boundary.jsonObject) };
1187
+ }
1188
+ catch {
1189
+ // No envVars (or a malformed one) in --from-json: the flags give the whole value.
1190
+ }
1191
+ if (parsed.envArgs !== undefined) {
1192
+ envVars.set = parsed.envArgs.flatMap((text) => {
1193
+ let value;
1194
+ try {
1195
+ value = (0, boundaryDecoder_1.decodeBoundary)(JSON.parse(text), boundaryDecoder_1.boundary.json);
1196
+ }
1197
+ catch {
1198
+ value = null;
1199
+ }
1200
+ if (!Array.isArray(value)) {
1201
+ throw invalidRepoSettings('--env must be a JSON array of variables, such as [{"key":"API_URL","source":"plain","value":"https://api.test"}].');
1202
+ }
1203
+ return value;
1204
+ });
1205
+ }
1206
+ if (parsed.envRemove !== undefined)
1207
+ envVars.remove = parsed.envRemove;
1208
+ settings.envVars = envVars;
1209
+ }
1110
1210
  function printRepoSettings(repo, settings) {
1111
1211
  console.log(`${repo.id}\t${settings.name}\t${settings.path}`);
1112
1212
  console.log(`Current branch: ${settings.currentBranch ?? 'unknown'}`);
@@ -1126,6 +1226,17 @@ function printRepoSettings(repo, settings) {
1126
1226
  const command = effective.command.includes('\n') ? `\n ${effective.command.split('\n').join('\n ')}` : ` ${effective.command}`;
1127
1227
  console.log(`${label} (${from}):${command}`);
1128
1228
  }
1229
+ if (settings.envVars === undefined)
1230
+ return;
1231
+ console.log(`Environment variables:${settings.envVars.length === 0 ? ' none' : ''}`);
1232
+ for (const variable of settings.envVars) {
1233
+ if (variable.source === 'plain')
1234
+ console.log(` ${variable.key}=${variable.value}`);
1235
+ else if (variable.source === 'keychain')
1236
+ console.log(` ${variable.key} from keychain item ${variable.service} / ${variable.account}`);
1237
+ else
1238
+ console.log(` ${variable.key} from Pane secret ${variable.project}/${variable.name}`);
1239
+ }
1129
1240
  }
1130
1241
  async function runReposRename(parsed) {
1131
1242
  if (!parsed.repo) {
@@ -1647,6 +1758,13 @@ function printSessionResult(result, json, action) {
1647
1758
  console.log(`${prefix}${result.session.name} (${result.session.id})`);
1648
1759
  if (result.panelId)
1649
1760
  console.log(` panel: ${result.panelId}`);
1761
+ if (result.panes) {
1762
+ console.log(` archived ${result.panes.archivedPaneIds.length} Pane(s)`);
1763
+ for (const pane of result.panes.keptPanes)
1764
+ console.log(` kept open: ${pane.name} (${pane.paneId}) ${pane.code}; check it with \`runpane panes archive --pane ${pane.paneId} --dry-run\``);
1765
+ for (const pane of result.panes.failedPanes)
1766
+ console.log(` failed: ${pane.name} (${pane.paneId}) ${pane.error}`);
1767
+ }
1650
1768
  return 0;
1651
1769
  }
1652
1770
  async function runPanesCost(parsed) {
@@ -2057,7 +2175,7 @@ async function runPanesArchive(parsed) {
2057
2175
  request.dryRun = true;
2058
2176
  if (parsed.removeWorktree)
2059
2177
  request.removeWorktree = true;
2060
- await confirmPaneArchive(parsed, `Archive pane ${request.paneId}${request.force ? ' (including any uncommitted or unpushed work)' : ''}`);
2178
+ await confirmPaneArchive(parsed, `Archive pane ${request.paneId}${request.force ? ' (stopping its agents and discarding any unsent input, uncommitted or unpushed work)' : ''}`);
2061
2179
  const result = await (0, daemonClient_1.invokeDaemon)('runpane:panes:archive', [request], paneArchiveResultSchema, {
2062
2180
  paneDir: parsed.paneDir,
2063
2181
  timeoutMs: 40_000,
@@ -2075,13 +2193,15 @@ async function runPanesArchiveSession(parsed, sessionId) {
2075
2193
  throw new Error('runpane panes archive --session requires --merged.');
2076
2194
  }
2077
2195
  const request = { sessionId, merged: true };
2196
+ if (parsed.closed)
2197
+ request.closed = true;
2078
2198
  if (parsed.source === 'user' || parsed.source === 'agent')
2079
2199
  request.source = parsed.source;
2080
2200
  if (parsed.dryRun)
2081
2201
  request.dryRun = true;
2082
2202
  if (parsed.removeWorktree)
2083
2203
  request.removeWorktree = true;
2084
- await confirmPaneArchive(parsed, `Archive every Pane in Session ${sessionId} whose work is pushed and whose PR is not still open`);
2204
+ await confirmPaneArchive(parsed, `Archive every Pane in Session ${sessionId} whose work is pushed and whose PR ${request.closed ? 'merged or closed' : 'merged'}`);
2085
2205
  const result = await (0, daemonClient_1.invokeDaemon)('runpane:panes:archive', [request], paneArchiveBulkResultSchema, {
2086
2206
  paneDir: parsed.paneDir,
2087
2207
  // Each Pane refreshes its upstream and may wait for its worktree removal.
@@ -2221,6 +2341,7 @@ async function runPanelsOpen(parsed) {
2221
2341
  noFocus: parsed.noFocus || undefined,
2222
2342
  focus: parsed.focus || undefined,
2223
2343
  source: parsed.source === 'user' || parsed.source === 'agent' ? parsed.source : undefined,
2344
+ callerPanelId: resolveCallerPanelId(),
2224
2345
  };
2225
2346
  await confirmPanelOpen(parsed, request);
2226
2347
  const result = await (0, daemonClient_1.invokeDaemon)('runpane:panels:open', [request], panelOpenResultSchema, {
@@ -2235,6 +2356,46 @@ async function runPanelsOpen(parsed) {
2235
2356
  }
2236
2357
  return 0;
2237
2358
  }
2359
+ async function runPanelsClose(parsed) {
2360
+ const panelId = parsed.panelId?.trim();
2361
+ if (!panelId) {
2362
+ throw new errors_1.RunpaneError('ERR_RUNPANE_INVALID_ARGUMENT', 'runpane panels close requires --panel. Nothing was closed.', 'Find the tab id with `runpane panels list --pane <pane-id> --json`, then pass it with --panel.');
2363
+ }
2364
+ const request = { panelId };
2365
+ if (parsed.dryRun)
2366
+ request.dryRun = true;
2367
+ if (parsed.force)
2368
+ request.force = true;
2369
+ if (parsed.source === 'user' || parsed.source === 'agent')
2370
+ request.source = parsed.source;
2371
+ await confirmPanelClose(parsed, request);
2372
+ const result = await (0, daemonClient_1.invokeDaemon)('runpane:panels:close', [request], panelCloseResultSchema, {
2373
+ paneDir: parsed.paneDir,
2374
+ });
2375
+ if (parsed.json) {
2376
+ printJson(result);
2377
+ }
2378
+ else {
2379
+ console.log(describePanelClose(result));
2380
+ }
2381
+ return result.ok ? 0 : 1;
2382
+ }
2383
+ /** One line: closed, already closed, would close, or refused with its message and next step. */
2384
+ function describePanelClose(result) {
2385
+ const label = result.title ? `panel ${result.panelId} (${result.title})` : `panel ${result.panelId}`;
2386
+ if (result.refused) {
2387
+ return `${result.dryRun ? 'Would refuse' : 'Refused'} to close ${label}: ${result.refused.message} Next: ${result.refused.next}`;
2388
+ }
2389
+ if (result.alreadyClosed)
2390
+ return `Panel ${result.panelId} is already closed.`;
2391
+ if (result.dryRun)
2392
+ return `Would close ${label}.`;
2393
+ return result.forced ? `Closed ${label} with --force.` : `Closed ${label}.`;
2394
+ }
2395
+ /** The tab this CLI runs in ($PANE_PANEL_ID), sent so Pane records it as the opener of new tabs. */
2396
+ function resolveCallerPanelId() {
2397
+ return process.env.PANE_PANEL_ID?.trim() || undefined;
2398
+ }
2238
2399
  async function runPanelsOutput(parsed) {
2239
2400
  if (!parsed.panelId) {
2240
2401
  throw new Error('runpane panels output requires --panel.');
@@ -2395,10 +2556,24 @@ const inboxItemSchema = boundaryDecoder_1.boundary.object({
2395
2556
  reason: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
2396
2557
  screenLines: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string)),
2397
2558
  });
2559
+ const inboxAnswerSchema = boundaryDecoder_1.boundary.object({
2560
+ id: boundaryDecoder_1.boundary.string,
2561
+ title: boundaryDecoder_1.boundary.string,
2562
+ answer: boundaryDecoder_1.boundary.string,
2563
+ by: boundaryDecoder_1.boundary.enumeration('you', 'autopilot', 'orchestrator', 'pane'),
2564
+ because: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
2565
+ worker: boundaryDecoder_1.boundary.string,
2566
+ panelId: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
2567
+ answeredAt: boundaryDecoder_1.boundary.string,
2568
+ delivered: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.enumeration('call', 'tab')),
2569
+ undelivered: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
2570
+ decision: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.string),
2571
+ });
2398
2572
  const inboxListResultSchema = boundaryDecoder_1.boundary.object({
2399
2573
  ok: boundaryDecoder_1.boundary.literal(true),
2400
2574
  session: boundaryDecoder_1.boundary.object({ id: boundaryDecoder_1.boundary.string, name: boundaryDecoder_1.boundary.string }),
2401
2575
  items: boundaryDecoder_1.boundary.array(inboxItemSchema),
2576
+ answers: boundaryDecoder_1.boundary.optional(boundaryDecoder_1.boundary.array(inboxAnswerSchema)),
2402
2577
  });
2403
2578
  const inboxAckResultSchema = boundaryDecoder_1.boundary.object({
2404
2579
  ok: boundaryDecoder_1.boundary.literal(true),
@@ -2406,6 +2581,7 @@ const inboxAckResultSchema = boundaryDecoder_1.boundary.object({
2406
2581
  unknown: boundaryDecoder_1.boundary.array(boundaryDecoder_1.boundary.string),
2407
2582
  });
2408
2583
  const MAX_INBOX_DETAIL_LENGTH = 300;
2584
+ const INBOX_DECISION = /^D-\d+$/;
2409
2585
  /** `--session`, else the Session whose orchestrator this terminal is. */
2410
2586
  function inboxSession(parsed, env) {
2411
2587
  return parsed.sessionId?.trim() || env.PANE_ORCHESTRATION_SESSION_ID?.trim() || undefined;
@@ -2422,29 +2598,48 @@ async function runInbox(parsed, env = process.env) {
2422
2598
  }
2423
2599
  if (result.items.length === 0) {
2424
2600
  console.log(`Inbox for ${result.session.name}: nothing unacknowledged.`);
2425
- return 0;
2426
2601
  }
2427
- console.log(`Inbox for ${result.session.name}: ${result.items.length} unacknowledged.`);
2428
- for (const item of result.items)
2429
- console.log(formatInboxItem(item));
2430
- console.log(`Clear handled items with: runpane inbox ack ${result.items.map(item => item.id).join(' ')}`);
2602
+ else {
2603
+ console.log(`Inbox for ${result.session.name}: ${result.items.length} unacknowledged.`);
2604
+ for (const item of result.items)
2605
+ console.log(formatInboxItem(item));
2606
+ console.log(`Clear handled items with: runpane inbox ack ${result.items.map(item => item.id).join(' ')}`);
2607
+ }
2608
+ const unrecorded = (result.answers ?? []).filter(answer => !answer.decision);
2609
+ for (const answer of unrecorded)
2610
+ console.log(formatInboxAnswer(answer));
2611
+ if (unrecorded.length > 0)
2612
+ console.log('Record each with: runpane inbox ack <id> --decision <D-n>');
2431
2613
  return 0;
2432
2614
  }
2615
+ const ANSWERED_BY = { you: 'you', autopilot: 'Autopilot', orchestrator: 'the orchestrator', pane: 'Pane' };
2616
+ /** `<id> ANSWERED <worker>: <title> -> <answer> (by you) needs a D-n`. */
2617
+ function formatInboxAnswer(answer) {
2618
+ return `${answer.id} ANSWERED ${oneLine(answer.worker)}: ${oneLine(answer.title)} -> ${clip(oneLine(answer.answer))} (by ${ANSWERED_BY[answer.by]}) needs a D-n`;
2619
+ }
2433
2620
  async function runInboxAck(parsed, env = process.env) {
2434
2621
  const session = parsed.all ? inboxSession(parsed, env) : parsed.sessionId;
2435
2622
  if (parsed.all && !session) {
2436
2623
  throw new Error('runpane inbox ack --all needs --session <id|name> outside a Session orchestrator.');
2437
2624
  }
2625
+ const decision = parsed.inboxDecision;
2626
+ if (decision !== undefined) {
2627
+ if (parsed.all)
2628
+ throw new errors_1.RunpaneError('ERR_INBOX_INVALID', 'runpane inbox ack --decision records on the items you name, so it can\'t go with --all. Nothing was acknowledged.', 'Pass the item ids from runpane inbox.');
2629
+ if (!INBOX_DECISION.test(decision))
2630
+ throw new errors_1.RunpaneError('ERR_INBOX_INVALID', `--decision must look like D-147; got "${decision}". Nothing was acknowledged.`, 'Pass the D-n from your decision log.');
2631
+ }
2438
2632
  const result = await (0, daemonClient_1.invokeDaemon)('runpane:inbox:ack', [{
2439
2633
  ids: parsed.all ? undefined : parsed.inboxIds,
2440
2634
  session,
2441
2635
  all: parsed.all || undefined,
2636
+ decision,
2442
2637
  }], inboxAckResultSchema, { paneDir: parsed.paneDir });
2443
2638
  if (parsed.json) {
2444
2639
  printJson(result);
2445
2640
  }
2446
2641
  else {
2447
- console.log(`Acknowledged ${result.acknowledged.length} inbox item${result.acknowledged.length === 1 ? '' : 's'}.`);
2642
+ console.log(`Acknowledged ${result.acknowledged.length} inbox item${result.acknowledged.length === 1 ? '' : 's'}${decision && result.acknowledged.length > 0 ? `, recorded as ${decision}` : ''}.`);
2448
2643
  if (result.unknown.length > 0)
2449
2644
  console.log(`Not found (already acknowledged?): ${result.unknown.join(', ')}`);
2450
2645
  }
@@ -2681,6 +2876,32 @@ async function runPanelsResume(parsed) {
2681
2876
  }
2682
2877
  return result.ok ? 0 : 1;
2683
2878
  }
2879
+ /** `panels pause`, `panes pause|resume` and `sessions pause|resume`: one daemon call each, printed alike. */
2880
+ async function runPause(parsed, scope, action) {
2881
+ const [flag, key, id] = scope === 'panel' ? ['--panel', 'panelId', parsed.panelId]
2882
+ : scope === 'pane' ? ['--pane', 'paneId', parsed.paneId] : ['--session', 'sessionId', parsed.sessionId?.trim()];
2883
+ if (!id)
2884
+ throw new Error(`runpane ${parsed.command} requires ${flag}.`);
2885
+ // Like the other Session updates, Session pause and resume need no --yes.
2886
+ if (scope !== 'session')
2887
+ await (0, daemonActions_1.confirmMutation)(parsed);
2888
+ const channel = `runpane:${scope === 'panel' ? 'panels' : scope === 'pane' ? 'panes' : 'sessions'}:${action}`;
2889
+ const result = await (0, daemonClient_1.invokeDaemon)(channel, [{ [key]: id }], pauseResultSchema, {
2890
+ paneDir: parsed.paneDir,
2891
+ // Pause waits for every tab's processes to exit; resume restarts them a few at a time.
2892
+ timeoutMs: RESUME_MANY_RESTART_BUDGET_MS,
2893
+ });
2894
+ if (parsed.json) {
2895
+ printJson(result);
2896
+ }
2897
+ else {
2898
+ console.log(result.message);
2899
+ for (const item of result.failed)
2900
+ console.log(`FAIL panel ${item.panelId}: ${item.error}`);
2901
+ console.log(`Next: ${result.nextCommand}`);
2902
+ }
2903
+ return result.ok ? 0 : 1;
2904
+ }
2684
2905
  async function runAgentsDoctor(parsed) {
2685
2906
  if (!parsed.agent) {
2686
2907
  throw new Error(`runpane agents doctor requires --agent ${contract_1.RUNPANE_CONTRACT.enums.agents.join('|')}.`);
@@ -2757,6 +2978,41 @@ async function buildPanelCreateRequest(parsed) {
2757
2978
  throw new Error('Use either --focus or --no-focus, not both.');
2758
2979
  }
2759
2980
  const source = parsed.source === 'user' || parsed.source === 'agent' ? parsed.source : undefined;
2981
+ if (parsed.launchArgs && !parsed.agentFarm)
2982
+ throw new Error('--arg is a launch argument for --agent-farm; pass --agent-farm <profile> too.');
2983
+ if (parsed.chat || parsed.agentFarm) {
2984
+ if (parsed.toolCommand)
2985
+ throw new Error('A chat tab runs its agent over ACP, so it takes --agent or --agent-farm, not --tool-command.');
2986
+ if (parsed.agentFarm && parsed.agent && parsed.agent !== 'claude' && parsed.agent !== 'codex')
2987
+ throw new Error('An Agent Farm profile chooses its own agent; drop --agent.');
2988
+ if (!parsed.agentFarm && parsed.agent !== 'claude' && parsed.agent !== 'codex')
2989
+ throw new Error('--chat opens Claude or Codex: pass --agent claude or --agent codex, or --agent-farm <profile>.');
2990
+ if (parsed.asFilePointer || parsed.attachments?.length)
2991
+ throw new Error('--as-file-pointer and --attach are for terminal tabs; send the first prompt with --initial-input.');
2992
+ const initialInput = parsed.initialInputFile ? stripUtf8Bom(readInputSource(parsed.initialInputFile)) : parsed.initialInput;
2993
+ const chat = {};
2994
+ if (parsed.agent === 'claude' || parsed.agent === 'codex')
2995
+ chat.agent = parsed.agent;
2996
+ if (parsed.agentFarm)
2997
+ chat.profile = parsed.agentFarm;
2998
+ if (parsed.launchArgs)
2999
+ chat.args = parsed.launchArgs;
3000
+ if (initialInput)
3001
+ chat.initialInput = initialInput;
3002
+ if (parsed.title)
3003
+ chat.title = parsed.title;
3004
+ return {
3005
+ paneId: parsed.paneId,
3006
+ type: 'chat',
3007
+ chat,
3008
+ noFocus: !parsed.focus && (parsed.noFocus || source === 'agent') ? true : undefined,
3009
+ focus: parsed.focus || undefined,
3010
+ source,
3011
+ callerPanelId: resolveCallerPanelId(),
3012
+ waitReady: parsed.waitReady || undefined,
3013
+ readyTimeoutMs: parsed.readyTimeoutMs,
3014
+ };
3015
+ }
2760
3016
  return {
2761
3017
  paneId: parsed.paneId,
2762
3018
  type: 'terminal',
@@ -2764,6 +3020,7 @@ async function buildPanelCreateRequest(parsed) {
2764
3020
  noFocus: !parsed.focus && (parsed.noFocus || source === 'agent' || Boolean(parsed.agent)) ? true : undefined,
2765
3021
  focus: parsed.focus || undefined,
2766
3022
  source,
3023
+ callerPanelId: resolveCallerPanelId(),
2767
3024
  waitReady: parsed.waitReady || undefined,
2768
3025
  readyTimeoutMs: parsed.readyTimeoutMs,
2769
3026
  };
@@ -2802,6 +3059,7 @@ async function buildPaneCreateRequest(parsed) {
2802
3059
  }));
2803
3060
  applyPaneFocusOptions(parsed, request);
2804
3061
  request.associateSession = parsed.noAssociate ? undefined : resolveAssociateSession(parsed) ?? request.associateSession;
3062
+ request.callerPanelId = resolveCallerPanelId();
2805
3063
  return request;
2806
3064
  }
2807
3065
  if (!parsed.repo) {
@@ -2833,6 +3091,7 @@ async function buildPaneCreateRequest(parsed) {
2833
3091
  noFocus: !parsed.focus && (parsed.noFocus || source === 'agent' || Boolean(parsed.agent)) ? true : undefined,
2834
3092
  focus: parsed.focus || undefined,
2835
3093
  source,
3094
+ callerPanelId: resolveCallerPanelId(),
2836
3095
  associateSession: resolveAssociateSession(parsed),
2837
3096
  };
2838
3097
  return request;
@@ -3080,6 +3339,24 @@ async function confirmPanelOpen(parsed, request) {
3080
3339
  rl.close();
3081
3340
  }
3082
3341
  }
3342
+ async function confirmPanelClose(parsed, request) {
3343
+ if (parsed.yes || request.dryRun) {
3344
+ return;
3345
+ }
3346
+ if (!isInteractiveShell()) {
3347
+ throw new errors_1.RunpaneError('ERR_RUNPANE_CONFIRMATION_REQUIRED', `runpane panels close closes panel ${request.panelId} and needs confirmation, but this shell is not interactive. Nothing was closed.`, 'Rerun with --yes, or with --dry-run to check without closing.');
3348
+ }
3349
+ const rl = (0, promises_1.createInterface)({ input: node_process_1.stdin, output: node_process_1.stdout });
3350
+ try {
3351
+ const answer = (await rl.question(`Close panel ${request.panelId}? [y/N] `)).trim().toLowerCase();
3352
+ if (answer !== 'y' && answer !== 'yes') {
3353
+ throw new Error('Cancelled.');
3354
+ }
3355
+ }
3356
+ finally {
3357
+ rl.close();
3358
+ }
3359
+ }
3083
3360
  async function confirmPanelCreate(parsed, request) {
3084
3361
  if (parsed.yes) {
3085
3362
  return;
@@ -3087,10 +3364,11 @@ async function confirmPanelCreate(parsed, request) {
3087
3364
  if (!isInteractiveShell()) {
3088
3365
  throw new Error('runpane panels create mutates Pane state. Rerun with --yes in non-interactive shells.');
3089
3366
  }
3090
- const label = 'agent' in request.tool ? request.tool.agent : request.tool.command;
3367
+ const label = request.chat ? request.chat.profile ?? request.chat.agent ?? 'chat' : request.tool && 'agent' in request.tool ? request.tool.agent : request.tool?.command;
3368
+ const kind = request.type === 'chat' ? 'chat tab' : 'terminal panel';
3091
3369
  const rl = (0, promises_1.createInterface)({ input: node_process_1.stdin, output: node_process_1.stdout });
3092
3370
  try {
3093
- const answer = (await rl.question(`Create a terminal panel for ${label} in pane ${request.paneId}? [y/N] `)).trim().toLowerCase();
3371
+ const answer = (await rl.question(`Create a ${kind} for ${label} in pane ${request.paneId}? [y/N] `)).trim().toLowerCase();
3094
3372
  if (answer !== 'y' && answer !== 'yes') {
3095
3373
  throw new Error('Cancelled.');
3096
3374
  }
@@ -3214,6 +3492,8 @@ function workspaceLabel(kind) {
3214
3492
  'pane.gone': 'GONE',
3215
3493
  'panel.exited': 'EXIT',
3216
3494
  'panel.stopped': 'STOPPED',
3495
+ 'panel.paused': 'PAUSED',
3496
+ 'panel.unpaused': 'UNPAUSED',
3217
3497
  'pane.associated': 'JOINED',
3218
3498
  'pane.detached': 'LEFT',
3219
3499
  'pr.conflicted': 'PR CONFLICTED',
@@ -3230,6 +3510,11 @@ function workspaceLabel(kind) {
3230
3510
  'github.recovered': 'GITHUB.RECOVERED',
3231
3511
  'agent.report': 'REPORT',
3232
3512
  'agent.report.missing': 'MISSING REPORT',
3513
+ 'item.created': 'ITEM',
3514
+ 'item.answered': 'ANSWERED',
3515
+ 'session.created': 'SESSION NEW',
3516
+ 'session.archived': 'SESSION ARCHIVED',
3517
+ 'orchestrator.turn_ended': 'TURN ENDED',
3233
3518
  };
3234
3519
  return labels[kind];
3235
3520
  }
@@ -3257,7 +3542,8 @@ function printPaneListResult(result) {
3257
3542
  for (const pane of result.panes) {
3258
3543
  const repo = pane.repoName ? ` ${pane.repoName}` : '';
3259
3544
  const pinned = pane.pinned ? ' pinned' : '';
3260
- console.log(`${pane.id}\t${pane.name}\t${pane.status}${pinned}\t${pane.panelCount} panels\t${pane.worktreePath}${repo}`);
3545
+ const paused = pane.paused ? ' paused' : '';
3546
+ console.log(`${pane.id}\t${pane.name}\t${pane.status}${pinned}${paused}\t${pane.panelCount} panels\t${pane.worktreePath}${repo}`);
3261
3547
  }
3262
3548
  }
3263
3549
  function printPaneCostResult(result) {
@@ -3372,6 +3658,12 @@ function printArchiveCommitEvidence(safetyCheck, print = console.log) {
3372
3658
  for (const commit of safetyCheck.unpushedCommitDetails ?? []) {
3373
3659
  print(`Unpushed: ${commit.sha} ${commit.subject}`);
3374
3660
  }
3661
+ for (const agent of safetyCheck.busyAgents ?? []) {
3662
+ print(`Busy: ${agent.title} (panel ${agent.panelId}) is ${agent.state === 'working' ? 'mid-turn' : 'waiting for an answer'}`);
3663
+ }
3664
+ for (const input of safetyCheck.unsentInput ?? []) {
3665
+ print(`Unsent: ${input.title} (panel ${input.panelId}) ${input.kind === 'editor' ? 'has unsaved edits' : 'has text typed but not sent'}`);
3666
+ }
3375
3667
  }
3376
3668
  function printPanelCreateResult(result) {
3377
3669
  console.log(`Created panel ${result.panelId} in pane ${result.paneId}: ${result.title}${result.active ? ' active' : ' background'}`);
@@ -3517,7 +3809,7 @@ function printPanelListResult(result) {
3517
3809
  for (const panel of result.panels) {
3518
3810
  const marker = panel.active ? '*' : ' ';
3519
3811
  const initialized = panel.initialized === undefined ? '' : panel.initialized ? ' initialized' : ' not-initialized';
3520
- const stopped = panel.running === false ? ' stopped' : '';
3812
+ const stopped = panel.paused ? ' paused' : panel.running === false ? ' stopped' : '';
3521
3813
  const agent = panel.agentType ? ` ${panel.agentType}` : '';
3522
3814
  const detection = panel.agentDetection && panel.agentDetection !== 'command' ? ` (${panel.agentDetection})` : '';
3523
3815
  const resume = panel.resumeId ? ` resume ${panel.resumeId}` : '';