graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
Keep catalog refresh and Windows ignore reads stable
justrach13f8a81c8f4b
diff --git a/apps/native/components/site/ChatColumn.tsx b/apps/native/components/site/ChatColumn.tsxindex afd8516b..16807c26 100644--- a/apps/native/components/site/ChatColumn.tsx+++ b/apps/native/components/site/ChatColumn.tsx@@ -48,11 +48,11 @@ export default function ChatColumn({ thread, compact, following, register, onOpemodelKey={prompt.modelKey} onModelOpen={prompt.onModelOpen} onModelChange={prompt.onModelChange} commands={prompt.commands} /></div>;return <div ref={hostRef} className="relative flex min-h-0 flex-1 flex-col">- {catalogNotice}<ChatTranscript messages={thread.messages} register={register} following={following}onOpenPath={onOpenPath} onReview={onReview} onAnswer={onAnswer} snapshot={thread.snapshot} onEditPrompt={onEditPrompt} busy={prompt.busy} /><div ref={composerRef} data-chat-composer className={`pointer-events-none absolute inset-x-0 bottom-0 z-10 px-4 ${composer.dock} ${compact ? "py-2" : "pt-16 pb-6 sm:px-8"}`}><div className="pointer-events-auto mx-auto max-w-[720px]">+ {catalogNotice}{thread.snapshot && thread.session ? <SavedSnapshot name={thread.session} cwd={thread.cwd} model={prompt.modelKey}onRefresh={onRefresh} onContinue={onContinue} /> : <><ComposerAgents root={prompt.root} session={thread.session} />diff --git a/src/list_dir.zig b/src/list_dir.zigindex c94cee33..bca6d8f8 100644--- a/src/list_dir.zig+++ b/src/list_dir.zig@@ -118,8 +118,12 @@ fn fill(w: *Walk, node: *Node, rel: []const u8) !void {// Load rules before the bounded scan, regardless of directory entry order.if (rel.len > 0) {- if (dir.openFile(w.io, ".gitignore", .{ .follow_symlinks = false })) |file| {+ if (dir.openFile(w.io, ".gitignore", .{ .follow_symlinks = false })) |opened| {+ 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.+ 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);