Skip to content

Wait for the pane to settle before the worktree test reads its grid - #92

Merged
m4rocks merged 1 commit into
mainfrom
fix-switch-grid-test
Nov 2, 2026
Merged

m4rocks merged 1 commit into
mainfrom
fix-switch-grid-test

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 1, 2026

Copy link
Copy Markdown
Owner

The ignored test switching_between_worktrees failed on a fast machine with "mid-switch the skeleton is on another grid" (36 rows against 39).

The shell panel eases open over Reveal::MS (180 ms) of real time. The test read the pane's terminal grid right after opening the shell, while the panel was still growing. It now waits until the grid is unchanged for one full open duration before reading it. The app is unchanged.

cargo test -- --ignored switching_between_worktrees passed three runs in a row. removing_a_worktree and a_missing_claude_offers_the_setup_window pass, and cargo test gives 294 passed.

Fixes #91

The shell panel eases open over 180 ms of real time, so the pane kept
shrinking after the test read its terminal grid. On a fast machine the
test saw 39 rows and then 36 and failed with "the skeleton is on another
grid". It now waits until the grid holds still for one full open
duration before reading it.
@vercel

vercel Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 1, 2026 11:32pm UTC

@m4rocks
m4rocks merged commit d8a7997 into main Nov 2, 2026
5 checks passed
@m4rocks
m4rocks deleted the fix-switch-grid-test branch November 2, 2026 13:45

This branch was successfully deployed

1 active deployment
Preview — 780077cc Deployed Nov 1, 2026 by vercel[bot]
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.

The switching_between_worktrees headless test fails on this machine

1 participant