From 9f6287025c288e2cd687d0bbecd3c8fb4867effa Mon Sep 17 00:00:00 2001 From: t Date: Fri, 21 Aug 2026 14:11:28 -0600 Subject: 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. --- subagents/spawn.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'subagents/spawn.lua') 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, }) -- cgit v1.3