Merge branch 'worktree-agent-aa1d52313cfc167e1'

This commit is contained in:
sam committed 2026-11-21 15:00:11 +11:00
commit 69b5b2aba6
14 files changed
+852 -36

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ func (o *operations) Start(ctx context.Context) error {
// from the request.
o.engine.Use(runs.Deps{
Settings: o.settings, Toolbox: o.conns, Judge: o.judge, Approver: o.allow,
Notifier: o.tell, Memory: o.remember,
Notifier: o.tell, Messenger: o.tell, Memory: o.remember,
})
if err := installStarter(ctx, o.engine); err != nil {
return err
@@ -0,0 +1,14 @@
-- +goose Up
-- A workflow.call step starts a child run. parent_run_id and parent_signal say
-- which run, and which signal key, to wake when the child ends; call_depth
-- bounds how deep calls nest. A run started by a handoff has no parent.
ALTER TABLE runs.runs ADD COLUMN parent_run_id uuid REFERENCES runs.runs (id) ON DELETE CASCADE;
ALTER TABLE runs.runs ADD COLUMN parent_signal text;
ALTER TABLE runs.runs ADD COLUMN call_depth integer NOT NULL DEFAULT 0;
CREATE INDEX runs_runs_parent ON runs.runs (parent_run_id) WHERE parent_run_id IS NOT NULL;
-- +goose Down
DROP INDEX runs.runs_runs_parent;
ALTER TABLE runs.runs DROP COLUMN call_depth;
ALTER TABLE runs.runs DROP COLUMN parent_signal;
ALTER TABLE runs.runs DROP COLUMN parent_run_id;