Repository navigation
Store the primary checkout for registered local projects - #195
Merged
Merged
Conversation
yansfil
marked this pull request as ready for review
September 27, 2026 10:36
yansfil
added a commit
that referenced
this pull request
Sep 27, 2026
Related: `agents/prd/sidebar-row-click-overview-row/prd.md`, follows #167; integrates current main ## Summary - 체크아웃 행을 클릭하면 Workspace가 열리면서 에이전트가 펼쳐지고, 이미 열린 행을 다시 누르면 접힙니다. - Git 프로젝트 첫 자식에 Overview 행을 추가하고, Overview 선택 표시를 이 행으로 옮겼습니다. - 열기와 펼침을 이벤트 하나로 반영하며, 사라진 체크아웃 요청은 상태 변경 없이 진단만 남깁니다. - Git 정보가 갱신되어도 에이전트에서 가져온 체크아웃 목적 문구를 유지합니다.  펼친 에이전트 목록은 왼쪽, 접힌 상태는 오른쪽입니다. Overview는 두 상태 모두 첫 자식 행입니다. ## Review - **판단해 주세요**: 행 재클릭으로 접는 동작과 프로젝트 아래 Overview 진입점의 위치. - **조심해서 볼 파일**: `runtime.rs`, `events.rs`의 상태 소유권, `runtime/projects.rs`의 파생 문구, `navigation.ts`의 전환·실패 경로. - **리뷰 반영**: 조기 전환, 거부 후 timeout 안내, 최근 패널의 누락된 식별자와 Git 갱신 시 목적 문구 소실을 수정했습니다. ## Evidence - **확인한 것**: 목적 문구 소실을 3회 재현했고, 수정 후 최종 병합본에서 같은 브라우저 시나리오가 3회 연속 통과했습니다. - **확인한 것**: 단일 이벤트, 클릭·재클릭·키보드·Overview 선택, 원자적 거부를 검사했습니다. 최종 Rust test/lint도 통과했습니다. - **확인하지 못한 것**: 최종 커밋 CI는 진행 중입니다. 로컬 Electron UI는 D-07 범위 밖이며 비동기 projection 실패는 별도 주입하지 않았습니다. - **생성물**: Projects Sidebar 시트와 웹 wire 타입을 생성기로 갱신했습니다. main 대비 디자인 라이브러리 변경은 없습니다. <details><summary>추가 증거</summary>   최신 격리 런타임에서 펼침과 Overview 전환 후에도 primary 목적 문구가 유지됩니다. </details> <details><summary>Verification record</summary> - PRD: `agents/prd/sidebar-row-click-overview-row/prd.md` (sha256 5db6a301d9034c2d1c7ebdcfab202e0be82877e44d8c3fa08fb5fe73bbda8fca) - Base 9529e58 → head a7eb0d5, verified 2026-09-27T12:22:19.149Z: PASS - Verification report: `agents/runs/sidebar-row-click-overview-row/verification-report.json` and `agents/runs/sidebar-row-click-overview-row/verification-report.md`; source fingerprint 7ffbe78df1b06af059735f0fad94a63e25ea407b3d8e1d9f3958519fb04c4623 - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Fidelity: a7eb0d5, final head and registered evidence reviewed; no Fix now. B1-B10 retained. Prior admission and cancellation findings fixed. Existing documentation and Pen/runtime differences remain follow-up only. - Code: a7eb0d5 APPROVE; premature navigation, stale timeout, Recent Panels identity and purpose refresh findings closed. Optional explicit asynchronous projection-failure regression remains. - CI regression: 2b62f74 failed purpose assertion at projects-sidebar.spec.ts:242. Reproduced 3/3 locally, valid RED unit test failed after refresh; existing purpose helper restores derived title before publication. GREEN regression and 3/3 E2E pass before and after final main integration. Assertions unchanged. - Main integration: merged origin/main7af7e040 without rebasing;23 task paths differ. Design library unchanged. Includes #195/#196/#197/#202/#203/#204. - Additional checks: web397 and desktop39 unit/typecheck/lint/build PASS on second integration (web source unchanged since); fresh final hided build and design contract PASS. Earlier design16 conditions/112 assertions and44 script tests PASS. - Final sealed run:126.0s Rust test,2.0s lint; initial formatting-only failure corrected and both reviewers confirmed no semantic change. - Historical setup failures and full-suite failures remain in registered logs; final results above supersede them. Earlier CI cancelled for requested main integration. Final-head CI pending. - Local Electron UI observation is outside D-07; CI owns Electron E2E. Async projection failure not separately injected. Original board1 A/B remains authority; comparison baseline is delegated. - Evidence: 45 registered (15 screenshot, 28 log, 2 file); paths are local to the run directory - agents/runs/sidebar-row-click-overview-row/evidence/row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/overview-row-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/sidebar-final.log - agents/runs/sidebar-row-click-overview-row/evidence/web-final.log - agents/runs/sidebar-row-click-overview-row/evidence/manual-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/sidebar-reviewed.log - agents/runs/sidebar-row-click-overview-row/evidence/web-reviewed.log - agents/runs/sidebar-row-click-overview-row/evidence/core-checkout.log - agents/runs/sidebar-row-click-overview-row/evidence/web-final-head.log - agents/runs/sidebar-row-click-overview-row/evidence/final-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/final-overview-row-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/e2e-final-head.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-rechecked.log - agents/runs/sidebar-row-click-overview-row/evidence/all-e2e-initial.log - agents/runs/sidebar-row-click-overview-row/evidence/web-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/build-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/design-tests-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-merged.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-merged-overview.log - agents/runs/sidebar-row-click-overview-row/evidence/design-merged.md - agents/runs/sidebar-row-click-overview-row/evidence/design-merged.json - agents/runs/sidebar-row-click-overview-row/evidence/design-merged-compare.png - agents/runs/sidebar-row-click-overview-row/evidence/design-merged-states.png - agents/runs/sidebar-row-click-overview-row/evidence/merged-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/merged-overview-selected.png - agents/runs/sidebar-row-click-overview-row/evidence/build-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/web-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-second-merge.log - agents/runs/sidebar-row-click-overview-row/evidence/e2e-second-merge-tabs.log - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.md - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge.json - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge-compare.png - agents/runs/sidebar-row-click-overview-row/evidence/design-second-merge-states.png - agents/runs/sidebar-row-click-overview-row/evidence/second-merge-row-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/second-merge-overview.png - agents/runs/sidebar-row-click-overview-row/evidence/purpose-regression-red-valid.log - agents/runs/sidebar-row-click-overview-row/evidence/purpose-regression-green-valid.log - agents/runs/sidebar-row-click-overview-row/evidence/ci-repro.log - agents/runs/sidebar-row-click-overview-row/evidence/purpose-fix-e2e.log - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-e2e.log - agents/runs/sidebar-row-click-overview-row/evidence/build-final-ci-fix.log - agents/runs/sidebar-row-click-overview-row/evidence/design-final-ci-fix.log - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-screens-row-click-expanded.png - agents/runs/sidebar-row-click-overview-row/evidence/final-ci-fix-screens-overview-row-selected.png - Changed paths: 129 (see Files changed) </details>
yansfil
added a commit
that referenced
this pull request
Oct 28, 2026
Closes with-hide/hide-private#147 Closes with-hide/hide-private#270 Closes with-hide/hide-private#161 Closes with-hide/hide-private#122 Closes with-hide/hide-private#168 Closes with-hide/hide-private#172 Closes with-hide/hide-private#195 Closes with-hide/hide-private#197 ## Summary Five of the most frequent web e2e flakes are fixed at their cause, and one of them was a product race. When a folder inside a repository was added as a project, one update could draw it apart from its repository, with no tabs and under "No agents", for about 10 ms. The core now builds that update from path answers that already place the new project. The other four were tests that waited on the wrong thing, and four more issues with the same tab failure close with them. #287 needed no code, because its spec was deleted with Factory in #1437. 스크린샷 없음: no `web/src`, `site/` or `design/` change; the only product change is in the core's catalog build. ## Review - **판단해 주세요**: #270 is fixed in the core, not in the test helper. The in-between update was wrong (the project shown apart from its repository, empty, under No agents), so `showProjectRow` is unchanged. - **판단해 주세요**: the graph still remounts every card when it switches from plain layers to the placed layout. The switch waits on the asynchronous layout worker, up to `LAYOUT_TIMEOUT_MS` (3000 ms), so a click in that window can be lost. This PR only makes the test wait for `layered`; the product defect is with-hide/hide-private#317. - **판단해 주세요**: the #122 test now opens the record by focusing the row (`focus-within`), so it checks the focus path and no longer checks the hover reveal. - **조심해서 볼 파일**: `herdr-core/src/session_sync/coordinator.rs`, the catalog build on the session-sync thread (high-frequency path). The change only chooses between two path indexes already in hand. When the coordinator's own answers place every registration (the usual case), nothing changes. - **비용 검토**: each update adds one `knows()` lookup per local registration on at most two indexes, with no new reads, timers or fan-out. ## Evidence - **확인한 것**: the 8 tests behind these issues passed 20 repeats each on 42aa932 (160 passed, 0 failed). This is evidence for 42aa932; the commit after it changes docs only. - **확인한 것**: a scratch probe (not committed) that read the wire frames reproduced the #270 update before the fix and saw 0 of 31 after it. - **확인한 것**: the new core unit test proves that a pending answer makes the catalog build from the path index that places every registration. It does not prove the screen frame; the probe above is the screen-level evidence. - **확인한 것**: CI on 7d6ee3b passed in every lane that ran, and no lane reported a flaky test. - **확인하지 못한 것**: clippy and the full Rust and web suites did not run locally (the disk had 0.8-1.8 GiB free); CI ran them. The Windows form of #161 is checked only in CI. <details><summary>Verification record</summary> **Issues** | Issue | Flakes | Cause | Fix | | --- | --- | --- | --- | | #270 s4 registered subfolder History | 17 | Product: while the node's path answer was pending, the coordinator built the catalog from answers that predate the new registration and overwrote the creation's correct publish; the helper then clicked the vanished fold | `paths_to_build_from` in the coordinator | | #147 plan-review | 24 | The graph draws cards in plain layers, then mounts them anew once placed; `boundingBox()` read a removed card (`null`) | Wait for `data-dependency-layout="layered"` (`placedBoxes`); mission-map had the same read | | #161 checkout-owner linked worktree | 15 | `waitForTerminal` took the strip's selected tab as the expectation; the canvas drew the new tab while the strip still selected the old one | The expected tab comes from Herdr (`createdTabs`), all 9 callers | | #168 #172 #195 #197 | - | Same `Expected: old tab / Received: new tab` signature, same helper | Same fix | | #122 session-work-ledger report letter | 1 | Hover-only record button: a child nesting under the root moved the row away from a still pointer | Reveal the buttons by focusing the row (`focus-within`) | | #287 Factory questions | 21 | The spec was deleted with Factory in #1437 (cc80696) | Closed with that evidence, no code | **Repeat run (c2)** - Commit: 42aa932 (head 7d6ee3b adds docs only). - Machine: macOS, one worker, debug hided with the core fix, pinned Herdr 0.9.5. - Command: `scripts/verify-web.sh web e2e e2e/plan-review.spec.ts e2e/mission-map.spec.ts e2e/checkout-owner.spec.ts e2e/s4.spec.ts e2e/session-work-ledger.spec.ts e2e/herdr-coexistence.spec.ts e2e/last-tab-leaves-checkout.spec.ts e2e/s2.spec.ts --grep "<the 8 tests>" --repeat-each 20` - Result: 160 passed, 0 failed, 19.4 min. - The other tests the helper change touches (checkout-owner, session-work-ledger, sidebar-menus, overview-device, s2 tab switch) passed once each, 15 in all. **#270 probe (not committed)** - It logged the fold and the core's `no_agent_projects` from wire frames, with the real test's Git setup. - Before the fix, every batch of 12-20 runs (5 batches) had at least one publish of `registered` at its bare path with 0 tabs beside `fixture` and under No agents. One batch was counted exactly: 2 of 20. - After the fix: 0 of 31. **Static checks** - `verify-cargo.sh test -p herdr-core --lib`: `catalog_path_tests::a_pending_answer_builds_from_the_paths_that_place_every_registration` passes. - `web typecheck`, `web lint` (e2e size budget included) and `cargo fmt --check` pass. **CI on 7d6ee3b** - Passed: verify, gate, plan, policy checks, rust workspace, web and desktop checks, static-design, windows check, os contract linux and windows, remote mailbox, web e2e linux 1-6 of 6, windows e2e, desktop e2e macos 1-2 of 2, desktop e2e windows. - Skipped by path filter: agent CLIs, agent journey, agy contract, omp SDK contract, os contract macOS, package, windows wsl. - No lane reported a flaky test. </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.
Summary
set_primary_checkoutpersists the choice; the snapshot moves the chosen checkout first and the sidebar moves its house glyph.mainwith the house before the event, thenhomefirst with the house after the event.Review
runtime/projects.rsvalidates the single event and uses the existing off-lock save; no subprocess or filesystem work was added under the runtime lock.workspace.rs,project_context.rsand the snapshot types own selection projection, ordering and inactive folding.Evidence
7b25222e: Rust, repository invariants, web and desktop E2E, desktop unit/build, design and aggregate verify.