Repository navigation
Keep sign-in popups' opener and ask before handing app links to macOS - #282
Merged
Merged
Conversation
A page's sized popup (window.open with window features) now opens as a child window that keeps its opener, so a sign-in popup can post its result back and close itself; before, it became a separate display with no opener and the sign-in stalled. The host builds the window from its own options and takes only a size clamped to the work area; a hidden page cannot open one, a popup takes the keyboard only from a page that held it, at most four are open, and each closes with its page. A shift-click or target=_blank link is still a display. A link to another app (slack:, zoommtg:) from a navigation, a redirect, a frame or a new window was refused silently. It now raises a sheet naming the app, the asking origin and the link, with Cancel as the default, and opens only on Open; after a Cancel the page asks nothing more until it navigates. Schemes Chromium answers itself and schemes that mount a share, run a shell or a script, or open a remote session are refused.
yansfil
added a commit
that referenced
this pull request
Oct 1, 2026
…rea holds the keyboard (#284) Fixes #269 · PRD `agents/prd/focused-area-tab-cycle/prd.md` ## Summary - Ctrl+Tab과 Ctrl+Shift+Tab은 이제 키보드를 가진 Agent 또는 View 영역 안의 탭만 최근 사용 순서로 돌고, 다른 영역·checkout·Overview로 넘어가지 않습니다. - 영역은 device, checkout, 영역 종류, area ID 전체로 식별합니다. Agent와 View의 area ID가 겹쳐도 다른 영역을 고르지 않습니다. - 네이티브 브라우저 페이지에 키보드가 있어도 같은 순환이 됩니다. 호스트가 키 입력을 shell로 넘기고, 해제·Escape·blur를 한 번씩만 처리합니다. - 전체 Recent Panels는 기본 단축키가 없는 별도 명령으로 남고, 메뉴·팔레트·설정에서 영역 순환과 이름이 구분됩니다. - 키보드를 가진 영역은 탭 강조와 내용 경계로 표시하고, 다른 영역의 선택 탭은 읽을 수 있는 배경으로 남깁니다.  ## Review - **판단해 주세요**: 포커스 표시. 강조색 경계와 탭 강조를 택했고 blur는 쓰지 않았습니다. #281의 pane 테두리와 Agent 영역에서 함께 보일 때 과하지 않은지 봐 주세요. - **판단해 주세요**: 빈 ⌘K 명령 목록에 순환 명령 6개가 보입니다(B11 팔레트 접근). 빈 검색어에서는 숨길지 정해 주세요. - **판단해 주세요**: 네이티브 hold 중 글자 키(Tab 외)는 페이지에 그대로 들어갑니다. shell hold와 다르게 둘지 정해 주세요. - **조심해서 볼 파일**: `desktop/src/main/browser.ts` - 네이티브 입력 경로, hold 시작 시 shell로 포커스 이동, blur 후 복귀(failure path). - **조심해서 볼 파일**: `web/src/keyboard.ts` - 모든 키가 지나는 high-frequency path, 확정과 원래 페이지 복귀 분기. - **조심해서 볼 파일**: `web/src/viewFocus.ts`, `web/src/areaCycle.ts` - 키보드 소유 영역과 순환 범위의 기준. - **운영자 수동 QA**: 네이티브 페이지에서 두 번째 hold(Escape 취소, blur 후 복귀)와 재바인딩한 Ctrl+Option+Tab 해제 후 즉시 입력. ## Evidence - **확인한 것**: 격리 후보 앱에서 실제 HID 키 입력으로 기본 Ctrl+Tab을 두 번 확인했습니다(수정 전과 현재 소스). 한국어 페이지에서 누르는 동안 같은 영역의 탭 둘만 미리보기에 나오고, 놓으면 view_layout 확정이 한 번, Page B가 포커스를 받고, 입력한 숫자가 Page B에 들어갔습니다. - **확인한 것**: 이전에 실패하던 해제 검사는 제품 결함이 아니었습니다. System Events의 `key down control`이 flags-changed 이벤트를 보내지 않아 어느 페이지도 Control 해제를 받지 못했습니다. spec을 HID 이벤트로 바꿨습니다. - **확인한 것**: `sasu implement verify` PASS(cargo test, lint). 최신 main(#282 팝업, #289, #290) 병합 뒤 web 754개, desktop 79개 단위 테스트와 browser.spec background 5개 통과. - **확인한 것**: web e2e s2·overview·palette·recent를 로컬에서 통과시켰습니다. ⌥`가 영역 순환이 된 데 맞춰 기대한 순환 종류와 개수만 바꿨고 대상은 그대로입니다. - **확인한 것**: 리뷰 Fix-now 4건(blur 후 복귀, 확정 없는 해제의 복귀, 영역 축소로 끝난 hold의 복귀, 테스트 입력 안전장치)을 고치고 각각 단위 테스트를 추가했습니다. - **확인한 것**: CI macOS runner에서 실제 HID로 두 번째 hold의 Escape 취소가 통과했습니다. 선택과 키보드 소유가 유지되고, 원래 페이지로 포커스가 돌아와 입력이 도달했습니다. 이전 실패는 spec 헬퍼가 macOS 활성화 중의 포커스를 믿은 탓이었습니다. - **확인하지 못한 것**: blur 복귀와 재바인딩 Ctrl+Option+Tab 해제 후 즉시 입력. 같은 spec의 뒤 구간이라 이번 CI desktop e2e가 확인합니다. 통과 전까지 운영자 수동 QA 항목입니다. - **확인하지 못한 것**: 실제 Agent 터미널 pane, 브라우저 shell의 Alt+Backquote, 좁은 창·패널 상태 전체와 light/dark 실제 앱 캡처, idle/driven 성능 측정은 이번 head에서 돌리지 않았습니다. - **확인하지 못한 것**: 로컬 verify에서 이 PR과 무관한 테스트 두 개가 부하 중 한 번씩 실패했습니다(`herdr-core` github 1초 timeout, `agent-context-labels` CLI 정지). 단독 실행은 각각 3/3 통과했습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/focused-area-tab-cycle/prd.md` (sha256 2183ea4cfe03d8c6208a924c6b4a24614ef127dd7e54a0f37effca927bc4ee0b) - Base 8d9919f → head 7d48bc2, verified 2026-10-01T12:18:44.278Z: PASS - Verification report: `agents/runs/focused-area-tab-cycle/verification-report.json` and `agents/runs/focused-area-tab-cycle/verification-report.md`; source fingerprint 2a85ae2b459a6c4b4e556d04f4173dea162798e6f33c3fda859a961be891c0bc - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: - Code (5ffb88a): Fix now 3 - blur-cancelled hold left the keyboard in the shell (fixed 01f416f), a release on the origin of a panels/projects cycle never refocused the page (fixed 01f416f), test input failed open without a candidate pid (fixed 084469b). Follow-up: menu items show no chord, a modifier pre-check before matchHost on native pages, native hold not cancelled on shell reload, typed non-chord keys reach the page during a native hold. - Fidelity (5ffb88a): no Fix now; earlier D1 design-guide inventory fixed in 5ffb88a. Listed runtime evidence still missing (second native hold, rebound release, Agent PTY, Alt+Backquote shell, theme/panel matrix, idle/driven measurements). - Focused recheck (4b7c12c): closed the three Code items; Fix now 1 - a hold reconciled away (area shrank to one tab) left the keyboard in the shell (fixed a3ae674). No conflict with #281's pane outline. - CI on a3ae674: desktop e2e failed at the second native hold (page focus lost to the shell during macOS activation; spec focus helper now waits for stable focus, 0713510); web e2e s2/overview/palette still expected the old Alt+Backquote and palette contents (updated 31a3c56, 110c48a). - CI rerun on 110c48a: the second native hold passed (Escape kept selection and owner, focus returned, a typed digit reached the page); only the caret-position check failed and now checks the landing only (4e3b3ab). Background flakes seen once: session-labels (passed 2/2 locally), s7 side document (passed 3/3 locally). - Evidence: 51 registered (24 log, 21 file, 6 screenshot); paths are local to the run directory - agents/runs/focused-area-tab-cycle/collected/implementation-2f5ad90b/web-unit-2.log - agents/runs/focused-area-tab-cycle/collected/implementation-2f5ad90b/desktop-unit-2.log - agents/runs/focused-area-tab-cycle/collected/implementation-2f5ad90b/desktop-focused-1.log - agents/runs/focused-area-tab-cycle/collected/implementation-2f5ad90b/design-review/report.json - agents/runs/focused-area-tab-cycle/collected/implementation-06cd7ed2/desktop-focused-fixes.log - agents/runs/focused-area-tab-cycle/collected/implementation-06cd7ed2/desktop-unit-fixes.log - agents/runs/focused-area-tab-cycle/collected/implementation-06cd7ed2/focus-fixes-focused.log - agents/runs/focused-area-tab-cycle/collected/implementation-06cd7ed2/design-review/report.json - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/full-web-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/cargo-lint-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/cargo-test-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/design-tests-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/design-contract-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/script-tests-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/pane-reader-b61e4918.log - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/native-review-dispositions.md - agents/runs/focused-area-tab-cycle/collected/current-b61e4918/design-review/report.json - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/test-7.log - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/provenance.jsonl - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/native-events.json - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/01-documents.json.result - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/02-terminal.json.result - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/slot-cleanup.json - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/area-native-preview.png - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/area-native-readable.png - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/area-native-document-preview.png - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/area-native-document-reverse.png - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/failure-06cd7ed2/test-3.log - agents/runs/focused-area-tab-cycle/collected/native-slot-1-b61e4918/failure-caa7fb42/test-6.log - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/actual-native-d38-attempt8.log - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/01-documents.json.result - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/02-terminal.json.result - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/03-rebinding-menu.json.result - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/native-events.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/hid-batches.jsonl - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/provenance.jsonl - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/rebound-responder.jsonl - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/rebound-area-before-release.png - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/rebound-area-after-release.png - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/release-distinction.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/cleanup.jsonl - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/fixture-cleanup.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/runner-completion-attempt8.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/phase-close-audit.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/phase-close-receipt.txt - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/build-readiness.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/slot-attempt8.json - agents/runs/focused-area-tab-cycle/collected/d38-native-attempt8-closed/tab-genuine-clicks.jsonl - agents/runs/focused-area-tab-cycle/collected/fcee7150-source-only/fixture-carry-fcee7150-source-audit.json - agents/runs/focused-area-tab-cycle/collected/fcee7150-source-only/code-fcee7150-source.md - agents/runs/focused-area-tab-cycle/collected/fcee7150-source-only/fidelity-fcee7150-source.md - Changed paths: 193 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 1, 2026
Related: #282 ## Summary 브라우저 디스플레이에서 GitHub 본문 이미지처럼 `target=_blank`로 감싼 링크를 누르면, 새 탭이 같은 영역에 생겨 바로 앞으로 와서 원래 페이지가 이미지로 바뀐 것처럼 보였습니다. 이제 페이지가 연 새 탭은 그 페이지 옆에 열립니다: 옆 View 영역이 있으면 그 영역의 새 탭으로, 없으면 오른쪽에 새 영역을 만들어서. 원래 페이지는 그대로 화면에 남습니다. 셸이 `browser_open`에 연 페이지(`beside_display`)를 넘기고, core가 Open to the side와 같은 순서(오른쪽, 왼쪽, 아래, 위)로 자리를 고릅니다. 이미 보이는 주소면 그 디스플레이를 다시 보여 주고, 연 페이지가 닫혔으면 예전처럼 사용 중인 영역에 엽니다. 시프트 클릭과 features 없는 `window.open`도 같습니다.  ## Review - **판단해 주세요**: 오른쪽 영역에 있는 페이지가 새 탭을 열면 순서상 왼쪽 영역으로 가서, 거기 앞에 있던 것(원래 PR 페이지, 파일, diff)을 가립니다. 지금은 문서 Open to the side와 같은 규칙. - **조심해서 볼 파일**: `herdr-core/src/runtime/view_areas.rs` - runtime mutex 안의 `change_view_layout` 클로저. 새 분기는 `insert`/`split_new`만 쓰고 상한 검사는 기존 그대로. ## Evidence - **확인한 것**: core 테스트 1082개 통과. 새 테스트가 첫 탭은 오른쪽 새 영역, 다음 탭은 그 영역, 같은 주소는 포커스, 닫힌 페이지는 사용 중 영역임을 확인. - **확인한 것**: desktop e2e browser 5개 통과. 시프트 클릭 뒤 원래 페이지와 새 페이지가 둘 다 화면에 보이는지 네이티브 뷰 기준으로 확인. - **확인한 것**: web vitest 734개, clippy, fmt 통과. 격리된 dev 빌드에서 이미지 링크를 실제로 눌러 위 화면을 캡처. - **확인하지 못한 것**: 원격 SSH 기기 Workspace에서의 배치 (remote-workspace e2e는 로컬에서 건너뜀). 코드상 같은 core 경로. - **확인하지 못한 것**: 셸의 `open` 이벤트가 `beside_display`를 싣는 것을 단위 테스트로는 따로 확인하지 않음 (e2e가 결과로 확인).
yansfil
added a commit
that referenced
this pull request
Oct 1, 2026
…quests (#291) Related: PRD `agents/prd/cmdk-navigation/prd.md` · 선행 #283 (device rail) ## Summary - ⌘K가 명령 팔레트에서 이동 팔레트로 바뀝니다: 에이전트·프로젝트·checkout·기기·PR·이슈를 이름이나 `#번호`로 찾아갑니다. - 입력이 비어 있으면 앞에 있는 것과 이어진 것을 Overview 방식으로 보여 줍니다: 이슈, checkout 그룹의 PR과 에이전트 계보, 다른 checkout의 부모는 `↑ 부모` 한 줄. - 오른쪽 상세가 고른 행의 사실과 관계를 말하고, `GitHub에서 "…" 검색` 행만 코어의 새 `github_search`를 한 번 부릅니다. 입력 중에는 GitHub를 부르지 않습니다. - ⌘K의 명령은 `에이전트 시작…`만 남습니다. ⌘P는 ⌘↵로 옆에 열고, Area 포커스·크기 조절은 기본 키 없는 레지스트리 명령이 됩니다(BINDINGS_CAP 32).    ## Review - **판단해 주세요**: #284가 ⌘K에 넣은 순환 명령(최근 탭·패널)은 PRD B22대로 ⌘K에서 빠집니다. 키 없이 쓰던 전역 Recent Panels는 Settings에서 키를 지정하거나 데스크톱 메뉴로 실행합니다(overview e2e를 그렇게 바꿨고, 쓰던 곳이 없어진 `commandRequest`는 지웠습니다). - **판단해 주세요**: 빈 ⌘K에서 `여기` 행이 목록 맨 앞이 아니라 계보 안에 놓이는 배치가 읽기 좋은지(첫 이미지). - **판단해 주세요**: GitHub 검색이 `gh search` 두 번(`--repo` 반복, 질문은 단어별 인자)이라 한 저장소가 깨지면 전체가 실패하는 트레이드오프. - **조심해서 볼 파일**: `herdr-core/src/github.rs` - `run_gh` 허용 목록의 가변 길이 모양(`is_search_call`)과 저장소 해석(`gh repo view`)이 외부 호출 경계. - **조심해서 볼 파일**: `herdr-core/src/runtime/issues.rs` - 검색 워커 슬롯(최신 요청 하나만 대기, 오래된 답 버림, panic도 실패로 끝남). - **조심해서 볼 파일**: `web/src/SearchPalette.tsx`, `web/src/relations.ts` - 열 때 한 번 읽는 앞 상태와 계보 그룹 구성. - **질문**: 읽지 않은 프로젝트의 저장소 해석 결과를 실행 동안 기억할까요? 지금은 검색마다 `gh repo view`를 다시 부릅니다(후속으로 남김). ## Evidence - **확인한 것**: `sasu implement verify` PASS(cargo test 전체 + lint, 머리 `28773a3`). `github::tests`와 `runtime::tests::issues`(허용 목록, 저장소 해석, 슬롯 수명)가 포함됩니다. - **확인한 것**: web tsc·eslint·vitest 758개, desktop tsc·vitest, 디자인 계약 검사, Playwright cmdk(3)·palette·s2/s3/s6/s7 일부·start-panel·home·sidebar-shell, 데스크톱 attach/browser/session-labels. - **확인한 것**: 갤러리 장면(`/gallery?scene=search-palette`)으로 상태별 캡처를 밝은/어두운 테마로 떴습니다: 앞 에이전트, 짧은 관계, 입력 하나, 입력 결과, #이슈, #PR, GitHub 검색 중·결과·실패, 좁은 창. - **확인하지 못한 것**: 열 때의 한 번 읽기(스피너, ⚠) e2e, device-home e2e, 전체 e2e 스위트. 읽지 않은 프로젝트의 저장소 해석은 단위 테스트만 있고 실제 gh로 돌려 보지 않았습니다. - **확인한 것**: 재기반 뒤 데스크톱 e2e 전체 31개 중 26개 통과, 실패 하나(browser 스펙)는 고쳐 다시 통과. CI에서 실패한 `agent-tab-groups.spec.ts:8`은 새 명령이 기본 키가 없어(`browser: null, electron: null`) 키 입력을 가로챌 수 없고, 로컬 전체 실행에서 통과해 이 변경과 무관한 입력 유실로 봅니다. - **확인하지 못한 것**: 설치된 앱에서의 실사용 확인. `/Applications/hide.app`은 건드리지 않았습니다. - **생성물**: `design/hide-screens.pen`은 `scripts/pen-screens.mjs`가 만든 파일이며 Palette 시트만 바뀝니다. <details><summary>Verification record</summary> - PRD: `agents/prd/cmdk-navigation/prd.md` (sha256 9394ddc7400fa8208e638ccbdb780f4f709092740da38d8a1c472c37f1feb1f1) - Base e246d00 → head 28773a3, verified 2026-10-01T16:20:00.427Z: PASS - Verification report: `agents/runs/cmdk-navigation/verification-report.json` and `agents/runs/cmdk-navigation/verification-report.md`; source fingerprint 32ef9a7a3e1a791cedc08f4c2ba224cc83486c7d8cb4e9e3e2932d22280751fb - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: Fidelity와 Code 리뷰를 머리 `2469f2e6`에, 수정분 `054502db`에 후속 리뷰를 했습니다. REVIEW_UNAVAILABLE 아님. - Fix now(고침): 읽지 않은 프로젝트를 건너뛰던 GitHub 검색, 여러 단어가 한 문구로 가던 질문, 저장소마다 호출하던 구조(2번 호출로), 좁은 창 기준 800px, 관계 줄 줄바꿈, ⌘↵의 IME 조합과 옆자리 없음 이유, 링크 호스트(github.com만). - 후속 리뷰 뒤 `2b67b65`: GitHub 원격이 없는 프로젝트는 건너뛰고, 그 외 해석 실패는 검색 실패로 끝냅니다. 이 커밋은 따로 재리뷰하지 않았습니다. - origin/main(#282, #290, #289)에 다시 올린 뒤: 충돌은 e2e 한 곳(격리 태그 유지)이었고, 데스크톱 browser 스펙의 패널 펼치기를 툴바 위치 메뉴로 고쳤습니다(내 변경이 부른 실패). - CI 첫 실행의 두 실패: web e2e `cmdk.spec.ts`는 ⌘K로 에이전트를 고른 직후 ⌘K를 다시 열어 입력하면 첫 글자들이 사라졌습니다(CI 트레이스: 입력칸에 `t`만 남음). 코어 답이 늦게 도착해 `PaneView`가 터미널로 포커스를 가져간 것이 원인이라 제품 쪽을 고쳤습니다: 팔레트가 키보드를 쥐고 있으면 늦은 포커스가 가져가지 않고, 팔레트가 닫힐 때 `restoreFocus`가 돌려줍니다. 테스트는 기다리지 않고 바로 다시 열어 입력 전체를 단언합니다. 로컬에서는 재현하지 못했습니다(트레이스와 코드 경로로 추정). - 두 번째 재기반(origin/main `e668d1ee`, #284 등): 충돌은 `search.ts`·`Palette.tsx`(#284의 순환 명령을 ⌘K에서 뺌), `menu.ts`, `shortcuts.test.ts`, 문서, `palette`/`s2` e2e였고 양쪽을 살려 풀었습니다(편집 가능한 명령 21개, 단축키 시트 42줄). - 병합 뒤 CI의 데스크톱 e2e 실패(`browser.spec.ts:655` area cycle native)는 flake가 아니라 이 PR이 만든 실패였습니다: #284에서 들어온 그 스펙이 ⌘K의 `Expand side panel` 명령을 눌렀고 이 PR이 그 명령을 없앴습니다. 툴바 위치 메뉴로 패널을 펼치게 고쳐 로컬에서 통과했고, 다른 `command:` 행·⌘K 명령 사용은 없는지 web/desktop e2e 전체를 검색했습니다(남은 것은 `command:start-agent`와 팔레트 열기·닫기뿐). - #294·#304 병합 뒤 `origin/main`을 merge해(rerun 아님) 새 CI 배치로 올렸습니다. 같은 패턴이 #282에서 들어온 sign-in popup 스펙에도 하나 더 있어 같은 방식으로 고쳤고, 두 스펙과 첫 browser 스펙 모두 로컬에서 통과했습니다(area cycle native는 `@needs-focus`라 화면을 다른 앱이 쥐면 한 번 실패했고 재실행에서 통과). 로컬 데스크톱 e2e는 `web/dist`와 `target/debug/hided`를 다시 빌드한 뒤 돌려야 합니다: 병합 전 빌드로 돌리면 #282의 새 탭 배치가 보이지 않아 popup 스펙이 거짓으로 실패했습니다. - `verify`의 cargo 스위트가 부하 중 두 번 `github::tests::gh_boundary_is_read_only_…`(`gh timed out after 1000 ms`, 이 PR이 건드리지 않은 1초 제한 테스트)로 실패했고 다시 돌리면 통과했습니다. - 데스크톱 e2e `session-labels.spec.ts:22`(`page.reload` net::ERR_ABORTED)는 이 PR이 건드리지 않은 main의 알려진 불안정 테스트입니다(#289). - Follow-up improvements(남김): 읽지 않은 프로젝트 해석을 기억하기, 상한을 해석 뒤에 적용하기, 시작 패널 포커스 경합(드물게 ⌘K Enter 뒤 텍스트 칸이 포커스를 못 받음), 계보에서 조부모 부모 표기와 다른 checkout 아래 후손 누락, 이슈 id에 프로젝트 없음, ⌘K 열기가 프로젝트를 주기 폴링에 등록함, `DETAIL_MIN_WIDTH` 토큰화, 열 때 읽기 실패 ⚠가 ⌘K가 부르지 않은 읽기까지 보임. - Evidence: none registered separately. - Changed paths: 146 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 29, 2026
…ir causes (#1833) Closes with-hide/hide-private#256 Closes with-hide/hide-private#244 Closes with-hide/hide-private#226 Closes with-hide/hide-private#267 Closes with-hide/hide-private#163 Closes with-hide/hide-private#266 Closes with-hide/hide-private#230 Closes with-hide/hide-private#264 Closes with-hide/hide-private#265 Closes with-hide/hide-private#212 Closes with-hide/hide-private#141 Closes with-hide/hide-private#282 Related: with-hide/hide-private#326 (제품 쪽 후속), #1811 ## Summary Windows에서 데스크톱 앱 시작·정리와 hided daemon 수명 테스트가 가끔 실패하던 것을 원인별로 고칩니다. 제한 시간과 재시도는 그대로입니다. 가장 잦던 실패(#256)는 job에서 처음 시작하는 Windows PowerShell과 새 `hided`의 cold 비용이 첫 테스트의 제한 시간 안에 들어간 것이었고, 테스트 전에 한 번 먼저 시작합니다. 정리 실패(#244 등)는 Playwright의 `app.close()`가 앱 프로세스가 끝나기 전에 돌아오는 것이었고, fixture가 그 프로세스의 종료까지 기다립니다. hided 테스트의 private Herdr는 pane shell까지 끝난 뒤에 폴더를 지웁니다. 나머지는 테스트가 잘못 기대하던 것(아직 없는 파일 읽기, delta 모양, 탭 선택 순서)을 계약대로 고쳤습니다. 제품 코드는 바뀌지 않습니다. 스크린샷 없음: 화면과 제품 코드를 건드리지 않음(e2e fixture와 테스트만). <details><summary>이슈별 원인과 처리</summary> - **#256** Add a project(Windows desktop job의 첫 테스트): Herdr는 cmd.exe pane에서 agent를 `powershell.exe -NoLogo -NoProfile -EncodedCommand`로 띄웁니다(Herdr v0.9.5 `interactive_shell_command`). desktop lane은 첫 테스트 전에 PowerShell을 한 번도 돌리지 않아, 첫 `agent start` 두 개가 46초(제한 30초) 걸렸고 이후 시작은 0.35초였습니다(run 40821395497). web lane은 globalSetup의 `endVctip`이 PowerShell을 먼저 돌려 이 실패가 없습니다. 10-23에는 같은 첫 테스트에서 job의 첫 `hided` 시작이 24초 걸려 "hided did not respond"가 됐습니다(run 39930517565, 평소 0.4-0.9초). -> 두 entry point가 같은 `prepareWindowsRun`으로 Herdr와 같은 형태의 PowerShell 시작과 `hided node --version`을 테스트 전에 한 번 하고 걸린 시간을 출력합니다. desktop에는 없던 `endVctip`도 함께 합니다. - **#244 #226 #267** "candidate exit unconfirmed": Windows에서 Playwright는 Electron을 cmd.exe 아래에서 띄우고(`shell: true`), `close()`는 앱의 디버그 파이프가 닫히면 context가 disposed되어 `TargetClosedError`를 삼키고 돌아옵니다(playwright-core 1.63). 기록된 프로세스(cmd.exe)는 그 뒤에 끝나고, cleanup은 바로 `exitCode`를 읽었습니다. -> fixture의 `close()`가 그 프로세스의 `exit`까지 10초 안에서 기다리고, 넘으면 pid를 말하며 실패합니다(home은 보존). - **#163** product analytics: `expect.poll`은 콜백이 던진 오류를 재시도하지 않습니다. daemon의 첫 저장 전에 `core-state.json`을 읽어 ENOENT로 즉시 실패했습니다. -> 없는 파일은 "아직 저장 안 됨"으로 읽고, 다른 오류는 그대로 던집니다. - **#266** handshake: semantic delta는 한 burst에서 바뀐 필드를 모두 싣습니다. 느린 runner에서는 시작 직후의 link backfill이 UI 변경과 같은 frame에 `navigator`를 실었습니다(실패 로그에 `backfill.done`). -> "navigator가 없다" 대신 "partial delta가 싣는 필드는 모두 그 reader가 가진 값과 다르고, 전체보다 적다"를 단언합니다. - **#230** hide-ai usage: usage child는 `fake-claude.cmd` -> `python`이고 그 step이 job의 첫 python 실행입니다(보통 0.9-3.7초, 나쁜 run 21-30초). -> TESTING.md Rust 규칙 8의 `stand_ins::ready_with_args`로 fake를 먼저 한 번 시작합니다(`FAKE_ENV` lock 안에서). - **#264 #265 #212** connect_stop: 이 step이 job의 첫 debug `hided` 시작입니다. 보통 0.8-1.2초, 나쁜 run은 세 테스트가 함께 10-18초, 그 재시도도 6-10초(첫 시작의 cold 비용이 끝나는 시점까지 기다린 것과 맞음). -> 같은 규칙으로 `hide connect` 전에 `hided node --version`을 한 번 시작합니다. - **#141** New tab: 새 탭은 선택되기 전에 먼저 그려집니다. 테스트는 탭 수가 늘고 선택이 draft가 아니면 선택된 탭을 읽었는데, 이전 탭 `w1:t1`도 그 조건을 만족해 이전 탭을 읽었습니다. -> 메뉴 단계가 이미 하듯 선택이 이전 탭을 떠날 때까지 기다립니다. - **#282** real_herdr: 마지막 실패는 fixture 폴더 삭제가 os error 32(다른 프로세스가 사용 중)였습니다. `PrivateHerdr::stop`은 server 프로세스만 기다렸고, Windows에서 pane shell(cwd가 fixture 안)이 server보다 오래 삽니다. -> server를 `OwnedChild`(Windows Job)로 시작하고, stop은 `capture_until`로 server와 그 트리 전체가 끝날 때까지 기다립니다(30초, 넘으면 트리를 끝내고 오류). </details> ## Review - **판단해 주세요**: 첫 시작을 미리 내는 세 곳(#256 #230 #264류)은 테스트가 재는 것과 무관한 cold 비용이라 TESTING.md 규칙 8을 따랐습니다. 다만 실제 PC의 첫 agent 시작·첫 hided 시작에서도 보일 수 있어 제품 쪽은 with-hide/hide-private#326으로 남겼습니다. - **판단해 주세요**: #266 단언은 원래 계약(UI 변경 delta는 바뀌지 않은 section을 싣지 않음)을 약하게 하지 않습니다. 예전에는 `navigator` 하나만 봤고, 이제는 실린 모든 필드가 바뀐 것인지와 전체보다 적은지를 봅니다. `navigator`는 실제로 바뀌었을 때만 실릴 수 있습니다. - **조심해서 볼 파일**: `hided/tests/it/support/private_herdr.rs` - 23곳이 쓰는 fixture의 stop이 이제 트리 종료까지 확인합니다(failure path: 남은 pane이 있으면 오류). - **조심해서 볼 파일**: `desktop/e2e/fixture.ts` - Playwright `ElectronApplication.close`를 감쌉니다(failure path: 끝나지 않는 프로세스는 10초 뒤 pid와 함께 실패, home 보존). - **조심해서 볼 파일**: `web/e2e/platform-fixture.ts` `prepareWindowsRun` - 두 e2e entry point의 Windows 준비 순서(PowerShell, hided, 마지막 compile 뒤 vctip). ## Evidence - **확인한 것 (원인)**: #256 실패 6건이 모두 job의 첫 테스트였고, 최근 30 run 중 1건 실패; artifact의 Herdr 로그로 첫 시작 46초/14.5초/이후 0.35초를 쟀습니다. - **확인한 것 (원인)**: #244의 반환 경로는 playwright-core 1.63 `ElectronApplication.close()`와 `launchProcess`(`shell: true`, `close` 이벤트) 소스로 확인했습니다. - **확인한 것**: `fixture-cleanup.unit.ts`의 새 두 테스트가 수정 전 코드(exit 대기 제거)에서 실패하고 수정 후 통과. desktop unit 28 files 295 passed. - **확인한 것**: desktop typecheck(e2e 포함), web/desktop lint, `verify-cargo.sh fmt-check` 통과. - **확인한 것 (CI 반복)**: 0c6740300에서 verify 40854250922를 두 번(attempt 1, 2) 돌려 둘 다 통과, 재시도 0, flaky 보고 없음. Windows desktop e2e 19/19 두 번(첫 테스트 포함), macOS desktop 58+61 두 번, Rust 6231/6231 두 번, Windows check와 Windows web e2e 통과. 미리 치른 첫 PowerShell 시작은 2.5-5.6 s, Windows usage 테스트 1회차는 첫 Python 시작이 20.7 s 걸렸지만 기한 밖에서 치러져 통과했습니다. - **확인한 것**: 2934e82b7의 #266 assertion은 Linux·Windows에서 결정적으로 실패했습니다(`rest`가 바뀌지 않은 delta는 `rest: null`을 보냄). 0c6740300이 그 frame을 건너뛰게 고쳤고, 위 두 번의 run에서 통과했습니다. - **확인하지 못한 것**: 이 Mac에서 Windows를 돌릴 수 없어 Windows 동작은 이 PR의 CI Windows job으로 확인합니다. 디스크 여유가 2-5 GB라 Rust 테스트(handshake, connect_stop, hide-ai)와 e2e는 로컬에서 빌드하지 못했고 CI로 확인합니다. <details><summary>Verification record</summary> - base: main d8da3e4 - head: 0c67403, verify 40854250922 attempt 1, 2 success - 범위에서 뺀 것(증거는 각 이슈 코멘트에): #214 #169 #254 #255 #280, #324(이번 원인은 트리 누락이 아님) </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.
Summary
브라우저 디스플레이에서 구글 같은 팝업 로그인이 중간에 멈추고,
slack://같은 앱 링크는 아무 반응 없이 막혔습니다.팝업은 새 디스플레이로 열려 opener가 없었고, 앱 스킴은 로그만 남기고 거부됐기 때문입니다.
이제 크기를 지정한
window.open팝업은 opener를 유지하는 자식 창으로 열려 로그인 결과를 돌려주고 스스로 닫힙니다.앱 링크는 앱 이름, 요청한 출처, 링크를 보여 주는 확인 시트를 거쳐 Open을 눌렀을 때만 macOS 앱으로 넘어갑니다.
target=_blank링크와 시프트 클릭은 예전처럼 새 디스플레이입니다.Review
smb:ssh:telnet:applescript:shortcuts:x-apple.*등은 묻지 않고 거부 (거부 목록 방식).desktop/src/main/browser.ts- failure path. 팝업 창을createWindow에서 hide 옵션으로 만들어 페이지 features가 창에 닿지 않게 함.desktop/src/main/browser.ts- 요청 필터. 팝업 요청이ownerOf로 소유 페이지의 route 규칙을 따름 (원격 기기, 파일 미리보기).desktop/src/main/host.ts- 팝업이 포커스일 때 메뉴 명령(⌘W, 글자 크기)을 셸보다 먼저 팝업이 받음.Evidence
HIDE_E2E_SSH_PORT가 없어 로컬에서 건너뜀.추가 증거