graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Use positional Windows ignore reads and wait for wide tab layout
justrachae827d78f279
diff --git a/apps/native/electron/tab-drag-visual.cjs b/apps/native/electron/tab-drag-visual.cjsindex adf615d5..cbdb7c53 100644--- a/apps/native/electron/tab-drag-visual.cjs+++ b/apps/native/electron/tab-drag-visual.cjs@@ -11,6 +11,8 @@ async function runTabDrag({win, origin, output}) {const wait=async code=>{for(let i=0;i<100;i++){if(await js(code))return;await new Promise(r=>setTimeout(r,50));}throw Error(`Tab drag condition failed: ${code}`);};const ready=async()=>{await wait(`!!document.querySelector('[data-workspace-ready="true"] textarea[aria-label="Prompt"]')`);+ // setSize returns before the responsive navigation has committed wide mode.+ await wait(`innerWidth>=1024 && !!document.querySelector('[data-navigation-panel]:not([popover])')`);if(await js(`!!document.querySelector('[aria-label="Collapse sidebar"]')?.checkVisibility()`))await click('[aria-label="Collapse sidebar"]');await wait(`!!document.querySelector('[data-session-navigation="tabs"]')`);};diff --git a/src/list_dir.zig b/src/list_dir.zigindex bca6d8f8..576c8ac4 100644--- a/src/list_dir.zig+++ b/src/list_dir.zig@@ -122,11 +122,12 @@ fn fill(w: *Walk, node: *Node, rel: []const u8) !void {var file = opened;defer file.close(w.io);// Zig opens no-follow files asynchronously on Windows but marks the- // returned handle synchronous; readers need the actual handle mode.+ // returned handle synchronous. Positional reads need the actual mode+ // and an explicit offset; streaming reads on that handle fail.if (@import("builtin").os.tag == .windows) file.flags.nonblocking = true;if ((try file.stat(w.io)).kind == .file) {var buffer: [4096]u8 = undefined;- var reader = file.readerStreaming(w.io, &buffer);+ var reader = file.reader(w.io, &buffer);const text = try reader.interface.allocRemaining(w.arena, .limited(64 * 1024));const extra = try gitignore.parse(w.arena, text, abs);try w.rules.appendSlice(w.arena, extra);