@adhdev/daemon-core 0.9.15 → 0.9.17
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
|
@@ -112,9 +112,14 @@ function normalizeComparableTranscriptText(value: unknown): string {
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
function hasVisibleInterruptPrompt(text: string): boolean {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
|
|
116
|
+
return sanitizeTerminalText(text || '')
|
|
117
|
+
.split(/\r?\n/g)
|
|
118
|
+
.some((line) => {
|
|
119
|
+
const trimmed = line.trim();
|
|
120
|
+
if (!interruptCopyPattern.test(trimmed)) return false;
|
|
121
|
+
return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
|
|
122
|
+
});
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
function parsedTranscriptIsRicherThanCommitted(
|
|
@@ -1148,6 +1153,9 @@ export class ProviderCliAdapter implements CliAdapter {
|
|
|
1148
1153
|
if (this.approvalExitTimeout) { clearTimeout(this.approvalExitTimeout); this.approvalExitTimeout = null; }
|
|
1149
1154
|
this.activeModal = null;
|
|
1150
1155
|
this.lastApprovalResolvedAt = Date.now();
|
|
1156
|
+
if (this.isWaitingForResponse) {
|
|
1157
|
+
this.setStatus('generating', 'approval_prompt_gone_idle_confirm');
|
|
1158
|
+
}
|
|
1151
1159
|
}
|
|
1152
1160
|
if (!this.isWaitingForResponse) {
|
|
1153
1161
|
if (prevStatus !== 'idle') {
|