@posiwise/shared-components 0.0.208 → 0.0.209

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.
@@ -2499,7 +2499,12 @@ class PwBrainChatComponent {
2499
2499
  this.streamingStage = null;
2500
2500
  this.streamingProse = null;
2501
2501
  this.persistConversationId(response.conversation_id);
2502
- if (response.needs_confirmation || response.result_status === 'success') {
2502
+ // ONLY on a real success. A confirmation card means the tool has not run
2503
+ // yet: clearing there lost the file the moment you approved, so a call
2504
+ // that then failed (wrong vendor, say) left your follow-up answer with
2505
+ // no file attached -- and the planner, seeing no upload context, routed
2506
+ // the reply to an unrelated tool.
2507
+ if (response.result_status === 'success') {
2503
2508
  this.attachment.clearIfConsumed(this.sentAttachment);
2504
2509
  }
2505
2510
  if (response.needs_confirmation && response.confirmation_token) {