Skip to content

Show a checkout summary card with worktree, pull request and disk state in the sidebar - #15

Merged
yansfil merged 1 commit into
mainfrom
integrate/project-panel
Sep 6, 2026
Merged

yansfil merged 1 commit into
mainfrom
integrate/project-panel

Conversation

@yansfil

@yansfil yansfil commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

The sidebar gains a checkout summary card for the focused project: its worktrees, the pull requests its gh login can see, and the checkout's size on disk. Three new readers (worktrees.rs, github.rs, disk.rs, sharing reader.rs) run their subprocess on a worker thread and hand results to the session-sync coordinator, so a slow gh or du never costs coordinator latency. When an agent leaves working, the coordinator re-reads gh for that agent's checkout at once, because that is what a run ending in a push looks like from here. Alongside: the card's row controls are exposed to accessibility separately, the Rust test target dir is keyed by checkout so parallel worktrees stop clobbering each other, SIGPIPE is ignored so a closing pane cannot end the app, and scripts/e2e-fixture.sh creates an idempotent GitHub fixture repository for end-to-end checks. This is the first of four pull requests that bring the pre-verify-gate integration line (browser panes, path routing, agent lineage tree) onto main.

Review boundary

  • Runtime mutex: nothing new is held under it. The readers fork on worker threads and their results enter the runtime through the coordinator's existing publish path (check-capability-readers-off-lock.sh passes).
  • Snapshot wire: adds the checkout card section to the revisioned rest; it changes only when a reader reports a new value, and the readers are windowed, so an idle session does not restamp rest.
  • Ownership: touches nothing Herdr owns; the card is a core-owned read view of this machine's repositories.
  • Herdr contract: no new Herdr method, parameter or field. agent.list is read as before; the stop-detection compares the projected list the boundary already produces.
  • Failure path: a reader that fails leaves its card row in its last state and logs a component-tagged JSON line on stderr; a missing gh login is shown as "no pull request data" on the card rather than an empty row.

Evidence

  • Verified by: cargo test --locked (325 + 30 passed), cargo build --release, swift test (240 passed), all seven structural checks and check-typed-contract-structure.py run locally on this branch after the merge conflict in session_sync.rs (replace_agents now takes Vec<ProjectedAgent> and returns the checkouts whose agents stopped) was resolved.
  • Not verified (and why): no fresh screenshot of the card on this branch; the card was exercised on the internal line it comes from, and the visual check will be repeated once the four integration pull requests are on main. The schema-only Herdr contract check is unchanged by this diff (the contract file is untouched) and runs in CI.

Screenshots

Not captured for this integration pass; see Evidence. The card is the sidebar's checkout summary and follows DESIGN.md tokens through HideTheme.

AI tooling

The merge-conflict resolution in session_sync.rs and this description were produced with AI tooling. Every verify lane was run locally by hand afterwards and the resolved hunks were read against both parents.

…te in the sidebar

