[PR #4437] [CLOSED] [GUI] Open a helper's conversation, answer it, and keep the draft when a send fails #5048

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

📋 Pull Request Information

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

Base: main ← Head: gui/helper-panel-027


📝 Commits (5)

  • 1f950fd [GUI] Open a helper's conversation, write to it, and keep what was typed when a send fails
  • 75d1624 gui: the send outcome, the row types and the popover that must not close the panel
  • 7b655da ci: re-run the checks
  • d943756 gui: the helper-panel tests over the real host
  • fda39c6 gui: the row store the helper panel's bridge imports

📊 Changes

17 files changed (+2226 additions, -58 deletions)

View changed files

📝 apps/host/server/agent/agent-bridge.mjs (+310 -9)
➕ apps/host/server/agent/agent-rows.mjs (+332 -0)
📝 apps/host/server/agent/children.mjs (+265 -6)
📝 apps/host/src/components/Markdown.tsx (+11 -3)
📝 apps/host/src/components/Popover.tsx (+5 -1)
📝 apps/host/src/components/SubagentRow.tsx (+157 -6)
📝 apps/host/src/lib/store.ts (+115 -12)
📝 apps/host/src/lib/types.ts (+5 -1)
📝 apps/host/src/screens/Chat.tsx (+359 -15)
📝 apps/host/src/styles/annotation-fixes.css (+13 -0)
📝 apps/host/tests/agent-children.test.mjs (+70 -0)
📝 apps/host/tests/agent-host.test.mjs (+60 -0)
➕ apps/host/tests/agent-subagent-chat.test.mjs (+89 -0)
➕ apps/host/tests/agent-subagent-transcript.test.mjs (+119 -0)
📝 apps/host/tests/agent-tools-settings.test.mjs (+3 -3)
➕ apps/host/tests/chat-send-draft.test.mjs (+309 -0)
📝 apps/host/tests/no-model-chat.test.mjs (+4 -2)

📄 Description

Depends on #4435 for its two routes (GET /api/chat/subagents/:childId, POST /api/chat/subagent/prompt) and for the send outcome in store.ts: those live in files that PR also changes. Without it this branch's panel has nothing to call. Review #4435 first.

Problem

  • A helper row was one line of text. There was no way to read what the helper actually said, and no way to answer it.
  • A helper that had been stopped said "can continue" and then there was nothing to continue it with.
  • When a send was refused, the draft and the quotes had already been cleared.

Result

  • Clicking a helper row opens its conversation, refreshed while it runs, bounded (200 entries / 64 K characters per helper, 100 helpers).
  • A box sends a message to the helper; interrupted rows also get Continue, in the person's language.
  • Sends report an outcome; only an accepted send clears the draft and quotes, and a refusal restores them once, in the session they came from.
  • The run bar shows how many helpers work, with one stop for all.

Validation

node --test tests/agent-subagent-transcript.test.mjs tests/agent-subagent-chat.test.mjs tests/chat-send-draft.test.mjs tests/agent-children.test.mjs → 39 pass, 0 fail (the last one needs STRATA_HARNESS_DIR for the real-Harness cases).

Limits

  • After a host restart a helper needs one ordinary chat message before it accepts one; the panel says so.
  • A helper continued outside a chat turn cannot be stopped from its row.
  • No browser run: the click path is covered by source assertions and store tests.

🔄 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/4437 **Author:** [@xvcezrqpbxtpzblrt](https://github.com/xvcezrqpbxtpzblrt) **Created:** 10/28/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `gui/helper-panel-027` --- ### 📝 Commits (5) - [`1f950fd`](https://github.com/Niko1221/Strata/commit/1f950fd2e56232236a6918362e0b3f6828561197) [GUI] Open a helper's conversation, write to it, and keep what was typed when a send fails - [`75d1624`](https://github.com/Niko1221/Strata/commit/75d1624265c6e8c3e27321b192ce7444506664e3) gui: the send outcome, the row types and the popover that must not close the panel - [`7b655da`](https://github.com/Niko1221/Strata/commit/7b655dadc32e2ba3ede543ddc43963455882e670) ci: re-run the checks - [`d943756`](https://github.com/Niko1221/Strata/commit/d943756ddff009dd097a58eff8ff6d8e64af44d3) gui: the helper-panel tests over the real host - [`fda39c6`](https://github.com/Niko1221/Strata/commit/fda39c6b64754c46532aef4f65c5e2ec951c707f) gui: the row store the helper panel's bridge imports ### 📊 Changes **17 files changed** (+2226 additions, -58 deletions) <details> <summary>View changed files</summary> 📝 `apps/host/server/agent/agent-bridge.mjs` (+310 -9) ➕ `apps/host/server/agent/agent-rows.mjs` (+332 -0) 📝 `apps/host/server/agent/children.mjs` (+265 -6) 📝 `apps/host/src/components/Markdown.tsx` (+11 -3) 📝 `apps/host/src/components/Popover.tsx` (+5 -1) 📝 `apps/host/src/components/SubagentRow.tsx` (+157 -6) 📝 `apps/host/src/lib/store.ts` (+115 -12) 📝 `apps/host/src/lib/types.ts` (+5 -1) 📝 `apps/host/src/screens/Chat.tsx` (+359 -15) 📝 `apps/host/src/styles/annotation-fixes.css` (+13 -0) 📝 `apps/host/tests/agent-children.test.mjs` (+70 -0) 📝 `apps/host/tests/agent-host.test.mjs` (+60 -0) ➕ `apps/host/tests/agent-subagent-chat.test.mjs` (+89 -0) ➕ `apps/host/tests/agent-subagent-transcript.test.mjs` (+119 -0) 📝 `apps/host/tests/agent-tools-settings.test.mjs` (+3 -3) ➕ `apps/host/tests/chat-send-draft.test.mjs` (+309 -0) 📝 `apps/host/tests/no-model-chat.test.mjs` (+4 -2) </details> ### 📄 Description **Depends on #4435** for its two routes (`GET /api/chat/subagents/:childId`, `POST /api/chat/subagent/prompt`) and for the send outcome in `store.ts`: those live in files that PR also changes. Without it this branch's panel has nothing to call. Review #4435 first. ## Problem - A helper row was one line of text. There was no way to read what the helper actually said, and no way to answer it. - A helper that had been stopped said "can continue" and then there was nothing to continue it with. - When a send was refused, the draft and the quotes had already been cleared. ## Result - Clicking a helper row opens its conversation, refreshed while it runs, bounded (200 entries / 64 K characters per helper, 100 helpers). - A box sends a message to the helper; `interrupted` rows also get `Continue`, in the person's language. - Sends report an outcome; only an accepted send clears the draft and quotes, and a refusal restores them once, in the session they came from. - The run bar shows how many helpers work, with one stop for all. ## Validation `node --test tests/agent-subagent-transcript.test.mjs tests/agent-subagent-chat.test.mjs tests/chat-send-draft.test.mjs tests/agent-children.test.mjs` → 39 pass, 0 fail (the last one needs `STRATA_HARNESS_DIR` for the real-Harness cases). ## Limits - After a host restart a helper needs one ordinary chat message before it accepts one; the panel says so. - A helper continued outside a chat turn cannot be stopped from its row. - No browser run: the click path is covered by source assertions and store tests. --- <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:18 +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#5048
No description provided.