Config: support agent mode in wsMaxConcurrent

This commit is contained in:
Adrià Arrufat
2026-04-07 07:32:47 +02:00
parent f7a4f1345f
commit b5b8e79899

View File

@@ -131,7 +131,7 @@ pub fn httpMaxResponseSize(self: *const Config) ?usize {
pub fn wsMaxConcurrent(self: *const Config) u8 {
return switch (self.mode) {
inline .serve, .fetch, .mcp => |opts| opts.common.ws_max_concurrent orelse 8,
inline .serve, .fetch, .mcp, .agent => |opts| opts.common.ws_max_concurrent orelse 8,
else => unreachable,
};
}