From a31f95cf456b2809c7ece7c68fed02fe9c760b8a Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Mon, 5 Jan 2026 18:28:37 +0530 Subject: [PATCH] fix: safe navigation --- .../app/jobs/captain/conversation/response_builder_job.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enterprise/app/jobs/captain/conversation/response_builder_job.rb b/enterprise/app/jobs/captain/conversation/response_builder_job.rb index 2967a8ce0..c8ab1add7 100644 --- a/enterprise/app/jobs/captain/conversation/response_builder_job.rb +++ b/enterprise/app/jobs/captain/conversation/response_builder_job.rb @@ -97,7 +97,7 @@ class Captain::Conversation::ResponseBuilderJob < ApplicationJob end def create_handoff_message - handoff_message = @response['response'].presence || + handoff_message = @response&.dig('response').presence || @assistant.config['handoff_message'].presence || I18n.t('conversations.captain.handoff') create_outgoing_message(handoff_message)