Skip to content

Explorer, History, View 탭, 사이드바에서 파일과 폴더를 OS 파일 관리자로 보기 (reveal_external) - #327

Merged
yansfil merged 7 commits into
mainfrom
prd/reveal-external
Oct 3, 2026
Merged

yansfil merged 7 commits into
mainfrom
prd/reveal-external

Conversation

@yansfil

@yansfil yansfil commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Related: Closes #324 · PRD agents/prd/reveal-external/prd.md

Summary

  • 지금은 사이드바 행에서만 macOS 이름(Reveal in Finder)으로 OS 파일 관리자를 열 수 있고, View 탭의 Reveal in Explorer는 앱 안 트리를 고르는 다른 동작인데 Windows 파일 탐색기와 이름이 겹쳤습니다.
  • Explorer 파일·폴더 행, History 행, View 탭, 사이드바 프로젝트·체크아웃 행이 하나의 액션 reveal_external을 씁니다(사이드바 reveal_finder는 이름만 바뀜).
  • 고르면 데스크톱 호스트가 shell.showItemInFolder로 부모 폴더에서 항목을 선택한 채로 OS 파일 관리자를 열고, 아무것도 실행하지 않습니다.
  • 라벨은 호스트 OS를 따릅니다(macOS Reveal in Finder, Windows Reveal in File Explorer, Linux Open Containing Folder, 그 밖 Show in File Manager). 원격 디바이스에서는 이유와 함께 비활성, 일반 브라우저 탭에서는 숨김.
  • View 탭의 앱 안 동작은 Select in File Tree(select_in_tree)로 이름을 바꿨고, docs/UI_BEHAVIOR.md의 Explorer, View 탭, 사이드바 메뉴 문단을 실제 메뉴대로 고쳤습니다.

View 탭 메뉴: Copy path, Select in File Tree, Reveal in Finder, Close view

View 탭 메뉴 끝: Copy path, Select in File Tree, OS 라벨의 reveal, Close view.

Review

  • 판단해 주세요: Explorer 메뉴에는 reveal만 넣었습니다. UI_BEHAVIOR.md가 약속하던 Open with Default App, Copy Path, Copy Relative Path는 문서에서 지웠습니다(PRD D-10).
  • 판단해 주세요: 원격 비활성 문구를 OS 이름 없이 Only for files and folders on this computer.로 바꿨습니다(D-04).
  • 판단해 주세요: 호스트는 경로가 없으면 거부하고 reveal.refused / reveal.shown / reveal.failed를 경로 없이 로그에만 남깁니다. 화면 알림은 없습니다(D-09, 원칙 13).
  • 조심해서 볼 파일: desktop/src/preload/index.ts - 브리지에 platform 키가 추가돼 공개 표면이 바뀜.
  • 조심해서 볼 파일: desktop/src/main/host.ts - failure path. 존재 확인 후 showItemInFolder, 실패는 로그만.
  • 조심해서 볼 파일: web/src/viewLayout.ts - View 메뉴 ID가 바뀜(reveal -> select_in_tree, reveal_external 추가).
  • 조심해서 볼 파일: agents/prd/reveal-external/prd.md - 구현 경계 밖 변경은 이 파일의 source_intake 한 줄뿐입니다. 검증 preflight가 비정규 값을 거부해 Observer 지시로 amend했습니다(Goal·Decision·Behavior 불변).
  • 판단해 주세요: PR 브랜치는 준비된 작업 트리의 prd/reveal-external입니다. PRD D-12의 gen-prd/reveal-external은 기록 트리가 쓰고 있어 같은 이름으로 낼 수 없었습니다.
  • 질문: design/hide-ui.lib.pen, design/hide-screens.pen, scripts/pen-*.mjs에는 아직 Reveal in Explorer/Reveal in Finder가 남아 있습니다. 이 실행은 .pen 편집 권한이 없어 손대지 않았습니다. 디자인 쪽 후속 이슈로 둘까요?

Evidence

  • 확인한 것: 데스크톱 e2e reveal-external.spec.ts가 Electron 앱(격리된 Herdr 0.9.1, hided)에서 Explorer 파일·폴더 행, View 탭, History 행, 사이드바 프로젝트 행의 메뉴 줄과 라벨을 확인했습니다. 각 reveal이 넘긴 경로 5개를 showItemInFolder 기록기로 확인했습니다.
  • 확인한 것: 같은 spec에서 삭제된 History 행은 비활성 + The file was deleted., 상대 경로와 없는 경로는 reveal.refused (path, missing), 로그에 경로가 없음을 확인했습니다. 이 spec은 main 병합 후 head를 포함해 4회 통과했습니다.
  • 확인한 것: pnpm --dir desktop e2e --grep-invert @needs-focus 전체 28 통과, 5 건너뜀(main 병합 전 head, 이 브랜치 소스는 병합 후와 동일). 건너뛴 5개는 SSH 디바이스·kit 픽스처 조건으로 스스로 건너뛰는 테스트입니다.
  • 확인한 것: 웹 e2e s7.spec.ts + sidebar-menus.spec.ts 14 통과(main 병합 전 head, 브라우저 탭에는 reveal 없음, Select in File Tree 라벨). bash scripts/verify-web.sh 통과(병합 후 head에서 web 834, desktop 83 unit 포함).
  • 확인한 것: 봉인된 suite(verify-cargo.sh test, lint) PASS. 웹 레인은 봉인 suite 밖에서 같은 head에 직접 실행했습니다.
  • 확인하지 못한 것: 실제 Finder 창이 뜨는 모습. e2e는 포커스 가드 때문에 showItemInFolder를 기록기로 바꾸고, 이 맥 미니는 화면 잠금 상태일 수 있어 네이티브 관찰을 하지 않았습니다.
  • 확인하지 못한 것: Windows·Linux 라벨과 원격 디바이스 비활성 상태는 unit 테스트로만 확인했습니다(디바이스 픽스처 미실행). @needs-focus 데스크톱 테스트는 CI에 맡겼습니다.
  • 확인하지 못한 것: 스크린샷은 Playwright 렌더러 캡처이며 네이티브 창 캡처가 아닙니다.
