fix(core): preserve subagent text block boundaries (#53040)

Co-authored-by: Mikhail Limarenko <m.limarenko@piping.space>
Co-authored-by: Filip Hejmowski <hejmowskifilip@gmail.com>
This commit is contained in:
mlimarenko
2026-10-05 16:38:22 +03:00
committed by GitHub
Unverified
parent 1732ce1eeb
commit f28f62439e
@@ -13,7 +13,8 @@ export function text(message: SessionMessage.Info | undefined) {
message.content
.filter((part) => part.type === "text")
.map((part) => part.text)
.join("") || NO_TEXT
.filter((text) => text.length > 0)
.join("\n\n") || NO_TEXT
)
}