Three readers (worktrees, GitHub pull requests, checkout disk size) run their
subprocess on a worker thread driven by the session-sync coordinator, never
under the runtime mutex. An agent leaving `working` re-reads `gh` for its
checkout without waiting out the refresh window. The card exposes each row's
controls to accessibility separately, the Rust test target dir is keyed by
checkout, SIGPIPE is ignored so a closing pane cannot end the app, and an
idempotent GitHub fixture script backs the end-to-end checks.
@yansfil
yansfil merged commit 37fa5f6 into main Sep 6, 2026
4 checks passed
@yansfil
yansfil deleted the integrate/project-panel branch September 6, 2026 09:19
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 30, 2026
…pane (#1910)

Related: PRD session-docs-and-assistant (Desk 1차) B25, B26, B27, B29 ·
#1902 (thread reader) · #1907 (Desk screen parts)

## Summary

Desk가 띄운 세션 하나를 스레드로 보이고, 스레드 입력칸의 말을 그 pane에만 넣습니다.
코어가 pane 하나의 스레드를 열면 그 세션이 도는 기기의 node가 잠금 밖에서 기록을 읽고, 세션이 일하는 동안 새로 쓴
부분만 다시 읽어 snapshot에 둡니다.
화면(`ThreadPanel`)은 #1907의 확정 부품 위에 store를 이어, 머리 둘째 줄에 Hide가 띄울 때 고른
모델을, 대화 안에 `hide` 명령이 만든 Hide 부품(계획, 새 세션, 편지, View, 미션)을, 받은 편지는 `✉ 보낸
이에게서 받음` 한 줄로, 도는 명령은 `실행 중 0:12`로 그립니다.
스레드가 이름을 부르는 세션은 코어가 페이지를 만들 때 지금 등록으로 pane을 찾아 두므로, 칩을 누르면 그 세션으로
갑니다(끝난 세션은 이름만).
기록을 못 읽으면 이유 한 줄과 `터미널로`가 보이고, 입력은 Enter로 보내며(IME 조합 중엔 안 보냄) pane이 받을
때까지 말이 칸에 남고, pane이 다른 세션으로 바뀌었거나 없으면 보내지 않고 이유를 보입니다.
보내기 직전(첨부 준비, pane 허락을 받은 뒤)에 pane을 한 번 더 확인하므로, 기다리는 사이 pane이 바뀌면 아무것도
치지 않습니다.
닫힌 스레드로 간 입력은 버리지 않고 `닫힘`으로 답해, 입력칸에 말이 돌아옵니다.
#1907 재리뷰의 스레드 몫(hint ref, 질문 두 번, 접힌 줄 aria-label, 주석 두 곳)도 여기서 고쳤습니다.
화면이 놓일 자리(lane의 도구 칸)는 lane 노드가 붙이고, 지금은 갤러리 `scene=desk-thread`에서
store로 그려집니다.

![연결된 스레드(다크): 머리 둘째 줄에 계획 칩 4/8과 모델, Hide 부품 줄, 편지 양쪽, 실행 중
명령](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/cad6503/thread-live-plan-dark.png?raw=true)
![같은
스레드(라이트)](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/cad6503/thread-live-plan-light.png?raw=true)
![물어보는 세션: 질문은 아래 한
곳에만](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-asking-dark.png?raw=true)
![기록을 못 읽음: 이유 한 줄과
터미널로](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-failed-dark.png?raw=true)
![pane에서 다른 세션이 돎: 보내기 막힘과
이유](https://github.com/yansfil/pr-assets/blob/main/hide/feat-desk-threads/ecbfa34/thread-held-dark.png?raw=true)

## Review

- **판단해 주세요**: 입력은 터미널에 직접 친 것과 다릅니다(D-62). 에이전트가 bracketed paste를 켜 두면
Herdr가 말을 붙여넣기로 감싸므로, 긴 글이 Claude Code에서 `[Pasted text]` 덩어리로 보이고 줄바꿈은
제출되지 않습니다. attach와 PTY 크기를 건드리지 않으려고 고른 길이고 `docs/UI_BEHAVIOR.md`,
Session thread에 적었습니다.
- **판단해 주세요**: 스레드는 코어 전체에 하나만 열립니다(세션 기록과 같은 선례). 두 창이 다른 스레드를 열면 나중 것이
이깁니다.
- **판단해 주세요**: pane이 바뀐 때의 말 "이 pane에서 이제 다른 세션이 돌아요. 이 스레드에서는 보내지 않아요",
없을 때 "이 세션의 pane이 없어요. 보낼 곳이 없어요".
- **조심해서 볼 파일**: `herdr-core/src/runtime/session_thread.rs` - runtime
mutex 안에서는 상태만 바꾸고 node 읽기, 페이지 만들기(Hide 부품, 이름 붙은 세션 찾기), activity 확인,
첨부 스테이징, `pane.send_input`은 모두 worker에서 돕니다. 입력 worker는
스테이징·permit·sleep gate를 지난 뒤 잠금을 한 번 더 잡아 `thread_input_target`(같은
generation, pane Same)을 보고, 잠금을 놓은 뒤 보냅니다. gate의 admission을 쥔 채 잠금을 잡지만,
sleep 쪽 drain 대기는 잠금 밖에서 돌므로 서로 기다리지 않습니다. 열려 있지 않은 스레드로 온 입력은 request
id로 `closed` 답을 받습니다.
- **조심해서 볼 파일**: `herdr-core/src/coordination/mod.rs` -
`registered_record`로 이름·agent id를 지금 등록에 맞춥니다(기존 resolve가 같은 함수를 씀). 페이지
worker는 ledger Arc를 잠금 밖에서 읽습니다.
- **조심해서 볼 파일**: 입력은 엔진 경계(#1903)의
`delivery_engine(device).submit_text`로 보냅니다. 거절 코드 `not_found`는
`pane_gone`, 답이 없으면 `uncertain`(말이 들어갔을 수 있음), 그 밖은 `unavailable`입니다.
- **조심해서 볼 파일**: `herdr-core/src/runtime/delivery.rs` - 관찰마다 thread 참조를
만들고 끝에 `follow_session_thread`를 부릅니다(Herdr 세션 읽기마다 도는 고빈도 경로, 열린 스레드가
없으면 즉시 반환).
- **조심해서 볼 파일**: `hide-node-link/src/protocol.rs` - main이 65(기기 hook
상태)를 썼으므로 `Call::SessionThread`는 protocol 66입니다.
- **조심해서 볼 파일**: `web/src/components/desk/thread-panel.tsx` - 보이는 동안
스레드를 열고 닫으며, 입력의 `request_id`로 보냄/거절을 맞춰 말을 지웁니다. `hided/src/server.rs`는
클라이언트가 보낸 `session_thread_input`을 경계에서 거절합니다.
- **후속(리뷰 사소, 이 PR에서 안 고침)**: hided `handle_thread_input`이 첨부 stage를
commit한 뒤 코어가 거절하면(pane_changed 등) 커밋된 파일이 에이징 정리까지 남습니다(terminal
attachment 선례와 같음). `delivery.rs`가 Herdr 세션 읽기마다 에이전트마다
`ThreadReference` 문자열을 복제합니다(session 필드와 같은 수준).
- **비용 검토**: 스레드가 열려 있고 그 에이전트가 working일 때만 250 ms 틱이 1초마다
`SessionActivity`(크기와 시각) 하나를 띄웁니다. 바뀌면 뒤 페이지 하나(512 KiB 남짓)를 읽고, 끝이
그대로면 snapshot을 바꾸지 않습니다. 동시에 읽기 하나+빚 하나, 이전 페이지 하나, activity 하나, 입력 하나.
지난 페이지는 최대 4장. `docs/PERFORMANCE_TESTING.md` 원장에 적었습니다.
- **원칙**: engineering #4·#10 거절은 이유 코드(`no_record`, `pane_changed` 등)로
화면에, 읽기 실패 세부는 진단 로그로. #5 세션 찾기는 코어(등록 원장), 그리기는 web
adapter(`threadScreen`), 부품은 props만. #7 첨부는 기존 스테이징과
`terminal_attachments`를, 입력은 폰 답장의 permit·sleep gate를, 파일 고르기는 `Input`
부품을 재사용. #14 worker는 runtime을 weak로 잡고 호출 하나로 끝남. #15 페이지·요청·입력에 상한.
design #5 #1907의 부품과 공용 칩을 그대로 씀, #9 읽는 중·못 읽음·막힘을 한 줄로, #13 node 연결 끊김은
`connected` false로 흐리게만, #12 한국어 글을 라이트·다크 캡처로 확인.

## Evidence

- **확인한 것**: 실제 Herdr와 hided(`web/e2e/session-thread.spec.ts`, 4/4,
repeat-each 3) - Pi pane의 기록이 스레드로 읽히고, 세션이 새 줄을 쓰고 Herdr에 working으로
보고하면 그 줄이 스레드에 이어지며, 입력 `계속해 주세요`가 그 pane에만 들어가고 다른 pane에는 안 감.
- **확인한 것**: `bash scripts/verify-web.sh` exit 0 on 0a254f3 - web
2366, desktop 302, typecheck·lint·build; `node
scripts/check-design-contract.mjs` ok. 그 안에 `thread-panel.test.tsx`(열고
닫기, Enter 보내기·IME 안 보냄·받을 때까지 말 유지, 거절 이유·pane 바뀜 막힘),
`threadView.test.ts`(세션 칩 찾기, 계획 한 번, View·미션 부품), `desk.test.ts`(보낸 이별
편지 묶기, 명령 시작 시각, 질문 한 곳).
- **확인한 것**: `cargo nextest` session_thread 12개 - newest 읽기 뒤 앞으로만 읽기,
512 KiB 페이지 보관, `no_record`, 이름 붙은 세션이 지금 등록의 pane으로 찾아짐, FakeHerdr로 입력이
그 pane에 한 번 가고 바뀐 pane에는 안 감, 기기 pane의 입력은 그 기기의 Herdr로. 입력 거절 셋:
`input_to_a_gone_pane_is_refused_as_pane_gone_and_a_closed_pane_is_never_asked`(Herdr
`pane_not_found`면 `pane_gone`, 닫힌 pane은 Herdr 요청 0),
`input_whose_pane_changes_while_it_waits_for_its_permit_is_never_typed`(permit을
잡아 둔 사이 터미널이 바뀌면 Herdr 요청 0, `pane_changed`; 재확인을 빼면 실패함을 확인),
`input_for_a_thread_that_is_no_longer_open_is_answered_as_closed`.
protocol·node contract 16개, clippy `-D warnings`(herdr-core), fmt 통과.
- **확인한 것**: `thread-panel.test.tsx` 5개 - 위 셋에 더해 다른 pane 스레드에 온
`closed` 답으로 말이 돌아옴, 위 끝 스크롤 세 번에 이전 페이지 요청 한 번, 상태가 바뀐 뒤에야 다시 한 번.
- **확인한 것**: 갤러리 `scene=desk-thread` 4장면(live/asking/failed/held) 라이트·다크
캡처, 위 스크린샷.
- **확인하지 못한 것**: 패키지 후보 앱에서 스레드 열기와 입력(화면이 놓일 자리가 lane 노드에서 생김). 기기
pane의 첨부 스테이징은 코드 경로만 있고 테스트 없음. 원격 코어에 node 데몬으로 붙은 화면의 스레드 첨부는
`unknown_stage`로 거절됨(말은 감), 문서에 적은 한계.

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

- head: 0a254f3 (main merged at ecbfa34, origin/main 382b88c)
- verify-web.sh: exit 0 on 0a254f3, web 2366 passed / 3 skipped,
desktop 302 passed / 4 skipped
- e2e: web/e2e/session-thread.spec.ts 4/4 (repeat-each 3) on bf4ef5b
- cargo nextest session_thread: 12 passed (5 repeats); clippy -D
warnings herdr-core; protocol/node_contract/hello filter: 16 passed

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