diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 01:42:25 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | b3d32656413734952bc918c2d4cfd12fede6c214 (patch) | |
| tree | 04386fab10b9ed803ec31251cb733cc32852390a /test/session.zig | |
| parent | 4a33b8d2bd409d4a06205f28e0eb1b4cdaf49889 (diff) | |
| parent | e6e81a6bc544c5ab5a47c21d85e6868020031abb (diff) | |
| download | pardes-b3d32656413734952bc918c2d4cfd12fede6c214.tar.gz pardes-b3d32656413734952bc918c2d4cfd12fede6c214.zip | |
integration: the diff viewer on general mechanisms, and the plumber's first phase, together
A merge of diff-lib and plumber-1; the changelog keeps both sides' entries; core-test 984/984 on tui, the process suite's tree cases pass (fs-help.txt holds both the rows and the plumb lines in its 45).
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/session.zig')
| -rw-r--r-- | test/session.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/session.zig b/test/session.zig index fd956aa9..056966b9 100644 --- a/test/session.zig +++ b/test/session.zig @@ -30,6 +30,8 @@ pub const Session = struct { arena: std.heap.ArenaAllocator, /// Saves the core asked its host for (a host would perform them). saved: usize = 0, + /// The last link the core asked its host to open (a browser would). + link: []const u8 = "", /// The words of the last refusal `refused` answered. said: []const u8 = "", tag: u64 = 0, @@ -277,6 +279,7 @@ pub const Session = struct { fn drain(s: *Session) void { while (pardesOf(s).nextEffect()) |e| switch (e) { .save_file, .save_text => s.saved += 1, + .open_link => |u| s.link = s.arena.allocator().dupe(u8, u.slice()) catch "", // Into the session's state (a database in memory, or its file). .write_dump => pardes.host_io.writeDump(pardesOf(s), pardesOf(s).dump_out.?), .addon => pardesOf(s).perform(e), |
