@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.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/dist/sessions/registry.d.ts +3 -0
- package/package.json +1 -1
- package/src/commands/cli-manager.ts +2 -0
- package/src/providers/cli-provider-instance.ts +2 -2
- package/src/sessions/registry.ts +3 -0
package/dist/index.js
CHANGED
|
@@ -31236,7 +31236,7 @@ var CliProviderInstance = class {
|
|
|
31236
31236
|
const latestStatus = this.adapter.getStatus({ allowParse: false });
|
|
31237
31237
|
const latestAutoApproveActive = latestStatus.status === "waiting_approval" && this.shouldAutoApprove();
|
|
31238
31238
|
const externalNativeFinal = this.getExternalNativeFinalReconciliation(void 0, latestStatus);
|
|
31239
|
-
const latestVisibleStatus = externalNativeFinal && isCliGeneratingLikeStatus(latestStatus.status) ? "idle" : latestAutoApproveActive ? "generating" : latestStatus.status;
|
|
31239
|
+
const latestVisibleStatus = externalNativeFinal && isCliGeneratingLikeStatus(latestStatus.status) ? "idle" : latestAutoApproveActive || this.autoApproveBusy ? "generating" : latestStatus.status;
|
|
31240
31240
|
LOG.debug("CLI", `[${this.type}] flush attempt: adapterStatus=${latestStatus.status} latestVisible=${latestVisibleStatus} externalNativeFinal=${!!externalNativeFinal} generatingStartedAt=${this.generatingStartedAt} isWaitingForResponse=${!!this.adapter?.isWaitingForResponse} hasPartial=${!!this.adapter.getPartialResponse?.()}`);
|
|
31241
31241
|
if (latestVisibleStatus !== "idle") {
|
|
31242
31242
|
LOG.info("CLI", `[${this.type}] cancelled pending completed (resumed ${latestVisibleStatus})`);
|
|
@@ -31332,7 +31332,7 @@ var CliProviderInstance = class {
|
|
|
31332
31332
|
this.autoApproveBusy = false;
|
|
31333
31333
|
this.autoApproveBusyTimer = null;
|
|
31334
31334
|
this.lastAutoApprovalSignature = "";
|
|
31335
|
-
},
|
|
31335
|
+
}, 5e3);
|
|
31336
31336
|
this.recordAutoApproval(modal?.message, buttonLabel, now);
|
|
31337
31337
|
setTimeout(() => {
|
|
31338
31338
|
this.adapter.resolveModal(buttonIndex);
|
|
@@ -33708,6 +33708,7 @@ var DaemonCliManager = class {
|
|
|
33708
33708
|
transport: "pty",
|
|
33709
33709
|
adapterKey: key,
|
|
33710
33710
|
instanceKey: key,
|
|
33711
|
+
workspace: resolvedDir,
|
|
33711
33712
|
// attachExisting === true means we're restoring an already-spawned
|
|
33712
33713
|
// hosted runtime after a daemon restart, not starting a fresh PTY.
|
|
33713
33714
|
// The real spawn time is in the past and we don't have it on the
|
|
@@ -33771,7 +33772,8 @@ ${installInfo}`
|
|
|
33771
33772
|
providerType: normalizedType,
|
|
33772
33773
|
transport: "acp",
|
|
33773
33774
|
adapterKey: key,
|
|
33774
|
-
instanceKey: key
|
|
33775
|
+
instanceKey: key,
|
|
33776
|
+
workspace: resolvedDir
|
|
33775
33777
|
});
|
|
33776
33778
|
this.adapters.set(key, {
|
|
33777
33779
|
cliType: normalizedType,
|