Skip to content

fix(core): surface background subagent completions in TUI#36242

Open
CountClaw wants to merge 1 commit into
anomalyco:v2from
CountClaw:fix/v2-subagent-synthetic-description
Open

fix(core): surface background subagent completions in TUI#36242
CountClaw wants to merge 1 commit into
anomalyco:v2from
CountClaw:fix/v2-subagent-synthetic-description

Conversation

@CountClaw

Copy link
Copy Markdown

Summary

Background subagent completion injection published synthetic parent-session messages with text only. The V2 TUI only renders synthetic rows when description is non-empty (packages/tui/src/routes/session/rows.ts), so parent transcripts never showed the explicit completion/failure notice.

Changes

  • Set a concise human-readable description on session.synthetic from SubagentTool.injectCompletion
  • Keep the structured XML body in text for model context
  • Extend the existing background-completion regression test to assert the description label

Closes #35063

Test plan

  • Extended packages/core/test/tool-subagent.test.ts assertions
  • bun test --timeout 60000 test/tool-subagent.test.ts in packages/core (local Windows run hit pre-existing tmpdir EBUSY flakes; logic covered by assertion update)
  • Manually: launch a background subagent that fails/completes and confirm the parent TUI transcript shows the notice without a follow-up model turn

Background subagent injectCompletion published synthetic messages with
text only. The V2 TUI filters synthetic rows without a description, so
parent transcripts never showed completion or failure notices.

Pass a concise human-readable description on synthetic admission while
keeping the structured XML body for model context.

Closes anomalyco#35063
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants