@askexenow/exe-os 0.9.10 → 0.9.11

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.
@@ -773,15 +773,17 @@ function sendIntercom(targetSession) {
773
773
  logIntercom(`QUEUED \u2192 ${targetSession} (session busy)${batched2 > 0 ? ` [${batched2} batched]` : ""}`);
774
774
  return "queued";
775
775
  }
776
- try {
777
- const rawAgent = targetSession.split("-")[0] ?? targetSession;
778
- const agent = baseAgentName(rawAgent);
779
- const markerPath = path9.join(SESSION_CACHE, `current-task-${agent}.json`);
780
- if (existsSync8(markerPath)) {
781
- logIntercom(`SKIP \u2192 ${targetSession} (has in_progress task marker \u2014 will auto-chain)`);
782
- return "debounced";
776
+ if (sessionState !== "idle") {
777
+ try {
778
+ const rawAgent = targetSession.split("-")[0] ?? targetSession;
779
+ const agent = baseAgentName(rawAgent);
780
+ const markerPath = path9.join(SESSION_CACHE, `current-task-${agent}.json`);
781
+ if (existsSync8(markerPath)) {
782
+ logIntercom(`SKIP \u2192 ${targetSession} (has in_progress task marker + not idle \u2014 will auto-chain)`);
783
+ return "debounced";
784
+ }
785
+ } catch {
783
786
  }
784
- } catch {
785
787
  }
786
788
  try {
787
789
  const rawAgent = targetSession.split("-")[0] ?? targetSession;