Repository navigation
Wait for the new tab before its agent opens a hidden page in the browser test - #1137
Merged
Merged
Conversation
…a dismissed item is a muted line with Undo on hover, only a child's PR names its maker, open missed work gathers at the top
…ser test The test ran hide browser open from a tab Herdr had just created, before the core had projected it. Hide did not know the pane yet, so the open ran with the checkout's authority and landed in the front layout, and the wait's status check, made once the pane was known, asked as the background tab and could not find that view. Wait for the tab in the agent tab bar first, as agent-tab-groups.spec.ts does after a tab create.
yansfil
force-pushed
the
fix/flaky-1125-hidden-page-wait
branch
from
October 15, 2026 03:47
f0618c0 to
9575df0
Compare
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.
Closes #1125
Related: #1131
Summary
데스크톱 e2e
browser: waiting for a hidden page does not take the operator's keyboard target가 macOS에서 자주 두 번 다 실패해 PR들의verify를 막고 있었습니다.테스트가 Herdr로 새 탭을 만든 직후, Hide가 그 탭을 아직 모르는 순간에 그 탭의 pane에서
hide browser open --wait를 실행했기 때문입니다.그 순간의 명령은 탭의 에이전트가 아니라 체크아웃 권한으로 처리돼 앞 화면 레이아웃에 페이지를 열었고, 이어진 상태 확인은 그새 알려진 백그라운드 탭으로 물어 자기 View를 찾지 못했습니다(
page_status_unavailable,detail: view_missing).이제 테스트는 새 탭이 에이전트 탭 막대에 나타난 뒤에 명령을 실행합니다.
agent-tab-groups.spec.ts가 탭을 만든 뒤 쓰는 대기와 같습니다.Review
함께 들어가는 것: #1131의 커밋
09dce73d2(main을 빨갛게 만든session-work-ledger.spec.ts수정)을 그대로 아래에 깔았습니다. #1131은 이 테스트 때문에, 이 PR은 main의 그 실패 때문에 서로의verify를 막아서입니다. 이 PR이 머지되면 #1131의 커밋도 main에 들어갑니다.판단해 주세요: 제품은 바꾸지 않았습니다. 막 만든 탭의 에이전트가 Hide보다 먼저 명령을 보내면 체크아웃 권한으로 처리되는 것은 실제 사용에서는 드물다고 보고 그대로 뒀습니다.
Evidence
--repeat-each 8 --retries 0로 돌려 4번 실패, 모두 CI와 같은page_status_unavailable/view_missing이고 실패한 회차만 View가d2(앞 레이아웃)였습니다.--repeat-each 12 --retries 0로 돌려 12번 모두 통과.desktop typecheck,desktop lint통과.