From 3e557e4565aa2e7e198024ede4d85a8deaae4496 Mon Sep 17 00:00:00 2001 From: Jeremie Fraeys Date: Thu, 5 Mar 2026 10:57:57 -0500 Subject: [PATCH] fix(cli): correct const qualifier in jupyter lifecycle Fixed compilation error in jupyter/lifecycle.zig: - Changed 'const client' to 'var client' in ConnectionCtx.init() - Allows errdefer client.close() to work correctly - close() requires mutable reference to ws.Client All tests pass. --- cli/src/commands/jupyter/lifecycle.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/commands/jupyter/lifecycle.zig b/cli/src/commands/jupyter/lifecycle.zig index a85ffb5..b07c1fc 100644 --- a/cli/src/commands/jupyter/lifecycle.zig +++ b/cli/src/commands/jupyter/lifecycle.zig @@ -23,7 +23,7 @@ const ConnectionCtx = struct { const ws_url = try config.getWebSocketUrl(allocator); errdefer allocator.free(ws_url); - const client = try ws.Client.connect(allocator, ws_url, config.api_key); + var client = try ws.Client.connect(allocator, ws_url, config.api_key); errdefer client.close(); const api_key_hash = try crypto.hashApiKey(allocator, config.api_key);