@yu_robotics/remote-cli 1.6.265 → 1.6.266

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.
@@ -106,6 +106,7 @@ export declare class MessageHandler {
106
106
  private handleWorkerContextReset;
107
107
  private detachDelegationBridge;
108
108
  private clearThreadConversation;
109
+ private resetThreadConversation;
109
110
  /**
110
111
  * Handle built-in commands (thread-scoped).
111
112
  * Returns true if handled.
@@ -1 +1 @@
1
- {"version":3,"file":"MessageHandler.d.ts","sourceRoot":"","sources":["../../src/client/MessageHandler.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAgK,MAAM,UAAU,CAAC;AACzM,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAOxD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAoIxD;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsBD,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,cAAc,CAAiB;IACvC,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAAC,CAAS;IAC/B,OAAO,CAAC,mBAAmB,CAA4B;IACvD,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAA0C;IACjE,OAAO,CAAC,Q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;;OAEG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;CAoC/B"}
@@ -1041,6 +1041,40 @@ class MessageHandler {
1041
1041
  * Handle /abort command for a specific thread executor
1042
1042
  */
1043
1043
  async handleAbortCommand(messageId, threadId, executor) {
1044
+ const occurrence = this.hostOccurrences.get(threadId);
1045
+ if (occurrence) {
1046
+ const operation = this.activeThreadOperations.get(threadId);
1047
+ if (!operation || this.isDestroyed || occurrence.record.openId !== this.messageOpenIds.get(messageId)
1048
+ || !this.hostBindingCurrent(occurrence.record)) {
1049
+ this.sendResponse(messageId, threadId, { success: false, error: 'Scheduled occurrence ownership changed.' });
1050
+ return;
1051
+ }
1052
+ if (!occurrence.executor) {
1053
+ this.sendResponse(messageId, threadId, { success: true, output: 'The scheduled occurrence has not started executing.' });
1054
+ return;
1055
+ }
1056
+ if (executor !== occurrence.executor) {
1057
+ this.sendResponse(messageId, threadId, { success: false, error: 'Scheduled executor changed.' });
1058
+ return;
1059
+ }
1060
+ try {
1061
+ occurrence.abort ??= executor.abort().then(accepted => {
1062
+ if (executor.hasPendingCancellation?.() || executor.hasUncertainShutdown?.()) {
1063
+ throw new Error('Scheduled occurrence interruption is unconfirmed. Retry /abort.');
1064
+ }
1065
+ return accepted;
1066
+ });
1067
+ if (!await occurrence.abort)
1068
+ throw new Error('The executor did not confirm interruption of this occurrence.');
1069
+ await operation.done;
1070
+ this.sendResponse(messageId, threadId, { success: true, output: 'The scheduled occurrence was interrupted by /abort.' });
1071
+ }
1072
+ catch (error) {
1073
+ occurrence.abort = undefined;
1074
+ this.sendResponse(messageId, threadId, { success: false, error: error instanceof Error ? error.message : 'Failed to interrupt the scheduled occurrence.' });
1075
+ }
1076
+ return;
1077
+ }
1044
1078
  if (executor?.hasPendingSettingsChange?.()) {
1045
1079
  this.sendResponse(messageId, threadId, { success: false,
1046
1080
  error: 'Native settings change is pending or unconfirmed. Wait for its reply or retry the setting after a terminal error. /clear is destructive recovery and loses session-only schedules.' });
@@ -1204,11 +1238,39 @@ class MessageHandler {
1204
1238
  async clearThreadConversation(messageId, threadId) {
1205
1239
  if (this.abortOperations.has(threadId))
1206
1240
  throw new Error('Direct backend abort is still pending; retry /clear after it settles.');
1241
+ if (this.scheduleManagement.has(threadId))
1242
+ throw new Error('Schedule management is in progress. Retry the conversation reset after it settles.');
1243
+ this.scheduleManagement.add(threadId);
1244
+ try {
1245
+ await this.resetThreadConversation(messageId, threadId);
1246
+ }
1247
+ finally {
1248
+ this.scheduleManagement.delete(threadId);
1249
+ }
1250
+ }
1251
+ async resetThreadConversation(messageId, threadId) {
1207
1252
  const existing = this.threadPool.getExistingExecutor(threadId);
1208
1253
  const destructiveRecovery = existing?.hasPendingCancellation?.() === true || existing?.hasPendingSettingsChange?.() === true;
1254
+ const openId = this.messageOpenIds.get(messageId);
1255
+ const binding = this.scheduleBinding;
1256
+ const connectionEpoch = this.imageConnectionEpoch;
1209
1257
  await this.assertScheduleCleanupContext(threadId);
1210
- if (!destructiveRecovery)
1211
- await this.assertSchedulesIdle(threadId);
1258
+ const removed = await this.schedules?.clearHostContext(threadId, () => {
1259
+ // A previous clear committed schedule erasure before writing its pending reset marker.
1260
+ if (this.threadManager.contextResets.isPending(threadId))
1261
+ return undefined;
1262
+ if (!openId || !binding || connectionEpoch !== this.imageConnectionEpoch)
1263
+ throw new Error('Conversation reset requires the original schedule binding.');
1264
+ const owner = this.scheduleOwner(threadId, openId);
1265
+ this.requireHostBinding(owner, binding.epoch);
1266
+ return owner;
1267
+ }, destructiveRecovery);
1268
+ const scheduleNotice = removed ? `Removed ${removed} host ${removed === 1 ? 'schedule' : 'schedules'} and associated history. ` : '';
1269
+ if (removed) {
1270
+ this.scheduleOwners.delete(threadId);
1271
+ if (connectionEpoch !== this.imageConnectionEpoch)
1272
+ throw new Error(`${scheduleNotice}Device binding changed during conversation reset. Retry in the original thread.`);
1273
+ }
1212
1274
  this.conversationRevisions.set(threadId, (this.conversationRevisions.get(threadId) ?? 0) + 1);
1213
1275
  this.settingsService.invalidate(threadId);
1214
1276
  this.directoryBrowser.invalidate(threadId);
@@ -1252,11 +1314,11 @@ class MessageHandler {
1252
1314
  this.threadPool.setThreadBusy(threadId, false);
1253
1315
  await workers;
1254
1316
  this.sendResponse(messageId, threadId, { success: true,
1255
- output: `${destructiveRecovery ? 'Explicit reset stopped the Claude host; its session-only schedules were lost. ' : ''}Started a fresh conversation for direct backends and managed workers. Permanent deletion of old managed child native sessions is queued. Verified Codex, Kimi, Pi, and Claude child sessions are supported on Linux; unsupported versions, layouts, backends, platforms, and unconfirmed targets remain pending. Task artifacts and recovery evidence are retained. Pending native writers still block conflicting execution.` }, true);
1317
+ output: `${scheduleNotice}${destructiveRecovery ? 'Explicit reset stopped the Claude host; its session-only schedules were lost. ' : ''}Started a fresh conversation for direct backends and managed workers. Permanent deletion of old managed child native sessions is queued. Verified Codex, Kimi, Pi, and Claude child sessions are supported on Linux; unsupported versions, layouts, backends, platforms, and unconfirmed targets remain pending. Task artifacts and recovery evidence are retained. Pending native writers still block conflicting execution.` }, true);
1256
1318
  }
1257
1319
  catch (error) {
1258
1320
  const detail = error instanceof Error ? error.message : 'Local context storage is unavailable';
1259
- throw new Error(`Could not clear thread conversation: ${detail}. Check local CLI storage and retry /clear or /new.`);
1321
+ throw new Error(`${scheduleNotice}Could not clear thread conversation: ${detail}. Check local CLI storage and retry /clear or /new.`);
1260
1322
  }
1261
1323
  finally {
1262
1324
  if (active)
@@ -3645,6 +3707,7 @@ You can also use natural language commands to control Claude Code CLI.`,
3645
3707
  };
3646
3708
  beforePrompt();
3647
3709
  let display = '';
3710
+ occurrence.executor = executor;
3648
3711
  const result = await executor.execute(record.prompt, {
3649
3712
  hostScheduleSessionId: sessionId,
3650
3713
  // Claude checks queued authorization before process startup and again before stdin.
@@ -3686,8 +3749,13 @@ You can also use natural language commands to control Claude Code CLI.`,
3686
3749
  }
3687
3750
  this.sendStreamChunk(messageId, threadId, chunk);
3688
3751
  },
3689
- });
3752
+ }).catch((error) => ({ success: false, output: undefined,
3753
+ error: error instanceof Error ? error.message : 'Scheduled execution failed.' }));
3754
+ const aborted = occurrence.abort && await occurrence.abort;
3690
3755
  check(true);
3756
+ if (aborted)
3757
+ return { success: false, abortedByUser: true, output: display || result.output,
3758
+ error: 'Scheduled occurrence interrupted by /abort.' };
3691
3759
  // Prefer the public display stream, but preserve the executor's final
3692
3760
  // output when a backend only returns its answer at turn completion.
3693
3761
  return { success: result.success, output: display || result.output, error: result.error };
@@ -3701,12 +3769,13 @@ You can also use natural language commands to control Claude Code CLI.`,
3701
3769
  this.resolveApprovalCard(id, 'expired');
3702
3770
  }
3703
3771
  this.messageOpenIds.delete(messageId);
3704
- this.hostOccurrences.delete(threadId);
3772
+ if (this.hostOccurrences.get(threadId) === occurrence)
3773
+ this.hostOccurrences.delete(threadId);
3705
3774
  this.cancelledOperations.delete(token);
3706
3775
  if (this.finishThreadOperation(threadId, token) && !this.isDestroyed)
3707
3776
  void this.startNextQueuedCommand(threadId);
3708
3777
  }
3709
- });
3778
+ }, true);
3710
3779
  }
3711
3780
  async activeSchedules(threadId) {
3712
3781
  const owner = this.scheduleOwners.get(threadId);