You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(core): preserve subagent text block boundaries - #53040
Preserves paragraph boundaries between independent nonempty text parts in a subagent completion. Joining them with "" turns The files are unchanged. followed by ## Result into The files are unchanged.## Result before the parent receives it.
The helper now joins those parts with "\n\n". It does not trim their content; single-part output and the no-text fallback remain unchanged. The existing subagent fixture emits two parts so foreground, continuation, and background paths exercise the same behavior.
How did you verify your code works?
With Bun 1.4.2 in packages/core:
The targeted regression failed before the change and passed after it.
bun run test test/tool-subagent.test.ts: 15 passed, 0 failed.
bun typecheck: passed.
Changed-file formatting and lint checks passed; an independent review found no remaining defect.
The full suite has not been run locally.
Screenshots / recordings
Not a UI change; the tests assert the delivered parent text.
The PR body already contains Closes #53039: #53039.
The needs:issue label appears to be a false positive for the required v2 target. I checked GraphQL: baseRefName = v2, closingIssuesReferences.totalCount = 0. The default-branch pr-standards workflow only checks that count; the v2 workflow already has the PR-body fallback for this case.
Could that existing fallback be brought to dev, or the incorrect label removed? The PR remains targeted at v2 per CONTRIBUTING.
Rebased onto v2 at f72a103a4b94fb9a467294877bf6243dd99c6bdc; current head is 086a0810144069ccf7d32535695be1cf562a0b51. git range-diff confirms the patches are unchanged.
15 affected Core tests passed. Native pre-push bun run check also passed (36 typecheck tasks).
The upstream test, check and nix-eval runs on this head are action_required, rather than failed tests. Could a maintainer approve the fork workflow runs? Test run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #53039
Type of change
What does this PR do?
Preserves paragraph boundaries between independent nonempty text parts in a subagent completion. Joining them with
""turnsThe files are unchanged.followed by## ResultintoThe files are unchanged.## Resultbefore the parent receives it.The helper now joins those parts with
"\n\n". It does not trim their content; single-part output and the no-text fallback remain unchanged. The existing subagent fixture emits two parts so foreground, continuation, and background paths exercise the same behavior.How did you verify your code works?
With Bun 1.4.2 in
packages/core:bun run test test/tool-subagent.test.ts: 15 passed, 0 failed.bun typecheck: passed.The full suite has not been run locally.
Screenshots / recordings
Not a UI change; the tests assert the delivered parent text.
Checklist