Repository navigation
PRD: 사이드 패널을 Agent Views, File Views, Tools 세 컬럼으로 나누기 - #326
Merged
Merged
Conversation
이슈 #321의 결정(후보 A, 항상 도킹, Pin 제거)과 #170 리사이즈 트레이드오프, 단축키, 좁은 창 기준, 저장 상태 업그레이드, 네이티브 페이지 배치를 계약으로 적습니다.
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: #321,
agents/prd/three-column-panel/prd.md(선행 참고: #170, 이어지는 작업: #322, #323)Summary
이슈 #321을 구현하기 전에 운영자가 승인할 PRD만 추가합니다. 코드는 바꾸지 않습니다.
Workspace 본문을 Agent Views | File Views | Tools 세 개의 도킹된 컬럼으로 나누고, 떠 있는 패널, Pin, Expand를 없앱니다.
⌘⇧B는 File Views만, ⌘E는 Tools만 토글하고, 툴바 오른쪽 끝에 Open server, File Views, Tools 아이콘을 둡니다.
Decisions 17개, Behaviors 35개입니다. 화면은 아직 바뀌지 않아 이미지는 없습니다.
Review
open/expanded는 File Views 켜짐,closed는 꺼짐으로 한 번 읽고, Pin과 폭은 버려 기본 폭으로 시작합니다(D-09, B30).agents/prd/three-column-panel/prd.mdTechnical structure -workspace-views.json키 변경(저장 상태)과panel_covers삭제(core ownership).Screen / Workspace세 컬럼, 아이콘 묶음, 경계선, 좁은 창 두 단계)를 어느 세션에서 만들고 승인할까요? 이 PRD를 쓴 machine에는pen이 없습니다(D-13).Evidence
sasu prd readiness가 blocking gap 0개로 통과했습니다(behaviorCount 35, decisionCount 17).WorkspaceScreen.tsx,workspace_views.rs,runtime/workspace_view.rs,shortcuts.ts,UI_BEHAVIOR.md,ARCHITECTURE.md,BROWSER_DISPLAYS.md)와 이슈 web: open a file view over the Agent area instead of shrinking it #170, Agent 탭이 너무 일찍 아이콘으로 접히고, File View 탭에는 같은 탭 스트립이 없다 #322, #323을 읽고 PRD의 사실 진술을 맞췄습니다.check-no-workstation-identity.sh,check-no-attribution.py가 통과했습니다.sasu principles list가 실패했습니다. engineering 원칙은 직접 읽었고 design 원칙 문서는 이 machine에 없습니다(D-15).