8000 fix(ui): number only kagan windows in kg ui by aorumbayev · Pull Request #150 · kagan-sh/kagan · GitHub
[go: up one dir, main page]

Skip to content

fix(ui): number only kagan windows in kg ui - #150

Merged
aorumbayev merged 5 commits into
mainfrom
fix/ui-window-numbering
Nov 13, 2026
Merged

aorumbayev merged 5 commits into
mainfrom
fix/ui-window-numbering

Conversation

@aorumbayev
Copy link
Copy Markdown
Member

Why

kg ui numbered every GPUI window, including the hidden window each plugin opens when it loads. A plugin that loaded before the main window (one with ui.status, or any plugin in an --offscreen app before kg open) took index 0, so a default kg ui snapshot or kg ui screenshot hit an empty hidden window and authors had to pass --window 1.

What

  • kg ui numbers and counts only kagan's own windows (the main window and About), in one function used by every window lookup, the "numbered 0 to N" message, and screenshots.
  • Regression test: a plugin loads before the main window; a default snapshot must return the main window's elements. It fails without the fix.
  • docs/ui-driver.md, docs/behaviour.md, decision 273, size ceiling with its Cost line.

Draft until the independent review and the Windows and Linux jobs pass.

A plugin that loads before the main window opens got window 0 in kg ui, because every open window was numbered. kg ui now numbers only kagan's own windows: the main window and the About window. The regression test loads a status plugin first and checks that window 0 is the main window.
@aorumbayev
aorumbayev marked this pull request as ready for review November 13, 2026 02:10
@aorumbayev
aorumbayev merged commit bbbc13d into main Nov 13, 2026
20 checks passed
@aorumbayev
aorumbayev deleted the fix/ui-window-numbering branch November 13, 2026 02:10
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