@pentoshi/clai 3.11.26 → 3.11.28

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.
@@ -3128,20 +3128,15 @@ export async function runAgentTurn(prompt, options = {}) {
3128
3128
  const callIds = [];
3129
3129
  let streamedCallsCount = 0;
3130
3130
  // A model can think silently for minutes. Without a heartbeat the UI
3131
- // shows a frozen label and the turn looks hung, so surface elapsed time
3132
- // and the current phase on a timer rather than only on token arrival.
3133
- const streamStartedAt = Date.now();
3131
+ // shows a frozen label and the turn looks hung, so surface the current
3132
+ // phase on a timer rather than only on token arrival.
3134
3133
  const streamPhase = () => {
3135
- const seconds = Math.round((Date.now() - streamStartedAt) / 1000);
3136
- const elapsed = seconds < 60
3137
- ? `${seconds}s`
3138
- : `${Math.floor(seconds / 60)}m${String(seconds % 60).padStart(2, "0")}s`;
3139
3134
  if (generatedTokens > 0 && !inThinking) {
3140
- return `generating response · ${elapsed}`;
3135
+ return "generating response";
3141
3136
  }
3142
3137
  if (sawReasoning)
3143
- return `thinking · ${elapsed}`;
3144
- return `waiting for model · ${elapsed}`;
3138
+ return "thinking";
3139
+ return "waiting for model";
3145
3140
  };
3146
3141
  const heartbeat = setInterval(() => {
3147
3142
  const text = streamPhase();