@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/dist/index.js CHANGED
@@ -1967,9 +1967,12 @@ function normalizeComparableTranscriptText(value) {
1967
1967
  return sanitizeTerminalText(String(value || "")).replace(/\s+/g, " ").trim();
1968
1968
  }
1969
1969
  function hasVisibleInterruptPrompt(text) {
1970
- return /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i.test(
1971
- sanitizeTerminalText(text || "")
1972
- );
1970
+ const interruptCopyPattern = /\bEnter\s+to\s+interrupt\b(?:\s*,?\s*Ctrl\s*(?:\+|-)?\s*C\s+to\s+cancel)?/i;
1971
+ return sanitizeTerminalText(text || "").split(/\r?\n/g).some((line) => {
1972
+ const trimmed = line.trim();
1973
+ if (!interruptCopyPattern.test(trimmed)) return false;
1974
+ return /^(?:[^A-Za-z0-9\s]{1,8}\s+)?[❯›>]\s+/.test(trimmed);
1975
+ });
1973
1976
  }
1974
1977
  function parsedTranscriptIsRicherThanCommitted(parsedMessages, committedMessages) {
1975
1978
  if (!Array.isArray(parsedMessages) || !Array.isArray(committedMessages)) return false;
@@ -2885,6 +2888,9 @@ var init_provider_cli_adapter = __esm({
2885
2888
  }
2886
2889
  this.activeModal = null;
2887
2890
  this.lastApprovalResolvedAt = Date.now();
2891
+ if (this.isWaitingForResponse) {
2892
+ this.setStatus("generating", "approval_prompt_gone_idle_confirm");
2893
+ }
2888
2894
  }
2889
2895
  if (!this.isWaitingForResponse) {
2890
2896
  if (prevStatus !== "idle") {