Repository navigation
feat: kg --offscreen runs kagan in windows that are never shown, for UI checks - #127
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Branch feat/headless-e2e.
Reviewed by a fresh reviewer, fixed, and re-checked (SHIP). Gate: fmt, clippy -D warnings, workspace tests, scripts.