summaryrefslogtreecommitdiff
path: root/core/dump.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-19 15:52:33 -0300
committerGabriel Schneider <[email protected]>2026-11-19 15:52:33 -0300
commit8fea4ab90a04acd5f20528b00342c23d42f8c83e (patch)
treebe264d2cd8ba57492e227d9d6a65027f3d7680c9 /core/dump.zig
parent553a62bac675bfc0a64254718488d3c8012f533e (diff)
parentee2e79dea10c93c104b70cf1eedccd7ba85003fc (diff)
downloadpardes-8fea4ab90a04acd5f20528b00342c23d42f8c83e.tar.gz
pardes-8fea4ab90a04acd5f20528b00342c23d42f8c83e.zip
integration: the soak on the real session loop and the cli's serve thread joined, with the tape's handle through the kinds, the core's own files and the small ones: pardes-runners-d (10c's last changes) and pardes-handle-2 (the handle's steps 3 to 5 and its two rules as tests), merged without a conflict; gates in the coordinator's ledger
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'core/dump.zig')
-rw-r--r--core/dump.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/dump.zig b/core/dump.zig
index 4775ad63..6f143daa 100644
--- a/core/dump.zig
+++ b/core/dump.zig
@@ -499,7 +499,7 @@ fn loadImage(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, notes: ?*
/// build's dump could not give): a terminal, a new emulator for its shell.
fn ensureKind(p: *Pardes, pane: *pardes.panes.Pane) !void {
if (pane.terminal != null or pane.file != null or pane.addon != null or pane.pdf != null) return;
- if (pardes.tape.authorityOnly("open a terminal")) return error.OutOfMemory;
+ if (p.tape.authorityOnly("open a terminal")) return error.OutOfMemory;
pane.terminal = try pardes.Term.open(pardes.panes.emulatorGpa(p.gpa), @max(1, pane.cols), @max(1, pane.rows));
}
@@ -572,7 +572,7 @@ fn loadAndRevive(gpa: std.mem.Allocator, opts: Options, bytes: []const u8, previ
errdefer p.deinit();
// Its kinds are this process's, not the dump's: the session's it
// replaces, or what the scan found (a dump of another session's).
- p.kinds = if (previous) |old| old.kinds else .started(opts.addons);
+ p.kinds = if (previous) |old| old.kinds else .started(p.tape, opts.addons);
for (p.panes, on_disk, 0..) |slot, was_on_disk, i| if (slot) |pane| {
if (kept) |k| if (k[i] and pane.terminal != null) continue;
revivePane(p, i, pane, was_on_disk);
@@ -876,7 +876,7 @@ pub fn reviveSlot(p: *Pardes, id: usize, s: *Kind.Slot) void {
s.gen = p.kinds.kinds[k].gen;
// A replica has no code to read it for: the authority's outcome is taped.
// The authority's code may not be loaded yet: its open loads it.
- const bytes: ?[]u8 = if ((s.ops != null or !pardes.tape.replaying()) and s.path.len > 0) filesystem.read(p, s.path) catch null else null;
+ const bytes: ?[]u8 = if ((s.ops != null or !p.tape.replaying()) and s.path.len > 0) filesystem.read(p, s.path) catch null else null;
defer if (bytes) |b| p.gpa.free(b);
const kept = .{ s.next_tick, s.views, s.focused };
if (!Kind.reopen(p, id, s, bytes)) {