Skip to content

Find and read a Project's past agent sessions in the web shell (S8) - #146

Merged
yansfil merged 11 commits into
mainfrom
prd/project-memory-sessions-web
Sep 25, 2026
Merged

yansfil merged 11 commits into
mainfrom
prd/project-memory-sessions-web

Conversation

@yansfil

@yansfil yansfil commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Related: PRD agents/prd/project-memory-sessions-web/prd.md (S8), follows #144 (S6)

Summary

  • 웹 셸에서 Project Overview의 Sessions로 그 Project의 모든 Workspace가 남긴 Claude Code·Codex 세션을 최신순으로 찾고, 고른 세션을 목록 옆에서 읽기 전용으로 엽니다.
  • provider 필터와 검색은 페이지 안에서 좁히고(왕복 없음), "아직 없음", "일치 없음 + Clear filters", 읽기 실패 + Retry를 구별합니다.
  • 읽을 수 없거나 파일이 사라진 세션은 그 행만 흐려지고 이유·Retry·Copy source location(실제 파일 경로)을 보이며, 열 수 없는 세션은 상세 자리에서 같은 이유와 Retry를 보입니다.
  • core는 focus가 아니라 화면이 이름 붙인 Project를 읽고(별도 delta section), 기기 Project는 로컬 세션으로 채우지 않고 기기 이유만 보입니다. payload 없는 기존 명령의 macOS 의미는 그대로입니다.
  • Project Memory 웹 구현은 D-17에 따라 후속 단계로 남기고, 웹에는 Memory 진입점·비활성 버튼·placeholder가 없습니다.

Project의 Claude Code·Codex 세션을 최신순으로, 읽을 수 없는 세션은 그 행만 흐리게

고른 세션을 목록 옆에서 읽기 전용으로

파일이 사라진 세션: 행은 unavailable로 남고 이유, Retry, 마지막 위치 Copy

기기 Project: 기기 이유만 보이고 로컬 세션으로 채우지 않음

Review

  • 판단해 주세요: 한 daemon을 여러 창이 공유하므로 core는 한 번에 한 Project만 이름 붙입니다(A7). 다른 창이 다른 Project를 열면 이 창은 그 사실과 Show this project's sessions를 보이고, 누를 때만 되찾습니다.
  • 판단해 주세요: 필터·검색은 core의 apply_session_filters와 같은 규칙으로 웹에서 합니다(A4). Swift 경로는 그대로 core에서 합니다.
  • 판단해 주세요: 목록에 있던 세션의 파일이 사라지면 그 행은 daemon이 실행되는 동안 unavailable로 남고, "moved or deleted" 이유와 마지막 위치 Copy를 보입니다.
  • 판단해 주세요: 파일은 그대로인데 checkout이 Project를 떠난 세션(worktree 제거 등)은 사라졌다고 하지 않고 catalog 규칙대로 목록에서 빠집니다.
  • 판단해 주세요: daemon을 다시 시작하면 사라진 세션은 Memory 저장소가 기록했을 때만 남는데(기존 Swift 규칙), hided의 Memory 저장소는 아직 비어 있어 웹에서는 빠집니다. 이 경계가 충분한지 봐 주세요.
  • 판단해 주세요: 상세는 요청과 답만 평문으로 보이고 injected context(Memory가 실리는 곳)는 보이지 않습니다(A9). 빈 목록은 "No sessions yet" 한 줄입니다.
  • 판단해 주세요: Component / Session row master는 Pen CLI가 이 mini에 없어 문서 JSON으로 추가했습니다. gen-pen과 design contract는 통과하지만 Pen에서 렌더링을 봐 주세요.
  • 조심해서 볼 파일: herdr-core/src/runtime/snapshot_delta.rs - snapshot wire와 runtime mutex. project_sessions는 이름이 붙은 뒤에만 wire에 있고, publication마다 lock 안에서 값으로 비교합니다(O(rows), transcript는 Arc 포인터).
  • 조심해서 볼 파일: herdr-core/src/runtime/project_sessions.rs - failure path. list·detail generation fence, 읽는 중 요청은 한 번 더 읽기로 합침, spawn·읽기 실패는 진단과 화면 이유, 목록 읽기 실패가 열린 상세를 정리하는 경로.
  • 조심해서 볼 파일: herdr-core/src/runtime/project_sessions.rs - runtime mutex. Project별 마지막 행(known)은 worker에 포인터로 넘기고, 빠진 행의 파일 확인과 병합은 worker(settle_history)에서 합니다. 보존 행은 daemon 실행 중 지워진 세션만큼 자랍니다.
  • 조심해서 볼 파일: herdr-core/src/runtime/events.rs - Swift 의미. payload 없는 sessions_refresh·archive_open은 기존 focused-checkout 경로 그대로입니다.
  • 조심해서 볼 파일: web/src/SessionsScreen.tsx - 도착과 재연결 때 이름 붙이기(교체된 창은 제외), Project별 keyed remount.

Evidence

  • 확인한 것: sasu implement verify PASS (4f1e7f0): cargo test 1205개, Swift test 549개, cargo lint.
  • 확인한 것: 4f1e7f0에서 vitest 224개, tsc·eslint, web e2e 42개, 저장소 script check 전부(Herdr v0.9.1 schema 포함), design contract.
  • 확인한 것: S8 e2e(격리 Herdr·hided, 임시 HOME의 Claude·Codex fixture, 4f1e7f0): 빈 상태, 다시 도착하면 새로 읽기, 최신순과 다른 Project 제외, 파싱 불가 행과 실제 경로 Copy, provider·검색·no match·Clear filters(추가 요청 0), 키보드로 열기, 파일 삭제 후 상세 실패 → Retry → 행이 unavailable로 남고 이유와 마지막 위치 Copy, 폴더 권한 실패 → Retry, 다른 창의 focus 이동(B6)과 다른 Project(A7) 뒤 Show here로 되찾아도 사라진 행 유지, 1024 폭. 3회 연속 통과.
  • 확인한 것: 격리 기기 endpoint(asyncssh, fixture key, private pinned Herdr v0.9.1)에서 B7(4f1e7f0): 기기 Project의 Sessions가 기기 이유만 보이고, 같은 경로에 기록된 로컬 세션을 채우지 않으며 Retry가 없습니다.
  • 확인한 것: 네이티브 리뷰 3회(1차 전체, delta 2회, 3-lens 반박 검증). Fix now 2건을 회귀 테스트와 함께 고쳤고 delta 2차는 Fix now 0건입니다(아래 접힌 블록).
  • 확인하지 못한 것: 물리 기기 두 대 흐름. 원격은 이 Mac mini의 격리 endpoint로만 확인했습니다.
  • 확인하지 못한 것: macOS 앱 화면. Memory·Sessions의 Swift 의미는 core 테스트와 Swift suite로만 확인했습니다.
  • 확인하지 못한 것: docs/PERFORMANCE_TESTING.md의 통제 측정(web-shell-measure). 추가 비용은 이름 붙기 전 absent 확인 한 번, 이름 붙은 뒤 publication마다 O(rows) 비교라는 것을 코드와 wire 테스트로만 판단했습니다.
  • 확인하지 못한 것: 수천 개 세션 규모의 목록 스크롤과 검색 체감, Pen 렌더링.
  • 생성물: design/hide-ui.lib.pen의 656줄은 새 sheet 하나(Component / Session row)입니다.
