auto-sync: 2026-05-30 21:02:02
This commit is contained in:
@@ -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)",
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user