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.
This commit is contained in:
Jeremie Fraeys 2026-03-05 10:57:57 -05:00
parent cb018934e1
commit 3e557e4565
No known key found for this signature in database

View file

@ -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);