Adds a cloud-only flow for agents to flag incorrect or problematic Captain (AI) responses. Right-clicking a Captain message surfaces a "Report message" option that opens a dialog to pick a problem type and add a description, persisted to a new captain_message_reports table for the team to review. <img width="636" height="542" alt="Screenshot 2026-06-20 at 9 15 56 AM" src="https://github.com/user-attachments/assets/afaa233d-6bd6-455a-8a33-a3796a3e3ef6" /> <img width="580" height="502" alt="Screenshot 2026-06-20 at 9 16 03 AM" src="https://github.com/user-attachments/assets/2d220d99-98cc-4c5e-a325-778ceb4f7bc9" /> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9 lines
249 B
Ruby
9 lines
249 B
Ruby
FactoryBot.define do
|
|
factory :captain_message_report, class: 'Captain::MessageReport' do
|
|
report_reason { 'incorrect_information' }
|
|
description { 'The generated citation is wrong.' }
|
|
association :message
|
|
association :user
|
|
end
|
|
end
|