diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-05 21:02:51 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-05 22:08:14 -0300 |
| commit | d8e5fc18f5923c4213de1cb4105a677e725200af (patch) | |
| tree | ec9adccb3ccb3118f1422777180b766cce55ba2b /test/fs_namespace.zig | |
| parent | 5b135dc60d4e9f77be0a4f883439f3200ac30d30 (diff) | |
| download | pardes-d8e5fc18f5923c4213de1cb4105a677e725200af.tar.gz pardes-d8e5fc18f5923c4213de1cb4105a677e725200af.zip | |
fields #41, a view's frontend is one field: windowed, native_images and native_image_patches, the three fields Event.frontend carries, are the session's frontend, a Frontend, so update's frontend arm is p.frontend = f where it copied them one by one; native_image_patches, each process's own, is said so on Frontend (its replica .local), where the session's list said it, so the digest and a dump leave it out as before, and the tape watches frontend where it watched the three (a host's write of patches alone, which only drawing reads, is no longer a set of its own on the tape); the reads in 22 files say p.frontend.native_images (macos.zig's by text, built nowhere here; dump.zig, the persistence agent's, only where it names native_images); views.zig's per-view fields name frontend; a dump written before this change loads it as the default once: an Upgrade or Restore from it comes back as a terminal's view without native images until its frontend says otherwise (a window's says so at once), and the wire's semantics change; gates on tui: core-test 960/960, behaviour-test 238/238, pane-test 171/172 (1 skipped), snap all 108 scripts ok; gui unit-test 1518/1519 (1 skipped)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'test/fs_namespace.zig')
| -rw-r--r-- | test/fs_namespace.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fs_namespace.zig b/test/fs_namespace.zig index 00b2461a..d54eb9a2 100644 --- a/test/fs_namespace.zig +++ b/test/fs_namespace.zig @@ -89,7 +89,7 @@ test "transactional restore preserves host capabilities and advances pane identi p.lsp_ask.seq = 41; p.pipe.seq = 73; if (@hasField(pardes.CellPixels, "w")) p.cell_pixels = .{ .w = 9, .h = 18 }; - p.native_images = true; + p.frontend.native_images = true; p.fs.socket_path = "/tmp/session.sock"; p.fs.tcp_address = .{ .ip4 = .loopback(5640) }; try pardes.dump.dumpState(p); @@ -98,7 +98,7 @@ test "transactional restore preserves host capabilities and advances pane identi try std.testing.expectEqual(@as(u32, 41), restored.lsp_ask.seq); try std.testing.expectEqual(@as(u32, 73), restored.pipe.seq); try std.testing.expectEqual(p.cell_pixels, restored.cell_pixels); - try std.testing.expect(restored.native_images); + try std.testing.expect(restored.frontend.native_images); // The dump's pane, its serial too; a new one is past the old session's. try std.testing.expectEqual(pane.serial, restored.panes[0].?.serial); try std.testing.expect(restored.next_serial >= p.next_serial); |
