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>
15 lines
400 B
Ruby
15 lines
400 B
Ruby
class CreateCaptainMessageReports < ActiveRecord::Migration[7.1]
|
|
def change
|
|
create_table :captain_message_reports do |t|
|
|
t.references :account, null: false
|
|
t.references :conversation, null: false
|
|
t.references :message, null: false
|
|
t.references :user, null: false
|
|
t.string :report_reason, null: false
|
|
t.text :description
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|