Repository navigation
Open the Recent palette only after the clicked checkout is in front - #515
Merged
Merged
Conversation
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 9, 2026
…ide#2221) Closes with-hide/hide-private#291 Refs with-hide/hide-private#130 (남은 증상이 있어 열어 둠), Refs with-hide/hide-private#537 (제품 경합은 with-hide/hide-private#722), #515는 코어 라벨 적용 문제로 따로 남김 (with-hide/hide-private#515) ## Summary 데스크톱 e2e 여섯 개가 실패하면 `AggregateError: ... fixture or teardown failed` 한 줄만 남아서, 이슈 네 개가 몇 주 동안 원인을 적지 못했습니다. 실제 원인은 job 로그 안쪽에 있었고 서로 달랐습니다. - 실패 보고: 첫 실패를 테스트의 실패로 그대로 올리고, 정리 단계가 실패하면 단계 이름(`close the app`, `stop the stack`)과 함께 그 아래에 붙입니다. 이슈에 원인이 바로 적힙니다. - with-hide#291: 앱이 처음 `fetch`를 쓸 때 로드가 던지면 처리되지 않은 거절이 되어 테스트가 실패했습니다. 이제 로그 한 줄로만 남습니다. - with-hide#130: 기록된 run 9개 중 `agent_pane_required` 3개를 고쳤습니다. 부모 에이전트가 자식을 띄우기 전에 코어가 부모를 호출자로 알아볼 때까지 기다립니다. 나머지 6개(macOS 4, Windows 1 포함)는 다른 증상이라 이슈를 열어 둡니다. - with-hide#537: 테스트가 분할이 확정된 뒤에 닫기를 보내게 했습니다. 분할 직후 닫으면 대기열을 건너뛰는 제품 쪽 경합은 그대로이고 with-hide/hide-private#722로 따로 남겼습니다. - with-hide#515: 고치지 못했습니다. 이제 실패하면 부모와 자식 행을 덤프해 원인을 보여 줍니다. 자식 행에 문구가 있는데 부모의 요청에만 실리지 않는 것을 확인했습니다. ## Review - **판단해 주세요**: #515는 이 PR에서 닫지 않습니다. 10회 반복에서 `session-workflow`가 4번 실패했고, 실패마다 자식 행의 문구(`record_summary`)는 있는데 부모의 raised ask `what`이 null이며 30초가 지나도 바뀌지 않습니다(지연이 아니라 고정된 상태). 코어의 라벨 적용(`hide-core/src/labels/overlay.rs`, `label.proves`)을 의심하지만 확정하지 못했습니다. 제품 수정은 별도 PR로 가야 합니다. - **알아 두세요**: #537의 제품 경합(`hide-core/src/runtime/operations.rs`의 `queue_pane_close`는 `several`을 엔진이 확정한 레이아웃으로 정해, 분할이 확정되기 전에 원래 pane을 닫으면 대기열을 건너뜀)은 이 PR에서 바꾸지 않았고 with-hide/hide-private#722에서 다룹니다. - **조심해서 볼 파일**: `desktop/src/main/host.ts` - 호스트의 failure path입니다. 요청을 `inBackground`로 보내도 로그 이름과 필드는 그대로입니다. - **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` - `splitPane`은 web e2e 세 스펙과 데스크톱 세 스펙이 함께 씁니다. 탭의 지오메트리 작업이 비는 것을 기다립니다. - **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 가족 픽스처가 `hide agent show here`를 폴링합니다. 읽기 전용 호출이고 스폰은 한 번만 보냅니다. ## Evidence - **확인한 것**: 네 이슈의 CI 로그와 아티팩트를 읽어 안쪽 첫 실패를 찾았습니다. with-hide#515 네 run 모두 같은 `Stopped at a permission request`, with-hide#291 `markResourceTiming`, with-hide#537 분할 확정 전에 나간 닫기입니다. #130은 기록된 run 9개 중 3개가 `agent_pane_required`(Windows 2, macOS 1)이고, macOS 4개는 `session-work-ledger.spec.ts:44` `hover()` 다음 클릭이 "element is not visible"로 시간 초과, Windows 1개는 `launchShell` relaunch 시간 초과입니다. 뒤의 두 증상은 이 PR이 고치지 않았습니다. - **확인한 것**: 데스크톱 타입체크, 린트, 단위 테스트(30개 파일, 315개 통과)와 웹 타입체크, 린트가 통과했습니다. 새 단위 테스트는 `finishNative` 5개, `inBackground` 3개입니다. - **확인한 것**: CI 전체가 통과했습니다(desktop e2e macos 1/2, 2/2 포함). - **확인한 것**: 임시 ref에서 macOS 반복 실행(`--repeat-each 10 --retries 0`, 스펙 7개)을 돌렸습니다. 6개 스펙(agent-handoff, agent-spawn, session-work-ledger, usage, usage-history, restoration)은 10번 모두 통과했습니다. `session-workflow`는 6/10이고 실패 4번은 모두 #515의 증상입니다. - **확인하지 못한 것**: #515의 원인. 이 Mac mini에는 빌드가 없고 부하가 커서 e2e를 로컬에서 돌리지 못했습니다. - **확인하지 못한 것**: #537의 로그는 Herdr 엔진 시절 것이고 Herdr 제거(2026-11-05) 뒤 재발은 없습니다. 같은 경합이 코어 코드에 남아 있어 픽스처만 고쳤고, 현재 엔진에서 재현하지는 못했습니다. <details><summary>Verification record</summary> - base: main `a558c20dd`, head: 이 PR의 head - `bash scripts/verify-web.sh desktop typecheck|lint|test`, `web typecheck|lint` 통과 - `python3 scripts/merge-order.py --branch fix/flaky-desktop-fixture`: 겹치는 열린 PR 없음, Stay as you are </details>
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.
Refs #427
Summary
cmdk.spec.ts의 Recent test가 클릭한 checkout이 앞에 오기 전에 ⌘K를 열 수 있던 것을 고칩니다. 제품 코드는 바꾸지 않습니다.SearchPalette.tsx의front), Recent에서 그 checkout을 뺍니다. test는 alpha를 클릭한 뒤[data-workspace-screen]이 보이기를 기다렸는데, fixture의 화면이 이미 떠 있어 이 대기는 클릭 전부터 참입니다. 클릭의 결과가 snapshot으로 오기 전에 ⌘K가 열리면 앞 checkout은 fixture로 고정되고, 뒤이어 온 snapshot의 recent 목록에서 alpha가 남습니다.aria-current="true"가 될 때까지 기다립니다. 이 값은 ⌘K가 읽는navigator.focused_checkout_id에서 나옵니다. 같은 일을 못 하던[data-workspace-screen]대기는 지웠습니다.Review
web/e2e/cmdk.spec.ts- 기다리는 상태가 ⌘K가 읽는 값과 같은 출처인지 봐 주세요.Evidence
yes8개) 아래 이 test 12/12 통과. web lint(e2e 크기 예산 포함) 통과.