fix(ai): require exact SQL confirmation for agent writes
This commit is contained in:
1 parent
f2e13922a2
commit
12da615daa
16 files changed
+626
-30
No files matched your search
@@ -438,6 +438,8 @@ export async function aiStream(sessionId: string, request: AiCompletionRequest,
|
||||
export type AgentEvent =
|
||||
| { type: "turn_start"; turn: number }
|
||||
| { type: "text_delta"; delta: string }
|
||||
| { type: "write_sql_confirmation_required"; sql: string }
|
||||
| { type: "production_write_blocked"; sql: string }
|
||||
| { type: "reasoning_delta"; delta: string }
|
||||
| {
|
||||
type: "tool_call_start";
|
||||
@@ -850,7 +852,7 @@ export interface AiChatMessage {
|
||||
content: string;
|
||||
mentions?: unknown[];
|
||||
reasoning?: string;
|
||||
kind?: "contextSummary";
|
||||
kind?: "contextSummary" | "writeSqlConfirmation" | "productionWriteBlocked";
|
||||
}
|
||||
|
||||
export interface AiConversation {
|
||||
|
||||
Reference in new issue
Block a user