Repository navigation
Scroll observed agent panes, find in the focused pane with Cmd+F, and drop the empty View region - #148
Merged
Conversation
… before the attach A pane another client controls (the Swift shell on the same Herdr server) is attached read-only, and the web shell dropped every wheel on it. The core now moves such a pane's viewport with pane.scroll, one request in flight per pane with later wheels summed, keeps a wheel that arrives before the pane has a session for its first frame, and marks a pane whose wheel Herdr could not move. Find in pane uses the same routing and reads a device pane through that device's Herdr.
…s out of the Workspace Cmd+F now follows where the operator works: inside a View area it finds in the document, anywhere else it opens the focused terminal pane's find bar, even with an editor open beside it, including on an SSH device's pane. Escape and the close button end the search and hand the keyboard back to the pane, and the count shows the core's 1-based index. A Workspace whose View areas hold no display draws its agents in their place in both Together and Views only, keeping the stored layout, so the next opened file brings the View areas back in it.
… an old one Herdr draws an observer at the grid it attached with and an observer has no writer to resize, so a web pane whose view changed size after it fell back to observing (the Swift shell holding control) held every frame and froze. A frame at another grid than the view's now re-attaches the observer at the view's grid.
…o end, and document them The e2e holds a pane's control with a second client the way the Swift shell does, then checks that the observed pane's wheel moves Herdr's viewport, that it redraws after its view widens, that Cmd+F beside an open editor searches the focused pane and hands the keyboard back, and that the View region leaves with its last view and returns with the next file.
yansfil
added a commit
that referenced
this pull request
Sep 25, 2026
…ts, Light and Dark themes (#150) Related: PRD `agents/prd/web-design-system-reset/prd.md` · 이 브랜치에 main(#147, #148)을 merge했습니다 ## Summary - 웹 셸의 컨트롤이 화면마다 손으로 만든 구현이라 모양과 키보드 동작이 제각각이었고, 테마는 Dark 하나뿐이었습니다. - 토큰을 `design/tokens.json` 하나로 모으고 Tailwind v4(`@theme static`)로 옮겨 Dark와 Light 값을 함께 둡니다. - 버튼, 메뉴, 다이얼로그, 팔레트, 툴팁을 shadcn/Radix System part 21개로 교체하고 dev 전용 `/gallery`에 모았습니다. - Settings > Appearance에서 System/Light/Dark와 accent를 고르면 셸, 터미널, 에디터가 새로고침 없이 바뀝니다. - Pen 라이브러리를 토큰에서 다시 만들고, 웹 화면 8개를 `design/hide-screens.pen`으로 옮기는 transplant 절차를 더했습니다.    ## Review - **판단해 주세요 (B17)**: 밀도 medium(control 24/28/32, 본문 12)과 Light 팔레트 값을 잠든 사이 권장값으로 채택했습니다. - **판단해 주세요 (B18)**: Component 33개 중 Swift 전용이 확실한 `Terminal attachment notice` 하나만 지우고 경계 6개는 남겼습니다. - **판단해 주세요 (B24)**: 화면 28개의 before/after(Dark, Light)와 gallery-Pen 비교는 로컬 `compare.html`에서 봅니다. - **판단해 주세요**: Pen Button의 Pending 스피너가 없고, Dark의 Secondary label 색이 웹과 다릅니다. 이대로 둘지. - **조심해서 볼 파일**: `herdr-core/src/{model,persistence,runtime}.rs` - `ui_state.theme` 저장과 snapshot wire, 모르는 값은 Dark+진단. - **조심해서 볼 파일**: `web/src/components/ui/layer.ts`, `web/src/keyboard.ts` - Escape 소유자 하나와 포커스 복귀, failure path. - **조심해서 볼 파일**: `web/src/components/ui/tooltip.tsx` - press 뒤 툴팁 억제 상태기계, 두 번 고쳤습니다. - **조심해서 볼 파일**: `web/src/editor/theme.ts` - 열린 에디터를 Compartment로 재테마합니다(high-frequency 아님, 테마 전환 때만). - **질문**: 사이드바 row를 우클릭해 연 메뉴가 닫히면 포커스가 터미널이 아닌 row로 갑니다. 기존 `Menu.tsx` 동작 그대로인데 B9가 이것까지 요구하나요? - **질문**: Light에서 accent 라벨이 저장값 `#B9FF66`을 보여주지만 swatch는 Light 값으로 그려집니다. 라벨도 바꿀까요? ## Evidence - **확인한 것**: merge head에서 vitest 297, Playwright e2e 58/58(격리 Herdr와 hided), node script test 51/51이 통과합니다. - **확인한 것**: `sasu implement verify`가 cargo test, Swift test, cargo lint를 돌려 PASS를 냈습니다. - **확인한 것**: design contract(check-pen, check-pen-gallery, check-web-tokens, check-hide-screens)는 working tree와 `--staged` 모두 통과합니다. - **확인한 것**: accent 4개 x 테마 2개의 primary 버튼 대비가 4.5:1 이상임을 `theme.test.ts`가 tokens.json 값으로 계산합니다. - **확인한 것**: 테마 전환 뒤에도 터미널 요소, 내용, 입력 중인 줄이 그대로이고, 열린 에디터는 새로 연 Light 에디터와 같게 그려집니다(e2e). - **확인한 것**: press로 연 메뉴를 Escape로 닫아도 트리거 툴팁이 다시 뜨지 않습니다(s6 e2e, 고치기 전 코드에서 실패 확인). - **확인한 것**: `HideTheme.swift`는 base와 byte 단위로 같고, `tailwind.config.js`와 postcss 설정은 없습니다. - **확인하지 못한 것**: B17, B18, B24는 사람 승인 대상인데 권장값을 채택해 두었을 뿐 아직 승인받지 않았습니다. - **확인하지 못한 것**: 설치 앱의 실제 창에서 본 적은 없습니다. 캡처는 격리 서버 위 Chromium입니다. - **확인하지 못한 것**: pane close 확인 화면(캡처 17)은 fixture가 그 상태에 닿지 못해 비교에서 빠졌습니다. - **확인하지 못한 것**: `Hint`의 blur 판정은 Chromium에서만 확인했고 WebKit 계열에서는 보지 않았습니다. - **생성물**: `design/hide-ui.lib.pen`(+39k/-13k)과 `design/hide-screens.pen`(새 파일)은 `gen-pen`/`gen-screens`가 쓴 결과입니다. 결과 이미지는 위 비교 자료에 있습니다. **AI tooling**: 대부분 AI 도구. before/after 캡처, gallery와 Pen export, e2e 실패-통과 전환을 사람이 볼 수 있게 남겨 대조했습니다. <details><summary>Verification record</summary> - PRD: `agents/prd/web-design-system-reset/prd.md` (sha256 90c3d10c2c86bc93c7494f79fab486b4132878238be5f1131c8d534d16139df7) - Base 806c92f → head 4fc4d9d, verified 2026-09-25T20:36:38.122Z: PASS - Verification report: `agents/runs/web-design-system-reset/verification-report.json` and `agents/runs/web-design-system-reset/verification-report.md`; source fingerprint 15c685b96506162df143955dc8d3d47d4d04c7fbbb40fe82a3a1dd668d6c94ab - 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: 95f3459 no Fix now; f33d650 no Fix now (follow-ups: approvals README Hint wording updated, editor theme-follow promoted to e2e); a69c546 no Fix now; 4fc4d9d (merge) no Fix now. - Code: 95f3459 Fix now 6 - approvals delegated (morning review items above), pen-transplant descendants collision fixed eb01083, ContextMenu focus return rejected (pre-change Menu.tsx behavior, B9 preserve; question above), stale doc paths fixed c0a437f/f33d6500, enforcement gate row restored f33d650, Hint refocus fixed 497aedb with s6 regression; f33d650 Fix now 1 - editor theme-follow coverage fixed a69c546 (and per-editor style rules 6cd4351); a69c546 no Fix now; 4fc4d9d (merge) no Fix now. - Follow-ups: RowMenu right-click focus/tooltip corner untested; check-web-tokens scans comments and exempts .test.ts but not .test.tsx; Tools.tsx keeps a parallel Escape path; sidebar.tsx `[var(--x)]` vs `(--x)`; HideTheme.swift frozen guard is prose only; hand-typed ui_state fields; `Tab / DESIGN.md` sample text in the library; classification rows 20/21 lean on the unapproved browser-like-tab-sizing PRD; 6 kept borderline masters; gen-screens has no orphan detection; the enforcement meta-check is local only; Pen Pending spinner and Secondary label differences. - Flakes: agent-context-labels watcher and hide-agent-hooks install tests failed once each under load, passed on rerun (crates this branch does not touch). - Evidence: 171 registered (110 screenshot, 37 image, 5 file, 19 log); paths are local to the run directory - agents/runs/web-design-system-reset/captures/before-dark/01-main-with-project.png - agents/runs/web-design-system-reset/captures/before-dark/02-project-overview.png - agents/runs/web-design-system-reset/captures/before-dark/03-workspace-agents-terminal.png - agents/runs/web-design-system-reset/captures/before-dark/04-together-explorer-editor.png - agents/runs/web-design-system-reset/captures/before-dark/05-markdown-live.png - agents/runs/web-design-system-reset/captures/before-dark/06-sidebar-projects-mode.png - agents/runs/web-design-system-reset/captures/before-dark/07-sidebar-row-menu.png - agents/runs/web-design-system-reset/captures/before-dark/08-view-tab-menu.png - agents/runs/web-design-system-reset/captures/before-dark/09-explorer-row-context-menu.png - agents/runs/web-design-system-reset/captures/before-dark/10-explorer-inline-rename.png - agents/runs/web-design-system-reset/captures/before-dark/11-trash-confirmation.png - agents/runs/web-design-system-reset/captures/before-dark/12-palette-file.png - agents/runs/web-design-system-reset/captures/before-dark/13-palette-command.png - agents/runs/web-design-system-reset/captures/before-dark/14-shortcut-sheet.png - agents/runs/web-design-system-reset/captures/before-dark/15-narrow-tools-overlay.png - agents/runs/web-design-system-reset/captures/before-dark/16-notice-bar.png - agents/runs/web-design-system-reset/captures/before-dark/18-settings-general.png - agents/runs/web-design-system-reset/captures/before-dark/19-settings-appearance.png - agents/runs/web-design-system-reset/captures/before-dark/20-settings-agents.png - agents/runs/web-design-system-reset/captures/before-dark/21-settings-devices.png - agents/runs/web-design-system-reset/captures/before-dark/22-settings-shortcuts.png - agents/runs/web-design-system-reset/captures/before-dark/23-settings-devices-remove-confirm.png - agents/runs/web-design-system-reset/captures/before-dark/24-device-picker-open.png - agents/runs/web-design-system-reset/captures/before-dark/25-new-workspace-invalid-path.png - agents/runs/web-design-system-reset/captures/before-dark/26-new-worktree-dialog.png - agents/runs/web-design-system-reset/captures/before-dark/27-purpose-dialog.png - agents/runs/web-design-system-reset/captures/before-dark/28-delete-worktree-dialog.png - agents/runs/web-design-system-reset/captures/before-dark/29-remove-project-dialog.png - agents/runs/web-design-system-reset/captures/before-dark/30-sessions-screen.png - agents/runs/web-design-system-reset/captures/after-dark/19-settings-appearance.png - agents/runs/web-design-system-reset/captures/after-dark/21-settings-devices.png - agents/runs/web-design-system-reset/captures/after-dark/22-settings-shortcuts.png - agents/runs/web-design-system-reset/captures/after-dark/30-sessions-screen.png - agents/runs/web-design-system-reset/captures/after-light/19-settings-appearance.png - agents/runs/web-design-system-reset/captures/after-light/21-settings-devices.png - agents/runs/web-design-system-reset/captures/after-light/22-settings-shortcuts.png - agents/runs/web-design-system-reset/captures/after-light/30-sessions-screen.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-alert-dialog.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-badge.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-button.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-checkbox.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-command.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-context-menu.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-dialog.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-dropdown-menu.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-input.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-kbd.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-popover.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-radio-group.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-select.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-separator.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-sheet.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-slider.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-sonner.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-switch.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-tabs.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-toggle-group.png - agents/runs/web-design-system-reset/approvals/gallery/gallery-tooltip.png - agents/runs/web-design-system-reset/approvals/pen/component-explorer-file-menu.png - agents/runs/web-design-system-reset/approvals/pen/component-keycap.png - agents/runs/web-design-system-reset/approvals/pen/component-panel-tab.png - agents/runs/web-design-system-reset/approvals/pen/component-project-row.png - agents/runs/web-design-system-reset/approvals/pen/component-relationship-action.png - agents/runs/web-design-system-reset/approvals/pen/component-view-area-states.png - agents/runs/web-design-system-reset/approvals/pen/component-view-tab-menu.png - agents/runs/web-design-system-reset/approvals/pen/foundations.png - agents/runs/web-design-system-reset/approvals/pen/system-alert-dialog.png - agents/runs/web-design-system-reset/approvals/pen/system-badge.png - agents/runs/web-design-system-reset/approvals/pen/system-button.png - agents/runs/web-design-system-reset/approvals/pen/system-checkbox.png - agents/runs/web-design-system-reset/approvals/pen/system-command.png - agents/runs/web-design-system-reset/approvals/pen/system-context-menu.png - agents/runs/web-design-system-reset/approvals/pen/system-dialog.png - agents/runs/web-design-system-reset/approvals/pen/system-dropdown-menu.png - agents/runs/web-design-system-reset/approvals/pen/system-input.png - agents/runs/web-design-system-reset/approvals/pen/system-kbd.png - agents/runs/web-design-system-reset/approvals/pen/system-popover.png - agents/runs/web-design-system-reset/approvals/pen/system-radio-group.png - agents/runs/web-design-system-reset/approvals/pen/system-select.png - agents/runs/web-design-system-reset/approvals/pen/system-separator.png - agents/runs/web-design-system-reset/approvals/pen/system-sheet.png - agents/runs/web-design-system-reset/approvals/pen/system-slider.png - agents/runs/web-design-system-reset/approvals/pen/system-sonner.png - agents/runs/web-design-system-reset/approvals/pen/system-switch.png - agents/runs/web-design-system-reset/approvals/pen/system-tabs.png - agents/runs/web-design-system-reset/approvals/pen/system-toggle-group.png - agents/runs/web-design-system-reset/approvals/pen/system-tooltip.png - agents/runs/web-design-system-reset/approvals/screens/screen-dialogs.png - agents/runs/web-design-system-reset/approvals/screens/screen-main.png - agents/runs/web-design-system-reset/approvals/screens/screen-menus.png - agents/runs/web-design-system-reset/approvals/screens/screen-palette.png - agents/runs/web-design-system-reset/approvals/screens/screen-project-overview.png - agents/runs/web-design-system-reset/approvals/screens/screen-sessions.png - agents/runs/web-design-system-reset/approvals/screens/screen-settings.png - agents/runs/web-design-system-reset/approvals/screens/screen-workspace.png - agents/runs/web-design-system-reset/approvals/component-classification.md - agents/runs/web-design-system-reset/approvals/compare.html - agents/runs/web-design-system-reset/suite-logs/cargo-test-2.log - agents/runs/web-design-system-reset/suite-logs/cargo-lint.log - agents/runs/web-design-system-reset/suite-logs/swift-test.log - agents/runs/web-design-system-reset/suite-logs/flakes.md - agents/runs/web-design-system-reset/evidence/hint-after-press/before.png - agents/runs/web-design-system-reset/evidence/hint-after-press/after.png - agents/runs/web-design-system-reset/pen-duplicate-ids.md - agents/runs/web-design-system-reset/e2e-final/typecheck.log - agents/runs/web-design-system-reset/e2e-final/lint.log - agents/runs/web-design-system-reset/suite-logs/node-gates-f33d6500.log - agents/runs/web-design-system-reset/evidence/editor-theme/result.txt - agents/runs/web-design-system-reset/reviews/round1-dispositions.md - agents/runs/web-design-system-reset/approvals/README.md - agents/runs/web-design-system-reset/reviews/round1-fidelity.md - agents/runs/web-design-system-reset/reviews/round1-code.md - agents/runs/web-design-system-reset/reviews/round2-fidelity.md - agents/runs/web-design-system-reset/reviews/round2-code.md - agents/runs/web-design-system-reset/reviews/round3-code.md - agents/runs/web-design-system-reset/captures/after-dark/01-main-with-project.png - agents/runs/web-design-system-reset/captures/after-dark/02-project-overview.png - agents/runs/web-design-system-reset/captures/after-dark/03-workspace-agents-terminal.png - agents/runs/web-design-system-reset/captures/after-dark/04-together-explorer-editor.png - agents/runs/web-design-system-reset/captures/after-dark/05-markdown-live.png - agents/runs/web-design-system-reset/captures/after-dark/06-sidebar-projects-mode.png - agents/runs/web-design-system-reset/captures/after-dark/07-sidebar-row-menu.png - agents/runs/web-design-system-reset/captures/after-dark/08-view-tab-menu.png - agents/runs/web-design-system-reset/captures/after-dark/09-explorer-row-context-menu.png - agents/runs/web-design-system-reset/captures/after-dark/10-explorer-inline-rename.png - agents/runs/web-design-system-reset/captures/after-dark/11-trash-confirmation.png - agents/runs/web-design-system-reset/captures/after-dark/12-palette-file.png - agents/runs/web-design-system-reset/captures/after-dark/13-palette-command.png - agents/runs/web-design-system-reset/captures/after-dark/14-shortcut-sheet.png - agents/runs/web-design-system-reset/captures/after-dark/15-narrow-tools-overlay.png - agents/runs/web-design-system-reset/captures/after-dark/16-notice-bar.png - agents/runs/web-design-system-reset/captures/after-dark/18-settings-general.png - agents/runs/web-design-system-reset/captures/after-dark/20-settings-agents.png - agents/runs/web-design-system-reset/captures/after-dark/23-settings-devices-remove-confirm.png - agents/runs/web-design-system-reset/captures/after-dark/24-device-picker-open.png - agents/runs/web-design-system-reset/captures/after-dark/25-new-workspace-invalid-path.png - agents/runs/web-design-system-reset/captures/after-dark/26-new-worktree-dialog.png - agents/runs/web-design-system-reset/captures/after-dark/27-purpose-dialog.png - agents/runs/web-design-system-reset/captures/after-dark/28-delete-worktree-dialog.png - agents/runs/web-design-system-reset/captures/after-dark/29-remove-project-dialog.png - agents/runs/web-design-system-reset/captures/after-light/01-main-with-project.png - agents/runs/web-design-system-reset/captures/after-light/02-project-overview.png - agents/runs/web-design-system-reset/captures/after-light/03-workspace-agents-terminal.png - agents/runs/web-design-system-reset/captures/after-light/04-together-explorer-editor.png - agents/runs/web-design-system-reset/captures/after-light/05-markdown-live.png - agents/runs/web-design-system-reset/captures/after-light/06-sidebar-projects-mode.png - agents/runs/web-design-system-reset/captures/after-light/07-sidebar-row-menu.png - agents/runs/web-design-system-reset/captures/after-light/08-view-tab-menu.png - agents/runs/web-design-system-reset/captures/after-light/09-explorer-row-context-menu.png - agents/runs/web-design-system-reset/captures/after-light/10-explorer-inline-rename.png - agents/runs/web-design-system-reset/captures/after-light/11-trash-confirmation.png - agents/runs/web-design-system-reset/captures/after-light/12-palette-file.png - agents/runs/web-design-system-reset/captures/after-light/13-palette-command.png - agents/runs/web-design-system-reset/captures/after-light/14-shortcut-sheet.png - agents/runs/web-design-system-reset/captures/after-light/15-narrow-tools-overlay.png - agents/runs/web-design-system-reset/captures/after-light/16-notice-bar.png - agents/runs/web-design-system-reset/captures/after-light/18-settings-general.png - agents/runs/web-design-system-reset/captures/after-light/20-settings-agents.png - agents/runs/web-design-system-reset/captures/after-light/23-settings-devices-remove-confirm.png - agents/runs/web-design-system-reset/captures/after-light/24-device-picker-open.png - agents/runs/web-design-system-reset/captures/after-light/25-new-workspace-invalid-path.png - agents/runs/web-design-system-reset/captures/after-light/26-new-worktree-dialog.png - agents/runs/web-design-system-reset/captures/after-light/27-purpose-dialog.png - agents/runs/web-design-system-reset/captures/after-light/28-delete-worktree-dialog.png - agents/runs/web-design-system-reset/captures/after-light/29-remove-project-dialog.png - agents/runs/web-design-system-reset/e2e-final/e2e.log - agents/runs/web-design-system-reset/e2e-final/unit.log - agents/runs/web-design-system-reset/reviews/dispositions.md - agents/runs/web-design-system-reset/reviews/round3-fidelity.md - agents/runs/web-design-system-reset/reviews/round4-code.md - agents/runs/web-design-system-reset/suite-logs/node-gates-4fc4d9d4.log - Changed paths: 159 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 29, 2026
Closes with-hide/hide-private#153 Closes with-hide/hide-private#152 Closes with-hide/hide-private#148 Closes with-hide/hide-private#218 Closes with-hide/hide-private#213 Closes with-hide/hide-private#227 Closes with-hide/hide-private#319 Closes with-hide/hide-private#159 Closes with-hide/hide-private#246 Closes with-hide/hide-private#186 Closes with-hide/hide-private#126 ## Summary herdr-core의 연결 노드 runtime 테스트 11개가 가끔 실패하던 원인을 고쳤습니다. 대부분은 테스트가 순서를 직접 정하지 않아 백그라운드 작업이 끼어든 경우였고, 그중 둘은 제품 쪽 문제였습니다. - 정리(cleanup) 검토 결과가 화면에 나온 바로 그 순간 누른 "정리" 확인이 조용히 버려졌습니다. 이제 검토 결과와 다음 작업 허용이 같은 순간에 일어나서 확인이 항상 받아들여집니다. - 새 pane의 셸 대기에서, 마감이 읽기 도중에 끼어들면 앞서 실패한 이유가 지워져 진단 기록이 "unreadable" 대신 "timeout"이 되거나 엉뚱한 이유를 남겼습니다. 이제 마감에 잘린 읽기는 결과로 치지 않습니다. 대기 시간을 늘리거나 재시도를 더하지 않았습니다. with-hide/hide-private#274(doorbell 두 테스트)는 재현되지 않아 범위에서 뺐고, 원인 후보와 증거를 이슈에 남겼습니다. 스크린샷 없음: 화면을 바꾸지 않는 core와 테스트 변경입니다. ## Review **제품 동작이 바뀌는 곳** (둘 다 수정 없이 실패하는 테스트로 증명, Evidence 참고): 1. `herdr-core/src/worktree_cleanup.rs` `WorkerGuard`, `worker_ended` - 정리 worker가 마지막 snapshot 전달과 lane 해제를 한 lock 안에서 합니다(전에는 lock 두 번). `runtime/projects.rs` `confirm_cleanup`은 lane이 잡혀 있으면 확인을 거절하는데, 검토 답과 lane 해제 사이에 온 확인이 여기서 버려졌습니다(#152의 CI 로그: 10초 동안 제거 진단이 하나도 없음). - `Mutex<Runtime>` 아래 일: 늘지 않았습니다. 같은 `ingest_cleanup`과 `cleanup_worker_finished`(필드 하나를 `None`으로)를 두 번의 lock 대신 한 번의 lock에서 합니다. 새 I/O, subprocess, 직렬화는 없고 `notify`는 전처럼 lock 밖입니다. `scripts/check-capability-readers-off-lock.sh` 통과. - 판단해 주세요: lane 해제가 마지막 답과 묶였으므로 `confirm_cleanup`의 `cleanup_worker.is_some()` 거절은 이제 "검토가 아직 loading 중"일 때만 걸립니다. 그 주석을 고쳤습니다. 2. `herdr-core/src/runtime/terminal_input.rs` `wait_with` - 셸 대기의 반복이 시계와 한 번의 읽기를 받아 돌고, 마감에 걸쳐 끝난 읽기(결과가 무엇이든)는 결과로 치지 않아 마지막으로 끝난 읽기의 결과가 남습니다. `shell_reads_keys`는 main과 같습니다. 결과는 `terminal.input_shell_wait` 진단의 `outcome`/`reason`에만 쓰이고, 키는 어느 경우든 그대로 써집니다. 다음 둘은 지시서에 제품 변경 후보로 적혔지만 **테스트 fixture만** 바뀝니다: #218/#213의 held link(`runtime/tests/inbound.rs`), #227/#319의 연결 전환(`runtime/tests/links.rs`). **조심해서 볼 파일**: - `runtime/tests/inbound.rs` - held link의 Herdr가 link가 풀릴 때까지 `connect`에서 기다립니다(전에는 없는 socket이라 즉시 거절). 그 거절을 node session sync가 받아 테스트가 연결해 둔 node를 끊긴 상태로 덮었습니다. link를 쓰는 모든 테스트(inbound, hide_ai_devices)가 통과하지만, 끝까지 release를 쥔 테스트가 있으면 멈출 수 있는 구조라 봐 주세요. 이전의 10초 자동 종료(`recv_timeout`)는 없앴습니다. - `runtime/tests/node_issues.rs` - 확인을 검토 답의 announcement 안에서 누릅니다(`ChangeNotifier::announcing`). 콜백 안의 panic은 삼켜지므로 값을 모아 밖에서 assert합니다. - `suggestions/worker.rs` `handled` - 실행 중인 run이 없는 pen 명령의 거절 답을 barrier로 씁니다. 상태를 바꾸지 않는 명령이라 골랐습니다. - `docs/TESTING.md` - The test decides the order와 Wait for state에 규칙 네 줄을 더했습니다. <details><summary>이슈별 원인과 처리 (main 8a865d8 기준)</summary> | 이슈 | 테스트 | 원인 | 처리 | | --- | --- | --- | --- | | #153, #148 | `runtime::delivery::tests::moved_terminal_keeps_…`, `remote_observation_without_a_local_socket_…` | `Worker::spawn`이 doorbell/watch producer를 띄워 자기 시계로 pass를 돌림. watch tick이 fixture의 옮겨진 child를 못 읽고 폴더가 없다고 보면 watch를 끝냄(`watches.len()` 0, `watches[0]` index), store가 쓰는 중에 테스트가 파일을 읽음(`ledger_unavailable`, 로컬 재현) | #1812와 같은 규칙: 이 파일의 테스트 12개를 `Worker::store`로, 파일을 읽기 전에 store를 멈춤 | | #152 | `node_issues::a_node_s_merged_worktree_is_removed_…` | 제품: 위 1번 | worker 마지막 답과 lane 해제를 한 lock에서. 테스트는 가장 이른 순간에 확인 | | #218 | `inbound::a_node_pane_s_hide_memory_reads_for_the_node_s_session` | node session sync의 `socket_missing` 답이 테스트가 넣은 session 뒤에 도착해 node를 끊김으로 바꿈(`pane_not_connected`, 실패 0.04초) | held link의 Herdr가 link 동안 답하지 않음 | | #213 | `inbound::a_moved_core_reads_its_own_kit_…` | 같은 원인 + kit 작업이 대기열에 남은 채 dispatch하면 node는 `checking`이 되지 않음, dispatch 뒤 lock을 놓은 사이 답이 끝날 수 있음 | 대기열까지 비기를 기다리고, dispatch와 확인을 한 lock에서 | | #227, #319 | `links::a_native_fork_keeps_state_changes_…` (#227의 새 이름이 #319) | "다음 connect에 전환" arm을 fork worker 옆의 control lane(focus)이 가져가면, 전환이 fork worker의 확인 뒤에 적용되어 `pane.get`이 옛 서버로 감 | 전환을 fork worker 자신의 thread connect에서만(같은 fixture의 archive 테스트도) | | #246 | `ssh_hosts_list::the_host_list_names_each_alias_…` | dispatch 뒤 lock을 놓은 사이 fake 답이 끝나 `loading`을 못 봄 | dispatch와 확인을 한 lock에서 | | #126 | `suggestions::worker::tests::a_weak_line_waits_fourteen_quiet_days_…` | fixture의 barrier read가 전날의 남은 read일 수 있음. 그러면 clock이 `Wake` 처리 전에 움직여 run이 실제 3분 뒤로 밀리고 10초 대기가 끝남(로컬 재현) | 응답 채널이 있는 명령으로 barrier(`handled`) | | #159 | `memory_analysis::tests::a_linked_node_s_closed_session_…` | 테스트가 Memory hook의 1초 제품 예산 안에서 읽음, 부하에서 답이 비었음(로컬 37%) | hook 답 대신 scope가 가리키는 Project를 직접 확인. hook 답은 `memory_hook` 테스트의 몫이고 뒤의 receipt 확인은 hook과 무관해 그대로 | | #186 | `terminal_input::tests::a_terminal_that_is_never_read_…` | 제품: 위 2번 | 잘린 읽기는 결과가 아님. 두 테스트(기존 것과 잘림 규칙 새 것)는 테스트가 움직이는 시계와 정해 둔 읽기로 돌아 socket과 벽시계에 기대지 않음, bound 150ms 그대로 | | #274 | doorbell 두 테스트 | 재현 안 됨(fixture는 10-09부터 store만 띄움, 실패 둘 다 store의 5초 답 기한) | 범위 제외, 이슈에 증거 코멘트 | </details> ## Evidence - **확인한 것 (수정 전 재현)**: main 코드 테스트 바이너리로 12개 테스트를 각 200회, 24개 병렬, load average 31-38에서 돌림: #159 74/200, #148 1/200(`ledger_unavailable`), #186 1/200, #126 1/200(`a read: Timeout`), 나머지 0/200. - **확인한 것 (수정 후)**: 같은 조건(각 200회, 24병렬, load 27-42)에서 수정 후 바이너리로 12개 테스트와 새 잘림 테스트를 돌림: 2,600회 실패 0. - **확인한 것 (수정 없이 실패)**: #152 - `worktree_cleanup.rs`와 `projects.rs`만 main으로 되돌리면 새 순서의 node 테스트가 5/5 `a confirmation pressed on the answer is taken`으로 실패. #186 - 반복의 잘림 분기 한 줄만 지우면 `a_read_the_bound_cuts_short_leaves_the_last_failure_as_the_reason`이 `Timeout`(기대 `Unreadable("link down")`)으로 실패. - **확인한 것 (#186 재수정 뒤)**: 두 셸 대기 테스트 각 200회, 24병렬, load 25-29: 실패 0. - **확인한 것 (CI)**: verify run 40823301322(head 808270c) 성공, rust workspace Linux를 포함한 모든 lane에서 재시도로 통과한 테스트 없음. - **확인한 것**: 로컬 `verify-cargo.sh nextest -p herdr-core --retries 0` 3437/3437 통과. - **확인한 것**: 바뀐 모듈 295개 테스트 통과, `verify-cargo.sh clippy -p herdr-core --all-targets -D warnings`, `fmt-check`, `check-capability-readers-off-lock.sh` 통과. - **확인하지 못한 것**: #218, #213, #227/#319, #246, #153, #152는 로컬 부하 200회에서 수정 전에도 재현되지 않았습니다(CI Linux에서만 기록). 원인은 CI 로그(실패 시각, 진단 순서)와 코드로 정했고, Linux 반복은 이 PR의 CI 실행으로만 봅니다. 이 맥은 Linux 호스트가 없고 디스크 여유가 3-9 GB입니다. <details><summary>Verification record</summary> - base: main 8a865d8, head: ae7f390 (CI verify run 40826129061 success, no test passed only on retry) - before binary: main 8a865d8, after binary: 커밋 전 작업 트리(포맷만 다름) - load repeat: `repeat.sh <bin> <tests> 200 24`, 테스트 하나당 프로세스 하나, macOS arm64 - CI #152 로그: run 40817735918 job 123262761058, TRY 1 FAIL 11.029s, `worktree.*` 진단 없음 - CI #218 run 40675696797, #213 run 40485064142: TRY 1 FAIL 0.040s/0.034s, 패닉 직전 `remote.session_unavailable socket_missing` </details>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: PRD
agents/prd/web-pane-scroll-find-areas/prd.mdSummary
이제 observer의 휠은 Herdr
pane.scroll로 공유 viewport를 옮기고, attach 전에 온 휠은 첫 frame과 함께 보냅니다.scroll held by another client를 보이고, 연결 실패는 화면이 아니라 진단 로그로 갑니다.Review
scroll held by another client문구와, 그것이 다음 휠까지 남아 있는 동작.herdr-core/src/runtime/terminal.rs- high-frequency path(휠 합산, pane당 in-flight 1개)와 runtime mutex(pane.get/pane.scroll은 worker에서, lock 밖).herdr-core/src/runtime/events.rsTerminalResize - observer 재attach는 Herdr 세션 재시작입니다. 세션이 붙는 동안에는 pane에 세션이 없어 동시에 하나만 돕니다.herdr-core/src/live.rs,herdr-core/src/wire.rs- Herdr contract 호출(pane.get,pane.scroll, 원격pane.read). 새 파라미터는 generated 타입으로만 만듭니다.herdr-core/src/model.rs- snapshot wire에scroll_held_elsewhere(false면 생략)가 추가됐습니다.Evidence
[data-view-area]가 사라지고 두 pane이 새 grid에서 row-159/row-160을 인접한 줄로 다시 그림(줄바꿈된 옛 frame이면 실패). 파일을 다시 열면 영역이 돌아옴.github::tests::gh_boundary_...1건이 부하 중 한 번 실패했고 단독 3/3 통과(이 diff가 건드리지 않는 1 s subprocess fixture).pane.scroll)를 타지만 네이티브 앱으로는 확인하지 않았습니다.AI tooling: 대부분 AI 도구. 격리 Herdr에서 e2e 스크린샷과 Herdr
pane getoffset을 직접 대조했습니다.Verification record
agents/prd/web-pane-scroll-find-areas/prd.md(sha256 27121e33e51cda43ab46c15f9abf1db6b1d21353b31e8dde21141407046be071)agents/runs/web-pane-scroll-find-areas/verification-report.jsonandagents/runs/web-pane-scroll-find-areas/verification-report.md; source fingerprint 9f4b32c42fd4f9c1661445ea7b6cebf31999c7a909bc6262aa39dc247c9c2573bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-swift.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)terminal.scroll_failed).