mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-16 13:05:14 +03:00
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:
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
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user