diff options
| author | t <t@tjp.lol> | 2026-08-18 16:37:31 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-08-18 16:37:40 -0600 |
| commit | 94e3fd8358bbdb5d6ed81aed475fab7fc73e2097 (patch) | |
| tree | b028540f25e1818fefe51cb4c05a4c2cd4e5708d /init.lua | |
| parent | cc69a2e431779528578211a5cb3385bb23e076bf (diff) | |
Fix workflow progress pin lifecycle
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -153,6 +153,7 @@ local function activate() -- Escape reaches the children through the turn, not through a tool: the -- primary is parked inside a tool call when they are running. + progress.begin_replay() -- Startup session replay fires tool lifecycle events before the first -- live turn. After that boundary, progress.claim must stay presentation- -- only and never rescan the child catalog for ordinary calls. @@ -193,7 +194,9 @@ local function activate() }, handler = function(input, context) progress.bind(context) - return run.handle(input, profiles) + local result = run.handle(input, profiles) + progress.settle(context) + return result end, } @@ -241,7 +244,9 @@ local function activate() }, handler = function(input, context) progress.bind(context) - return luatool.handle(input, profiles) + local result = luatool.handle(input, profiles) + progress.settle(context) + return result end, } @@ -278,7 +283,9 @@ local function activate() }, handler = function(input, context) progress.bind(context) - return toml_workflows.handle(input, profiles) + local result = toml_workflows.handle(input, profiles) + progress.settle(context) + return result end, } |
