@peopl-health/nexus 3.2.3 → 3.2.5

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.
@@ -775,8 +775,10 @@ class NexusMessaging {
775
775
  logger.error('[CheckAfter] Error processing messages:', { chatId, error: error.message });
776
776
  } finally {
777
777
  if (typingInterval) clearInterval(typingInterval);
778
- this.processingLocks.delete(chatId);
779
- this.activeRequests.delete(chatId);
778
+ if (this.activeRequests.get(chatId) === runId) {
779
+ this.processingLocks.delete(chatId);
780
+ this.activeRequests.delete(chatId);
781
+ }
780
782
  if (this.abandonedRuns.size > 100) {
781
783
  this.abandonedRuns.clear();
782
784
  }
@@ -300,6 +300,7 @@ class OpenAIResponsesProvider {
300
300
  this.client.responses.create({
301
301
  prompt: promptConfig,
302
302
  input: inputData,
303
+ instructions: instructions || additionalInstructions,
303
304
  truncation: truncationStrategy,
304
305
  }), { providerName: PROVIDER_NAME });
305
306
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",