summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-08-21 10:43:08 -0600
committert <t@tjp.lol>2026-08-21 10:44:33 -0600
commit2d4981b3870f2aee75d03006eea6318c501fe47b (patch)
treece0488e7100a5d096e91d490427590b03ef23afb /spec
parent4183fdc7d3667fb4c2af72ff0098c15168c9e950 (diff)
Expose workflow status to other extensions
Diffstat (limited to 'spec')
-rw-r--r--spec/test_init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/test_init.lua b/spec/test_init.lua
index eb8777a..bb42c57 100644
--- a/spec/test_init.lua
+++ b/spec/test_init.lua
@@ -236,6 +236,8 @@ return {
{ "background workflows survive turn_end and interruption cancels them", function()
activate_bare(function(handle, ok, err)
assert(ok, tostring(err))
+ assert(handle.ext.workflows == workflow.workflows,
+ "extensions can inspect background workflow status")
local tool = handle.tools_by_name["subagents.lua"]
handle.queue({ output = "finished", settle = 3 })
local id = tool.handler({ source = [[