diff options
| author | t <t@tjp.lol> | 2026-08-25 15:18:34 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-08-25 15:18:34 -0600 |
| commit | ab829fbcbbac3c50ece8e67953b024710d4b1bc6 (patch) | |
| tree | 5e7af5d4dcfc15b848e4bdd7766bbab1a9357d7b /init.lua | |
| parent | 9f6287025c288e2cd687d0bbecd3c8fb4867effa (diff) | |
Discourage active waiting for background workflows
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -210,7 +210,7 @@ local w = subagents.workflows["workflow-1"] return w.status .. (w.result and ("\n" .. w.result) or "") ``` -Workflow fields are `id`, `status`, `result`, `error`, and `agents`; `workflow:cancel()` requests cancellation of every running agent. Agents are available by name or iteration and expose `name`, `status`, `output`, `error`, and `id`; `agent:cancel()` requests cancellation of that agent. Fields are read-only, and cancellation returns true only while the target is running. Workflow completion wakes you with its id; use another `subagents.lua` call to retrieve whichever outputs you need. +Workflow fields are `id`, `status`, `result`, `error`, and `agents`; `workflow:cancel()` requests cancellation of every running agent. Agents are available by name or iteration and expose `name`, `status`, `output`, `error`, and `id`; `agent:cancel()` requests cancellation of that agent. Fields are read-only, and cancellation returns true only while the target is running. Workflow completion wakes you with its id; use another `subagents.lua` call to retrieve whichever outputs you need. Do not actively wait or poll with `sleep`; continue other work or return control until the completion message arrives. ]=] local function install_guidance(ext) |
