diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-20 00:03:29 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-20 00:03:29 -0300 |
| commit | 3a3601f984d25f1e03cee3ac47da7eeb2548e511 (patch) | |
| tree | 445331cb8ad346989c4e4f6a3ceff54411064e4a /dev | |
| parent | 8a1f65a2d374796b9b5559c4aab87c8d1e8f6e68 (diff) | |
| parent | 528530ed065b2059d16b08efd92103d1dbbccc31 (diff) | |
| download | pardes-3a3601f984d25f1e03cee3ac47da7eeb2548e511.tar.gz pardes-3a3601f984d25f1e03cee3ac47da7eeb2548e511.zip | |
integration: a far client's seven small faults on the renamed tree: pardes-far-faults (a refocus that no longer asks the session's host about a newer build; a drag in a kind's pane grown too short; a draw's token that no rollback takes back; a text's declarations dumped so a joined client's query reads what the session's does; a search that goes on at once on a far client; two tests of what cannot happen) and pardes-merge24, merged without a textual conflict; the coordinator's gate in the ledger (reorg/merge25)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev')
| -rw-r--r-- | dev/Host.zig | 3 | ||||
| -rw-r--r-- | dev/gui/gui.zig | 2 | ||||
| -rw-r--r-- | dev/tui/tui.zig | 14 |
3 files changed, 6 insertions, 13 deletions
diff --git a/dev/Host.zig b/dev/Host.zig index 24df3895..a23c9ef5 100644 --- a/dev/Host.zig +++ b/dev/Host.zig @@ -28,9 +28,6 @@ pub const VTable = struct { /// Upgrade: this process exec'd as the pardes installed since, at /// the step's end (upgrade.zig); `pane` hears why if it cannot be. upgrade: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id) void = null, - /// Whether a newer pardes is installed at the path this process - /// started from, to be said once (upgrade.zig): asked at a focus-in. - newer_build: ?*const fn (ctx: ?*anyopaque) bool = null, spawn: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, cwd: []const u8) void = null, pty_write: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, bytes: []const u8) void = null, pty_resize: ?*const fn (ctx: ?*anyopaque, pane: pardes.Pane.Id, cols: u16, rows: u16) void = null, diff --git a/dev/gui/gui.zig b/dev/gui/gui.zig index 3aed1ed6..9695bf83 100644 --- a/dev/gui/gui.zig +++ b/dev/gui/gui.zig @@ -3540,7 +3540,7 @@ fn kindJob(ctx: ?*anyopaque, id: pardes.Pane.Id, serial: u32, token: u32) void { fn search(ctx: ?*anyopaque, gen: u32) void { const s = shellOf(ctx); if (s.threads_ok) return pardes.Stream.start(s.io, s.gpa, s.core, gen, s.queue, Queue.pushSearch); - pardes.Stream.runHere(s.core, gen); + pardes.Stream.runHere(s.core, gen, true); } /// Handover `seq`'s dump to its file, and a worker to carry it to another diff --git a/dev/tui/tui.zig b/dev/tui/tui.zig index 1f6b9a49..d7ea8ed6 100644 --- a/dev/tui/tui.zig +++ b/dev/tui/tui.zig @@ -1274,7 +1274,6 @@ const Shell = struct { .detach = detach, .adopt = adopt, .upgrade = upgradeAsked, - .newer_build = newerBuild, .spawn = spawn, .pty_write = ptyWrite, .pty_resize = ptyResize, @@ -1392,12 +1391,6 @@ const Shell = struct { s.adoptions.ask(s.core, pane); } - /// A client's own build is not the session's to say (its core's host - /// is the session's, through the tape). - fn newerBuild(ctx: ?*anyopaque) bool { - return of(ctx).client == null and upgrade.newer(); - } - fn upgradeAsked(ctx: ?*anyopaque, id: pardes.Pane.Id) void { const pane = id.index(); const s = of(ctx); @@ -1739,7 +1732,10 @@ const Shell = struct { c.link.gone = true; return true; }, - .focus_in => s.feed(.{ .focus = true }), + .focus_in => { + s.feed(.{ .focus = true }); + if (s.client == null) upgrade.noticeNewer(s.core); + }, .focus_out => { s.feed(.pointer_leave); s.feed(.{ .focus = false }); @@ -2220,7 +2216,7 @@ const Shell = struct { fn search(ctx: ?*anyopaque, gen: u32) void { const s = of(ctx); if (s.threads_ok) return pardes.Stream.start(s.io, s.gpa, s.core, gen, s, deliverSearch); - pardes.Stream.runHere(s.core, gen); + pardes.Stream.runHere(s.core, gen, true); } /// A draw (api.draw) on a worker, as a job is. |
