erosolar-cli 2.1.165 → 2.1.167

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.
@@ -6822,6 +6822,7 @@ Return ONLY JSON array:
6822
6822
  onAssistantMessage: (content, metadata) => {
6823
6823
  const enriched = this.buildDisplayMetadata(metadata);
6824
6824
  const streamedVisible = metadata.wasStreamed && this.streamingContentSeen && !this.streamingOutputSuppressed;
6825
+ const displaySuppressed = metadata.suppressDisplay === true;
6825
6826
  let renderedFinal = false;
6826
6827
  // Update streaming token count from usage info (more accurate than chunk counting)
6827
6828
  if (metadata.usage) {
@@ -6841,14 +6842,16 @@ Return ONLY JSON array:
6841
6842
  // Show the response if it wasn't already rendered during streaming
6842
6843
  if (!streamedVisible) {
6843
6844
  if (thoughtContent) {
6844
- const summary = this.extractThoughtSummary(thoughtContent);
6845
- if (summary) {
6846
- display.updateThinking(`💭 ${summary}`);
6845
+ if (!displaySuppressed) {
6846
+ const summary = this.extractThoughtSummary(thoughtContent);
6847
+ if (summary) {
6848
+ display.updateThinking(`💭 ${summary}`);
6849
+ }
6850
+ display.showAssistantMessage(thoughtContent, { ...enriched, isFinal: false });
6851
+ renderedFinal = true;
6847
6852
  }
6848
- display.showAssistantMessage(thoughtContent, { ...enriched, isFinal: false });
6849
- renderedFinal = true;
6850
6853
  }
6851
- if (finalContent) {
6854
+ if (finalContent && !displaySuppressed) {
6852
6855
  display.showAssistantMessage(finalContent, enriched);
6853
6856
  renderedFinal = true;
6854
6857
  }
@@ -6866,7 +6869,7 @@ Return ONLY JSON array:
6866
6869
  this.updateContextUsage(percentage);
6867
6870
  }
6868
6871
  }
6869
- if (finalContent) {
6872
+ if (finalContent && !displaySuppressed) {
6870
6873
  this.lastAssistantResponse = finalContent;
6871
6874
  }
6872
6875
  // Track thought + response as a single response event for telemetry
@@ -6888,7 +6891,7 @@ Return ONLY JSON array:
6888
6891
  // Stop spinner and show the narrative text directly
6889
6892
  display.stopThinking();
6890
6893
  // Skip display if content was already streamed to avoid double-display
6891
- if (!streamedVisible) {
6894
+ if (!streamedVisible && !displaySuppressed) {
6892
6895
  const narrative = content.trim();
6893
6896
  if (narrative) {
6894
6897
  display.showNarrative(narrative);
@@ -7002,7 +7005,7 @@ Return ONLY JSON array:
7002
7005
  };
7003
7006
  // Return acknowledgement regardless of hasModelNarration
7004
7007
  // If model provided narration, it will appear after this acknowledgement
7005
- return toolDescriptions[primaryTool] || `Working on it...`;
7008
+ return toolDescriptions[primaryTool] || 'Running tools to advance your request...';
7006
7009
  },
7007
7010
  onVerificationNeeded: (response, context) => {
7008
7011
  this.lastAssistantResponse = response;
@@ -7012,9 +7015,10 @@ Return ONLY JSON array:
7012
7015
  onRequestReceived: (requestPreview) => {
7013
7016
  // This fires IMMEDIATELY when user submits request, guaranteeing instant feedback
7014
7017
  // The message appears before any AI processing begins
7015
- const message = requestPreview
7016
- ? `⚡ Acknowledged. Working on "${requestPreview}".`
7017
- : '⚡ Acknowledged. Working on your request.';
7018
+ const normalized = requestPreview?.trim();
7019
+ const message = normalized
7020
+ ? `⚡ Acknowledged focusing on "${normalized}" and acting now.`
7021
+ : '⚡ Acknowledged — acting now.';
7018
7022
  display.showAssistantMessage(message, { isFinal: false });
7019
7023
  this.renderer?.setActivity('Acknowledged');
7020
7024
  },