Skip to content

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

Python

Exercise clipboard lifecycle in narrow desktop windows

justrachc2f2ea773ed5
diff --git a/apps/native/electron/frontend-runtime.cjs b/apps/native/electron/frontend-runtime.cjs
index aea744b9..e6d1f4ad 100644
--- a/apps/native/electron/frontend-runtime.cjs
+++ b/apps/native/electron/frontend-runtime.cjs
@@ -100,7 +100,7 @@ app.whenReady().then(async () => {
const area = screen.getPrimaryDisplay().workArea;
// Exercise the handoff with Browser open on a small desktop: the initial
// project context can put the composer below the scroll viewport.
- const size = process.env.GRAFF_NARROW_NAV_TEST ? { width: 1004, height: 657 } : process.env.GRAFF_CLI_TEST || process.env.GRAFF_SPLIT_STRESS ? { width: 1024, height: 664 } : { width: 1320, height: 900 };
+ const size = (process.env.GRAFF_NARROW_NAV_TEST || process.env.GRAFF_FRONTEND_NARROW) ? { width: 1004, height: 657 } : process.env.GRAFF_CLI_TEST || process.env.GRAFF_SPLIT_STRESS ? { width: 1024, height: 664 } : { width: 1320, height: 900 };
const bounds = desktop.foreground ? { x: area.x+10, y: area.y+10, width: Math.min(size.width, area.width-20), height: Math.min(size.height, area.height-20) } : size;
win = desktop.createWindow({ ...bounds, webPreferences: {
preload: path.join(__dirname, 'preload.cjs'), sandbox: true, contextIsolation: true, backgroundThrottling: false,
diff --git a/apps/native/package.json b/apps/native/package.json
index 4f303624..e403ed22 100644
--- a/apps/native/package.json
+++ b/apps/native/package.json
@@ -48,7 +48,8 @@
"test:cli": "GRAFF_CLI_TEST=1 bun scripts/test-frontend.mjs",
"install:cli": "bun scripts/install-cli.mjs",
"test:packaged-html": "bun scripts/test-packaged-html.mjs",
- "test:narrow-navigation": "GRAFF_NARROW_NAV_TEST=1 bun scripts/test-frontend.mjs"
+ "test:narrow-navigation": "GRAFF_NARROW_NAV_TEST=1 bun scripts/test-frontend.mjs",
+ "test:clipboard-narrow": "GRAFF_FRONTEND_NARROW=1 bun scripts/test-frontend.mjs"
},
"dependencies": {
"@streamdown/code": "^1.1.1",