Skip to content

레인을 닫아도 파일 트리를 켜둔 채 유지하기 - #1147

Merged
yansfil merged 2 commits into
mainfrom
lane-close-keeps-tree
Oct 15, 2026
Merged

yansfil merged 2 commits into
mainfrom
lane-close-keeps-tree

Conversation

@yansfil

@yansfil yansfil commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Files 레인을 닫았다 다시 열면 Explorer(파일 트리)가 항상 꺼져 있었습니다.
이제 레인을 닫아도 트리는 켜둔 그대로 남고, 다시 열면 함께 보입니다.
트리를 끄는 방법은 트리 버튼과 ⌘⇧E 두 가지만 남습니다.

화면 모양은 바뀌지 않고, 닫기 이후 트리 상태만 달라집니다.

Review

  • 판단해 주세요: 닫기(×, 눌린 레일 아이콘, ⌘⇧B)로도 트리가 꺼지지 않는 게 맞는지. 원래 right-lane PRD B11에서 닫기도 트리를 끄게 했는데, 운영자 요청으로 뺐습니다.
  • 조심해서 볼 파일: herdr-core/src/runtime/workspace_view.rs - 레인 상태는 core가 소유하고 Workspace마다 저장되므로, 닫은 뒤 저장본에도 트리가 켜진 채 남습니다.

Evidence

  • 확인한 것: herdr-core runtime 테스트 1005개 통과. 닫은 뒤 (tool, pin, tree)가 (None, true, true)이고, Files로 다시 열면 트리가 켜져 있고, 저장 파일에도 tree: true로 남는 것을 확인했습니다.
  • 확인한 것: 로컬 hided와 고정된 Herdr 0.9.3으로 Playwright s3.spec.ts와 right-lane.spec.ts 40개 통과. ⌘P 테스트는 이제 레인을 닫은 뒤 파일을 열면, 트리가 다시 켜는 조작 없이 보이고 해당 행이 선택된 것을 확인합니다.
  • 확인한 것: cargo fmt --check, verify-web.sh web lint 통과.
  • 확인하지 못한 것: 패키징된 데스크톱 앱에서 직접 확인하지 않았습니다(설치된 앱은 교체하지 않음). clippy와 나머지 e2e shard는 CI에 맡깁니다.

Closing the lane (the header's x, the pressed rail icon or the tool's
chord) used to turn the Explorer off, so a lane opened again on Files
came back without its tree. The tree now stays as it was; only the tree
button and Cmd-Shift-E turn it off.
@yansfil
yansfil merged commit 88dbc86 into main Oct 15, 2026
20 checks passed
@yansfil
yansfil deleted the lane-close-keeps-tree branch October 15, 2026 07:56
yansfil added a commit that referenced this pull request Oct 15, 2026
…lose (#1158)

Related: #1147

## Summary

#1147 keeps the file tree on when the right lane closes, but its PR
skipped the desktop e2e lanes, so `desktop/e2e/right-lane.spec.ts` still
expects the old reset.
On every run that includes #1147 the macOS desktop lane fails at line
199 (`tree: false` expected, `true` saved), first seen on #1133's run
38702938833.
This changes only the spec: the saved Workspace now expects `tree:
true`, and the screenshot branch no longer toggles the tree from the
lane menu (that toggle would now turn it off) but checks it is already
shown.

## Review

- **판단해 주세요**: the spec now follows #1147's behavior; no product code
changes.
- **조심해서 볼 파일**: `desktop/e2e/right-lane.spec.ts` - the `if (dir)`
branch runs only where `HIDE_E2E_SCREENSHOT_DIR` is set, which CI's
desktop lane does.

## Evidence

- **확인한 것**: the failure log of run 38702938833 (desktop e2e macos, both
tries) shows the `tree` mismatch at line 199; #1147's own
`web/e2e/s3.spec.ts` change drops the same tree toggle after a close.
- **확인하지 못한 것**: not run locally (the screenshot branch needs native
capture, which a Herdr pane cannot take); this PR's own desktop e2e
macOS lane is the proof.
yansfil added a commit that referenced this pull request Oct 16, 2026
Closes #1288

## Summary

desktop e2e는 앱 안에서 web 화면과 hided를 그대로 띄워 검사합니다.
그런데 PR CI는 `desktop/`나 일부 공유 web 파일을 바꿀 때만 desktop e2e를 돌렸습니다.
그래서 화면이나 core를 바꾼 PR이 초록으로 머지되고, main의 전체 실행에서 처음 깨졌습니다: #1106(세션 기록,
92분), #1147(레인을 닫아도 남는 파일 트리, 103분).
이제 web 화면 파일과 crate 변경은 web e2e와 함께 desktop e2e도 돌립니다. 앱이 열지 않는 폰
페이지(`web/mobile.html`, `web/public/m`)는 지금처럼 web 레인만 돌립니다.

