Repository navigation
fix: keep the tab on screen when Desk moves it into its group - #2152
Merged
Merged
Conversation
This was referenced Nov 6, 2026
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 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.rsdesk_place_in_group- runtime mutex 안에서 도는 publish 경로(snapshot_delta_payload)의 일부입니다. 추가 작업은 이미 잡은 view에서 active 탭 비교 한 번입니다.Evidence
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.rsempty_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에서는 이 경합이 재현되지 않습니다.getAttribute120초 멈춤입니다.