Repository navigation
오버레이가 열리는 순간 브라우저 페이지를 숨기고, 툴팁은 페이지를 피해 엽니다 - #328
Merged
Merged
Conversation
… hints clear of pages A page a shell layer meets is now hidden in the same sync that first sees the layer, with the still taken while the page was idle drawn at once (or nothing), and a fresh capture asked for ahead of that sync replaces it. Each shown page of the front Workspace keeps one still, taken after half a second of quiet when its load finishes, its address or slot size changes, or it comes into view. The Tools overlay of a narrow window is a layer the sync looks for and tells the sync when it opens and closes; it does not keep the sync running every frame. A hint measures itself when it mounts and opens on the first side that fits the window clear of the shown pages, and keeps its own side when there are none.
… closed display's still A quiet wait that runs out while a capture of the page is already on its way keeps its trigger, and the answer flushes again, so a load or a resize during a slow capture still gets its still. A display that closes while covered drops its still and its freeze with it. A tooltip content ref a caller passes is kept beside the measuring one, and the host's capture logs name the display. The e2e waits for an idle still taken after a resize instead of sleeping.
yansfil
added a commit
that referenced
this pull request
Oct 30, 2026
…rt (#1855) Closes with-hide/hide-private#324 Related: with-hide/hide-private#328, with-hide/hide-private#326, #1841 ## Summary Windows 테스트 도우미 `runBounded`가 자식 프로세스 트리 일부를 놓치던 문제(#324)를 고칩니다. 이제 자식을 시작하는 순간 Windows Job object에 넣고(`hide-processes run`), 끝날 때 job이 빌 때까지 확인합니다. 나중에 프로세스 목록을 다시 읽어 트리를 찾던 방식은 없어졌습니다. #328(창이 셸을 30초 못 그림)은 다음에 실패할 때 어느 단계가 멈췄는지 남도록, 실패 때만 기록을 남깁니다. #1841의 Windows 7.4초는 종료 결함이 아니었습니다(Evidence). 스크린샷 없음: 테스트 도우미와 fixture만 바뀌고 제품 화면은 바뀌지 않습니다. ## Review - **판단해 주세요**: 첫 컴파일(`hide-processes` 자신)은 아직 job을 만들 도구가 없어, 프로세스 하나짜리 단계로 나눴습니다: `clang -c`, 그리고 clang이 `-###`로 알려 준 lld-link 한 번. - 비교한 대안: 지금처럼 `clang -o` 한 번은 clang이 link.exe와 vctip.exe를 자식으로 띄워 #324의 경우 1이 그대로 남습니다. - launcher 바이너리를 커밋하면 저장소에 빌드 산출물이, Rust owner로 만들면 web unit suite에 cargo 빌드가, PowerShell `Add-Type` job은 csc.exe 자식과 수십 초 cold start가 붙습니다. - launcher는 이미 소스 hash당 한 번만 빌드되고 `runBounded`는 그것만 씁니다. 남는 것은 그 한 번의 빌드라 단계 분리를 골랐고, Windows unit suite가 세 단계가 각각 프로세스 1개임을 job으로 셉니다. - **조심해서 볼 파일**: `web/e2e/shims/hide-processes.c` - 프로그램을 job 안에서 만드는 것(`PROC_THREAD_ATTRIBUTE_JOB_LIST`), 받은 인자를 그대로 넘기는 `after_argument`, 상속 handle을 stdout/stderr/NUL로 제한한 것, job을 다시 끝내며 비었는지 세는 루프. - 시작 전 준비가 실패하면 `unstarted`, 시작 뒤 wait나 exit status 읽기가 실패하면 job을 끝내고 빈 것을 확인한 뒤 `failed`, job을 끝내거나 셀 수 없으면 `unconfirmed`로 Win32 오류와 함께 보고합니다. - 첫 컴파일은 clang이 cc1을 따로 띄우게 하는 `CC_PRINT_PROC_STAT`, `CLANG_SPAWN_CC1`, `CCC_OVERRIDE_OPTIONS`를 뺀 환경에서, 기본 config 파일을 읽지 않고(`--no-default-config`, 컴파일과 `-###` 계획 둘 다) 돕니다. Windows 테스트가 변수 둘과 `-fproc-stat-report`를 켠 `clang.cfg`(clang이 먼저 찾는 폴더)를 둔 채 세 단계가 각각 프로세스 1개인지 세고, 같은 config로 `--no-default-config` 없이 컴파일하면 프로세스가 2개 이상인 것도 확인합니다. - **조심해서 볼 파일**: `web/e2e/bounded-child.ts` - Windows의 끝내기가 launcher 보고를 기다리는 비동기로 바뀜(30초 상한). worker exit 때는 launcher 입력을 닫아 job을 끝내게 하고, launcher가 죽으면 `KILL_ON_JOB_CLOSE`가 끝냅니다. - **조심해서 볼 파일**: `desktop/e2e/fixture.ts` - 셸 대기가 실패할 때만 host 로그 끝 40줄, 창 상태, 페이지의 요청과 status를 `[failure dump] shell wait`로 남깁니다. 요청 실패 이유는 남기지 않습니다. 각 비동기 읽기는 5초 상한(host 로그 읽기는 동기). ## Evidence - **확인한 것**: Windows CI(run 41000366235, head 84ca48b)에서 `bounded-child.unit.ts` 9개 통과: 부모가 먼저 끝난 손자(job이 3개를 셈), 바로 끝나는 child(1개), 없는 프로그램, 첫 컴파일 단계 hang, 첫 컴파일 세 단계가 각각 1개(`CC_PRINT_PROC_STAT`, `CCC_OVERRIDE_OPTIONS`, `-fproc-stat-report`를 켠 `clang.cfg`를 둔 채). 같은 config로 `--no-default-config` 없이 컴파일하면 프로세스가 2개 이상이어서, config가 실제로 읽히는 조건에서 막힌 것입니다. - **확인한 것**: macOS clang 16 `-###`: 같은 `clang.cfg`에서 `--no-default-config`가 없으면 `Configuration file`만 찍히고 `(in-process)`가 없고, 있으면 `(in-process)`. - **확인한 것**: run 41000366235의 모든 lane 통과(Windows web e2e, Windows desktop, Linux, macOS). 그 전 run 40994151251 attempt 1에서는 Windows desktop이 #221(첫 `hide browser open --wait`가 `loading`) 증상으로 두 번 실패했고, attempt 2에서 19개 통과. 이 실패는 #221에 기록됐고 이 PR이 건드리지 않는 경로입니다. - **확인한 것**: 심은 결함: macOS에서 process group 대신 첫 프로세스만 끝내게 하면 손자 테스트가 `expected true to be false`로 실패합니다. - **확인한 것**: 7.4초(#1841 run 40918681007)는 dial 전, job의 첫 ssh.exe 시작(`ssh -V`, `ssh -G`)에 든 6161 ms입니다. 종료는 ssh kill `after_ms 3`, 0.5초 미만. - **확인한 것**: 그 뒤 main과 PR의 Windows run 40개에서 같은 테스트 1.1-2.7초. 5초 attempt 대기를 쓰지 않아 코드는 바꾸지 않았습니다. - **확인한 것**: #326: nightly Windows package lane(설치 직후 release 빌드)의 첫 `hide connect` 2.7초, 가장 긴 단계 0.2초(runs 40961007929, 40773892418). 24초는 debug 빌드였습니다. 이슈에 남기고 열어 둡니다. - **확인한 것**: #328: #1833 merge 뒤 Windows desktop job 59개에서 0건. 이전 실패 두 건의 hided 로그는 daemon 정상 시작, 어떤 view도 크기를 보내지 않음. 진단만 넣고 열어 둡니다. - **확인하지 못한 것**: 실제 Windows PC의 첫 시작 측정(#326 완료 조건), 이 환경에 Windows 기기가 없습니다. - **확인하지 못한 것**: Windows에서의 심은 결함 실행(job 밖 생성, Win32 API 실패 주입; clang 설정은 위 대조로만)과, #328 진단이 실제 실패에서 찍히는 것(그동안 재현되지 않음). <details><summary>Verification record</summary> - base: a891332, head: 84ca48b - macOS: `vitest run e2e/bounded-child.unit.ts e2e/platform-program.unit.ts` 9 passed 1 skipped (Windows-only); web/desktop typecheck, lint 통과; `hide-processes.c` zig cc(x86_64-windows-gnu) `-Wall -Wextra` 경고 없음(pragma 제외) - CI run 40990677533(head 29eaaa4): 모든 lane 통과, flaky 0 - CI run 40994151251(head 1e7bfc3, 리뷰 반영): attempt 1에서 Windows desktop만 #221로 실패, attempt 2 통과, verify pass - CI run 41000366235(head 84ca48b, 기본 clang config 차단): verify pass, 첫 attempt 모든 lane 통과 </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.
Related: Closes #323 · PRD
agents/prd/overlay-freeze/prd.mdSummary
Review
web/src/browserViews.ts- high-frequency path. sync 루프 상태(frozen, 캐시, in-flight, 조용한 시간 타이머, epoch)와 캡처를 sync보다 먼저 보내는 순서를 봐 주세요.web/src/components/ui/tooltip.tsx- 모든 툴팁이 지나는 공용 컴포넌트입니다. 페이지가 없으면 지금과 같은 쪽에 열립니다.invoke(캡처)와send(sync)가 순서대로 처리된다는 데 기대고 있습니다. e2e로는 확인했지만 Electron 업그레이드 때 다시 볼 자리로 문서에 적어 두는 게 좋을까요?Evidence
pnpm --dir desktope2ebrowser.spec.ts(background) 6개가 통과했습니다. 기존 팔레트, Recent Panels, 구분선 드래그 freeze 테스트도 포함됩니다.scripts/verify-web.sh,check-design-contract.mjs, 단위 테스트(tooltipSide, still 규칙), 툴팁이 나오는 web e2e 4개(s6, sidebar-shell, checkout-pr, device-rail),verify-cargo.shtest/lint가 모두 통과했습니다.@needs-focus데스크톱 e2e(zoom, area cycle)는 잠긴 화면 때문에 돌리지 않았습니다.screencapture가 "could not create image from window"를 낸 경우였고, 잠긴 화면 탓입니다. 그 6개 spec을 스크린샷 없이 다시 돌리자 12개가 모두 통과했습니다.scripts/web-shell-measure)은 돌리지 않았습니다. 속도나 메모리를 개선했다는 주장은 하지 않습니다.capturePage한 번과 PNG 인코딩 한 번입니다.리뷰에서 나온 후속 과제
capturePage가 멈추면 그 페이지의 idle 스틸이 Workspace가 바뀔 때까지 멈춥니다.TooltipContent에 매 렌더 새 ref 콜백을 넘기는 호출자가 생기면 다시 렌더가 반복될 수 있습니다. 지금은 그런 호출자가 없습니다.[data-tools-overlay]선택자와noteShellLayer호출도 함께 지웁니다.Verification record
agents/prd/overlay-freeze/prd.md(sha256 8407c80a4ae4279c6be3cf5940eab1dcd7d804f1ff51d433416af330791a8cb0)agents/runs/overlay-freeze/verification-report.jsonandagents/runs/overlay-freeze/verification-report.md; source fingerprint a9a1dd399bf019f982e11085c1ad89901c97fd59d47d8699554866e42c618438bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)