Q11: deleted messages and withdrawn commands never reach the model

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-08 03:47:57 -04:00
1 parent 31ab919334
commit 22632a4695
8 files changed
+91 -28

No files matched your search

@@ -0,0 +1,9 @@
export const chatWakeTextPurgeSchema = `
update tasks
set title = case when title like 'Chat mention:%' then 'Reply in chat' else title end,
description = 'Reply in the source thread with send_message and its thread_id; the full message is in the thread below.'
where origin = 'chat_wake';
insert into schema_migrations(version, name, applied_at)
values (60, 'chat_wake_text_purge', datetime('now'));
`;
+2
View File
@@ -58,6 +58,7 @@ import { kimiProvidersSchema } from "./migrations/056-kimi-providers";
import { kimiCodeProviderSchema } from "./migrations/057-kimi-code-provider";
import { integrationKeysSchema } from "./migrations/058-integration-keys";
import { taskHandoffSchema } from "./migrations/059-task-handoff";
import { chatWakeTextPurgeSchema } from "./migrations/060-chat-wake-text-purge";
interface Migration {
version: number;
@@ -125,6 +126,7 @@ const MIGRATIONS: Migration[] = [
{ version: 57, name: "kimi_code_provider", sql: kimiCodeProviderSchema },
{ version: 58, name: "integration_keys", sql: integrationKeysSchema },
{ version: 59, name: "task_handoff", sql: taskHandoffSchema },
{ version: 60, name: "chat_wake_text_purge", sql: chatWakeTextPurgeSchema },
];
const SCHEMA_VERSION = MIGRATIONS[MIGRATIONS.length - 1].version;