Queue mid-turn messages for the next tool call; remove all tests

This commit is contained in:
Ian Gulliver
2026-10-15 18:33:18 -07:00
parent 4f94d73b58
commit 514a2580f7
68 changed files with 364 additions and 6851 deletions
+14
View File
@@ -305,6 +305,16 @@ CREATE TABLE reviews (
UNIQUE (task_id, snapshot_n)
);
CREATE UNIQUE INDEX reviews_session ON reviews(agent_session_id);
`}, {"add-task-inputs", `
CREATE TABLE task_inputs (
id INTEGER PRIMARY KEY AUTOINCREMENT,
task_id TEXT NOT NULL REFERENCES tasks(id),
actor TEXT NOT NULL,
text TEXT NOT NULL,
images TEXT NOT NULL DEFAULT '[]',
created_at TEXT NOT NULL
);
CREATE INDEX task_inputs_task ON task_inputs(task_id, id);
`}}
const (
@@ -783,6 +793,10 @@ func (s *Store) closeTask(ctx context.Context, id string, status api.TaskStatus,
if err != nil {
return err
}
_, err = tx.ExecContext(ctx, `DELETE FROM task_inputs WHERE task_id = ?`, id)
if err != nil {
return err
}
return dismissTaskInbox(ctx, tx, emit, id, actor)
})
if err != nil {