리뷰 처리와 후속 작업
  • 1차(Fidelity·Correctness·Security·Docs/tests, 3-lens 반박 검증): 확인 10건, 반박 1건. Fix now 1건은 삭제·이동된 세션 행이 목록에서 사라지는 것(B5, D-04)이었습니다.
  • 1차 Fix now: 목록에 있던 세션은 파일이 사라져도 unavailable로 남음(d283521), 파일이 실제로 없을 때만 남음(0bbeff1). core 테스트 두 개와 S8 e2e로 확인합니다.
  • 1차 후속 중 고친 것: 같은 transcript를 다시 읽으면 공유 포인터를 유지하고 비교는 worker에서, 목록 읽기 실패가 기다리던 상세를 정리, 열린 세션의 행이 없으면 worker 없이 이유 표시.
  • 1차 후속 중 고친 것: resolver 오류 코드를 문장으로, Memory 읽기 문서 정정, 다른 Project 이름 붙이기와 요청 합치기 테스트, Copied 초기화 e2e.
  • delta 1차(d283521): Fix now 1건. catalog가 빼기만 한 세션도 "file can no longer be found"로 남겨, worktree를 지운 뒤 읽을 수 있는 파일을 열 수 없었습니다.
  • delta 1차 처리(0bbeff1): worker가 빠진 행의 파일을 확인해 NotFound일 때만 남기고, 파일이 있으면 catalog 결정대로 뺍니다. lock 안 O(rows) 병합도 worker로 옮겼습니다.
  • delta 1차 후속 중 고친 것(4f1e7f0): 실패할 수 없던 e2e 검사 두 개(B6 focus 대기의 class 일치, Copied 검사의 timeout: 0), 보존 행 경계 문서.
  • delta 2차(0bbeff1, 4f1e7f0): Fix now 0건. 반박 1건(읽을 수 없게 된 파일의 행이 빠지는 것은 이 커밋이 아니라 기존 catalog 한계), nit 1건은 후속으로 넘겼습니다.
  • 후속(이번 PR 밖): 목록·loading 전환마다 열린 transcript가 section과 함께 다시 전송됨. transcript를 별도 section으로 나누면 해결됩니다.
  • 후속(이번 PR 밖): 두 창이 거의 동시에 다른 Project를 이름 붙이면 한 창이 떠났다 돌아올 때까지 Loading sessions…에 남을 수 있음.
  • 후속(이번 PR 밖): 수천 개 행 목록 가상화, web-shell-measure 통제 측정, git link 실패 문구가 :가 든 경로를 자름.
  • 후속(이번 PR 밖): 제거된 worktree의 세션은 catalog가 기록된 cwd로 Project를 정하므로 이력에서 빠짐(기존 catalog 규칙, Swift와 공유).
  • 후속(이번 PR 밖): 목록에 있던 세션 파일이 권한 등으로 읽을 수 없게 되면 catalog가 건너뛰어 목록에서 빠짐(기존 catalog 한계).
  • 후속(이번 PR 밖): S8 e2e의 두 번째 Copied 검사는 앞선 복사의 2초 타이머를 새로 시작하지 않아, 느린 실행에서 드물게 실패하거나 회귀를 놓칠 수 있음. 앞 note가 사라질 때까지 기다리면 해결됩니다.
  • 후속(이번 PR 밖): 보존 행의 영구 기록은 웹이 hooks의 Memory 저장소를 읽게 되는 Memory 단계(D-17)에서 Memory의 session record가 맡습니다.
스크린샷 전체

세션이 없는 Project: No sessions yet 한 줄

세션이 없는 Project: No sessions yet 한 줄

파싱할 수 없는 세션 행의 Copy source location

파싱할 수 없는 세션 행의 Copy source location

provider와 검색이 일치하지 않을 때 Clear filters

provider와 검색이 일치하지 않을 때 Clear filters

검색에서 ArrowDown, 화살표와 Home으로 옮긴 행의 focus

검색에서 ArrowDown, 화살표와 Home으로 옮긴 행의 focus

파일을 지운 세션을 열 때 상세 자리의 이유와 Retry

파일을 지운 세션을 열 때 상세 자리의 이유와 Retry

세션 폴더를 읽을 수 없을 때 이유와 Retry

세션 폴더를 읽을 수 없을 때 이유와 Retry

다른 창이 다른 Project를 이름 붙였을 때 이 창의 안내와 Show this project's sessions

다른 창이 다른 Project를 이름 붙였을 때

두 번째 창이 다른 Project(alpha)의 Sessions를 엶

두 번째 창이 다른 Project(alpha)의 Sessions를 엶

1024 폭

1024 폭

1024 폭에서 끊김 없는 긴 경로

1024 폭에서 끊김 없는 긴 경로

격리 기기의 Project Overview

격리 기기의 Project Overview

Verification record
  • PRD: agents/prd/project-memory-sessions-web/prd.md (sha256 5efd10aa0e7d5a816977243fcb9e3ecc48358f93afd8f50148ddf3956b1eab26)
  • Base 0c0d248 → head 4f1e7f0, verified 2026-09-25T08:30:03.483Z: PASS
  • Verification report: agents/runs/project-memory-sessions-web/verification-report.json and agents/runs/project-memory-sessions-web/verification-report.md; source fingerprint 567343e4105891fbfc548b5fdf0952f1cd3b7a0499c58cb7e4bc663cb952988f
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-swift.sh test (exit 0)
    • S3: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • 1차 Fidelity·Correctness·Security·Docs/tests (head ad67fdc): Fix now 1건(삭제·이동된 세션 행이 목록에서 사라짐) → d283521, 0bbeff1. Follow-up·nit 9건 중 7건 고침, 2건(transcript 재전송, 두 창 이름 붙이기 경합) 후속.
    • delta 1차 Core·Fidelity (head d283521): Fix now 1건(파일이 남아 있는데 사라졌다고 표시, 두 lens가 같은 문제) → 0bbeff1. Follow-up 3건과 nit 2건 고침(0bbeff1, 4f1e7f0), nit 1건(git link 경로의 ':') 후속.
    • delta 2차 (0bbeff1, 4f1e7f0; verified head 4f1e7f0): Fix now 0건, 반박 1건, nit 1건(Copied e2e 타이머) 후속.
  • Evidence: 21 registered (15 screenshot, 5 log, 1 file); paths are local to the run directory
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-empty.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-history.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-unavailable-row.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-no-match.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-detail.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-keyboard-focus.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-detail-failed.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-detail-gone.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-list-failed.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-second-window.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-replaced.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-narrow.png
    • agents/runs/project-memory-sessions-web/evidence/s8/s8-narrow-long-path.png
    • agents/runs/project-memory-sessions-web/evidence/s8/playwright.txt
    • agents/runs/project-memory-sessions-web/evidence/b7/b7-01-device-overview.png
    • agents/runs/project-memory-sessions-web/evidence/b7/b7-02-device-sessions.png
    • agents/runs/project-memory-sessions-web/evidence/b7/playwright.txt
    • agents/runs/project-memory-sessions-web/evidence/b7/b7.spec.ts
    • agents/runs/project-memory-sessions-web/evidence/logs/e2e-final.log
    • agents/runs/project-memory-sessions-web/evidence/logs/web-gates-3.log
    • agents/runs/project-memory-sessions-web/evidence/logs/cargo-lint-3.log
  • Changed paths: 25 (see Files changed)

