Skip to content

Add a name filter at the top of the Explorer - #444

Merged
yansfil merged 1 commit into
mainfrom
feat/explorer-filter
Oct 5, 2026
Merged

yansfil merged 1 commit into
mainfrom
feat/explorer-filter

Conversation

@yansfil

@yansfil yansfil commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Related: #182

Closes #182

Summary

Explorer 맨 위에 파일 이름 필터 입력칸을 추가했습니다.
입력하면 트리가 ⌘P 파일 팔레트와 같은 파일 색인(hided의 file_index, 같은 매칭과 순위)에서 맞은 파일만 남기고, 각 파일의 상위 폴더를 모두 펼친 채 보여줍니다.
안 펼친 폴더 안의 파일도 색인에서 찾으므로 웹 셸이 트리를 직접 순회하지 않습니다.
필터를 지우거나 Escape를 누르면 core가 가진 원래 펼침 상태 그대로 돌아옵니다. 필터는 core의 펼침 상태를 읽지도 쓰지도 않습니다.

src를 접어 둔 채 main으로 거른 Explorer

src가 접힌 상태에서 main을 입력한 모습: 맨 위 입력칸, 그 아래 src와 그 안의 main.ts만 남습니다.

Review

  • 판단해 주세요: 폴더는 이름이 아니라 "아래에 맞은 파일이 있어서" 보입니다. 색인이 파일만 담고, 폴더 이름도 전체 경로 매칭에 걸려 그 아래 파일이 맞기 때문입니다. 폴더만 맞고 파일이 80개를 넘는 경우는 일부만 보입니다.
  • 판단해 주세요: 결과는 ⌘P와 같은 상한 80개이고, 상한에 걸렸다는 표시는 없습니다(⌘P도 같습니다).
  • 조심해서 볼 파일: web/src/ExplorerTree.tsx - 요청 effect가 ⌘P와 같은 fileIndex 답 슬롯을 공유합니다. 팔레트가 열려 있는 동안은 요청하지 않고 닫히면 다시 보냅니다.
  • 질문: 이슈의 "닫기 버튼을 그 줄로 옮기고 EXPLORER × 제목 줄을 없앤다"는 #361로 이미 끝나 있습니다(Tools 컬럼에는 제목 줄도 닫기도 없고 툴바 아이콘과 ⌘E가 끕니다). 그래서 이번 변경에 닫기 이동은 없습니다. 이슈가 가리킨 Pen 라이브러리의 Explorer master에는 손대지 않았습니다. 필드 그리기가 필요하면 별도 디자인 변경으로 다룰까요?

Evidence

  • 확인한 것: pnpm --dir web exec playwright test e2e/s3.spec.ts -g Explorer 3개 통과(새 필터 spec, 기존 Explorer 목록 spec, 생성/이름 변경/이동/삭제 spec). 새 spec은 src를 접은 채 main을 입력해 src/main.ts가 상위 폴더와 함께 나오고 README.md가 사라지는 것, Escape 후 README.md가 돌아오고 src가 접힌 채인 것을 격리된 Herdr와 hided에서 확인합니다.
  • 확인한 것: explorer.test.ts에 filteredRows(폴더 우선 순서, 깊이, 모두 펼침) 단위 테스트, bash scripts/verify-web.sh 전체와 node scripts/check-design-contract.mjs 통과. 4개 언어 catalog에 새 문구 2개를 넣었습니다.
  • 확인하지 못한 것: 설치된 데스크톱 앱에서의 실제 창 캡처(운영자 앱 금지로 웹 셸 e2e 화면만 확인), 원격 device checkout에서의 필터, 다른 언어에서의 문구 길이 시각 확인.

The filter narrows the tree to the files the checkout's file index
matches, the source and ranking the file palette uses, each under its
ancestor folders with every folder open. It never touches the core's
expansion, so clearing it or pressing Escape restores the tree.
@yansfil
yansfil merged commit afb3cf3 into main Oct 5, 2026
27 checks passed
@yansfil
yansfil deleted the feat/explorer-filter branch October 5, 2026 03:51
yansfil added a commit that referenced this pull request Oct 5, 2026
## Summary

