Skip to content

fix(automation): drop closed windows from the snapshot window list - #445

Open
phall1 wants to merge 1 commit into
vercel-labs:mainfrom
phall1:upstream/drop-closed-windows
Open

phall1 wants to merge 1 commit into
vercel-labs:mainfrom
phall1:upstream/drop-closed-windows

Conversation

@phall1

@phall1 phall1 commented Sep 19, 2026

Copy link
Copy Markdown

Closed windows were still listed in the automation snapshot. The snapshot now omits them.

@vercel

vercel Bot commented Sep 19, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

A closed window keeps its runtime table slot until its label or id is
re-created -- `removeWindowAt` runs at re-creation, not at close -- so
`self.windows[0..window_count]` still carries every window the app has
ever declared, with `info.open = false` on the dead ones. The snapshot
walked that span unfiltered and published a `window @wN` line for each,
while `listViews` and `appendAutomationWidgets` correctly found nothing
under them: a ghost window with no views.

That misleads exactly the assertion a smoke test wants to make. A test
that opens a settings window, closes it, and asserts the window COUNT
returned to one passed against a window that is not on screen, and a
test asserting the reconciled window set matched saw closed windows in
it forever.

Filter on `info.open` and advance the output index only for the windows
that survive, so the published slice is the windows that are actually up.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@phall1
phall1 force-pushed the upstream/drop-closed-windows branch from ff687f8 to d8140c2 Compare September 20, 2026 00:01
@phall1
phall1 marked this pull request as ready for review September 20, 2026 05:19

This branch has not been deployed

No deployments
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