Repository navigation
test(mecatui): fix carryover handoff close flake - #2020
Merged
Merged
Conversation
Synchronize on the handoff close while the UI program is still running, rather than waiting after quitting when the pending command may never execute. Co-authored-by: Mecatl <[email protected]>
jbeda
marked this pull request as draft
September 30, 2026 19:14
Co-authored-by: Mecatl <[email protected]> * origin/main: fix(modules): pin published adapters v0.1.1 (#2023) fix(adapters): use released module dependencies for standalone tests (#2021)
This branch was successfully deployed
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.
Summary
Fixes #1787.
Wait for the old session close while the UI program is still running. The carryover re-create signal only establishes that
CreateSessionWithCarryoverwas entered; quitting immediately could prevent the close command from being scheduled or executed, and waiting after quit could not repair that.Verification
go test -race ./cmd/mecatui/ui -run '^TestCarryoverHandoff$' -count=100passed (before the test fix, it failed 2/100 under race), andgo test ./cmd/mecatui/uipassed.maininto this branch after fix(adapters): use released module dependencies for standalone tests #2021 and fix(modules): pin published adapters v0.1.1 #2023;git diff --check origin/main...HEADpassed. The PR diff remains only the test synchronization change.main.No production lifecycle behavior is changed; this corrects test synchronization on the successful handoff path.