8000 feat: kg --offscreen runs kagan in windows that are never shown, for UI checks by aorumbayev · Pull Request #127 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

feat: kg --offscreen runs kagan in windows that are never shown, for UI checks - #127

Merged
aorumbayev merged 13 commits into
mainfrom
feat/headless-e2e
Nov 11, 2026
Merged

aorumbayev merged 13 commits into
mainfrom
feat/headless-e2e

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

Branch feat/headless-e2e.

Reviewed by a fresh reviewer, fixed, and re-checked (SHIP). Gate: fmt, clippy -D warnings, workspace tests, scripts.

A test run can drive the app with `kg ui` and capture its window without a
window appearing on screen. `--offscreen` selects the offscreen presentation:
windows are created with show and focus off, the app is never brought
forward, and `kg ui screenshot` renders the window's own scene to a PNG on
macOS. Other platforms return the typed screenshot-unavailable error.

GPUI Fast's offscreen feature is pinned through kagan-sh/gpui-fast and
kagan-sh/gpui-kit.
The integration test polls the snapshot the way the smoke gate does, since
the window builds after `kg open` returns, and names `kg` in each command.
The third-party notices are regenerated for the new lock, and the product
line ceiling moves to 77878 for the offscreen code.
# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
The eight patched crates came from a rev that did not hold kagan's Windows
fixes, and their fork workspace pulled zed git dependencies into the lock.
All nine gpui-fast crates now come from kagan-sh/gpui-fast offscreen-on-pin,
which is kagan's gpui-fast-windows pin plus the published 0.1.14 crates and
the offscreen feature. The lock has one wgpu version and only kagan-sh git
sources, and the Windows tree has no unused patch.
The guard tests fail when apply does nothing, which is the mutant that
shows a window.
… one colour

A capture with one colour is a blank frame, so the check decodes the PNG and
counts its colours instead of trusting the file size.
…ion 237

Records the pin, the platform limit, and the size ceiling for this round.
# Conflicts:
#	.config/size-budget.txt
#	docs/decisions.md
@aorumbayev
aorumbayev merged commit 154528b into main Nov 11, 2026
19 checks passed
@aorumbayev
aorumbayev deleted the feat/headless-e2e branch November 11, 2026 04:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0