@adhdev/daemon-core 0.9.82-rc.226 → 0.9.82-rc.227

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.
@@ -7,6 +7,9 @@ export interface SessionRuntimeTarget {
7
7
  cdpManagerKey?: string;
8
8
  adapterKey?: string;
9
9
  instanceKey?: string;
10
+ /** Working directory for CLI/ACP sessions. Used by read_chat to resolve
11
+ * native history when there is no live adapter (e.g. subscription path). */
12
+ workspace?: string;
10
13
  /** Wall clock at register time. native-history readers use it as a
11
14
  * cutoff so a fresh session can't show records from a prior one. */
12
15
  spawnedAtMs?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adhdev/daemon-core",
3
- "version": "0.9.82-rc.226",
3
+ "version": "0.9.82-rc.227",
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",
@@ -673,6 +673,7 @@ export class DaemonCliManager {
673
673
  transport: 'pty',
674
674
  adapterKey: key,
675
675
  instanceKey: key,
676
+ workspace: resolvedDir,
676
677
  // attachExisting === true means we're restoring an already-spawned
677
678
  // hosted runtime after a daemon restart, not starting a fresh PTY.
678
679
  // The real spawn time is in the past and we don't have it on the
@@ -757,6 +758,7 @@ export class DaemonCliManager {
757
758
  transport: 'acp',
758
759
  adapterKey: key,
759
760
  instanceKey: key,
761
+ workspace: resolvedDir,
760
762
  });
761
763
 
762
764
  // Register ACP entry in adapter map (getStatus queries from acpInstance in real-time)
@@ -1343,7 +1343,7 @@ export class CliProviderInstance implements ProviderInstance {
1343
1343
  const externalNativeFinal = this.getExternalNativeFinalReconciliation(undefined, latestStatus);
1344
1344
  const latestVisibleStatus = externalNativeFinal && isCliGeneratingLikeStatus(latestStatus.status)
1345
1345
  ? 'idle'
1346
- : (latestAutoApproveActive ? 'generating' : latestStatus.status);
1346
+ : (latestAutoApproveActive || this.autoApproveBusy ? 'generating' : latestStatus.status);
1347
1347
  LOG.debug('CLI', `[${this.type}] flush attempt: adapterStatus=${latestStatus.status} latestVisible=${latestVisibleStatus} externalNativeFinal=${!!externalNativeFinal} generatingStartedAt=${this.generatingStartedAt} isWaitingForResponse=${!!(this.adapter as any)?.isWaitingForResponse} hasPartial=${!!this.adapter.getPartialResponse?.()}`);
1348
1348
  if (latestVisibleStatus !== 'idle') {
1349
1349
  LOG.info('CLI', `[${this.type}] cancelled pending completed (resumed ${latestVisibleStatus})`);
@@ -1460,7 +1460,7 @@ export class CliProviderInstance implements ProviderInstance {
1460
1460
  this.autoApproveBusy = false;
1461
1461
  this.autoApproveBusyTimer = null;
1462
1462
  this.lastAutoApprovalSignature = '';
1463
- }, 2000);
1463
+ }, 5000);
1464
1464
  this.recordAutoApproval(modal?.message, buttonLabel, now);
1465
1465
  setTimeout(() => {
1466
1466
  this.adapter.resolveModal(buttonIndex);
@@ -8,6 +8,9 @@ export interface SessionRuntimeTarget {
8
8
  cdpManagerKey?: string;
9
9
  adapterKey?: string;
10
10
  instanceKey?: string;
11
+ /** Working directory for CLI/ACP sessions. Used by read_chat to resolve
12
+ * native history when there is no live adapter (e.g. subscription path). */
13
+ workspace?: string;
11
14
  /** Wall clock at register time. native-history readers use it as a
12
15
  * cutoff so a fresh session can't show records from a prior one. */
13
16
  spawnedAtMs?: number;