014-add-excluded-from-context.sql

1-- Add excluded_from_context column to messages table.
2-- Messages with this flag set are stored for billing/cost tracking purposes
3-- but are NOT included when building the LLM request context.
4-- This is used for truncated responses that we want to keep for cost tracking
5-- but that would confuse the LLM if sent back (e.g., partial tool calls).
6
7ALTER TABLE messages ADD COLUMN excluded_from_context BOOLEAN NOT NULL DEFAULT FALSE;