A screen can now name a catalog Project with `sessions_refresh` and a
`workspace_id`, and open one of its sessions beside the history with
`archive_open` and the same id. The named Project keeps its own state
(`project_sessions`), apart from the focused-checkout Sessions the Swift
right panel reads: those share their reads with Project Memory, which
cancels another checkout's analysis and schedules polls, and none of that
may move because a screen looked at a Project.

The named Project reuses the same readers and the same fence: a
generation per read with one read in flight and at most one waiting, so a
history or transcript read for a Project that is no longer named never
lands. A Project on an SSH device or gone from the catalog says why and
reads nothing, so no local session stands in for it. A refresh rereads the
open session against its fresh row, so one Retry covers both.

The state rides its own revisioned delta section, absent until a Project
is named: a busy history and a transcript are too large to resend with
every navigator change, and the transcript is an Arc of an Eq value so the
per-read comparison under the lock is a pointer check. Without a
`workspace_id` both events keep their meaning, and the Swift snapshot keeps
its keys.
A session file that went away after the history was read opened as
"could not be read: session_open: No such file or directory". The reason
now drops the reader's operation code and keeps the operating system's
words; a missing file and an oversized one read as their own sentences.

A session whose file moved away stays in the named Project's history
from its Memory record, unavailable with that record's reason, and its
detail answers with the same reason without reading a file.
A Project's Overview now leads to its Sessions: every Workspace's Claude
Code and Codex sessions, newest first, narrowed by provider and search,
with the chosen session read beside the list. Each row shows the first
request or title, the checkout, the time and whether the file can be
read; an unreadable row keeps its reason, Retry and the file path to
copy. The list tells no sessions yet from no match (with Clear filters)
and a failed read (with Retry); a device Project shows the device's
reason instead of local sessions.

The screen names its Project to the core on arrival and on reconnect.
The core names one Project for every window, so a window whose Project
another window replaced says so and names it again only when asked.
Filtering runs in the page, so typing costs no round trip.
The web Project Sessions list gets a reusable Session row with its
states: a Codex row, the open session, a session with no request or
title, an unreadable session with its reason, Retry and Copy source
location, a narrow row with a mixed Korean and English request, and the
list place's single marks for loading, none yet, no match, a failed read
and a device reason.

The empty list now says only that there are no sessions yet; the sentence
under it explained what the empty state already shows.
ARCHITECTURE.md describes how the web shell names a Project for its
Sessions instead of following the focus, the separate delta section, the
page-side filtering, and that the path leaves Memory work alone; it also
records Project Memory in the web shell as a deferred stage with the
facts that stage has to settle first. DESIGN.md gains the screen's
contract, PERFORMANCE_TESTING.md its cost contract, and the docs map
names the new owners.
The detail place said "Choose a session to read it here." beside a list
that was loading, empty, failed or unavailable on a device, where there
was nothing to choose. It now stays blank until the list has a row.
A session a Project's history listed and a later read no longer finds now
stays listed as unavailable with its last location, for as long as the
daemon runs, instead of vanishing as if it never existed. The core keeps
what each Project's history listed, bounded by what the catalog can list.

A failed history read now settles the open session: a waiting read of it
is dropped, and one that never showed its conversation says why instead
of reading forever. An open session whose row is gone says so without a
worker read, and a re-read that finds the same conversation keeps its
shared pointer, compared on the worker rather than under the lock.

Project folder failures from the resolver read as words without their
codes; the diagnostic keeps the code.
A session the catalog no longer lists for a Project was kept as "file can
no longer be found" even when its file was intact, for example after its
checkout was removed, and the readable file could then not be opened.
The history read's worker now takes the Project's last rows by pointer
and checks the file of each one the catalog no longer lists: a missing
file keeps the row unavailable with its last location, and a file still
there leaves the list as the catalog decided.

The merge and the reason wording now run on the worker, so the ingest
under the lock only swaps the settled rows in. The docs state that what
is kept grows only with sessions deleted while the daemon runs.
The copy note check now copies, opens another session at once and looks
once, so a note carried to the next session fails instead of fading out
before the check. The second window's focus wait matches the selected
row's own class rather than the focus-visible variant every row carries.
@yansfil
yansfil merged commit 79ee11f into main Sep 25, 2026
6 checks passed
@yansfil
yansfil deleted the prd/project-memory-sessions-web branch September 25, 2026 08:49
yansfil added a commit that referenced this pull request Sep 25, 2026
Both sides added a snapshot section (documents, project_sessions), a
delta-state field and a design library sheet; each keeps both. The
library was merged by sheet, not by line: main's Session row stays
where it is and this branch's four View sheets move right past it, and
gen-pen leaves the result unchanged.
yansfil added a commit that referenced this pull request Sep 25, 2026
Related: PRD `agents/prd/workspace-views-layout/prd.md` (S7), S6 #144 위에
쌓이고 main의 S8 #146을 merge했습니다.

## Summary

- Workspace의 Views를 View 영역(분할 트리, 최대 6개·깊이 3)으로 나누고, 영역마다 자기 탭 줄과 미리보기
탭을 가집니다.
- 한 문서를 두 영역에 열면 편집 버퍼 하나를 공유하므로, 한쪽 입력(한글 IME 포함)이 다른 쪽에 바로 보입니다.
- 탭 끌기(순서·다른 영역·가장자리 분할), 탭 메뉴, 명령 팔레트, 키보드 divider로 배치하고, 안 되는 동작은 이유와
함께 꺼집니다.
- core가 Workspace마다 트리를 `workspace-views.json` schema 2에 기억하고(v1 이전),
재시작하면 같은 배치로 돌아옵니다.
- Changes 읽기 한 번이 보이는 모든 View diff에 답합니다(helper protocol 9, 8인 helper는
이유와 함께 거절).

