f17ae05f
refactor: the entry dial states its ask through the one helper
a73x 2026-08-29 10:01
Commit message
src/cli/mux_main.zig
| Old | New | ||
|---|---|---|---|
| @@ -332,19 +332,13 @@ pub fn main(args: []const [:0]const u8) !u8 { | |||
| 332 | // tiles from the same call. | 332 | // tiles from the same call. |
| 333 | const r = try handoff.recipeFor(alloc, h.name, false); | 333 | const r = try handoff.recipeFor(alloc, h.name, false); |
| 334 | defer r.deinit(alloc); | 334 | defer r.deinit(alloc); |
| 335 | return wallview.runAttach(alloc, .{ | 335 | // The entry dial: `mux HOST` is the user asking, in person, for |
| 336 | .hand = .{ | 336 | // that box — the one place a start and a fallback line are owed |
| 337 | .host = h.name, | 337 | // to somebody who is sitting there waiting. The other `true` is |
| 338 | .ssh_argv = r.ssh_argv, | 338 | // the picker's Enter, set on a copy in `wall_picker.pickBirth` — |
| 339 | .start_argv = r.start_argv, | 339 | // and the resolver makes every caller say which. |
| 340 | .cache_path = r.cache_path, | 340 | const target = client.HandoffTarget.fromRecipe(h.name, r, h.idle_ms, true); |
| 341 | .idle_ms = h.idle_ms, | 341 | return wallview.runAttach(alloc, .{ .hand = target }, h.session, null, h.idle_ms, h.agent); |
| 342 | // The entry dial: `mux HOST` is the user asking, in person, | ||
| 343 | // for that box — the one place a start and a fallback line | ||
| 344 | // are owed to somebody who is sitting there waiting. | ||
| 345 | .asked = true, | ||
| 346 | }, | ||
| 347 | }, h.session, null, h.idle_ms, h.agent); | ||
| 348 | }, | 342 | }, |
| 349 | .attach => |t| { | 343 | .attach => |t| { |
| 350 | if (t.via) |cmd| return wallview.runAttach( | 344 | if (t.via) |cmd| return wallview.runAttach( |