`desktop e2e` (macOS) is the longest job of a verify run and the last to
finish in 16 of the last 25 successful runs, so it sets the time
`verify` takes (job median 13.8 minutes).
Its `Remote mailbox over private SSH` step took 2.1 minutes of that
(median 126 s: about 57 s compiling the workspace again under the test's
feature set, about 53 s for the one test).
The macOS `@platform` web e2e job also holds a macOS runner, builds
hided and fetches the pinned Herdr, and finishes earlier (median 9.0
minutes).
This moves the lane there: `web-e2e.yml` takes a `remote-mailbox` input,
which builds the CLI (`verify-cargo.sh cli`, every binary the lane
starts) instead of `build -p hided` and runs the same nextest command
after the suite; `pr.yml` sets it for the macOS lane and drops the step
from `desktop e2e`.
The OS contract's macOS leg stays in `desktop e2e`.

## Review

- **판단해 주세요**: the lane now runs when `web-e2e-platform` is planned
instead of `desktop-e2e`. On the last 80 merged pull requests that is 62
runs instead of 59 (table below); `ci-plan.py` gets a comment that a
narrower `web-e2e-platform` rule would drop the lane.
- **판단해 주세요**: the mailbox test resolves dependency features differently
from the CLI build, so about 48 dependencies build a second variant that
the macOS web e2e cache (saved from `build -p hided`) does not hold:
about 25 s per run on this pull request's run. rust-cache saves only
when its key changes, and the key hashes `Cargo.toml` and `Cargo.lock`,
so main's first run after the next manifest change saves both builds;
until then the 25 s stays.
- **조심해서 볼 파일**: `.github/workflows/web-e2e.yml`, the reusable lane
nightly and the Linux and Windows lanes also call; with the input unset
(its default) their steps and cache keys are unchanged.

## Evidence

