Repository navigation
Conversation
yansfil
marked this pull request as ready for review
November 6, 2026 10:47
Contributor
Author
|
임시 측정 PR이라 머지 없이 닫습니다. 결과는 #2152 Evidence에 있습니다. |
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 9, 2026
…ide#2152) Closes with-hide/hide-private#466 Related: with-hide/hide-private#635 (paired docs/desk.md change) ## Summary Desk가 시작한 세션의 탭을 `◆ Desk` 그룹으로 옮길 때, 그 탭이 지금 화면에 떠 있는 탭이면 화면이 비거나 다른 탭으로 바뀌었습니다. 옮긴 뒤에도 앞 그룹을 원래 그룹(Ungrouped)으로 되돌려 놓았기 때문입니다. 이제 옮기는 탭이 화면의 탭이면 앞 그룹이 그 탭을 따라 `◆ Desk`로 가서, 같은 탭이 화면과 키보드에 그대로 남습니다. 다른 탭을 옮길 때는 전과 같이 앞 그룹을 바꾸지 않습니다. CI에서 37번 기록된 desk-lane B41의 120초 타임아웃이 이 문제였습니다. 스크린샷 없음: 바뀐 것은 화면이 그대로 남는다는 것이고, 달라 보이는 곳은 그룹 줄의 이름(Ungrouped -> ◆ Desk) 하나뿐이며 web 코드는 건드리지 않았습니다. ## Review - **판단해 주세요**: 화면의 탭을 옮길 때 앞 그룹이 `◆ Desk`로 바뀌는 것이 "화면을 바꾸지 않는다"(desk.md B20)의 올바른 해석인지. 대안은 그 탭을 화면에서 내려갈 때까지 옮기지 않는 것인데, 상태가 하나 더 생겨 고르지 않았습니다. - **조심해서 볼 파일**: `herdr-core/src/runtime/desk/jobs.rs` `desk_place_in_group` - runtime mutex 안에서 도는 publish 경로(`snapshot_delta_payload`)의 일부입니다. 추가 작업은 이미 잡은 view에서 active 탭 비교 한 번입니다. ## Evidence - **멈춘 단계**: 실패한 CI 두 런(42148906445, 42147984313, Linux shard 4)의 error-context 둘 다 `desk-lane.spec.ts`의 `const front = ...[data-pane-view][data-focused="true"]...getAttribute`에서 120초를 다 썼습니다. 페이지 스냅샷: 사이드바엔 `◆ Desk > Tab 1`(fixture의 유일한 탭), 작업 영역은 `Ungrouped`의 "Start your first tab", 그려진 pane 없음. (lane은 trace zip을 올리지 않아 스냅샷과 hided 로그로 봤습니다.) - **원인의 순서**: `refresh_desk_jobs`는 publish 끝에서 탭을 옮깁니다. 다음 publish의 `sync_agent_selection`이 먼저 돌면 앞 그룹이 포커스된 탭을 따라가 통과하고, 그 사이 엔진의 session 답이 먼저 오면 빈 그룹을 읽고 보이는 탭과 키보드 pane을 지워(`session.rs` empty_group 분기) 더는 따라갈 탭이 없어 영영 빈 화면이 됩니다. - **확인한 것**: 새 런타임 테스트 `a_session_desk_started_in_the_tab_in_front_stays_on_screen_in_the_desk_group`이 main에서 실패(`left: (None, Some("w-order:t2"))`, 앞 그룹 Ungrouped에 다른 탭), 수정 후 통과. Desk 런타임 테스트 57개 통과. - **확인한 것**: `desk-lane.spec.ts` 전체 `--repeat-each 20` (macOS 로컬, `scripts/verify-web.sh web e2e`) 80/80 통과. 같은 반복을 main 코드로 B41만 돌린 것도 20/20 통과라, 로컬 macOS에서는 이 경합이 재현되지 않습니다. - **확인한 것 (Linux, 수정 전후)**: 임시 PR 둘에서 desk-lane 네 테스트를 각각 20번씩, 재시도 없이 Linux 6 shard에 나눠 돌렸습니다. 둘의 차이는 이 수정 하나입니다. - 수정 있음 with-hide#2156, run 42209054020: Linux 80/80 통과, Windows e2e 80/80 통과. - 수정 되돌림 with-hide#2157, run 42209058865: Linux 76/80, B41만 4/20 실패(#3, #8, with-hide#14, with-hide#18). 넷 다 CI와 같은 `getAttribute` 120초 멈춤입니다. - 두 PR은 머지 없이 닫고 브랜치를 지웠습니다. - **확인하지 못한 것**: 로컬 macOS에서는 main도 20/20 통과해 이 경합이 재현되지 않습니다(위 Linux 수정 전후로 대신 확인). Desk가 꺼져 있어도 배치가 도는 것은 문서가 막지 않아 이번 범위 밖으로 두었습니다.
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.
Throwaway CI probe for #2152 (with-hide/hide-private#466):
desk-lane.spec.tsonly, each test registered 20 times, no retry, dealt over the Linux e2e shards. Closed without merging once the run ends.스크린샷 없음: 측정용 임시 PR이라 화면 변경이 없습니다.