Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Merge branch 'ui/tui-hover-affordance' into verify/tui-interaction-audit

Rach Pradhan47498d305fdd
diff --cc TUI/render.zig
index 979a93d0,453c7717..7cbd79ef
--- a/TUI/render.zig
+++ b/TUI/render.zig
@@@ -9,7 -9,7 +9,8 @@@ const app = @import("app.zig")
const chrome = @import("chrome.zig");
const engine = @import("engine.zig");
const glyphs = @import("glyphs.zig");
+ const hover = @import("hover.zig");
+const scrollback = @import("scrollback.zig");
const layout_cache = @import("layout_cache.zig");
const scrollpaint = @import("scrollpaint.zig");
const selection = @import("selection.zig");
diff --cc scripts/eval-tier1.sh
index 68316b53,da6adbbe..04061491
--- a/scripts/eval-tier1.sh
+++ b/scripts/eval-tier1.sh
@@@ -286,27 -299,15 +286,36 @@@ if wanted tuiguard; the
if python3 scripts/test-tui-event-pacing.py zig-out/bin/graff; then :; else
record_fail tuiguard
fi
+ # Same invariants, read off a VIRTUAL SCREEN instead of raw bytes
+ # (scripts/ptyharness.py): the VT interpreter's own selftest, the ported
+ # mode-balance check, and out-of-band screen corruption fed straight to the
+ # tty.
+ if python3 scripts/test-tui-screenstate.py zig-out/bin/graff; then :; else
+ record_fail tuiguard
+ fi
+ # A tool run's fold header reads like grok-build's: present-progressive
+ # while the call is in flight, past tense on settle, tinted for a second.
+ # Drives a real `sleep` tool loop against the codex mock and reads the
+ # header row's TEXT and its cell BACKGROUNDS off a virtual screen. Both
+ # halves fail on their own when either is removed (verified).
+ if python3 scripts/test-tui-fold-headers.py zig-out/bin/graff; then :; else
+ record_fail tuiguard
+ fi
+ # Streaming markdown: the answer arrives as 1-3 codepoint deltas whose
+ # boundaries land mid-escape, mid-fence and mid-marker. Both the live tail
+ # and the settled row must be free of the model's own CR/SGR bytes.
+ if python3 scripts/test-tui-stream-markdown.py zig-out/bin/graff; then :; else
+ record_fail tuiguard
+ fi
+ # A clickable row has to LOOK clickable. Runs a real tool loop against the
+ # codex mock, then reads CELLS off a virtual screen: the hovered summary
+ # takes the theme's hover background and its ◆ becomes ›, its neighbour is
+ # untouched, leaving restores it, a single click still expands, and a
+ # double click is one net toggle. With the post-pass refused the probe
+ # fails on the tint (verified), so this is a gate on both halves.
+ if python3 scripts/test-tui-hover.py zig-out/bin/graff; then :; else
+ record_fail tuiguard
+ fi
fi
fi