feat(telegram): /stop stops the chat agent, else the tasks it created, or one task; delete the dead approval actions

This commit is contained in:
sam committed 2026-10-06 01:12:28 +11:00
1 parent 399098329b
commit b0f1ad7cdc
52 files changed
+2385 -2781

No files matched your search

@@ -0,0 +1,12 @@
-- tasks.origin names the conversation that created a chat task, so a chat's
-- /stop can find the work its agent started. Empty for every other task.
-- +goose Up
ALTER TABLE tasks ADD COLUMN origin text NOT NULL DEFAULT '';
CREATE INDEX idx_tasks_origin ON tasks (origin) WHERE origin <> '';
-- +goose Down
DROP INDEX idx_tasks_origin;
ALTER TABLE tasks DROP COLUMN origin;