추가 증거

Explorer 파일 행 메뉴: Open to the side 다음 구분선 뒤에 macOS 라벨 Reveal in Finder

Explorer 파일 행 메뉴: Open to the side, 구분선, Reveal in Finder, 구분선, Rename, 구분선, Move to Trash.

History의 삭제된 파일 행: reveal이 'The file was deleted.' 이유와 함께 비활성

History의 삭제된 파일 행: reveal이 이유와 함께 비활성.

후속 개선(이번 범위 밖): 삭제된 파일의 Diff View 탭에서 reveal 비활성화, 깨진 심볼릭 링크를 lstat로 허용, UI_BEHAVIOR의 원격 트리 문구, revealInExplorer 이름 정리, reveal.failed에 오류 종류 기록.

PRD amendment 1: source_intake frontmatter를 current conversation으로 고침(Observer 지시, Goal·Decision·Behavior 변경 없음).

Verification record
  • PRD: agents/prd/reveal-external/prd.md (sha256 2e4fcf15ef963ab414ff7bc17805364260d2f60dac9831467edb4ee0470d0be6)
  • Base a38023a → head 4cd87e5, verified 2026-10-02T08:58:14.177Z: PASS
  • Verification report: agents/runs/reveal-external/verification-report.json and agents/runs/reveal-external/verification-report.md; source fingerprint 84371e229e46d04bd624435a11fde907724b3f49895ca5c688a909c2c6cb8d30
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • Fidelity (e84a702): Fix now 0건 관찰. 추정 1건 'D-12 브랜치명'은 ship이 gen-prd/reveal-external로 푸시하므로 해소, 'verify NOT_RUN'은 이후 PASS로 해소. Follow-up은 아래 Review에 정리
    • Code (e84a702): Fix now 2건 모두 수정(75d0076): reveal 핸들러 체인에 reveal.failed 로그 catch, docs/README.md 소유 파일 표기. e2e 사이드바 행 선택을 이름으로 바꿈(441effb)
    • Follow-up (441effb, 84f382b, 증거 추가분): Fix now 0건. 84f382b는 PRD frontmatter source_intake 한 줄만 바뀜(Observer가 지시한 amendment 1). 추가 증거 로그 3개도 PRD와 모순 없음, 건너뛴 5개 테스트는 환경 변수 조건으로 무관함을 확인
    • Follow-up (4cd87e5, origin/main 병합): Fix now 0건. 병합은 #320의 ⌘K Recent 변경만 가져왔고 reveal 코드와 문서는 그대로
  • Evidence: 10 registered (3 screenshot, 7 log); paths are local to the run directory
    • agents/runs/reveal-external/evidence/reveal-explorer-file-menu.png
    • agents/runs/reveal-external/evidence/reveal-view-tab-menu.png
    • agents/runs/reveal-external/evidence/reveal-history-deleted-menu.png
    • agents/runs/reveal-external/evidence/desktop-e2e-1.log
    • agents/runs/reveal-external/evidence/web-e2e-1.log
    • agents/runs/reveal-external/evidence/verify-web.log
    • agents/runs/reveal-external/evidence/desktop-e2e-full.log
    • agents/runs/reveal-external/evidence/desktop-e2e-2.log
    • agents/runs/reveal-external/evidence/verify-web-2.log
    • agents/runs/reveal-external/evidence/desktop-e2e-3.log
  • Changed paths: 44 (see Files changed)

…y, View tabs and the sidebar

One action, reveal_external, now sits in the Explorer's file and folder
row menus, History row menus, View tab menus and the sidebar's project
and checkout rows (renamed from reveal_finder). It hands the item to the
desktop host, which selects it in its parent folder through
shell.showItemInFolder and opens nothing.

The label follows the host's OS, which the preload bridge now reports as
platform: Reveal in Finder, Reveal in File Explorer, Open Containing
Folder, or Show in File Manager. A plain browser tab lists no such item,
another device's files list it disabled with the reason, and a deleted
file's History row lists it disabled.

The View tab's in-app Reveal in Explorer becomes Select in File Tree
(select_in_tree), so it no longer shares a name with Windows' file
manager.

The host now refuses a path that no longer exists as well as one that is
not absolute, and logs reveal.refused or reveal.shown without the path.

UI_BEHAVIOR.md's Explorer, View tab and sidebar menu paragraphs describe
the menus as they are; the Explorer paragraph no longer promises Open
with Default App or the copy items the menu does not have.
…nd pick the fixture's sidebar row by name

The main process's reveal handler now ends its chain with a logged
reveal.failed, as the open-path handler beside it does. docs/README.md
lists web/src/revealExternal.ts, desktop/src/main/reveal.ts and the new
desktop spec under their rows. The spec's sidebar step picks the fixture
project's row by its name rather than the first row.
…tion value

Only the source_intake frontmatter changes; no goal, decision or behavior does.
@yansfil
yansfil merged commit 5142fac into main Oct 3, 2026
39 of 41 checks passed
@yansfil
yansfil deleted the prd/reveal-external branch October 3, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explorer, History, View 탭에서 파일과 폴더를 OS 파일 관리자로 열 수 있게 한다

1 participant