@adhdev/daemon-core 0.9.82-rc.98 → 0.9.82-rc.99

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.98",
3
+ "version": "0.9.82-rc.99",
4
4
  "description": "ADHDev daemon core — CDP, IDE detection, providers, command execution",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1637,6 +1637,8 @@ export class ProviderCliAdapter implements CliAdapter {
1637
1637
  let effectiveModal = startupModal || this.activeModal;
1638
1638
  if (startupDetectedStatus === 'waiting_approval') {
1639
1639
  effectiveStatus = 'waiting_approval';
1640
+ } else if (startupDetectedStatus === 'idle' && !startupModal && !effectiveModal) {
1641
+ effectiveStatus = 'idle';
1640
1642
  }
1641
1643
  if (allowParse && !startupModal && !effectiveModal) {
1642
1644
  const parsed = this.getFreshParsedStatusCache();
@@ -2148,9 +2150,10 @@ export class ProviderCliAdapter implements CliAdapter {
2148
2150
  }
2149
2151
  if (!this.ready) {
2150
2152
  this.resolveStartupState('send_precheck');
2151
- if (this.runDetectStatus(this.recentOutputBuffer) === 'idle' && this.currentStatus === 'idle') {
2153
+ if (this.runDetectStatus(this.recentOutputBuffer) === 'idle') {
2152
2154
  this.ready = true;
2153
2155
  this.startupParseGate = false;
2156
+ this.setStatus('idle', 'send_message_idle_prompt_recovery');
2154
2157
  LOG.info('CLI', `[${this.cliType}] sendMessage recovered idle prompt readiness`);
2155
2158
  }
2156
2159
  }
@@ -1252,7 +1252,8 @@ export async function handleReadChat(h: CommandHelpers, args: any): Promise<Comm
1252
1252
  const nativeHistorySessionId = resolveCliNativeHistorySessionId(args, historySessionId, providerSessionId);
1253
1253
  const targetSessionId = typeof args?.targetSessionId === 'string' ? args.targetSessionId.trim() : '';
1254
1254
  const exactNativeHistoryScope = Boolean(
1255
- (typeof args?.historySessionId === 'string' && args.historySessionId.trim())
1255
+ targetSessionId
1256
+ || (typeof args?.historySessionId === 'string' && args.historySessionId.trim())
1256
1257
  || (typeof args?.providerSessionId === 'string' && args.providerSessionId.trim())
1257
1258
  || providerSessionId
1258
1259
  || (nativeHistorySessionId && nativeHistorySessionId !== targetSessionId)
@@ -1391,7 +1392,8 @@ export async function handleReadChat(h: CommandHelpers, args: any): Promise<Comm
1391
1392
  ? (h.currentSession as any).workspace
1392
1393
  : undefined;
1393
1394
  const exactNativeHistoryScope = Boolean(
1394
- (typeof args?.historySessionId === 'string' && args.historySessionId.trim())
1395
+ (typeof args?.targetSessionId === 'string' && args.targetSessionId.trim())
1396
+ || (typeof args?.historySessionId === 'string' && args.historySessionId.trim())
1395
1397
  || (typeof args?.providerSessionId === 'string' && args.providerSessionId.trim())
1396
1398
  || ((h.currentSession as any)?.sessionId === args?.targetSessionId && typeof (h.currentSession as any)?.providerSessionId === 'string' && (h.currentSession as any).providerSessionId.trim())
1397
1399
  );