Skip to content

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

Python

test(tui): find the inset composer when checking overlay dock

Cursor Agent5882281a5846
diff --git a/scripts/test-tui-overlay-panels.py b/scripts/test-tui-overlay-panels.py
index 38640f2d..f445cfeb 100755
--- a/scripts/test-tui-overlay-panels.py
+++ b/scripts/test-tui-overlay-panels.py
@@ -153,7 +153,9 @@ def run_width(cols: int) -> list[str]:
# DOCKED: the panel's bottom rule sits directly on the composer.
composer_top = None
for y in range(bot + 1, ROWS):
- if cells(pty, y).startswith(TL):
+ # Composer is grok-build-inset (outer_hpad_left=2); the
+ # overlay panel above it stays full-width and still docks.
+ if cells(pty, y).lstrip().startswith(TL):
composer_top = y
break
if composer_top != bot + 1: