fix(agent): restore topic helper for exec context

This commit is contained in:
Anton Bogdanovich 2026-05-07 13:47:00 -07:00
parent 0f7c1b1a78
commit d981a2d68b

View file

@ -227,6 +227,13 @@ func (al *AgentLoop) allocateRouteSession(route routing.ResolvedRoute, msg bus.I
}) })
} }
func originTopicID(origin *bus.InboundContext) string {
if origin == nil {
return ""
}
return strings.TrimSpace(origin.TopicID)
}
func (al *AgentLoop) processSystemMessage( func (al *AgentLoop) processSystemMessage(
ctx context.Context, ctx context.Context,
msg bus.InboundMessage, msg bus.InboundMessage,