From 237071bd4865f0220c35c8c37895c8dba48aed84 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 30 Sep 2026 21:25:52 -0300 Subject: Attach in a detached session is refused with words: bare is wrong #args, a name no session has is "no such session" A detached session's core has no frontend loop to take an Attach, so the word was asked and never answered: a ctl write of it succeeded and nothing happened. The core now knows it is a detached session's, and Attach there says why: bare names no session but itself, a name with no session behind it is said so, and one that is a session is told to be attached from a frontend. Co-Authored-By: Claude Opus 5.5 --- src/detached/server.zig | 1 + 1 file changed, 1 insertion(+) (limited to 'src/detached') diff --git a/src/detached/server.zig b/src/detached/server.zig index 001acc47..2b87bd60 100644 --- a/src/detached/server.zig +++ b/src/detached/server.zig @@ -1243,6 +1243,7 @@ pub fn run(init: std.process.Init, opts: pardes.Options, name: []const u8) !void // and an attaching frontend its own. options.cols = detached_cols; options.rows = detached_rows; + options.detached_session = true; options.image_allocator = allocs.image; options.pdf_allocator = allocs.pdf; options.tree_sitter_allocator = allocs.tree_sitter; -- cgit v1.3