Skip to content

Wait for the new tab before its agent opens a hidden page in the browser test - #1137

Merged
yansfil merged 2 commits into
mainfrom
fix/flaky-1125-hidden-page-wait
Oct 15, 2026
Merged

yansfil merged 2 commits into
mainfrom
fix/flaky-1125-hidden-page-wait

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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

  • 확인한 것: 고치기 전 테스트를 로컬 macOS에서 --repeat-each 8 --retries 0로 돌려 4번 실패, 모두 CI와 같은 page_status_unavailable / view_missing이고 실패한 회차만 View가 d2(앞 레이아웃)였습니다.
  • 확인한 것: 고친 테스트를 --repeat-each 12 --retries 0로 돌려 12번 모두 통과. desktop typecheck, desktop lint 통과.
  • 확인하지 못한 것: Windows와 Linux에서의 반복 실행. 이 PR의 CI가 macOS와 Windows desktop 레인을 돌립니다.

…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
yansfil force-pushed the fix/flaky-1125-hidden-page-wait branch from f0618c0 to 9575df0 Compare October 15, 2026 03:47
@yansfil
yansfil merged commit d48417d into main Oct 15, 2026
15 checks passed
@yansfil
yansfil deleted the fix/flaky-1125-hidden-page-wait branch October 15, 2026 04:13
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.

Flaky test: browser: waiting for a hidden page does not take the operator's keyboard target

1 participant