```
web/src/Overview.tsx     old: checks, web-e2e, rust           new: + desktop-e2e
herdr-core/src/lib.rs    old: 15 jobs, macOS 0                new: 16 jobs, macOS 1
web/mobile.html          checks, web-e2e (unchanged)
```

## Review

- **판단해 주세요**: macOS 비용입니다. 10-14~10-17에 머지된 PR 132개 중 desktop e2e를 돌리는
PR이 73개에서 121개로 늘어납니다(crate만 25, web만 18, 둘 다 5).
- **판단해 주세요**: crate까지 넣은 것. #1147은 web 파일 없이 `herdr-core`만 바꿨기 때문에,
web만 넣으면 그 사례를 막지 못합니다. web만으로 줄이면 +48 대신 +23입니다.
- **비용 검토**: desktop e2e는 22분(10-16 macOS 실행 49개의 중앙값)이고, web e2e
샤드(18~20분 + 빌드 2분)와 비슷해서 큐가 없으면 PR 대기 시간은 거의 늘지 않습니다.
- **비용 검토**: macOS 슬롯은 5개입니다. 10-16 바쁜 9시간을 시뮬레이션하면 macOS 대기 p90이 4분에서
16분으로 늘어납니다(추정치, 실측 아님).
- **조심해서 볼 파일**: `scripts/ci-plan.py` - 레인을 잘못 빼면 PR은 초록인데 main만 빨개집니다.
`SHARED_WEB`은 이제 Windows 레인만 더합니다.

## Evidence

- **확인한 것**: `scripts/tests/test_ci_plan.py` 58개 통과. #1106과 #1147의 실제
파일로 desktop e2e가 계획되는지 보는 회귀 테스트를 추가했습니다.
- **확인한 것**: policy 레인 전체를 로컬에서 실행: `scripts/tests` 390개 통과, invariant
스크립트 8개 통과.
- **확인한 것**: 머지된 PR 132개를 옛/새 `ci-plan.py`에 다시 돌렸습니다(merge commit의 첫 부모
diff). desktop e2e 말고는 어떤 레인도 바뀌지 않았습니다.
- **확인하지 못한 것**: 머지 뒤 macOS 큐 대기 시간 실측. 위 p90은 10-16 작업 시각과 소요 시간으로 슬롯
5개를 시뮬레이션한 값입니다.
- **확인하지 못한 것**: 이 PR은 `pr.yml`과 `ci-plan.py`를 바꾸므로 자기 CI가 전체 레인을 돕니다. 새
규칙이 좁게 계획하는 모습은 다음 PR부터 보입니다.

<details><summary>추가 증거</summary>

PR 종류별 작업 수(옛 → 새, `runner_jobs` 기준):

```
herdr-core / hided        15 → 16, macOS 0 → 1
web shell                 10 → 11, macOS 0 → 1
desktop only               6 →  6, macOS 1
hide-platform             16 → 17, macOS 1 → 2
hide-kit / hooks          18 → 19, macOS 1 → 2 (desktop e2e, package)
documentation              3 →  3
```

`docs/TESTING.md`의 docs-only 겹침이 #1260과 있습니다. merge-order 안내대로 머지 직전에 한
번 풀면 됩니다.

</details>
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.

1 participant