@evident-ai/cli 3.0.1-dev.d307bdc → 3.0.1-dev.dcef26e

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
@@ -2685,7 +2685,6 @@ async function handleAuthError(state, error2) {
2685
2685
  }
2686
2686
  async function driveChannels(state, driver) {
2687
2687
  let idlePolls = 0;
2688
- let lastSeenProxiedActivityAt = state.lastProxiedActivityAt;
2689
2688
  while (state.running) {
2690
2689
  if (state.connection?.reconnecting && state.connection.reconnectPromise) {
2691
2690
  logActivity(state, { type: "info", message: "Waiting for tunnel reconnection..." });
@@ -2695,9 +2694,7 @@ async function driveChannels(state, driver) {
2695
2694
  try {
2696
2695
  const processed = await driver.drainPending();
2697
2696
  state.messageCount += processed;
2698
- const proxiedActivity = state.lastProxiedActivityAt !== lastSeenProxiedActivityAt;
2699
- lastSeenProxiedActivityAt = state.lastProxiedActivityAt;
2700
- if (processed > 0 || driver.hasInFlightWatchers() || proxiedActivity) {
2697
+ if (processed > 0 || driver.hasInFlightWatchers()) {
2701
2698
  idlePolls = 0;
2702
2699
  if (processed > 0 && state.interactive) displayStatus(state);
2703
2700
  } else if (state.idleTimeout !== null) {
@@ -2772,7 +2769,6 @@ async function run(options) {
2772
2769
  running: true,
2773
2770
  activityLog: [],
2774
2771
  messageCount: 0,
2775
- lastProxiedActivityAt: null,
2776
2772
  authHeader: ""
2777
2773
  };
2778
2774
  if (state.idleTimeout === null && (process.env.GITHUB_ACTIONS || process.env.CI)) {
@@ -2962,14 +2958,9 @@ async function run(options) {
2962
2958
  logActivity(state, { type: "error", error: error2 });
2963
2959
  if (state.interactive) displayStatus(state);
2964
2960
  },
2965
- // Web traffic is proxied transparently; note opencode is live and stamp
2966
- // proxied activity so the idle loop treats interactive proxy use as work.
2967
- // Fires per forwarded response head (incl. every SSE open) and excludes
2968
- // the internal drain-ping, so an actively-used proxy keeps the timer
2969
- // fresh while a lone idle SSE with no follow-up requests still ages out.
2961
+ // Web traffic is proxied transparently; only note opencode is live.
2970
2962
  onResponse: () => {
2971
2963
  state.opencodeConnected = true;
2972
- state.lastProxiedActivityAt = Date.now();
2973
2964
  },
2974
2965
  // A channel message was queued and the api-worker pinged us over the
2975
2966
  // tunnel to drain immediately instead of waiting for the next poll tick.