@rallycry/conveyor-agent 10.12.0 → 10.12.1

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.
@@ -2912,6 +2912,9 @@ var TASK_CHAT_HISTORY_LIMIT = 20;
2912
2912
  var PM_CHAT_HISTORY_LIMIT = 40;
2913
2913
  var AGENT_CHAT_HISTORY_FETCH_LIMIT = Math.max(TASK_CHAT_HISTORY_LIMIT, PM_CHAT_HISTORY_LIMIT) + 10;
2914
2914
  var PRE_BUILD_TASK_STATUSES = /* @__PURE__ */ new Set(["Planning", "Open"]);
2915
+ function hasTaskPlan(plan) {
2916
+ return !!plan?.trim();
2917
+ }
2915
2918
 
2916
2919
  // src/runner/mode-controller.ts
2917
2920
  var ModeController = class {
@@ -10914,7 +10917,7 @@ var SessionRunner = class _SessionRunner {
10914
10917
  }
10915
10918
  this.mode.applyServerMode(this.fullContext?.agentMode, this.fullContext?.isAuto);
10916
10919
  this.mode.resolveInitialMode(this.taskContext);
10917
- if (this.fullContext?.isAuto && PRE_BUILD_TASK_STATUSES.has(this.taskContext.status) && this.mode.isBuildCapable) {
10920
+ if (this.fullContext?.isAuto && PRE_BUILD_TASK_STATUSES.has(this.taskContext.status) && this.mode.isBuildCapable && hasTaskPlan(this.fullContext.plan)) {
10918
10921
  void this.connection.triggerIdentification().catch(() => {
10919
10922
  });
10920
10923
  }
@@ -11831,4 +11834,4 @@ export {
11831
11834
  runStartCommand,
11832
11835
  unshallowRepo
11833
11836
  };
11834
- //# sourceMappingURL=chunk-CXNWRIS7.js.map
11837
+ //# sourceMappingURL=chunk-K23F674K.js.map