From a64ce2f209fa28f4a4f805a8681ac163cc7a463a Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Tue, 23 Dec 2025 16:18:18 +0530 Subject: [PATCH 1/3] fix: spec --- spec/models/account_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/account_spec.rb b/spec/models/account_spec.rb index 3d74835ff..b0b32093e 100644 --- a/spec/models/account_spec.rb +++ b/spec/models/account_spec.rb @@ -236,12 +236,12 @@ RSpec.describe Account do describe 'with saved model preferences' do it 'returns saved preferences merged with defaults' do - account.update!(captain_models: { 'editor' => 'gpt-4.1-mini', 'assistant' => 'gpt-5' }) + account.update!(captain_models: { 'editor' => 'gpt-4.1-mini', 'assistant' => 'gpt-5.2' }) prefs = account.captain_preferences expect(prefs[:models]['editor']).to eq('gpt-4.1-mini') - expect(prefs[:models]['assistant']).to eq('gpt-5') + expect(prefs[:models]['assistant']).to eq('gpt-5.2') expect(prefs[:models]['copilot']).to eq(Llm::ConfigService.default_model_for_feature('copilot')) end end From 871ff9e1eb17313ed2722cc0522cf7929f46e8c5 Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Tue, 23 Dec 2025 16:29:05 +0530 Subject: [PATCH 2/3] fix: captain logo in sidebar under settings --- app/javascript/dashboard/components-next/sidebar/Sidebar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue index 7671d141e..00a48e865 100644 --- a/app/javascript/dashboard/components-next/sidebar/Sidebar.vue +++ b/app/javascript/dashboard/components-next/sidebar/Sidebar.vue @@ -497,7 +497,7 @@ const menuItems = computed(() => { { name: 'Settings Captain', label: t('SIDEBAR.CAPTAIN_AI'), - icon: 'i-lucide-sparkles', + icon: 'i-woot-captain', to: accountScopedRoute('captain_settings_index'), }, { From 9fc86b13cbbbf4e046e1bdd954322cea8c7c718b Mon Sep 17 00:00:00 2001 From: aakashb95 Date: Tue, 23 Dec 2025 17:54:44 +0530 Subject: [PATCH 3/3] fix: wrongly classified assistant event type --- lib/integrations/llm_base_service.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/integrations/llm_base_service.rb b/lib/integrations/llm_base_service.rb index 398c9e2f8..2dca8ad98 100644 --- a/lib/integrations/llm_base_service.rb +++ b/lib/integrations/llm_base_service.rb @@ -10,11 +10,10 @@ class Integrations::LlmBaseService CACHEABLE_EVENTS = %w[].freeze # Maps event names to feature keys in config/llm.yml - EDITOR_EVENTS = %w[rephrase fix_spelling_grammar shorten expand make_friendly make_formal simplify].freeze - ASSISTANT_EVENTS = %w[summarize reply_suggestion].freeze + EDITOR_EVENTS = %w[rephrase fix_spelling_grammar shorten expand make_friendly make_formal simplify summarize reply_suggestion].freeze LABEL_SUGGESTION_EVENTS = %w[label_suggestion].freeze - ALLOWED_EVENT_NAMES = (EDITOR_EVENTS + ASSISTANT_EVENTS).freeze + ALLOWED_EVENT_NAMES = EDITOR_EVENTS.freeze pattr_initialize [:hook!, :event!] @@ -41,7 +40,6 @@ class Integrations::LlmBaseService def feature_name_for_event return 'editor' if EDITOR_EVENTS.include?(event_name) - return 'assistant' if ASSISTANT_EVENTS.include?(event_name) return 'label_suggestion' if LABEL_SUGGESTION_EVENTS.include?(event_name) nil