diff options
| author | t <t@tjp.lol> | 2026-08-21 14:11:28 -0600 |
|---|---|---|
| committer | t <t@tjp.lol> | 2026-08-21 14:12:35 -0600 |
| commit | 9f6287025c288e2cd687d0bbecd3c8fb4867effa (patch) | |
| tree | f1ca2d1e5cd79f9d3e0d1afd8280efd5257d405e /subagents/spawn.lua | |
| parent | 49a6001dde72622df9410b738322e9a23e68ddee (diff) | |
Keep subagent boards pinned while background workflows run
A background subagents.lua workflow outlives the tool call that started
it, so settling the outer result unpinned a board whose agents were still
working. Track a per-tool-call workflow count and derive the pin from
both the tool being active and that count, so the board only returns to
transcript order once its last workflow finishes.
Also show the reasoning level alongside the model on agent cards.
Diffstat (limited to 'subagents/spawn.lua')
| -rw-r--r-- | subagents/spawn.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subagents/spawn.lua b/subagents/spawn.lua index 9117fdd..d90631d 100644 --- a/subagents/spawn.lua +++ b/subagents/spawn.lua @@ -434,7 +434,9 @@ function M.spawn(spec) if got_len and type(length) == "number" then turn_index = length + 1 end end - local card = progress.card(spec.label or "subagent", id, model_label, { + local card_detail = model_label + if card_detail and reasoning_label then card_detail = card_detail .. " (" .. reasoning_label .. ")" end + local card = progress.card(spec.label or "subagent", id, card_detail, { prompt = spec.prompt, system_prompt = spec.presentation_system_prompt, }) |
