@adhdev/daemon-core 0.9.82-rc.94 → 0.9.82-rc.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/commands/chat-commands.ts +7 -1
- package/src/commands/cli-manager.ts +10 -0
package/package.json
CHANGED
|
@@ -1366,7 +1366,13 @@ export async function handleReadChat(h: CommandHelpers, args: any): Promise<Comm
|
|
|
1366
1366
|
returnedStatus: String(returnedStatus || ''),
|
|
1367
1367
|
selectedMessageSource: (messageSource as any).selected,
|
|
1368
1368
|
messageSource,
|
|
1369
|
-
shouldPreferAdapterMessages: supportsCliNativeTranscript(providerType, provider)
|
|
1369
|
+
shouldPreferAdapterMessages: supportsCliNativeTranscript(providerType, provider)
|
|
1370
|
+
&& isNativeSourceCanonicalHistory(provider?.canonicalHistory)
|
|
1371
|
+
&& (messageSource as any).selected !== 'native-history'
|
|
1372
|
+
&& typeof (messageSource as any).fallbackReason === 'string'
|
|
1373
|
+
&& (messageSource as any).fallbackReason.startsWith('native_history_')
|
|
1374
|
+
&& (messageSource as any).fallbackReason !== 'native_history_not_checked'
|
|
1375
|
+
&& !(selectedTranscriptAuthority === 'provider' && selectedCoverage === 'full'),
|
|
1370
1376
|
parsedMsgCount: parsedRecord.messages.length,
|
|
1371
1377
|
returnedMsgCount: selectedMessages.length,
|
|
1372
1378
|
},
|
|
@@ -363,10 +363,14 @@ function detectExplicitProviderSessionId(
|
|
|
363
363
|
|
|
364
364
|
const subcommands = resume?.sessionIdFromSubcommand;
|
|
365
365
|
if (Array.isArray(subcommands) && subcommands.length > 0) {
|
|
366
|
+
const hasResumeSubcommand = args.some((arg) => subcommands.includes(arg));
|
|
366
367
|
const subcommandSessionId = readSubcommandSessionId(args, subcommands);
|
|
367
368
|
if (subcommandSessionId) {
|
|
368
369
|
return { providerSessionId: subcommandSessionId, launchMode: 'resume' };
|
|
369
370
|
}
|
|
371
|
+
if (hasResumeSubcommand) {
|
|
372
|
+
return { launchMode: 'resume' };
|
|
373
|
+
}
|
|
370
374
|
}
|
|
371
375
|
|
|
372
376
|
return { launchMode: 'manual' };
|
|
@@ -400,6 +404,12 @@ export function resolveCliSessionBinding(
|
|
|
400
404
|
launchMode: explicit.launchMode,
|
|
401
405
|
};
|
|
402
406
|
}
|
|
407
|
+
if (explicit.launchMode === 'resume') {
|
|
408
|
+
return {
|
|
409
|
+
cliArgs: baseArgs,
|
|
410
|
+
launchMode: 'resume',
|
|
411
|
+
};
|
|
412
|
+
}
|
|
403
413
|
if (explicit.launchMode === 'manual' && hasArg(baseArgs || [], ['--session-id'])) {
|
|
404
414
|
return {
|
|
405
415
|
cliArgs: baseArgs,
|