- commit
- 90e6a30
- parent
- 5319560
- author
- Eric Bower
- date
- 2025-10-13 11:14:31 -0400 EDT
fix(attach): pty_out needs to use binary protocol
1 files changed,
+9,
-0
+9,
-0
1@@ -330,6 +330,15 @@ fn readCallback(
2 _ = posix.write(posix.STDERR_FILENO, "\r\nSession killed\r\n") catch {};
3 return cleanup(ctx, completion);
4 },
5+ .pty_out => {
6+ const parsed = protocol.parseMessage(protocol.PtyOutput, ctx.allocator, msg_line) catch |err| {
7+ std.debug.print("Failed to parse pty_out: {s}\n", .{@errorName(err)});
8+ return .rearm;
9+ };
10+ defer parsed.deinit();
11+
12+ writeToStdout(ctx, parsed.value.payload.text);
13+ },
14 else => {
15 std.debug.print("Unexpected message type in attach client: {s}\n", .{msg_type.toString()});
16 },