[PR #4360] [CLOSED] [GUI] Seal helper rows when a turn ends so none stay working (#4218) #5021

Closed
opened 2026-11-07 16:32:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4360
Author: @xvcezrqpbxtpzblrt
Created: 10/27/2026
Status: ❌ Closed

Base: main ← Head: fix/4218-lifecycle


📝 Commits (1)

  • c8ded0b [GUI] Seal helper rows when a turn ends so none stay working (#4218)

📊 Changes

3 files changed (+36 additions, -1 deletions)

View changed files

📝 apps/host/server/agent/agent-bridge.mjs (+7 -0)
📝 apps/host/server/agent/children.mjs (+18 -1)
📝 apps/host/tests/agent-children.test.mjs (+11 -0)

📄 Description

## Problem

A helper (subagent) row could stay working after its run ended. The page has no other source for the row, so it kept showing a helper that was no longer running, with a duration that kept growing. Reopening the chat showed the same ghost row.

Fix

  • inishTurn now seals every helper of the run that has not finished: the row is marked interrupted before its stream closes and before the page is told the turn ended.
  • ChildProjector.finished now counts interrupted as final, so a sealed row stops being "live" and its duration stops growing.
  • markStopped() lets a stop the person asked for read "stopped, can continue" instead of "cancelled".

Validation

  • node --test tests/agent-children.test.mjs — 6 pass, 0 fail (includes a new test: a sealed row reads interrupted, is final, and sealing twice changes nothing).
  • Not run: the real Harness end-to-end (needs a running agent), and the page (no browser run). The row frame path is covered by the projector test only.

Scope

This is the seal half of #4218. Kept apart from the row store and the subagent panel so it can be reviewed on its own.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4360 **Author:** [@xvcezrqpbxtpzblrt](https://github.com/xvcezrqpbxtpzblrt) **Created:** 10/27/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/4218-lifecycle` --- ### 📝 Commits (1) - [`c8ded0b`](https://github.com/Niko1221/Strata/commit/c8ded0b8d84cc11517eab4ab767912f283273934) [GUI] Seal helper rows when a turn ends so none stay working (#4218) ### 📊 Changes **3 files changed** (+36 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/agent/agent-bridge.mjs` (+7 -0) 📝 `apps/host/server/agent/children.mjs` (+18 -1) 📝 `apps/host/tests/agent-children.test.mjs` (+11 -0) </details> ### 📄 Description ## Problem A helper (subagent) row could stay **working** after its run ended. The page has no other source for the row, so it kept showing a helper that was no longer running, with a duration that kept growing. Reopening the chat showed the same ghost row. ## Fix - inishTurn now seals every helper of the run that has not finished: the row is marked `interrupted` before its stream closes and before the page is told the turn ended. - `ChildProjector.finished` now counts `interrupted` as final, so a sealed row stops being "live" and its duration stops growing. - `markStopped()` lets a stop the person asked for read "stopped, can continue" instead of "cancelled". ## Validation - `node --test tests/agent-children.test.mjs` — 6 pass, 0 fail (includes a new test: a sealed row reads `interrupted`, is final, and sealing twice changes nothing). - Not run: the real Harness end-to-end (needs a running agent), and the page (no browser run). The row frame path is covered by the projector test only. ## Scope This is the seal half of #4218. Kept apart from the row store and the subagent panel so it can be reviewed on its own. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:32:04 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#5021
No description provided.