![두 영역: 탭 줄마다 보이는 탭을 시야에 두고, 활성 영역의 탭에
강조색](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-06-two-areas.png)
![탭을 오른쪽 가장자리로 끌면 절반 overlay와 "Split
right"](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-05-drag-split-right-overlay.png)
![Open to the side: 같은 문서의 두 View가 한 버퍼를
공유](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-13-open-to-side-shared-edit.png)

## Review

- **판단해 주세요**: 영역 가운데는 drop target이 아니고 가장자리 30%만 분할입니다. 키보드 divider 한
칸은 0.05입니다.
- **판단해 주세요**: 마지막 View를 닫을 때 저장 안 된 문서는 pending_save나 discard 없이
거절됩니다(`view_layout.unsaved`).
- **판단해 주세요**: 문서가 이미 보이는 영역으로 View를 옮기면 그 쌍둥이를 대신하고, index는 쌍둥이를 뺀 최종
자리입니다.
- **판단해 주세요**: ⌥W는 View 영역에 키보드가 있거나 Views만 그려지면(좁은 창 포함) 기기
Workspace에서도 활성 View를 닫습니다.
- **판단해 주세요**: 빈 Views에서 Open to the side는 빈 영역에 엽니다. 하나뿐인 영역에서는 Split
right만큼 폭이 있어야 켜집니다.
- **판단해 주세요**: 좁은 창의 tools overlay·영역 전환은 표시용이며 저장하지 않습니다(B12, B13).
- **판단해 주세요**: hided는 모르는 checkout root를 거절하기 전에 core를 한 번 다시 읽습니다(첫 CI
실패의 원인과 수정, Evidence).
- **판단해 주세요**: Pen library는 S8과 줄이 아니라 sheet 단위로 합쳤고, main의 Session row
자리를 두고 View sheet 4개를 480 오른쪽으로 옮겼습니다.
- **판단해 주세요**: 최종 리뷰 뒤 커밋 7개(dcfc1c0..4868ee6, 425fff1)는 사용자 결정으로 delta
리뷰 없이 올립니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/view_areas.rs` - runtime mutex.
event마다 Views 정리가 lock 안에서 돌고, 키 입력은 건너뜁니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/projects.rs` `ingest_changes` -
high-frequency path. 250 ms pump의 늦은 답이 선택 행을 되돌리지 않게 막습니다.
- **조심해서 볼 파일**: `herdr-core/src/model.rs`, `runtime/documents.rs` -
snapshot wire. `documents` 섹션은 바뀐 문서만 edit number로 보냅니다.
- **조심해서 볼 파일**: `herdr-core/src/view_layout.rs`, `workspace_views.rs` -
failure path. 읽을 수 없거나 다른 schema인 파일은 옆 이름으로 옮겨 보관합니다.
- **조심해서 볼 파일**: `herdr-core/src/remote/host.rs` - failure path.
protocol이 다른 helper는 두 버전과 다시 빌드·설치하라는 안내로 거절됩니다.
- **조심해서 볼 파일**: `hide-host/src/git.rs` - 보이는 View diff 여러 개를 Changes 한
번에 답하고, diff마다 256 KiB 한도를 지킵니다.
- **조심해서 볼 파일**: `web/src/ViewAreas.tsx`, `web/src/editor/sync.ts` - 문서
하나에 버퍼 하나, View마다 스크롤·선택 기억, Workspace마다 트리를 새로 mount.
- **조심해서 볼 파일**: `hided/src/lib.rs` `RootFollower`,
`hided/src/server.rs` `admit_event` - failure path. 거절 직전의 따라잡기가 lock 하나
뒤에서 core를 읽습니다.
- **조심해서 볼 파일**: `web/src/actions.ts` `closeTab` - ⌥W가 View, 기기의 탭, 이
Mac의 탭 중 무엇을 닫을지 정하는 순서.
- **질문**: Swift 셸의 History에도 같은 늦은 답 반복이 있습니다(#15/#27부터). main에 따로 고치는
것이 맞을까요?

## Evidence

- **확인한 것**: `sasu implement verify` PASS (eb671c0): cargo test 132 s,
Swift test 16 s, cargo lint 22 s.
- **확인한 것**: eb671c0의 CI 6개 모두 통과: web shell(e2e 포함) 14분 46초, rust,
swift, repository invariants, static-design.
- **확인한 것**: 6e03f32의 verify가 main에도 있던 opener 테스트 경쟁(pid 파일을 쓰기 전에
읽음)으로 한 번 실패해, eb671c0에서 고쳤습니다(3회 연속 통과).
- **확인한 것**: 실제 Herdr·hided web e2e 전체 54개 통과, 8.9분(merge한 6e03f32,
worker 1개). eb671c0은 hided 테스트 보조 함수만 바꿉니다.
- **확인한 것**: S7 흐름 12개가 B1-B22를 덮습니다(접힌 표).
- **확인한 것**: 첫 CI(4868ee6)의 web e2e 1개 실패: 재시작 직후 Explorer의 첫
`file_list`가 hided의 root 갱신보다 먼저 와 `outside_checkout`으로 거절됐습니다.
- **확인한 것**: Explorer는 거절된 폴더를 다시 묻지 않아 트리가 빈 채였습니다. 425fff1은 거절 전에
root를 core와 맞추고 한 번 더 확인합니다.
- **확인한 것**: 그 순서는 hided 단위 테스트가 결정적으로 재현합니다. 실패했던 e2e는 로컬 5회 반복과 s7 12개
모두 통과했습니다.
- **확인한 것**: 앞면 전환 회귀 테스트(F6)는 View 트리의 Workspace key를 빼면 실패합니다(음성 대조).
- **확인한 것**: vitest 284개, tsc·eslint, design contract, CONTRIBUTING
script gate 17개, scripts unittest 39개, design node test 2개, attribution
검사 (모두 6e03f32).
- **확인한 것**: 격리 기기 endpoint(비특권 asyncssh, private Herdr)에서 원격 흐름 3/3
(eb671c0, 6e03f32에서도 3/3), B23을 덮습니다(접힌 표).
- **확인한 것**: PERFORMANCE_TESTING 절차로 views(영역 4개) 대 multi 대조 3쌍(be00526
빌드): idle 60 s 프레임 0(양쪽 모두).
- **확인한 것**: 같은 측정에서 hided CPU 0.92% 대 0.85%, echo p95 1.0 ms 대 0.98 ms,
두 View 입력 반영 p95 5.6 ms.
- **확인한 것**: 드래그 중 전송·PTY resize·reattach 0, 놓을 때 pane마다 resize 한 번 이하.
- **확인한 것**: 120 s 구동 중 놓친 refresh는 7200번 중 1번(양쪽 같음). 기존 "16.7 ms 초과 1%
이하" 규칙은 양쪽 다 실패합니다(31% 대 31%).
- **확인한 것**: 최종 리뷰 1차(57e3237, 6개 관점, 발견마다 도달성 반박과 판정): Fix now 6건 모두 회귀
테스트와 함께 수정, 후속 9건 중 4건 수정.
- **확인하지 못한 것**: 수정 뒤 delta 리뷰(57e3237 이후)는 사용자 결정으로 돌리지 않았습니다. 이 구간은
테스트와 e2e로만 확인했습니다.
- **확인하지 못한 것**: 경쟁은 로컬에서 재현되지 않았습니다(로컬 hided 로그의 거절 0건).
- **확인하지 못한 것**: eb671c0의 CI web e2e는 통과했지만 CI는 실패할 때만 로그를 올려, 그 실행에서
따라잡기가 실제로 돌았는지는 모릅니다.
- **확인하지 못한 것**: 12daff3(비활성 영역의 Close view·Retry를 이벤트 하나로)에는 전용 테스트가
없습니다.
- **확인하지 못한 것**: 60 Hz 프레임 규칙 실패는 타이머 떨림으로 보이지만 원인을 증명하지 않았습니다. 규칙 보정은
후속입니다.
- **확인하지 못한 것**: 물리 기기 두 대. 같은 절대 경로·다른 내용은 root나 두 번째 기계가 필요해, 같은 경로가 두
문서가 되는 것까지만 확인했습니다.
- **확인하지 못한 것**: Pen 렌더링(새 sheet 4개, CLI 로그인 필요), 네이티브 macOS 화면 캡처(검증
세션에 화면 기록 권한 없음). 화면은 Playwright로 찍었습니다.
- **생성물**: `design/hide-ui.lib.pen`의 큰 diff는 새 sheet 4개와 `gen-pen` 토큰
갱신입니다. `--size-view-area-min-height` 토큰을 추가했습니다.

<details><summary>S7 e2e 흐름과 B 번호</summary>

- 1 배치·미리보기·포커스 B1-B3 / 2 Open to the side, 두 View에 한글 IME B4 B5 B20
- 2b 하나뿐인 영역은 폭이 생길 때까지 거절, History 행 메뉴가 포인터 자리에 온전히 열림 B4 B9
- 3 끌기 B6-B8 / 4 분할·divider·키보드 B9 B10 B18 B20 / 5 메뉴 집합과 한도, 모든
view_layout에 workspace B11 B19
- 6 좁은 창, 아무것도 저장하지 않음, Views만 그려질 때 ⌥W는 View를 닫고 Herdr 탭·pane은 그대로 B12
B13
- 6b 바깥 클릭이 포커스를 돌려줌 / 7a 복원·삭제된 파일 unavailable+Retry B14-B16
- 7b 손상·schema 3 보관, S6 v1 파일 이전 B17 / 8 S6 동작 유지 B22
- 다른 client가 앞면을 다른 Workspace로 옮기면 끌기와 탭 메뉴가 끝나고 아무것도 보내지 않음 B8
- 원격(별도 실행, 3개): 기기 Workspace 분할·이동·끌기·resize에 device_id, 재시작 대기,
endpoint 소실과 복귀, 같은 경로 두 문서, protocol 8 거절 B23

</details>

<details><summary>리뷰 처리와 후속 작업</summary>

- 중간 리뷰: Workspace identity, 기기 이유, 토큰, 64 View 한도, 비교 비용, Retry diff,
거절 문구를 고쳤습니다.
- 초기 core 리뷰 Fix now 1건·후속 17건, web 리뷰 Fix now 5건을 모두 고쳤습니다.
- 구현 중 발견해 고친 것: 빈 Views의 Open to the side, 쌍둥이 View 이동, 탭 줄 시야, 팔레트 이유
잘림, 기기 Explorer 재목록, tools overlay 포커스, History 선택 반복.
- 최종 리뷰 1차(57e3237): 6개 관점(fidelity, core 상태, wire·성능, web, 보안, 테스트·문서),
21건 중 Fix now 6, 후속 9, 반박 6.
- F1+F4 (b6501fe): 기기 Workspace에서 ⌥W가 활성 View 대신 기기의 Herdr 탭을 닫았습니다.
`remote.test.ts`가 View close 한 번을 확인합니다.
- F2 (dcfc1c0): 쌍둥이 View 쪽으로의 이동이 한 칸 왼쪽에 놓여 같은 이동이 순서를 또 바꿨습니다(B18).
core 단위 테스트는 옛 코드에서 실패합니다.
- F3 (f3e2a65): History 행 메뉴가 transform된 행 기준으로 놓여 포인터에서 벗어나고 잘렸습니다. e2e
2b가 모서리와 꺼진 항목을 확인합니다.
- F5 (b6501fe): 좁은 Together에서 Views만 그려질 때 ⌥W가 보이지 않는 Agent 탭을 닫았습니다.
e2e 6이 Herdr id 불변을 확인합니다.
- F6 (e711dfd): 한 Workspace에서 시작한 끌기·divider 끌기·탭 메뉴가 앞면 전환 뒤 다른
Workspace의 같은 id View에 적용됐습니다.
- 후속에서 끌어와 고친 것: 비활성 영역 Close view·Retry의 이벤트 두 개(12daff3), `draft.ts`
주석, Open to the side 폭 e2e의 skip, `docs/README.md` 소유자 행(4868ee6).
- 수정 뒤 delta 리뷰는 사용자 결정으로 돌리지 않았습니다.
- CI 수정 (425fff1): root 추적을 `RootFollower` 하나로 모으고, Explorer
이벤트·`file_index`·`file_bytes`·기기 root의 `outside_checkout` 거절 전에 한 번
따라잡습니다.
- 후속: Explorer는 거절된 폴더를 새로 고침이나 변경 알림 전까지 다시 묻지 않습니다. 이번 경쟁은 hided에서
막았지만 다른 일시적 거절도 같은 식으로 남습니다.
- 후속: 읽는 중인 파일에 보낸 Open to the side가 그 읽기에 합쳐져 조용히 사라집니다(기기, 복원, Retry).
- 후속: diff View 클릭이 Changes 섹션 전체를 두 번 보냅니다. web이 쓰지 않는 `changes.diff`
읽기와 같은 원인입니다.
- 후속: 같은 Workspace에서 다른 client가 분할을 없애면 divider 끌기 안내선이 다음 끌기까지 남습니다.
- 후속: 조작된 Views 파일이 큰 복구 진단을 만들 수 있고, ARCHITECTURE.md의 "as counts"는 실제보다
강하게 씁니다.
- 후속: `sync.test.ts`의 stale echo 경우는 대기 echo가 컴포넌트에 있어 실패할 수 없습니다.
- 후속: 60 Hz에서 16.7 ms 초과 프레임 1% 규칙은 views와 multi 모두 31%로 실패합니다. 규칙이나 측정을
고쳐야 합니다.
- 후속: View diff를 checkout root 기준으로(helper protocol 10), 트리 모양이 바뀌면
editor가 다시 mount됨.
- 후속: Swift History의 늦은 답 반복, 탭 줄 가장자리 끌기 자동 스크롤 없음.
- 후속: 키 입력마다 문서 전체 왕복(S5.5 `file_draft` 약 207 KB, S7 `documents` 약 208
KB), 편집 중인 문서만.
- 후속(기존): Explorer의 `outside_checkout` 원문, 터미널 아래 어두운 띠(S6), Main의
key=value 기기 오류와 남는 연결 중 문구.
- 반박: ⌥` 순환(요구 없음), 반복 Open to the side(쌍둥이에 포커스), 문서 재진입(e2e가 덮음), 한도
정리 병합(조작된 파일만), Swift delta 키(모르는 키 무시).

</details>

<details><summary>스크린샷 전체 39장 (격리 fixture, 임시 HOME,
Playwright)</summary>

**이 Mac의 Workspace** (1440x900, 이름에 적힌 창 크기는 예외)

`s7-01` 빈 Views: 열린 View가 없는 영역

![빈 Views: 열린 View가 없는
영역](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-01-views-empty.png)

`s7-02` 미리보기(기울임) 탭과 고정된 View가 나란히

![미리보기(기울임) 탭과 고정된 View가
나란히](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-02-preview-beside-pinned.png)

`s7-03` 미리보기 탭 메뉴: Keep open과 분할·이동 항목

![미리보기 탭 메뉴: Keep open과 분할·이동
항목](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-03-menu-preview-keep-open.png)

`s7-04` 같은 탭 줄 안에서 끌면 삽입선

![같은 탭 줄 안에서 끌면
삽입선](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-04-drag-reorder-insertion-line.png)

`s7-05` 영역 오른쪽 가장자리로 끌면 절반 overlay와 Split right

![영역 오른쪽 가장자리로 끌면 절반 overlay와 Split
right](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-05-drag-split-right-overlay.png)

`s7-06` 두 영역: 탭 줄마다 보이는 탭을 시야에 두고, 활성 영역의 탭에 강조색

![두 영역: 탭 줄마다 보이는 탭을 시야에 두고, 활성 영역의 탭에
강조색](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-06-two-areas.png)

`s7-07` 자기 영역의 하나뿐인 View를 가장자리로 끌면 overlay 없이 끌기 표시에 이유

![자기 영역의 하나뿐인 View를 가장자리로 끌면 overlay 없이 끌기 표시에
이유](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-07-drag-refused-only-view.png)

`s7-08` 반으로 나눌 수 없게 좁은 영역은 가장자리 drop을 이유와 함께 거절

![반으로 나눌 수 없게 좁은 영역은 가장자리 drop을 이유와 함께
거절](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-08-drag-refused-too-narrow.png)

`s7-09` 탭 메뉴: 꺼진 분할 항목과 이름 아래 이유

![탭 메뉴: 꺼진 분할 항목과 이름 아래
이유](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-09-menu-pinned-split-disabled.png)

`s7-10` 다른 영역의 탭 줄로 끌기

![다른 영역의 탭 줄로
끌기](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-10-drag-move-into-other-bar.png)

`s7-11` 영역 아래 가장자리로 끌면 Split down overlay

![영역 아래 가장자리로 끌면 Split down
overlay](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-11-drag-split-down-overlay.png)

`s7-12` 세 영역

![세
영역](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-12-three-areas.png)

`s7-13` Open to the side: 한 문서의 두 View가 한 버퍼를 공유해 입력이 양쪽에 보임

![Open to the side: 한 문서의 두 View가 한 버퍼를 공유해 입력이 양쪽에
보임](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-13-open-to-side-shared-edit.png)

`s7-14` 명령 팔레트의 View 명령: 꺼진 항목은 제목 아래 이유 전체

![명령 팔레트의 View 명령: 꺼진 항목은 제목 아래 이유
전체](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-14-palette-view-commands.png)

`s7-15` 작업 중 diff를 그 파일 옆에 열기

![작업 중 diff를 그 파일 옆에
열기](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-15-diff-beside-file.png)

`s7-16` 키보드로 포커스한 divider

![키보드로 포커스한
divider](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-16-divider-keyboard-focus.png)

`s7-17` 재시작 후 같은 배치, 삭제된 파일의 View는 unavailable과 Close view·Retry

![재시작 후 같은 배치, 삭제된 파일의 View는 unavailable과 Close
view·Retry](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-17-restored-layout-unavailable.png)

`s7-18` 여는 중인 View

![여는 중인
View](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-18-view-opening.png)

`s7-19` 이유와 함께 기다리는 View (Explorer의 `outside_checkout` 원문은 기존 후속 항목)

![이유와 함께 기다리는 View (Explorer의 `outside_checkout` 원문은 기존 후속
항목)](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-19-view-waiting.png)

`s7-20` 900 px 창: Agents와 Views 함께

![900 px 창: Agents와 Views
함께](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-20-narrow-900-together.png)

`s7-21` 900 px 창: 요청해서 연 tools overlay

![900 px 창: 요청해서 연 tools
overlay](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-21-narrow-900-tools-overlay.png)

`s7-22` 900 px 창: 영역 전환

![900 px 창: 영역
전환](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-22-narrow-900-area-switcher.png)

`s7-23` 700 px 창: 작업 영역 전환

![700 px 창: 작업 영역
전환](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-23-narrow-700-region-switch.png)

`s7-24` 깊이 한도에서 분할 항목이 이유와 함께 꺼짐

![깊이 한도에서 분할 항목이 이유와 함께
꺼짐](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-24-cap-depth-menu.png)

`s7-25` 영역 6개에서 분할 항목이 이유와 함께 꺼짐

![영역 6개에서 분할 항목이 이유와 함께
꺼짐](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-25-cap-six-areas-menu.png)

`s7-26` View 64개에서 하나를 닫으라는 안내, 보이는 탭은 시야에 유지

![View 64개에서 하나를 닫으라는 안내, 보이는 탭은 시야에
유지](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/s7-26-cap-64-views-notice.png)

**기기 Workspace** (루프백 SSH 뒤의 격리 기기 endpoint, 1680x960)

`b23-01` 기기 Workspace의 두 View 영역

![기기 Workspace의 두 View
영역](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-01-device-two-areas.png)

`b23-01a` 기기 Workspace에서 탭 줄 안 순서 바꾸기 삽입선

![기기 Workspace에서 탭 줄 안 순서 바꾸기
삽입선](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-01a-device-drag-insertion.png)

`b23-02` 재시작 후 기기의 View가 devbox 연결을 기다림

![재시작 후 기기의 View가 devbox 연결을
기다림](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-02-restored-waiting.png)

`b23-03` 같은 트리·비율·탭·활성 영역으로 기기의 View가 열림

![같은 트리·비율·탭·활성 영역으로 기기의 View가
열림](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-03-restored-open.png)

`b23-04` endpoint가 사라지면 기기 이유만 보이고 로컬로 대체하지 않음 (key=value 오류 문구는 기존 후속
항목)

![endpoint가 사라지면 기기 이유만 보이고 로컬로 대체하지 않음 (key=value 오류 문구는 기존 후속
항목)](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-04-endpoint-gone.png)

`b23-05` endpoint가 없는 채로 Hide를 다시 열기

![endpoint가 없는 채로 Hide를 다시
열기](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-05-reopened.png)

`b23-05a` endpoint가 돌아오면 Retry 없이 기다림에서 열림으로

![endpoint가 돌아오면 Retry 없이 기다림에서
열림으로](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-05a-endpoint-back-waiting.png)

`b23-06` 같은 절대 경로의 기기 문서에 입력. fixture가 폴더를 읽기 전용으로 두어 자동 저장이 거절되고 편집은 기기
버퍼에만 남음

![같은 절대 경로의 기기 문서에 입력. fixture가 폴더를 읽기 전용으로 두어 자동 저장이 거절되고 편집은 기기 버퍼에만
남음](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-06-same-path-device-edited.png)

`b23-07` 같은 경로의 이 Mac 문서는 그대로

![같은 경로의 이 Mac 문서는
그대로](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-07-same-path-local-unchanged.png)

`b23-08` 기기로 돌아오면 편집이 기기 문서에 그대로(저장 안 됨)

![기기로 돌아오면 편집이 기기 문서에 그대로(저장 안
됨)](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-08-same-path-device-kept.png)

`b23-09` protocol 8 helper: 두 영역이 protocol 불일치와 다시 빌드·설치 안내를 표시
(Explorer에 남는 연결 중 문구는 기존 후속 항목)

![protocol 8 helper: 두 영역이 protocol 불일치와 다시 빌드·설치 안내를 표시 (Explorer에 남는
연결 중 문구는 기존 후속
항목)](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-09-stale-helper-reason.png)

`b23-10` protocol 8 helper: Main도 같은 이유와 Retry

![protocol 8 helper: Main도 같은 이유와
Retry](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-10-stale-helper-main.png)

`b23-11` 현재 helper: 두 View 모두 열림

![현재 helper: 두 View 모두
열림](https://gist.githubusercontent.com/yansfil/b1a447aa5d0e239c88886c2eb751e6e4/raw/b23-11-current-helper-open.png)

</details>

<details><summary>Verification record</summary>

- PRD: `agents/prd/workspace-views-layout/prd.md` (sha256
8ce830299da8ade558deaa232f6934f8274445a54fd08ef032dc16f0c335803b)
- Base 0c0d248 → head eb671c0, verified 2026-09-25T09:16:26.841Z: PASS
- Verification report:
`agents/runs/workspace-views-layout/verification-report.json` and
`agents/runs/workspace-views-layout/verification-report.md`; source
fingerprint
b36069f5331df0b4061d49e8fe57092470fcc1a46a32b44593bc6a7de5aa6201
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-swift.sh test` (exit 0)
  - S3: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity, Code (core state, wire and performance, web, tests and docs)
and Security, final round 1 on 57e3237, each finding checked by a
reachability refuter and a disposition judge: 21 findings, Fix now 6,
Follow-up 9, refuted 6.
- Fix now, all fixed with a regression test: F1+F4 and F5 in b6501fe, F2
in dcfc1c0, F3 in f3e2a65, F6 in e711dfd (its e2e fails without the
fix).
- Follow-up fixed: fol04 in 12daff3 (no dedicated test), fol06, fol09
and the owner row of dro04 in 4868ee6; fol01/02, fol03, fol05, fol07,
fol08 are listed as follow-ups in this PR.
- Delta review after 57e3237 (dcfc1c0..4868ee6 and the CI fix 425fff1):
not run, by the user's decision; covered by verify, vitest and the whole
e2e suite on the merged head.
- CI on 4868ee6 failed one e2e (s7 caps): the Explorer's first listing
after a restart reached hided before its roots did; fixed in 425fff1
with a hided unit test, then main (S8 #146) merged in 6e03f32.
- Verification on 6e03f32 failed once in hided/tests/opener_lifecycle.rs
(a pid file read before the fake opener wrote it, the same code as
main); eb671c0 fixes that helper.
- Earlier rounds: core review (Fix now 1, Follow-up 17) and web review
(Fix now 5), all fixed before 57e3237.
- Evidence: 142 registered (12 log, 30 file, 91 screenshot, 9 api);
paths are local to the run directory
  - agents/runs/workspace-views-layout/e2e-s7/logs/suite-be00526.txt
  - agents/runs/workspace-views-layout/e2e-s7/summary.txt
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-01-views-empty.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-02-preview-beside-pinned.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-03-menu-preview-keep-open.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-04-drag-reorder-insertion-line.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-05-drag-split-right-overlay.png
- agents/runs/workspace-views-layout/pr-shots/run-4/s7-06-two-areas.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-07-drag-refused-only-view.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-08-drag-refused-too-narrow.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-09-menu-pinned-split-disabled.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-10-drag-move-into-other-bar.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-11-drag-split-down-overlay.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-12-three-areas.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-13-open-to-side-shared-edit.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-14-palette-view-commands.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-15-diff-beside-file.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-16-divider-keyboard-focus.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-17-restored-layout-unavailable.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-18-view-opening.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-19-view-waiting.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-20-narrow-900-together.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-21-narrow-900-tools-overlay.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-22-narrow-900-area-switcher.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-23-narrow-700-region-switch.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-24-cap-depth-menu.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-25-cap-six-areas-menu.png
-
agents/runs/workspace-views-layout/pr-shots/run-4/s7-26-cap-64-views-notice.png
  - agents/runs/workspace-views-layout/remote-b23/run-6/playwright.txt
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-01-device-two-areas.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-01a-device-drag-insertion.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-02-restored-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-03-restored-open.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-04-endpoint-gone.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-05-reopened.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-05a-endpoint-back-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-06-same-path-device-edited.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-07-same-path-local-unchanged.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-08-same-path-device-kept.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-09-stale-helper-reason.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-10-stale-helper-main.png
-
agents/runs/workspace-views-layout/remote-b23/run-6/b23-11-current-helper-open.png
  - agents/runs/workspace-views-layout/remote-b23/run-6/t1-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-6/t2-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-6/t3-wire.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/report.md
  - agents/runs/workspace-views-layout/perf-s7/phase2/comparison.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-1/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-1/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-1/echo-summary.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-1/drags.json
- agents/runs/workspace-views-layout/perf-s7/phase2/views-1/typing.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/multi-1/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-1/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-1/echo-summary.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-2/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-2/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-2/echo-summary.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-2/drags.json
- agents/runs/workspace-views-layout/perf-s7/phase2/views-2/typing.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/multi-2/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-2/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-2/echo-summary.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-3/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-3/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/views-3/echo-summary.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/views-3/drags.json
- agents/runs/workspace-views-layout/perf-s7/phase2/views-3/typing.json
  - agents/runs/workspace-views-layout/perf-s7/phase2/multi-3/idle.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-3/frames-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/multi-3/echo-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/committed-multi/echo-summary.json
-
agents/runs/workspace-views-layout/perf-s7/phase2/committed-multi/frames-summary.json
  - agents/runs/workspace-views-layout/remote-b23/run-7/playwright.txt
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-01-device-two-areas.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-01a-device-drag-insertion.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-02-restored-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-03-restored-open.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-04-endpoint-gone.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-05-reopened.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-05a-endpoint-back-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-06-same-path-device-edited.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-07-same-path-local-unchanged.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-08-same-path-device-kept.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-09-stale-helper-reason.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-10-stale-helper-main.png
-
agents/runs/workspace-views-layout/remote-b23/run-7/b23-11-current-helper-open.png
  - agents/runs/workspace-views-layout/remote-b23/run-7/t1-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-7/t2-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-7/t3-wire.json
  - agents/runs/workspace-views-layout/e2e-s7/logs/suite-4868ee6.txt
-
agents/runs/workspace-views-layout/e2e-s7/logs/s7-fix06-without-key.txt
  - agents/runs/workspace-views-layout/pr-shots/run-5/playwright.txt
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-01-views-empty.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-02-preview-beside-pinned.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-03-menu-preview-keep-open.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-04-drag-reorder-insertion-line.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-05-drag-split-right-overlay.png
- agents/runs/workspace-views-layout/pr-shots/run-5/s7-06-two-areas.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-07-drag-refused-only-view.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-08-drag-refused-too-narrow.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-09-menu-pinned-split-disabled.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-10-drag-move-into-other-bar.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-11-drag-split-down-overlay.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-12-three-areas.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-13-open-to-side-shared-edit.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-14-palette-view-commands.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-15-diff-beside-file.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-16-divider-keyboard-focus.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-17-restored-layout-unavailable.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-18-view-opening.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-19-view-waiting.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-20-narrow-900-together.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-21-narrow-900-tools-overlay.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-22-narrow-900-area-switcher.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-23-narrow-700-region-switch.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-24-cap-depth-menu.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-25-cap-six-areas-menu.png
-
agents/runs/workspace-views-layout/pr-shots/run-5/s7-26-cap-64-views-notice.png
  - agents/runs/workspace-views-layout/remote-b23/run-8/playwright.txt
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-01-device-two-areas.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-01a-device-drag-insertion.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-02-restored-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-03-restored-open.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-04-endpoint-gone.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-05-reopened.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-05a-endpoint-back-waiting.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-06-same-path-device-edited.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-07-same-path-local-unchanged.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-08-same-path-device-kept.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-09-stale-helper-reason.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-10-stale-helper-main.png
-
agents/runs/workspace-views-layout/remote-b23/run-8/b23-11-current-helper-open.png
  - agents/runs/workspace-views-layout/remote-b23/run-8/t1-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-8/t2-wire.json
  - agents/runs/workspace-views-layout/remote-b23/run-8/t3-wire.json
  - agents/runs/workspace-views-layout/e2e-s7/logs/suite-6e03f32.txt
-
agents/runs/workspace-views-layout/e2e-s7/logs/s7-caps-repeat-fix-roots.txt
  - agents/runs/workspace-views-layout/e2e-s7/logs/s7-fix-roots.txt
  - agents/runs/workspace-views-layout/ci-145-4868ee6/hided-s7-caps.log
-
agents/runs/workspace-views-layout/ci-145-4868ee6/s7-caps-error-context.md
-
agents/runs/workspace-views-layout/ci-145-4868ee6/web-shell-e2e-tail.txt
- Changed paths: 89 (see Files changed)

</details>
yansfil added a commit that referenced this pull request Oct 28, 2026
…dows shell never draws (#1810)

Closes with-hide/hide-private#200
Related: with-hide/hide-private#116, with-hide/hide-private#117,
with-hide/hide-private#154, with-hide/hide-private#312

## Summary

Linux desktop nightly가 매일 실패하던 원인을 고치고, Windows web e2e에서 첫 화면이 안 그려지는
flaky의 원인을 다음 실패에서 알 수 있게 기록합니다.
- #200: Herdr 화면에는 줄바꿈 표시가 없어서, 줄 끝까지 꽉 찬 주소는 다음 줄 첫 단어로 이어진다고 읽습니다.
Linux에서는 이 테스트의 pane이 정확히 29칸이고 `http://127.0.0.1:PORT/a.html`도 29자라, 다음
줄 `osc8`이 주소에 붙었습니다. 주소 다음 줄을 비워 폰트 폭과 무관하게 했습니다.
- #116, #117(같은 증상 #123 #133 #146 #217): Windows에서 shell이나 프로젝트 줄이 20초
안에 안 그려집니다. 남은 증거로 원인을 확정하지 못해 이 PR에서 닫지 않습니다. `enterWorkspace`의 대기가
실패하면 페이지 상태, 각 요청의 응답, 응답 없이 끝난 요청(최대 32개, Chromium의 이유 포함)을 failure
dump로 남깁니다. 통과한 테스트는 아무것도 출력하지 않습니다.
- #154: #1650(4fc9b8c)이 이미 고쳤습니다. 이후 flaky 3건은 모두 그 수정이 없는 커밋이고 10-24
이후 재발이 없어, 근거와 함께 이슈를 닫았습니다.

## Review

- **판단해 주세요**: #200의 제품 동작은 이 PR에서 고치지 않았습니다. 꽉 찬 URL 뒤에 상관없는 줄이 오면
운영자에게도 틀린 링크가 열리지만, 화면 격자만으로는 진짜 줄 넘김과 구분할 수 없습니다(이어지는 조각도 URL 문자로 시작).
Herdr는 `recent_unwrapped`로 그 사실을 알고 있어서, 그것을 링크 판단까지 가져오는 일을
with-hide/hide-private#312로 남겼습니다.
- **판단해 주세요**: #116/#117은 원인 수정이 아니라 진단 추가입니다. 분석은 #116, #117 코멘트에 있습니다.
- **조심해서 볼 파일**: `web/e2e/wire.ts` - 모든 web spec이 지나는 길입니다. 대기를 감싸기만 하고
timeout, 재시도, 단언은 그대로입니다.
- **조심해서 볼 파일**: `web/e2e/failure-dump.ts` - 실패한 요청 기록은 페이지마다 32개 상한이고
페이지가 닫히면 버립니다. 주소의 hash에 daemon token이 있어서 경로만 기록합니다.

## Evidence

- **확인한 것**: 10-27 nightly 스크린샷(`terminal-url-menu.png`)에서 주소가 pane 오른쪽
끝에 정확히 닿고 다음 줄이 `osc8`로 시작합니다. 수정 전 9회 nightly가 모두 두 시도에서 받은 값
`.../a.htmlosc8`로 실패했습니다.
- **확인한 것**: 361a08faa에서 nightly `lane=linux`를 두 번
dispatch했습니다(40718149961, 40718546910). 두 번 모두 desktop e2e linux 19/19
통과, 고친 테스트 첫 시도 통과, flaky 없음입니다.
- **확인한 것**: 같은 커밋의 PR verify(40718258556)가 통과했습니다. 고친 테스트는 macOS와
Windows desktop e2e에서도 첫 시도에 통과했고, desktop·web e2e 모든 shard에 flaky가
없었습니다.
- **확인한 것**: 9d7fd7c(실패 요청 버퍼)는 web e2e eslint, 타입 검사, `playwright
test --list`(387 tests)가 통과했습니다. CI는 이 커밋에서 다시 돕니다.
- **확인하지 못한 것**: 로컬 desktop e2e는 돌리지 못했습니다. 디스크 여유가 759 MiB라 debug
build가 불가능해 실행 근거는 모두 CI입니다.
- **확인하지 못한 것**: #116/#117의 원인. 다음 Windows 실패의 `[failure dump] shell
start` / `project row` 줄이 근거가 됩니다.

<details><summary>Verification record</summary>

- Base: `8915cb3d8878` (origin/main at branch start)
- Heads: `361a08faa` (spec fix and dump), `9d7fd7c38` (failed requests
kept for the dump only)
- Nightly dispatch `lane=linux` on 361a08f: run 40718149961 success;
run 40718546910 desktop e2e nightly-linux success. Both: `✓
terminal-links.spec.ts:420:5 ... @platform`, `19 passed`, `no flaky test
in this run`.
- PR verify 40718258556 on 361a08f: success. desktop e2e macOS 1/2 and
2/2, windows desktop, web e2e linux 1-6/6, web e2e windows: each `no
flaky test in this run`.
- Before the fix: nightly runs 39158794370 through 40586138794 (9)
failed `terminal-links.spec.ts` on both tries with `Received:
".../a.htmlosc8"`.
- Local on 9d7fd7c: `eslint e2e/wire.ts e2e/failure-dump.ts` exit 0;
`tsc --noEmit --strict` on both files exit 0; `playwright test --list`
387 tests in 119 files.
- #154: last flaky comment 2026-10-23T19:16Z on commits without
4fc9b8c; main 115b63c run 40706855580 desktop e2e macos 2/2 `ok 72
new-tab.spec.ts:130`.

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