@songsid/agend 2.1.8-beta.4 → 2.1.8-beta.6

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.
@@ -552,8 +552,8 @@ export declare class FleetManager implements FleetContext, LifecycleContext, Arc
552
552
  /**
553
553
  * Ask the daemon to capture the pane before answering, then wait for any state
554
554
  * report produced after this request. The ordinary query is intentionally
555
- * cache-only (idle gates call it frequently); this opt-in refresh is reserved
556
- * for lifecycle decisions where a stale state would strand UI.
555
+ * cache-only; delivery idle gates opt into their own pane/input proof, and
556
+ * this refresh serves lifecycle decisions where a stale state would strand UI.
557
557
  */
558
558
  private refreshInstanceExecutionState;
559
559
  private deliverWithIdleGate;
@@ -1730,7 +1730,10 @@ export class FleetManager {
1730
1730
  const query = () => {
1731
1731
  const ipc = this.instanceIpcClients.get(instanceName);
1732
1732
  if (ipc?.connected) {
1733
- ipc.send({ type: "query_instance_state", requestId: `idle-gate-${Date.now()}` });
1733
+ // The daemon owns the backend/TTY proof and its 10s startup-input
1734
+ // timer. A cache-only query can never discover a Context-less idle
1735
+ // pane, and a second fleet timer would stack another 10s wait.
1736
+ ipc.send({ type: "query_instance_state", requestId: `idle-gate-${Date.now()}`, deliveryIdle: true });
1734
1737
  }
1735
1738
  check();
1736
1739
  };
@@ -1745,8 +1748,8 @@ export class FleetManager {
1745
1748
  /**
1746
1749
  * Ask the daemon to capture the pane before answering, then wait for any state
1747
1750
  * report produced after this request. The ordinary query is intentionally
1748
- * cache-only (idle gates call it frequently); this opt-in refresh is reserved
1749
- * for lifecycle decisions where a stale state would strand UI.
1751
+ * cache-only; delivery idle gates opt into their own pane/input proof, and
1752
+ * this refresh serves lifecycle decisions where a stale state would strand UI.
1750
1753
  */
1751
1754
  refreshInstanceExecutionState(instanceName, timeoutMs) {
1752
1755
  const ipc = this.instanceIpcClients.get(instanceName);