mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 03:13:24 +00:00
* feat(collaboration): isolate delegated artifacts and child runs Isolate delegated inputs and outputs behind secure artifact exchange lifecycles. Scope Agent Link tasks by tenant and root agent, and enforce delegation spawn-tree boundaries. Add process-wide child-run admission and preserve logical media paths across native, MCP, and sandbox execution. * fix(collaboration): harden delegated task isolation Enforce tenant and root-agent task scope across migrations and stores. Add exactly-once async completion delivery, delegated sandbox boundaries, and confined artifact and media recovery across runtime surfaces. * fix(collaboration): recover interrupted async tasks * fix(collaboration): normalize persisted child-run status --------- Co-authored-by: ntduc <ntduc@cpp.ai.vn>
17 lines
471 B
Go
17 lines
471 B
Go
package cmd
|
|
|
|
import "github.com/nextlevelbuilder/goclaw/internal/agent"
|
|
|
|
// normalizeAgentOutboundContent keeps silent text out of user-facing messages
|
|
// while allowing attached media to continue through channel delivery.
|
|
func normalizeAgentOutboundContent(content string, mediaCount int) (string, bool) {
|
|
isSilent := content == "" || agent.IsSilentReply(content)
|
|
if !isSilent {
|
|
return content, true
|
|
}
|
|
if mediaCount == 0 {
|
|
return "", false
|
|
}
|
|
return "", true
|
|
}
|