fix: reload an open run history group while it holds a running run

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-10-26 11:55:29 -07:00
co-authored by Claude Opus 5.5
parent 6c03213fdf
commit e9be04ac55
@@ -156,7 +156,9 @@
const inputsWithPayload = await Promise.all(inputs.map(withPayload))
for (const entry of inputs) {
const open = openGroups[entry.id]
if (open && !open.loading && open.summary !== summary(entry)) {
// A run in progress may still have its args replaced, without the summary changing.
const stale = open?.summary !== summary(entry) || open?.runs.some((run) => run.running)
if (open && !open.loading && stale) {
loadGroup(entry)
}
}