- **확인한 것 (plan)**: `ci-plan.py` (main, after #490) over the file lists
of the last 80 merged pull requests (#371-#492):

| | before (in `desktop-e2e`) | after (in `web-e2e-platform`) |
| --- | --- | --- |
| pull requests running the mailbox lane | 59 | 62 |
| lose it | | #462, #466, #487: only `desktop/` files, which the lane
does not read |
| gain it | | #381, #383, #429, #444, #447, #488: `web/e2e` specs tagged
`@platform` |

- **확인한 것 (catches)**: of 232 failed `pr.yml` runs since 2026-09-05, the
mailbox step failed in 2 (#409 `prd/hcoord-retire`, #456 cargo `typify`
bump); both plan every lane, so both still run it.
- **확인한 것 (before)**: medians of the last 22 successful verify runs:
`desktop e2e` 13.8 min, its mailbox step 126 s; `web e2e macos` 9.0 min
(build 88 s, End-to-end 382 s).
- **확인한 것 (after)**: this pull request's verify run
[37288613490](https://github.com/modakbul-gongbang/hide/actions/runs/37288613490)
(first commit; the second only removed a cache `key` line rust-cache
ignores next to `shared-key`):

| | before (median, n=22) | after (this run) |
| --- | --- | --- |
| `desktop e2e` | 13.8 min, mailbox step 126 s | 12.2 min, no mailbox
step (its suite step took 518 s against a 494 s median) |
| `web e2e macos` | 9.0 min | 11.3 min: CLI build 91 s (was `build -p
hided` 88 s), suite 383 s, mailbox step 128 s (compile 82 s of which
about 25 s dependency variants, test 43 s) |
| macOS job-minutes for the two | 22.8 | 23.5 |

Second run, on the squashed commit,
[37290394720](https://github.com/modakbul-gongbang/hide/actions/runs/37290394720):
`desktop e2e` 12.0 min, `web e2e macos` 12.6 min (CLI build 99 s, suite
386 s, mailbox step 170 s), `verify` 13.4 min.
The two macOS jobs now end within a minute of each other (12.0-12.6
against 13.8 and 9.0), so the macOS ceiling of a run drops by about 1.5
minutes, and by about 25 s more once the cache holds the dependency
variants.
- **확인한 것**: `python3 -m unittest discover -s scripts/tests` passes (125
tests); both workflow files parse.
- **확인하지 못한 것**: the warm steady state of the macOS web e2e job is seen
only after main's first run saves the new cache; the first pull-request
runs after merge are that measurement.
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 9, 2026
…ore (with-hide#2149)

Closes with-hide/hide-private#561
Closes with-hide/hide-private#495
Closes with-hide/hide-private#564
Closes with-hide/hide-private#605

## Summary

e2e 픽스처가 두 번째 에이전트를 너무 일찍 시작해서, 코어가 "다른 시작이 아직 진행 중"이라며 거절하고 픽스처는 30초를
기다리다 실패했습니다.
코어는 시작 하나가 끝나기 전에는 새 시작을 받지 않는데, 첫 에이전트의 행은 그 시작이 끝나기 전에 먼저 보입니다.
이제 테스트는 행이 아니라 코어가 그 시작에 준 답(시작 패널이 읽는 것과 같은 영수증, `task_operation`)을
기다렸다가 다음 시작을 보냅니다. 거절되면 30초를 기다리지 않고 코어의 이유로 바로 실패합니다.

화면 변경 없음: 테스트 코드와 문서만 바뀝니다.

## Review

- **조심해서 볼 파일**: `web/e2e/daemon-actions.ts` `startAgentInCheckout` -
코어의 task slot 규칙(`herdr-core/src/runtime/session.rs:3994-4003`)을 그대로
읽는지, `started` 외의 답은 모두 실패로 끝나는지.
- **조심해서 볼 파일**: `web/e2e/engine-fixture.ts` - 첫 시작이 끝난 뒤에야 두 번째 시작(또는
family의 spawn)이 나갑니다. 기다림은 코어 신호뿐이고 timeout·sleep·retry는 늘리지 않았습니다.
- **원인이 다른 것**: with-hide#444 with-hide#445 with-hide#459 with-hide#479 with-hide#496 은 픽스처가 아니라 spec 안의 기다림에서 실패하고
로그에 거절이 없어 이 PR에서 다루지 않습니다.
- **Herdr 레인에서만 난 것**: with-hide#260 with-hide#489 with-hide#502 with-hide#510 with-hide#511 with-hide#519 with-hide#533 은 `*-herdr-*`
레인에서만 났고 그 레인은 #2069로 지워졌습니다. #2069와 아래 반복 run을 적은 댓글로 닫습니다.
- **열어 두는 것**: with-hide#490 with-hide#492 with-hide#523 with-hide#529 with-hide#532(`agent_pane_required`)는 이 PR이
끝내지 않습니다. 원인은 with-hide/hide-private#630에서 따로 다룹니다.

## Evidence

- **확인한 것**: own engine으로 바뀐 뒤 "second fixture agent" 실패 6건 중 5건(#561
x2, with-hide#495, with-hide#564, with-hide#605; Linux·Windows)의 setup snapshot과 hided 로그를 봤습니다. 모두
두 번째 시작의 request id로 `task_operation.busy` 거절이 남아 있습니다. 나머지 1건(#561, run
42076071271)은 로그를 받지 않았고 오류 줄만 같습니다.
- **확인한 것**: 실패 로그 순서는 tab.create 완료 -> busy 거절 -> 첫 시작의
`agent.started`, 통과한 실행은 tab.create 몇 ms 뒤 `agent.started` -> 두 번째
시작입니다.
- **확인한 것**: `web`·`desktop` typecheck, lint(e2e 크기 검사 포함) 통과.
- **확인한 것**: a79a97b, run 42202678411의 Linux 전체 e2e(6 shard)와 Windows
`@platform` e2e를 3번 돌렸습니다. 닫는 11개 제목은 매번 통과했고 재시도도 없었습니다.
- attempt 1: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` "Desk is
off on a new install"(Linux 4/6), with-hide#444 close-subtree(Linux 6/6)
  - attempt 2: Linux 6/6, Windows 1/1 통과, 재시도 없음
- attempt 3: Linux 6/6, Windows 1/1 통과. 재시도 후 통과: `desk-lane` 같은
테스트(Linux 4/6)
- **범위 밖**: #444가 attempt 1에서 재시도 후 통과한 것과 `desk-lane`이 두 번 재시도 후 통과한 것은
픽스처 원인이 아닙니다. 이 노드 범위 밖이고 따로 묶여 있습니다.
- **확인하지 못한 것**: 로컬 e2e는 돌리지 않았습니다(Rust debug 빌드 디스크 부족). macOS 웹 e2e는
PR CI에 없어 반복하지 않았고, 이 묶음의 21개 이슈 중 macOS에서 난 것은 없습니다.
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.

web: filter field at the top of the Explorer in the side panel

1 participant