auto-sync: 2026-05-30 21:02:02

This commit is contained in:
cfdaily
2026-05-30 21:02:02 +08:00
parent 19d1559389
commit 86e13c6bbe
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -351,6 +351,7 @@ _SCHEMA_STATEMENTS = [
agent TEXT,
event_type TEXT NOT NULL,
detail TEXT,
payload TEXT,
created_at TEXT NOT NULL DEFAULT (datetime('now'))
)""",
"CREATE INDEX IF NOT EXISTS idx_events_task ON events(task_id)",
+1 -1
View File
@@ -732,7 +732,7 @@ class Dispatcher:
(status, task_id),
)
conn.execute(
"INSERT INTO events (task_id, agent, event_type, detail) VALUES (?, 'dispatcher', 'status_change', ?)",
"INSERT INTO events (task_id, agent, event_type, payload) VALUES (?, 'dispatcher', 'status_change', ?)",
(task_id, f'{{"from": "{old_status}", "to": "{status}", "source": "auto_complete"}}'),
)
conn.commit()